/**
 * Mobile/tablet: ensure full-page scroll reaches site-footer + site-footer-bottom
 * above the fixed bottom nav. Loaded last to win over WooCommerce full-width resets.
 */
@media (max-width: 991px) {
    html {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        scroll-padding-bottom: calc(
            var(--ax-mobile-nav-bar-height, 70px) + env(safe-area-inset-bottom, 0px) + var(--mobile-bottom-offset, 0px) + 12px
        );
    }

    body {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        padding-bottom: calc(
            var(--ax-mobile-nav-bar-height, 70px) + env(safe-area-inset-bottom, 0px) + var(--mobile-bottom-offset, 0px)
        ) !important;
    }

    body #brx-content,
    body #brx-content.wordpress,
    body main#brx-content,
    body .brx-body,
    body .shop-container,
    body .homepage-container {
        overflow: visible !important;
        max-height: none !important;
    }

    body.post-type-archive-product #brx-content,
    body.tax-product_cat #brx-content {
        display: block !important;
        min-height: 0 !important;
        height: auto !important;
    }

    body.post-type-archive-product .shop-container,
    body.tax-product_cat .shop-container {
        overflow: visible !important;
        min-height: 0 !important;
        height: auto !important;
    }

    footer,
    footer.site-footer {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        transform: none !important;
        clear: both !important;
        z-index: 10 !important;
    }

    footer.site-footer .site-footer-bottom {
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        transform: none !important;
        padding-bottom: 12px !important;
    }
}
