#vortek-mobile-purchase-status { display: none; }
@media (max-width: 767px) {
    /* Avoid showing purchasable controls before Odoo finishes checking unavailable stock. */
    #product_detail[data-vortek-purchase-needs-stock-check="true"] #add_to_cart_wrap:not(.vortek-purchase-stock-ready) {
        visibility: hidden;
    }
    #vortek-mobile-purchase-status:not([hidden]) {
        position: fixed;
        inset: auto 0 0;
        min-height: 71px;
        padding: 12px 10px calc(12px + env(safe-area-inset-bottom, 0px));
        display: flex;
        justify-content: center;
        align-items: center;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -4px 18px rgb(0 0 0 / 8%);
        color: #b42318;
        font-weight: 600;
        z-index: 1035;
    }
    body.vortek-mobile-purchase-page { --vortek-purchase-bar-height: 76px; }
    /* Let the fixed CTA participate in the page's stacking context, rather
       than stay trapped beneath the footer's grid item stacking layers. */
    body.vortek-mobile-purchase-page #product_detail,
    body.vortek-mobile-purchase-page #product_details { z-index: auto !important; }
    body.vortek-mobile-purchase-page #wrapwrap {
        padding-bottom: calc(var(--vortek-purchase-bar-height) + 12px);
    }
    #product_detail_main #add_to_cart_wrap.vortek-mobile-purchase-bar {
        position: fixed;
        inset: auto 0 0;
        width: 100%;
        max-width: none;
        margin: 0 !important;
        padding: 12px 10px calc(12px + env(safe-area-inset-bottom, 0px));
        gap: 8px !important;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -4px 18px rgb(0 0 0 / 8%);
        z-index: 1035;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
    }
    #product_detail_main .vortek-mobile-purchase-bar .css_quantity {
        flex: 0 0 96px;
        width: 96px;
        max-width: 96px;
        margin: 0 !important;
        height: 46px;
        border-radius: 8px;
        overflow: hidden;
    }
    #product_detail_main .vortek-mobile-purchase-bar .css_quantity .btn {
        padding: 12px 6px !important;
        width: 26px;
        min-width: 26px;
    }
    #product_detail_main .vortek-mobile-purchase-bar .quantity {
        padding: 6px 0;
        min-width: 0;
        width: 40px;
        font-size: 16px;
    }
    #product_detail_main .vortek-mobile-purchase-bar #add_to_cart,
    #product_detail_main .vortek-mobile-purchase-bar .buy_now_btn_main {
        flex: 1 1 0;
        min-width: 0;
        margin: 0 !important;
        max-width: 230px;
        width: auto !important;
    }
    #product_detail_main .vortek-mobile-purchase-bar #add_to_cart,
    #product_detail_main .vortek-mobile-purchase-bar .o_we_buy_now {
        height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        line-height: 1.2;
        font-weight: 600;
        white-space: nowrap;
        padding: 8px 4px !important;
        border-radius: 8px;
    }
    #product_detail_main .vortek-mobile-purchase-bar #add_to_cart i,
    #product_detail_main .vortek-mobile-purchase-bar .o_we_buy_now i { display: none; }
    body.vortek-mobile-purchase-page .product_details_sticky { display: none !important; }
    body.vortek-mobile-purchase-page #vortek-floating-whatsapp {
        bottom: calc(var(--vortek-purchase-bar-height) + 16px) !important;
    }
    @media (max-width: 359px) {
        #product_detail_main .vortek-mobile-purchase-bar .css_quantity {
            flex-basis: 88px;
            width: 88px;
            max-width: 88px;
        }
        #product_detail_main .vortek-mobile-purchase-bar #add_to_cart,
        #product_detail_main .vortek-mobile-purchase-bar .o_we_buy_now { font-size: 12px; }
    }
}
