/* Refreshed global mobile navigation drawer */
.mit-back-drop {
    z-index: 1040;
    background: rgba(16, 20, 26, 0.62);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.mit-mobile-nav-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    left: 0;
    width: min(328px, calc(100vw - 42px));
    height: 100vh;
    height: 100dvh;
    padding: 0;
    z-index: 1045;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f7f8fa;
    border-radius: 0 20px 20px 0;
    box-shadow: 18px 0 50px rgba(15, 20, 27, 0.22);
    transform: translateX(-105%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.mit-mobile-nav-sidebar.active {
    left: 0;
    transform: translateX(0);
}

.mit-m-nav-header {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: auto 1fr 42px;
    align-items: center;
    gap: 11px;
    min-height: 76px;
    padding: 14px 15px 14px 17px;
    text-align: left;
    background: #fff;
    border-bottom: 1px solid #e8ebef;
}

.mit-m-nav-header .mobile-nav-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.mit-m-nav-header .mobile-nav-brand img {
    width: auto;
    height: 36px;
    object-fit: contain;
}

.mobile-nav-heading {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.15;
}

.mobile-nav-heading span {
    margin-bottom: 3px;
    color: #9098a3;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mobile-nav-heading strong {
    color: #20242b;
    font-size: 15px;
    font-weight: 750;
}

.mit-m-nav-header .mit-nav-btn-close {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #343a43;
    font-size: 16px;
    background: #f1f3f5;
    border: 1px solid #e5e8eb;
    border-radius: 50%;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.mit-m-nav-header .mit-nav-btn-close:hover,
.mit-m-nav-header .mit-nav-btn-close:focus-visible {
    color: #fff;
    background: #20242b;
    border-color: #20242b;
    outline: none;
    transform: rotate(5deg);
}

.mit-m-nav-content {
    flex: 1 1 auto;
    max-height: none;
    padding: 15px 13px calc(24px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #ccd1d6 transparent;
    scrollbar-width: thin;
}

.mit-m-nav-content::-webkit-scrollbar {
    width: 4px;
}

.mit-m-nav-content::-webkit-scrollbar-thumb {
    background: #ccd1d6;
    border-radius: 10px;
}

.mobile-nav-welcome {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 11px;
    min-height: 68px;
    padding: 11px 13px;
    color: #fff;
    background: linear-gradient(135deg, #20242b 0%, #303742 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(27, 32, 40, 0.13);
}

.mobile-nav-welcome-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #20242b;
    font-size: 16px;
    background: #ffab25;
    border-radius: 12px;
}

.mobile-nav-welcome div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.mobile-nav-welcome strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-nav-welcome small {
    margin-top: 4px;
    color: #c8cdd4;
    font-size: 11px;
    line-height: 1.25;
}

.mobile-nav-section-title {
    margin: 17px 8px 7px;
    color: #8b939e;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.mit-m-nav-content .mobile-nav-list {
    gap: 3px;
}

.mit-m-nav-content .mobile-nav-list .nav-link {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 11px;
    min-height: 50px;
    padding: 6px 9px;
    color: #343a43;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.25;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.mobile-nav-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #d87900;
    font-size: 14px;
    background: #fff4e1;
    border: 1px solid #ffe7be;
    border-radius: 11px;
}

.mobile-nav-arrow {
    color: #aeb5be;
    font-size: 9px;
    transition: transform 0.18s ease;
}

.mit-m-nav-content .mobile-nav-list .nav-link:hover,
.mit-m-nav-content .mobile-nav-list .nav-link:focus-visible {
    color: #20242b;
    background: #fff;
    border-color: #e7eaee;
    outline: none;
    transform: translateX(2px);
}

.mit-m-nav-content .mobile-nav-list .nav-link:hover .mobile-nav-arrow,
.mit-m-nav-content .mobile-nav-list .nav-link:focus-visible .mobile-nav-arrow {
    color: #d87900;
    transform: translateX(2px);
}

.mit-m-nav-content .mobile-nav-list .mobile-nav-login {
    color: #fff;
    background: #20242b;
    border-color: #20242b;
}

.mit-m-nav-content .mobile-nav-list .mobile-nav-login .mobile-nav-link-icon {
    color: #20242b;
    background: #ffad27;
    border-color: #ffad27;
}

.mit-m-nav-content .mobile-nav-list .mobile-nav-login .mobile-nav-arrow {
    color: #c7ccd2;
}

.mit-m-nav-content .mobile-nav-list .mobile-nav-login:hover,
.mit-m-nav-content .mobile-nav-list .mobile-nav-login:focus-visible {
    color: #fff;
    background: #2d333d;
    border-color: #2d333d;
}

.mobile-nav-language {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 9px 10px;
    background: #fff;
    border: 1px solid #e5e8ec;
    border-radius: 13px;
}

.mobile-nav-language-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #d87900;
    background: #fff4e1;
    border-radius: 10px;
}

.mobile-nav-language > div {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.mobile-nav-language small {
    margin-bottom: 2px;
    color: #929aa5;
    font-size: 10px;
    font-weight: 650;
}

.mobile-nav-language strong {
    color: #343a43;
    font-size: 13px;
    font-weight: 700;
}

.mobile-nav-language .btn-link {
    min-width: 43px;
    margin: 0;
    padding: 7px 8px;
    color: #20242b;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    background: #f1f3f5;
    border-radius: 9px;
}

.mobile-nav-language .btn-link:hover,
.mobile-nav-language .btn-link:focus-visible {
    color: #fff;
    background: #d87900;
    outline: none;
}

@media (max-width: 374.98px) {
    .mit-mobile-nav-sidebar {
        width: calc(100vw - 34px);
    }

    .mobile-nav-heading {
        display: none;
    }

    .mit-m-nav-header {
        grid-template-columns: 1fr 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mit-mobile-nav-sidebar,
    .mit-m-nav-header .mit-nav-btn-close,
    .mit-m-nav-content .mobile-nav-list .nav-link,
    .mobile-nav-arrow {
        transition: none;
    }
}
