/* ISTORE product page: sticky "add to cart" bar on mobile, shown once the main button scrolls out of view. */
.istore-sticky-buy { display: none; }

@media (max-width: 767px) {
    .istore-sticky-buy {
        display: flex;
        align-items: center;
        gap: 12px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: var(--istore-sticky-buy-bottom, 0px);
        z-index: 2999;
        padding: 10px 16px;
        padding-bottom: calc(10px + var(--istore-sticky-buy-safe, 0px));
        background: rgba(255, 255, 255, .96);
        -webkit-backdrop-filter: saturate(180%) blur(16px);
        backdrop-filter: saturate(180%) blur(16px);
        border-top: 1px solid rgba(0, 0, 0, .06);
        box-shadow: 0 -6px 20px rgba(0, 0, 0, .06);
        transform: translateY(calc(100% + var(--istore-sticky-buy-bottom, 0px) + 8px));
        opacity: 0;
        visibility: hidden;
        transition: transform .25s ease, opacity .2s ease, visibility 0s linear .25s;
    }
    .istore-sticky-buy.is-visible {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        transition: transform .25s ease, opacity .2s ease, visibility 0s;
    }
    .istore-sticky-buy__info {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }
    .istore-sticky-buy__name {
        font-size: 12px;
        color: #777;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .istore-sticky-buy__price {
        font-size: 18px;
        font-weight: 700;
        color: #1d1d1f;
        white-space: nowrap;
    }
    .istore-sticky-buy__btn {
        flex: 0 0 auto;
        min-width: 150px;
        height: 46px;
        padding: 0 22px;
        border: 0;
        border-radius: 23px;
        background: #1d1d1f;
        color: #fff;
        font: inherit;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .istore-sticky-buy__btn:active { opacity: .85; }
    .istore-sticky-buy__btn.is-in-cart { background: #fff; color: #1d1d1f; box-shadow: inset 0 0 0 1px #1d1d1f; }

    /* Lift the RetailCRM chat launcher above the bar while it is shown. */
    body.istore-sticky-buy-on #retailcrm-consultant-app .consultant-widget-wrap_right-bottom .consultant-icon:not(.consultant-icon_opened) {
        translate: 0 calc(-52px - var(--istore-sticky-buy-h, 66px) - env(safe-area-inset-bottom, 0px));
    }
}
