.vm-mobile-nav-backdrop {
    display: none;
}

@media (max-width: 1140px) {
    .vm-mobile-nav-ready {
        --vm-menu-fade: 200ms;
    }

    .vm-mobile-nav-ready > .add-header-height {
        z-index: 21;
    }

    .vm-mobile-nav-ready > .vm-mobile-nav-backdrop {
        display: block;
        position: fixed;
        z-index: 0;
        inset: 0;
        background: rgb(0 0 0 / 48%);
    }

    .vm-mobile-nav-ready > .mk-responsive-wrap {
        position: absolute;
        inset: 100% 0 auto;
        /* Override the theme's display toggle so the closing fade can finish. */
        display: block !important;
        height: auto;
        max-height: calc(100vh - 100%);
        max-height: calc(100dvh - 100%);
        overflow-y: auto;
        overflow-anchor: none;
        overscroll-behavior: contain;
        box-shadow: 0 14px 16px -16px rgb(0 0 0 / 25%);
    }

    .vm-mobile-nav-ready > :is(.vm-mobile-nav-backdrop, .mk-responsive-wrap) {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--vm-menu-fade) ease-in-out,
            visibility 0s linear var(--vm-menu-fade);
    }

    .mk-opened-nav .vm-mobile-nav-ready > :is(.vm-mobile-nav-backdrop, .mk-responsive-wrap) {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition-delay: 0s;
    }

    html:has(body.mk-opened-nav .vm-mobile-nav-ready),
    body.mk-opened-nav:has(.vm-mobile-nav-ready) {
        overflow: hidden;
    }
}

@media (max-width: 1140px) and (prefers-reduced-motion: reduce) {
    .vm-mobile-nav-ready {
        --vm-menu-fade: 0ms;
    }
}
