@media (max-width: 980px) {
    body #page-container #main-header.bcf-mobile-header {
        position: fixed;
        top: var(--bcf-header-top, 0px);
        left: 0;
        width: 100%;
        transform: translateY(0);
        transition: transform 180ms ease;
    }

    body #page-container #main-header.bcf-mobile-header.bcf-mobile-header-hidden:not(:focus-within):not(:has(.mobile_nav.opened)) {
        transform: translateY(calc(-100% - 10px - var(--bcf-header-top, 0px)));
        pointer-events: none;
    }

    #main-header.bcf-mobile-header .et_mobile_menu {
        max-height: calc(100vh - var(--bcf-header-height) - var(--bcf-header-top, 0px));
        max-height: calc(100dvh - var(--bcf-header-height) - var(--bcf-header-top, 0px));
        overflow-y: auto;
    }
}

@media (max-width: 980px) and (prefers-reduced-motion: reduce) {
    body #page-container #main-header.bcf-mobile-header {
        transition: none;
    }
}
