/* Mobile drawer is isolated from desktop nav and mega menu CSS. */
.sv-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    overflow: auto;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: opacity .24s ease, visibility .24s ease, transform .28s ease;
}

.sv-mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.has-open-menu {
    overflow: hidden;
}

.sv-mobile-menu__overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .18);
}

.sv-mobile-menu__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow-y: auto;
}

.sv-mobile-menu__header {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 32px;
}

.sv-mobile-menu__logo {
    display: inline-flex;
    align-items: center;
}

.sv-mobile-menu__logo img {
    width: 190px;
    max-width: 62vw;
    height: auto;
}

.sv-mobile-menu__close {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #111827;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.sv-mobile-menu__body {
    padding: 24px;
    display: block;
}

.sv-mobile-menu__body nav,
.sv-mobile-menu__body .sv-main-nav,
.sv-mobile-menu__body .sv-primary-menu {
    width: 100%;
    display: block !important;
}

.sv-mobile-menu__body ul {
    display: block !important;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sv-mobile-menu__body li {
    display: block;
    position: relative;
    border-bottom: 1px solid #eee;
}

.sv-mobile-menu__body a {
    min-height: auto;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 16px 52px 16px 16px;
    color: #111827;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

.sv-mobile-menu__body a::before,
.sv-mobile-menu__body a::after {
    display: none !important;
}

.sv-mobile-menu__body .sv-mega-panel,
.sv-mobile-menu__body .sv-dropdown {
    position: static !important;
    width: 100% !important;
    max-height: 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: hidden;
    pointer-events: auto !important;
    transform: none !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #f8fafc;
    transition: max-height .28s ease;
}

.sv-mobile-menu__body .sv-mega-panel__inner {
    display: block !important;
    padding: 0 0 14px;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.sv-mobile-menu__body .sv-mega-categories {
    padding: 0;
    border: 0;
}

.sv-mobile-menu__body .sv-mega-categories__header,
.sv-mobile-menu__body .sv-mega-feature-card {
    display: none !important;
}

.sv-mobile-menu__body .sv-mega-category-list {
    display: block;
}

.sv-mobile-menu__body .sv-mega-category {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 12px 16px 12px 28px;
    border-radius: 0;
}

.sv-mobile-menu__body .sv-mega-category__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.sv-mobile-submenu-toggle {
    position: absolute;
    top: 8px;
    right: 6px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.sv-mobile-submenu-toggle span {
    width: 10px;
    height: 10px;
    display: block;
    border-right: 2px solid #111827;
    border-bottom: 2px solid #111827;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s ease;
}

.is-mobile-open > .sv-mobile-submenu-toggle span {
    transform: translateY(2px) rotate(225deg);
}

.sv-mobile-menu__footer {
    padding: 0 24px 28px;
}

.sv-mobile-menu__footer .sv-btn {
    width: 100%;
}

.sv-mobile-toggle {
    display: none;
}

@media (max-width: 991px) {
    .sv-mobile-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .sv-mobile-toggle span {
        width: 24px;
        height: 2px;
        background: #111827;
        border-radius: 2px;
        display: block;
        transition: transform .2s ease, opacity .2s ease;
    }

    .sv-mobile-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .sv-mobile-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .sv-mobile-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}
