/**
 * Mobile sticky add-to-cart bar managed by GK Optimize.
 * @author CUSTOM-NOT-UPDATE
 */
.gk-product-sticky-cart {
    display: none;
}

@media (max-width: 767px) {
    .gk-product-sticky-cart {
        position: fixed;
        z-index: 1040;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        padding: .5rem max(.75rem, env(safe-area-inset-right)) calc(.5rem + env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
        transform: translateY(110%);
        transition: transform .2s ease, visibility .2s ease;
        visibility: hidden;
        background: #fff;
        box-shadow: 0 -.2rem .9rem rgba(0, 0, 0, .18);
    }

    .gk-product-sticky-cart.gk-product-sticky-cart-visible {
        transform: translateY(0);
        visibility: visible;
    }

    .gk-product-sticky-cart__inner {
        display: flex;
        align-items: center;
        gap: .75rem;
        width: 100%;
        max-width: 34rem;
        margin: 0 auto;
    }

    .gk-product-sticky-cart__price {
        flex: 0 0 auto;
        color: #5a2d20;
        font-size: 1.15rem;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
    }

    .gk-product-sticky-cart__button {
        min-height: 44px;
        flex: 1 1 auto;
        margin: 0;
        padding: .65rem 1rem;
        border-color: #eb7a00;
        border-radius: 999px;
        background: #eb7a00;
        color: #fff;
        font-weight: 700;
    }

    .gk-product-sticky-cart__button:hover,
    .gk-product-sticky-cart__button:focus,
    .gk-product-sticky-cart__button:active {
        border-color: #d96f00;
        background: #d96f00;
        color: #fff;
    }

    body.gk-product-sticky-cart-active .lh-popup-container {
        bottom: calc(57px + env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    .gk-product-sticky-cart {
        transition: none;
    }
}
