/* Compact four-destination mobile navigation. */
#rf-mobile-nav {
    box-sizing: border-box;
    padding: 0 4px env(safe-area-inset-bottom, 0px);
    background: #fff;
    border-top: 1px solid #e6e6e6;
    box-shadow: 0 -2px 8px #00000006;
    z-index: 1030;
}
#rf-mobile-nav > ul {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}
#rf-mobile-nav > ul > li { min-width: 0; }
#rf-mobile-nav .fixed_footer_link {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 53px;
    min-height: 44px;
    padding: 3px 2px !important;
    color: #252525;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
#rf-mobile-nav .rf-nav-icon { display: flex; width: 23px; height: 23px; align-items: center; justify-content: center; }
#rf-mobile-nav .rf-nav-icon svg { display: block; width: 23px !important; height: 23px !important; margin: 0; color: inherit; }
#rf-mobile-nav .fixed_footer_link p { margin: 3px 0 0 !important; color: #656565; font-size: 12px !important; line-height: 14px !important; font-weight: 400; white-space: nowrap; }
#rf-mobile-nav .fixed_footer_link.is-active,
#rf-mobile-nav .fixed_footer_link.is-active p { color: #946c1e; }
#rf-mobile-nav .fixed_footer_link.is-active p { font-weight: 600; }
#rf-mobile-nav .fixed_footer_link:focus-visible { outline: 2px solid #946c1e; outline-offset: -3px; border-radius: 5px; }
#rf-mobile-nav .cartQty {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 2px !important;
    left: calc(50% + 5px) !important;
    right: auto !important;
    width: auto;
    min-width: 15px;
    height: 15px;
    margin: 0;
    padding: 0 3px;
    border-radius: 8px;
    background: #171717;
    color: #fff;
    font-size: 9px;
    line-height: 15px;
    box-sizing: border-box;
}
#rf-mobile-nav .cartQty[hidden] { display: none !important; }

/* Keep the four main destinations reachable while the mobile cart is open. */
@media (max-width:991.98px) {
    #fixed_product_sticky_id.rf-cart-drawer.offcanvas {
        top:0 !important;
        bottom:calc(54px + env(safe-area-inset-bottom, 0px)) !important;
        height:calc(100dvh - 54px - env(safe-area-inset-bottom, 0px)) !important;
        max-height:calc(100dvh - 54px - env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* Place the mobile menu above the cart backdrop while that drawer is open. */
@media (max-width:991.98px) {
    body:has(#fixed_product_sticky_id.show) #rf-mobile-nav { z-index:1050; }
}
