.gm-mobile-sticky-cart {
    display: none;
}

@media (max-width: 767px) {
    body.single-product.gm-mobile-menu-is-open .gm-mobile-sticky-cart {
        display: none !important;
    }
}

@media (max-width: 767px) {
    body.single-product {
        padding-bottom: 102px;
    }

    body.single-product .gm-mobile-original-price,
    body.single-product .gm-mobile-original-quantity {
        display: none !important;
    }

    body.single-product form.cart .single_add_to_cart_button {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .gm-mobile-sticky-cart {
        position: fixed;
        z-index: 990;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-height: 80px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        background: #fff;
        border-top: 3px solid #a0f85b;
        box-shadow: 0 -6px 24px rgba(28, 57, 60, 0.16);
        box-sizing: border-box;
    }

    .gm-mobile-sticky-cart__details {
        display: flex;
        min-width: 0;
        flex: 1 1 auto;
        flex-direction: column;
        gap: 3px;
    }

    .gm-mobile-sticky-cart__title {
        display: -webkit-box;
        overflow: hidden;
        color: #1c393c;
        font-family: "Quicksand", sans-serif;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.2;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .gm-mobile-sticky-cart__price {
        color: #1c393c;
        font-family: "Quicksand", sans-serif;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
    }

    .gm-mobile-sticky-cart__price del {
        margin-right: 4px;
        opacity: 0.55;
    }

    .gm-mobile-sticky-cart__price ins {
        text-decoration: none;
    }

    .gm-mobile-sticky-cart__actions {
        display: flex;
        min-width: 0;
        flex: 0 0 auto;
        align-items: center;
        gap: 7px;
    }

    .gm-mobile-sticky-cart__quantity {
        display: grid;
        flex: 0 0 auto;
        grid-template-columns: 27px 30px 27px;
        align-items: stretch;
        min-height: 42px;
        overflow: hidden;
        background: #f2f5f4;
        border: 1px solid #d7e1df;
        border-radius: 24px;
        box-sizing: border-box;
    }

    .gm-mobile-sticky-cart__qty-button {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        color: #1c393c;
        background: transparent;
        border: 0;
        border-radius: 0;
        font-family: "Quicksand", sans-serif;
        font-size: 19px;
        font-weight: 600;
        line-height: 1;
        cursor: pointer;
    }

    .gm-mobile-sticky-cart__qty-button:hover,
    .gm-mobile-sticky-cart__qty-button:focus-visible {
        color: #1c393c;
        background: #e6eee9;
    }

    .gm-mobile-sticky-cart__qty-button:disabled {
        cursor: not-allowed;
        opacity: 0.4;
    }

    .gm-mobile-sticky-cart__qty-input {
        width: 30px;
        min-width: 0;
        padding: 0;
        color: #1c393c;
        background: transparent;
        border: 0;
        border-right: 1px solid #d7e1df;
        border-left: 1px solid #d7e1df;
        border-radius: 0;
        outline: 0;
        font-family: "Quicksand", sans-serif;
        font-size: 13px;
        font-weight: 700;
        line-height: 40px;
        text-align: center;
        box-shadow: none;
        appearance: textfield;
        -moz-appearance: textfield;
    }

    .gm-mobile-sticky-cart__qty-input::-webkit-inner-spin-button,
    .gm-mobile-sticky-cart__qty-input::-webkit-outer-spin-button {
        margin: 0;
        -webkit-appearance: none;
    }

    .gm-mobile-sticky-cart__button {
        min-width: 108px;
        min-height: 44px;
        flex: 0 0 auto;
        padding: 10px 14px;
        color: #fff;
        background: #123f41;
        border: 1px solid #123f41;
        border-radius: 30px;
        font-family: "Quicksand", sans-serif;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
        cursor: pointer;
    }

    .gm-mobile-sticky-cart__button:hover,
    .gm-mobile-sticky-cart__button:focus-visible {
        color: #fff;
        background: #1c393c;
        border-color: #1c393c;
    }

    .gm-mobile-sticky-cart__button:disabled {
        cursor: not-allowed;
        opacity: 0.48;
    }

    body.single-product .xoo-wsc-basket {
        bottom: calc(102px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

@media (max-width: 359px) {
    .gm-mobile-sticky-cart {
        gap: 6px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .gm-mobile-sticky-cart__quantity {
        grid-template-columns: 25px 27px 25px;
    }

    .gm-mobile-sticky-cart__qty-input {
        width: 27px;
    }

    .gm-mobile-sticky-cart__button {
        min-width: 96px;
        padding-right: 10px;
        padding-left: 10px;
        font-size: 12px;
    }
}


/* Compact quantity selector: override global theme button/input sizing. */
@media (max-width: 767px) {
    .gm-mobile-sticky-cart .gm-mobile-sticky-cart__quantity {
        display: grid !important;
        grid-template-columns: 30px 34px 30px !important;
        width: 94px !important;
        min-width: 94px !important;
        max-width: 94px !important;
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        align-items: stretch !important;
        background: #f2f5f4 !important;
        border: 1px solid #d7e1df !important;
        border-radius: 24px !important;
        box-sizing: border-box !important;
    }

    .gm-mobile-sticky-cart .gm-mobile-sticky-cart__qty-button {
        display: flex !important;
        width: 30px !important;
        min-width: 30px !important;
        max-width: 30px !important;
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
        color: #1c393c !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        font-family: "Quicksand", sans-serif !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        text-indent: 0 !important;
        transform: none !important;
    }

    .gm-mobile-sticky-cart .gm-mobile-sticky-cart__qty-input {
        display: block !important;
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        padding: 0 !important;
        margin: 0 !important;
        color: #1c393c !important;
        background: #fff !important;
        border: 0 !important;
        border-right: 1px solid #d7e1df !important;
        border-left: 1px solid #d7e1df !important;
        border-radius: 0 !important;
        outline: 0 !important;
        box-shadow: none !important;
        font-family: "Quicksand", sans-serif !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 40px !important;
        text-align: center !important;
        text-indent: 0 !important;
        opacity: 1 !important;
        appearance: textfield !important;
        -moz-appearance: textfield !important;
    }
}

@media (max-width: 359px) {
    .gm-mobile-sticky-cart .gm-mobile-sticky-cart__quantity {
        grid-template-columns: 27px 30px 27px !important;
        width: 84px !important;
        min-width: 84px !important;
        max-width: 84px !important;
    }

    .gm-mobile-sticky-cart .gm-mobile-sticky-cart__qty-button {
        width: 27px !important;
        min-width: 27px !important;
        max-width: 27px !important;
    }

    .gm-mobile-sticky-cart .gm-mobile-sticky-cart__qty-input {
        width: 30px !important;
        min-width: 30px !important;
        max-width: 30px !important;
    }
}


/* Mobile stock status and wishlist in one compact row. */
@media (max-width: 767px) {
    body.single-product .gm-mobile-buy-row-replaced {
        display: none !important;
    }

    body.single-product .gm-mobile-stock-wishlist-row {
        display: flex !important;
        width: 100% !important;
        min-height: 52px !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        padding: 6px 0 !important;
        margin: 0 !important;
        border-top: 1px solid #e1e5e4 !important;
        box-sizing: border-box !important;
    }

    body.single-product .gm-mobile-stock-widget {
        width: auto !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.single-product .gm-mobile-stock-widget .elementor-widget-container,
    body.single-product .gm-mobile-stock-widget .elementor-shortcode {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.single-product .gm-mobile-stock-widget .vv-stock-status {
        display: flex !important;
        min-height: 40px !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.single-product .gm-mobile-stock-wishlist-row .gm-wishlist-widget {
        display: block !important;
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        flex: 0 0 44px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.single-product .gm-mobile-stock-wishlist-row .gm-wishlist-widget .elementor-widget-container,
    body.single-product .gm-mobile-stock-wishlist-row .yith-wcwl-add-to-wishlist,
    body.single-product .gm-mobile-stock-wishlist-row .yith-wcwl-add-button {
        display: block !important;
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.single-product .gm-mobile-stock-wishlist-row a.single_add_to_wishlist {
        display: flex !important;
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 7px !important;
        margin: 0 !important;
        color: #1c393c !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 50% !important;
        box-shadow: none !important;
        font-size: 0 !important;
        line-height: 0 !important;
        box-sizing: border-box !important;
    }

    body.single-product .gm-mobile-stock-wishlist-row a.single_add_to_wishlist:hover,
    body.single-product .gm-mobile-stock-wishlist-row a.single_add_to_wishlist:focus-visible {
        color: #1c393c !important;
        background: #f2f5f4 !important;
    }

    body.single-product .gm-mobile-stock-wishlist-row a.single_add_to_wishlist span {
        display: none !important;
    }

    body.single-product .gm-mobile-stock-wishlist-row a.single_add_to_wishlist svg {
        display: block !important;
        width: 29px !important;
        min-width: 29px !important;
        max-width: 29px !important;
        height: 29px !important;
        min-height: 29px !important;
        max-height: 29px !important;
        margin: 0 !important;
    }
}
