/*
 * themeThree mobile navigation fallback.
 * Kept separate from the theme bundles so the menu remains usable when an
 * old/minified bundle is missing or cached.
 */
@media (max-width: 1199px) {
    .main-header .main-menu__wrapper-inner {
        min-height: 76px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
    }

    .main-header .main-menu__middle-box,
    .main-header .main-menu__main-menu-box {
        display: flex !important;
        align-items: center;
    }

    .main-header .main-menu__main-menu-box > .main-menu__list {
        display: none !important;
    }

    .main-header .mobile-nav__toggler {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex: 0 0 46px;
        background: var(--gorent-base, #ed1c24);
        color: #fff !important;
        font-size: 22px;
        line-height: 1;
        text-decoration: none;
        position: relative;
        z-index: 5;
    }

    .mobile-nav__wrapper {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        z-index: 99999;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease, visibility .25s ease;
    }

    .mobile-nav__wrapper.expanded {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: none !important;
    }

    .mobile-nav__overlay {
        position: absolute;
        inset: 0;
        display: block;
        background: rgba(0, 0, 0, .58);
    }

    .mobile-nav__content {
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        width: min(88vw, 340px);
        height: 100%;
        padding: 28px 20px;
        overflow-y: auto;
        background: var(--gorent-black, #0d2235);
        color: #fff;
        opacity: 1;
        visibility: visible;
        transform: translateX(105%);
        transition: transform .3s ease;
    }

    html[dir="ltr"] .mobile-nav__content {
        right: auto;
        left: 0;
        transform: translateX(-105%);
    }

    .mobile-nav__wrapper.expanded .mobile-nav__content,
    html[dir="ltr"] .mobile-nav__wrapper.expanded .mobile-nav__content {
        transform: translateX(0);
    }

    .mobile-nav__close {
        position: absolute;
        top: 18px;
        left: 18px;
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, .12);
        color: #fff;
        cursor: pointer;
        z-index: 2;
    }

    html[dir="ltr"] .mobile-nav__close {
        left: auto;
        right: 18px;
    }

    .mobile-nav__container {
        margin-top: 22px;
        border-top: 1px solid rgba(255, 255, 255, .12);
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .mobile-nav__container .main-menu__list,
    .mobile-nav__container .main-menu__list ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mobile-nav__container .main-menu__list {
        display: block !important;
    }

    .mobile-nav__container .main-menu__list > li {
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .mobile-nav__container .main-menu__list li > a {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        color: #fff;
        text-decoration: none;
        font-size: 15px;
        font-weight: 600;
    }

    .mobile-nav__container .main-menu__list li > ul {
        display: none;
        padding-inline-start: 14px;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }

    .mobile-nav__container .submenu-toggle {
        width: 32px;
        height: 32px;
        border: 0;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 32px;
        background: var(--gorent-base, #ed1c24);
        color: #fff;
        cursor: pointer;
        transition: transform .2s ease;
    }

    .mobile-nav__container .submenu-toggle[aria-expanded="true"] {
        transform: rotate(180deg);
    }

    body.locked {
        overflow: hidden;
        touch-action: none;
    }
}

@media (min-width: 1200px) {
    .main-header .mobile-nav__toggler {
        display: none !important;
    }
}
