/* Add-to-cart popup, matched to the old Gemcara theme (Glencara layout, blue brand). */

.bss-ajaxcart-dialog {
    border-radius: 0;
}

.bss-ajaxcart-popup {
    color: #464546;
    font-weight: 500;
}

.bss-ajaxcart-popup .ajaxcart-head {
    position: relative;
    margin-bottom: 16px;
    padding-right: 28px;
}

.bss-ajaxcart-popup .popupheader {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    width: auto;
    background: none;
    box-shadow: none;
    color: #464546;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
}

.bss-ajaxcart-popup .ajaxcart-tick {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 26px;
    height: 24px;
    min-width: 26px;
    border-radius: 5px;
    background: #2468b2;
    color: #fff;
}

.bss-ajaxcart-popup .ajaxcart-tick svg {
    width: 16px;
    height: 16px;
}

.bss-ajaxcart-popup .ajaxcart-close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #666;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.bss-ajaxcart-popup .popupmaindiv {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-top: 1px solid #bebebe;
    border-bottom: 1px solid #bebebe;
    padding: 20px 0;
}

.bss-ajaxcart-popup .popupleftside {
    width: 57%;
    padding-right: 60px;
    border-right: 1px solid #bebebe;
    text-align: left;
}

.bss-ajaxcart-popup .popuprightside {
    width: 43%;
    padding: 0 35px;
    text-align: center;
}

.bss-ajaxcart-popup .productname {
    margin-bottom: 10px;
    color: #464546;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: underline;
}

.bss-ajaxcart-popup .free-ship-text {
    margin: 0 0 10px;
    color: #414042;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.bss-ajaxcart-popup .free-ship-text strong {
    font-weight: 700;
}

.bss-ajaxcart-popup .free-ship-text .delivered_by_date_tab {
    color: #2468b2;
}

.bss-ajaxcart-popup .popup-item::after {
    content: "";
    display: block;
    clear: both;
}

.bss-ajaxcart-popup .product-image {
    float: left;
    width: 40%;
    margin-right: 4%;
    text-align: center;
}

.bss-ajaxcart-popup .product-image img {
    width: 100%;
    height: auto;
}

.bss-ajaxcart-popup .productqty {
    float: left;
    margin: 12px 0 0;
    color: #414042;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.bss-ajaxcart-popup .productqty .qty-num {
    margin-left: 6px;
}

.bss-ajaxcart-popup .prcwrap {
    float: right;
    margin-top: 6px;
    text-align: left;
}

.bss-ajaxcart-popup .retailPriceBox_popup {
    display: block;
    line-height: 1.15;
}

.bss-ajaxcart-popup .retailPriceSaveText-popup {
    display: inline;
    padding: 0;
    border-radius: 0;
    background: none;
    color: #2468b2;
    font-size: 16px;
    font-weight: 500;
}

.bss-ajaxcart-popup .real-price-popup {
    display: block;
    margin-top: 2px;
    color: #464546;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.bss-ajaxcart-popup .retail-line {
    display: block;
    white-space: nowrap;
}

.bss-ajaxcart-popup .retailPriceText-popup,
.bss-ajaxcart-popup .retailPricePrice-popup {
    color: #464546;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
}

.bss-ajaxcart-popup .retailPricePrice-popup {
    margin-left: 4px;
    text-decoration: line-through;
    text-transform: none;
}

.bss-ajaxcart-popup .popupleftside::after {
    content: "";
    display: block;
    clear: both;
}

.bss-ajaxcart-popup .sale-text {
    clear: both;
    float: none;
    width: 100%;
    margin: 12px 0 8px;
    color: #464547;
    font-size: 16px;
    text-align: right;
}

.bss-ajaxcart-popup .sale-text strong {
    display: block;
    color: #2468b2;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
}

.bss-ajaxcart-popup .viewcartlink {
    align-self: flex-end;
    margin-bottom: 10px;
    color: #3e7798;
    font-size: 16px;
    text-decoration: none;
}

.bss-ajaxcart-popup .subtotal {
    margin-bottom: 12px;
    color: #464547;
    font-size: 22px;
    font-weight: 500;
}

.bss-ajaxcart-popup .popuprightside a.btn {
    border: 2px solid #2468b2;
    border-radius: 5px;
    background: #2468b2;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
}

.bss-ajaxcart-popup .popuprightside a.btn:hover {
    border-color: #020f00;
    background: #020f00;
    color: #fff;
}

.bss-ajaxcart-popup .cart_items_extra p span {
    color: #2468b2;
}

.bss-ajaxcart-popup .free-gift-mobile {
    display: none;
}

.bss-ajaxcart-popup .free-gift-retail-price {
    margin-left: 4px;
    text-decoration: line-through;
}

