#csContainer {
    position: fixed;
    right: 0;
    top: 0;
    z-index: 9999999;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-content: stretch;
    align-items: center;
    display: none;
}

#csContainer.active {
    display: flex;
}

#csContainer #csBackground {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 900;
    background-color: #000;
    opacity: 0;
    pointer-events: none;
}

#csContainer #portiaModal {
    z-index: 9999999;
    background: #fff;
    width: 100%;
    max-width: 500px;
    padding: 60px 30px;
    height: auto;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-content: stretch;
    align-items: flex-start;
    border-radius: 10px;
    overflow: hidden;
}

#csContainer #portiaModal.csHasLocal {
    max-width: 90%;
}

#csContainer.active #portiaModal {
    box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
}

#csContainer.active #csBackground {
    pointer-events: initial;
    opacity: 0.5;
}

#portiaHeader {
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-content: stretch;
    align-items: center;
}

#portiaHeader img {
    margin: 0 auto;
    display: block;
    max-height: 200px;
}

#portiaModal>i.itk-cross {
    position: absolute;
    right: 25px;
    top: 25px;
    padding: 5px;
    cursor: pointer;
}

#portia-product-title {
    margin: 20px 0;
}

#csContainer #csMap {
    width: 100%;
    height: 25vh;
    z-index: 900;
    margin-bottom: 20px;
}

.csLocalRetailer {
    border-bottom: 1px solid #e7e7e7;
    padding: 20px 0px 20px 0;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-content: stretch;
    align-items: flex-start;
}

.csLocalRetailer.selected {
    border-bottom: 1px solid #c8102e;
    padding: 20px 0;
    border-top: 1px solid #c8102e;
}

.csLocalRetailerLogo {
    width: 50px;
    min-width: 50px;
    text-align: center;
    margin-right: 20px;
}

.csLocalRetailerLogo img {
    max-width: 50px;
    left: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.68;
}

.csLocalRetailerActions {
    margin-left: 20px;
    min-width: 200px;
    width: 200px;
    font-size: 14px;
}

.csLocalRetailerAddress {
    width: 100%;
    font-size: 14px;
    line-height: 1.3em;
    color: #222;
}

.csLocalRetailerAddress a {
    display: block;
    color: #222;
    font-weight: 500;
    margin-top: 1em;
}

.csLocalRetailerActions>a {
    display: block;
    color: #222;
    font-weight: bold;
    margin-bottom: 5px;
}

.csLocalRetailerActions>a,
.csLocalRetailerActions>div {
    padding-left: 40px;
    position: relative;
}

.csLocalRetailerActions i {
    font-size: 1.3em;
    vertical-align: middle;
    color: #222;
    position: absolute;
    left: 0;
}

.csSchedule {
    color: #222;
}

#csOnlineShops {
    max-height: 380px;
    max-height: calc(90vh - 369px);
    overflow-x: auto;
    padding-right: 10px;
}

#csRetailers {
    max-height: 380px;
    max-height: calc(75vh - 329px);
    overflow-x: auto;
    position: relative;
}

#csRetailers::-webkit-scrollbar,
#csOnlineShops::-webkit-scrollbar {
    width: 5px;
}

#csRetailers::-webkit-scrollbar-track,
#csOnlineShops::-webkit-scrollbar-track {
    background-color: #EDEDED;
}

#csRetailers::-webkit-scrollbar-thumb,
#csOnlineShops::-webkit-scrollbar-thumb {
    background-color: #222;
}

#csOnline {
    width: 100%;
}

#csLocal {
    width: 50%;
}

#csContainer #portiaModal.csHasLocal #csOnline {
    width: 45%;
}

.csBlockTitle {
    border-bottom: 1px solid #CCC;
    font-weight: bold;
    font-size: 20px;
    font-weight: 700;
    padding-bottom: 7px;
    margin-bottom: 1em;
}

.csRetailer {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-content: stretch;
    align-items: center;
}

.csRetailer img {
    width: 80px;
    height: 50px;
    -o-object-fit: contain;
    object-fit: contain;
    -o-object-position: left;
    object-position: left;
}

.csRetailer a {
    background: #c8102e;
    color: #FFF;
    text-transform: uppercase;
    padding: 5px 30px;
    border-radius: 5px;
    font-size: 14px;
}

.pac-container {
    z-index: 10000000 !important;
}

@media (max-width: 981px) {
    #csContainer #portiaModal {
        flex-direction: column;
        overflow: scroll;
    }
    #portiaHeader {
        flex-direction: column;
    }
    #portia-product-title {
        text-align: center;
    }
    #portiaHeader img {
        max-height: 160px;
    }
    #csContainer #portiaModal.csHasLocal #csOnline {
        width: 100%;
    }
    #csLocal {
        width: 100%;
        margin-top: 2em;
    }
    #csRetailers {
        max-height: none;
        overflow-x: initial;
    }
    .csRetailer img {
        max-width: 80px;
    }
    .csRetailer a {
        padding: 8px 20px;
    }
    .csLocalRetailer {
        flex-direction: column;
    }
    .csLocalRetailerLogo img {
        position: initial;
    }
    .csLocalRetailerActions {
        margin-left: 0;
        width: auto;
        margin-top: 20px;
    }
}