.mobile_menu {
    display: flex;
    flex: 1;
    position: relative;
    overflow: hidden;
    align-self: stretch;
    min-height: calc(100svh - 160px);
    --menu-hover-color: #fff;
}

:global(:root[data-theme="dark"]) .mobile_menu {
    --menu-hover-color: var(--quartenary);
}

.mobile_menu a:hover,
.mobile_menu a:focus-visible {
    color: var(--menu-hover-color);
    outline: none;
}

@media screen and (min-width: 992px) {
    .mobile_menu {
        display: none;
    }
}

.mobile_menu__wrapper {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    height: 100%;
    width: 100%;
}

.mobile_menu__top_level {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    height: 100%;
    transition: var(--easing);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.mobile_menu__top_level.is_active {
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}

.mobile_menu__top_item {
    transition: var(--easing);
    transform: translateX(0);
    opacity: 1;
}

.mobile_menu__top_item:nth-child(1) { transition-delay: 0.15s; }
.mobile_menu__top_item:nth-child(2) { transition-delay: 0.2s; }
.mobile_menu__top_item:nth-child(3) { transition-delay: 0.25s; }
.mobile_menu__top_item:nth-child(4) { transition-delay: 0.3s; }
.mobile_menu__top_item:nth-child(5) { transition-delay: 0.35s; }
.mobile_menu__top_item:nth-child(6) { transition-delay: 0.4s; }
.mobile_menu__top_item:nth-child(7) { transition-delay: 0.45s; }
.mobile_menu__top_item:nth-child(8) { transition-delay: 0.5s; }

.mobile_menu__sub_menu {
    transition: var(--easing);
    opacity: 0;
    z-index: 0;
    transition-delay: 0.35s;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    pointer-events: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mobile_menu__sub_menu.is_active {
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}

.mobile_menu__sub_menu::-webkit-scrollbar {
    display: none;
}

.mobile_menu__sub_item {
    list-style-type: none;
    padding: 0;
    margin: 0 0 var(--spacing-xs);
    transition: var(--easing);
    transform: translateX(0);
    opacity: 1;
}

.mobile_menu__sub_item:nth-child(1) { transition-delay: 0.15s; }
.mobile_menu__sub_item:nth-child(2) { transition-delay: 0.2s; }
.mobile_menu__sub_item:nth-child(3) { transition-delay: 0.25s; }
.mobile_menu__sub_item:nth-child(4) { transition-delay: 0.3s; }
.mobile_menu__sub_item:nth-child(5) { transition-delay: 0.35s; }
.mobile_menu__sub_item:nth-child(6) { transition-delay: 0.4s; }
.mobile_menu__sub_item:nth-child(7) { transition-delay: 0.45s; }
.mobile_menu__sub_item:nth-child(8) { transition-delay: 0.5s; }

.staggered_slide_left {
    transform: translateX(-40px) !important;
    opacity: 0 !important;
}

.staggered_slide_right {
    transform: translateX(40px) !important;
    opacity: 0 !important;
}

.mobile_menu > .mobile_menu__list {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.mobile_menu__list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
    transition: var(--easing);
}

.mobile_menu a {
    text-decoration: none;
}

.mobile_menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: nowrap;
    color: var(--text);
    user-select: none;
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}

.mobile_menu__back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0;
    background: none;
    border: 0;
    color: var(--text);
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    transition: color 0.15s ease;
}

.mobile_menu__back_icon {
    fill: currentColor;
}

.mobile_menu__footer {
    margin-top: auto;
    width: 100%;
}

.mobile_menu__link svg {
    fill: currentColor;
}

.grandGrandChild {
    padding-left: 1.5rem;
    margin: 0.25rem 0;
    list-style-type: none;
}