@media (max-width: 768px) {
    .bss-ajaxcart-dialog {
        width: calc(100vw - 12px);
        max-width: calc(100vw - 12px);
        max-height: calc(100dvh - 12px);
        margin: 6px auto;
    }

    .bss-ajaxcart-popup .popup {
        position: relative;
        padding: 8px;
    }

    /* Glen hides the extra-savings note on phones so the popup fits the screen. */
    .bss-ajaxcart-popup .cart_items_extra_container_mocon {
        display: none;
    }

    .bss-ajaxcart-popup .ajaxcart-head {
        margin-bottom: 0;
        padding-bottom: 4px;
        border-bottom: 1px solid #2468b2;
    }

    .bss-ajaxcart-popup .popupheader {
        font-size: 14px;
        line-height: 1.2;
    }

    .bss-ajaxcart-popup .ajaxcart-tick {
        width: 20px;
        height: 18px;
    }

    .bss-ajaxcart-popup .ajaxcart-tick svg {
        width: 12px;
        height: 12px;
    }

    .bss-ajaxcart-popup .ajaxcart-close {
        top: 0;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        margin: 0;
        font-size: 20px;
        line-height: 1;
    }

    .bss-ajaxcart-popup .viewcartlink {
        position: absolute;
        top: 32px;
        left: 8px;
        margin: 0;
        font-size: 14px;
    }

    .bss-ajaxcart-popup .popupmaindiv {
        display: block;
        border: 0;
        margin: 0;
        padding: 26px 0 0;
    }

    .bss-ajaxcart-popup .popupleftside,
    .bss-ajaxcart-popup .popuprightside {
        width: 100%;
        padding: 0;
        border: 0;
    }

    .bss-ajaxcart-popup .popuprightside {
        margin-top: 8px;
    }

    .bss-ajaxcart-popup .productname {
        margin-bottom: 2px;
        font-size: 14px;
        line-height: 1.25;
    }

    .bss-ajaxcart-popup .free-ship-text {
        margin: 0 0 6px;
        font-size: 13px;
        line-height: 1.3;
    }

    .bss-ajaxcart-popup .product-image {
        width: 32%;
        margin-right: 2%;
    }

    .bss-ajaxcart-popup .product-image img {
        max-height: 96px;
        width: auto;
        max-width: 100%;
    }

    .bss-ajaxcart-popup .productqty {
        margin-top: 2px;
        font-size: 13px;
    }

    .bss-ajaxcart-popup .prcwrap {
        float: right;
        max-width: 58%;
        margin-top: 0;
    }

    .bss-ajaxcart-popup .retailPriceSaveText-popup,
    .bss-ajaxcart-popup .retailPriceText-popup,
    .bss-ajaxcart-popup .retailPricePrice-popup {
        font-size: 13px;
    }

    .bss-ajaxcart-popup .real-price-popup {
        font-size: 16px;
    }

    .bss-ajaxcart-popup .sale-text,
    .bss-ajaxcart-popup .sale-text strong {
        font-size: 13px;
    }

    .bss-ajaxcart-popup .sale-text {
        float: none;
        width: 100%;
        margin-top: 6px;
    }

    .bss-ajaxcart-popup .free-gift-tabs {
        display: none;
    }

    .bss-ajaxcart-popup .free-gift-mobile {
        display: block;
        margin-top: 8px;
    }

    .bss-ajaxcart-popup .free-gift-mobile-title span {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #2468b2;
        font-size: 13px;
        font-weight: 500;
        text-transform: uppercase;
    }

    .bss-ajaxcart-popup .free-gift-mobile-title span::before,
    .bss-ajaxcart-popup .free-gift-mobile-title span::after {
        content: "";
        flex: 1 0 16px;
        border-top: 1px solid #bebebe;
    }

    .bss-ajaxcart-popup .free-gift-mobile-title span::before {
        margin-right: 8px;
    }

    .bss-ajaxcart-popup .free-gift-mobile-title span::after {
        margin-left: 8px;
    }

    .bss-ajaxcart-popup .free-gift-mobile-container {
        display: flex;
        gap: 6px;
        padding: 6px 0 10px;
    }

    .bss-ajaxcart-popup .free-gift-mobile-item {
        position: relative;
        display: flex;
        flex: 1 1 0;
        flex-direction: column;
        align-items: center;
        min-width: 0;
        margin: 0;
        padding: 4px 4px 2px;
        border: 3px solid #ccc;
        border-radius: 10px;
        background: #fff;
        text-align: center;
        cursor: pointer;
    }

    .bss-ajaxcart-popup .free-gift-mobile-item.active {
        border-color: #2468b2;
    }

    .bss-ajaxcart-popup .free-gift-mobile-name span {
        display: block;
        min-height: 30px;
        color: #414042;
        font-size: 12px;
        font-weight: 500;
        line-height: 15px;
    }

    .bss-ajaxcart-popup .free-gift-mobile-details {
        padding: 0;
        border: 0;
        background: none;
        color: #444;
        font-size: 12px;
        line-height: 1.2;
        cursor: pointer;
    }

    .bss-ajaxcart-popup .free-gift-mobile-image img {
        width: 100px;
        height: 100px;
        max-width: 100%;
        object-fit: contain;
    }

    .bss-ajaxcart-popup .free-gift-mobile-retial {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin-top: 2px;
    }

    .bss-ajaxcart-popup .free-gift-mobile-free {
        color: #2468b2;
        font-size: 16px;
        font-weight: 500;
        text-transform: uppercase;
    }

    .bss-ajaxcart-popup .free-gift-mobile-price {
        display: flex;
        flex-direction: column;
        color: #666;
        font-size: 10px;
        line-height: 1.1;
    }

    .bss-ajaxcart-popup .free-gift-mobile-price span:last-child {
        text-decoration: line-through;
    }

    .bss-ajaxcart-popup .check_gift {
        display: none;
    }

    .bss-ajaxcart-popup .free-gift-mobile-item.active .check_gift {
        position: absolute;
        bottom: -9px;
        left: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #2468b2;
        color: #fff;
        transform: translateX(-50%);
    }

    .bss-ajaxcart-popup .popuprightside .mb-3 {
        margin-bottom: 4px;
    }

    .bss-ajaxcart-popup .subtotal {
        margin-bottom: 4px;
        font-size: 15px;
    }

    .bss-ajaxcart-popup .popuprightside a.btn {
        padding: 8px 10px;
        font-size: 16px;
    }

    .bss-ajaxcart-popup .popuprightside > a.mt-3,
    .bss-ajaxcart-popup .cart-express-buttons {
        margin-top: 6px;
    }

    .bss-ajaxcart-popup .cart-express-buttons {
        gap: 6px;
    }
}
