#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;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

#csContainer.active {
    display: flex;
    opacity: 1;
    pointer-events: all;
    transition: all 0.3s ease;
}

#csContainer #csBackground {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 900;
    background-color: #000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

#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: 12px;
    overflow: hidden;
    gap: 66px;
}

#csContainer #portiaModal.csHasLocal {
    max-width: 90%;
}

#csContainer.active #portiaModal {
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.25);
}

#csContainer.active #csBackground {
    pointer-events: initial;
    opacity: 0.2;
    transition: all 0.3s ease;
}

#portiaHeader {
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-content: stretch;
    align-items: center;
    gap: 24px;
}

#portiaHeader img {
    margin: 0 auto;
    display: block;
    max-width: 108px;
    width: 108px;
    min-width: 108px;
}

#portiaVariants {
    padding-left: 130px;
    margin-top: -20px;
    margin-bottom: 1em;
}

#portiaVariants > select {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #333;
    background: var(--colors-base-00, #FFF);
}

#portiaModal #csClose {
    position: absolute;
    right: 25px;
    top: 25px;
    padding: 5px;
    cursor: pointer;
}

#portia-product-title {
    margin: 20px 0;
    font-weight: bold;
    width: 100%;
}

#csContainer #csMap {
    width: 100%;
    height: 25vh;
    z-index: 900;
    margin-bottom: 20px;
}

#csSearch {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #333;
    background: var(--colors-base-00, #FFF);
    margin-bottom: 16px;
}

.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 #ed2939;
    padding: 20px 0;
    border-top: 1px solid #ed2939;
    background: linear-gradient(to right, #fff 2%, #fff 18%, #f7f7f7 33%);
}

.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;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.csLocalRetailerAddress {
    width: 100%;
    font-size: 14px;
    line-height: 1.3em;
    color: #222;
}

.csLocalRetailerAddress a {
    display: block;
    color: #222;
    font-weight: 500;
    margin-top: 1em;
}

.csLocalRetailerAddress .csCallStore {
    gap: 10px;
    text-decoration: none !important;
    display: flex;
    border-radius: 6px;
    border: 1px solid #333;
    background: #FFF;
    padding: 5px 15px;
    color: #333;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    justify-content: center;
    align-items: center;
}

.csLocalRetailerAddress .csCallStore:before {
    content: "";
    width: 19px;
    height: 19px;
    -o-object-fit: contain;
    object-fit: contain;
    display: inline-block;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" fill="none" viewBox="0 0 19 19"><path stroke="%23333" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11.945 1.75a7.514 7.514 0 0 1 5.305 5.305m-6.081-2.407a4.508 4.508 0 0 1 3.182 3.183M5.67 9.701a7.907 7.907 0 0 0 3.66 3.645.743.743 0 0 0 .735-.056l2.347-1.565a.75.75 0 0 1 .711-.065l4.391 1.882a.748.748 0 0 1 .45.778 4.5 4.5 0 0 1-4.464 3.93A12.75 12.75 0 0 1 .75 5.5a4.5 4.5 0 0 1 3.93-4.464.747.747 0 0 1 .778.45L7.342 5.88a.75.75 0 0 1-.062.706L5.72 8.97a.743.743 0 0 0-.05.731Z"/></svg>');
}

.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: 16px;
}

#csRetailers {
    max-height: 380px;
    max-height: calc(75vh - 334px);
    overflow-x: auto;
    position: relative;
}

#csOnline {
    width: 100%;
}

#csLocal {
    width: 70%;
}

#csContainer #portiaModal.csHasLocal #csOnline {
    width: 30%;
}

.csBlockTitle {
    border-bottom: 1px solid #CCC;
    font-weight: bold;
    font-size: 1.4em;
    font-weight: 700;
    padding-bottom: 7px;
    margin-bottom: 1em;
}

#csOnlineShops > .csRetailer {
    border-bottom: 1px solid #F5F5F5;
    padding: 16px 0;
}

#csOnlineShops > .csRetailer:last-of-type {
    border-bottom: 0;
}

.csRetailer {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-content: stretch;
    align-items: center;
    gap: 16px;
}

.csRetailer img {
    width: 80px;
    min-width: 80px;
    height: 50px;
    -o-object-fit: contain;
    object-fit: contain;
    -o-object-position: left;
    object-position: left;
}

.csRetailer a {
    background: #ed2939;
    color: #FFF;
    padding: 5px 30px;
    border-radius: 5px;
    font-size: 14px;
}

.csRetailerName {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.csRetailerName > span {
    line-height: 1.2em;
    font-weight: 600;
    margin-bottom: 0.5em;
}

#csContainer .stock {
    display: inline-block;
    background: bisque;
    border-radius: 6px;
    background: #25CC35;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
    color: #FFF;
    padding: 4px 10px;
}

#csContainer .stock.partial {
    background: #ff8913;
}

#csContainer .stock.none {
    background: #ed2939;
}

.pac-container {
    z-index: 10000000 !important;
}

.csRetailerImageLoading {
    width: 80px;
    height: 50px;
    display: block;
}

.csRetailerBrandLoading {
    width: 150px;
    height: 1em;
    display: block;
}

.csRetailerBuyButtonLoading {
    width: 130px;
    height: 36px;
    display: block;
    border-radius: 5px;
}

.csLocalRetailerLogoLoading {
    width: 50px;
    height: 50px;
    display: block;
}

.csLocalRetailerAddressLoading {
    width: 400px;
    height: 1em;
    display: block;
    margin-top: 1em;
}

.csLocalRetailerAddressTitleLoading.loadingAnimation {
    width: 200px;
    height: 1em;
    display: block;
}

.csLocalRetailerAddressPhoneLoading {
    width: 100px;
    height: 1em;
    display: block;
    margin-top: 2em;
}

.loadingAnimation {
    -webkit-animation-duration: 1.7s;
    animation-duration: 1.7s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-name: placeholderAnimate;
    animation-name: placeholderAnimate;
    background: #f6f7f8;
    background: linear-gradient(to right, #fff 2%, #fff 18%, #f7f7f7 33%);
    background-size: 1300px;
}

@-webkit-keyframes placeholderAnimate {
    0% {
        background-position: -650px 0;
    }

    100% {
        background-position: 650px 0;
    }
}

@keyframes placeholderAnimate {
    0% {
        background-position: -650px 0;
    }

    100% {
        background-position: 650px 0;
    }
}

@media (max-width: 981px) {
    #csContainer #portiaModal {
        flex-direction: column;
        overflow: scroll;
        padding: 20px 15px;
        gap: 30px;
    }

    #portiaHeader {
        flex-direction: column;
    }

    #portia-product-title {
        text-align: center;
    }

    #portiaHeader img {
        max-height: 160px;
    }

    #csContainer #portiaModal.csHasLocal #csOnline {
        width: 100%;
        order: 4;
    }

    #csLocal {
        width: 100%;
        margin-top: 0;
    }

    #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;
    }

    .csLocalRetailerLogo {
        position: absolute;
        left: 0;
    }

    .csLocalRetailerActions {
        margin-left: 0;
        width: auto;
        margin-top: 10px;
    }

    .csLocalRetailerAddress,
    .csLocalRetailerActions {
        display: flex;
        width: auto;
        margin-left: 70px;
        flex-direction: column;
        align-items: flex-start;
    }

    .csLocalRetailerActions > a,
    .csLocalRetailerActions > div {
        padding-left: 0;
    }
}

.pac-item { cursor: pointer;}