.menu-tabs-wrapper.hidden {
    display: none;
}

body.mobile-menu-open {
    overflow: hidden;
}

.header-menu-2025 {
    position: fixed;
    top: var(--header-2025-height);
    height: calc(100vh - var(--header-2025-observable-height));
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: block;
    visibility: hidden;
}

.header-menu-2025.mobile-menu-open {
    transform: translateX(0);
    visibility: visible;
}

.header-menu-2025__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
}

.header-menu-2025__list li {
    border-bottom: 1px solid var(--main-colors-grey-2);
}

.menu-item-apps-products .menu-tabs-wrapper {
    border-top: 1px solid var(--main-colors-grey-2);
}

.menu-item-apps-products .apps-menu-item:last-child {
    border-bottom: none;
}

.header-menu-2025__list li.menu-item-hidden-mobile {
    display: none;
}

.title-wrapper-depth-0 {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 16px;
    gap: 24px;
    background: #fff;
    cursor: pointer;
}

.menu-item-apps-products .title-wrapper-depth-0 {
    display: grid;
    grid-template-columns: 32px auto 24px;
    gap: 12px;
}

.menu-item-apps-products .title-wrapper-depth-0.active .apps-menu-icon-wrapper {
    display: none;
}

.menu-item-apps-products .title-wrapper-depth-0.active {
    grid-template-columns: 8px auto;
}

.title-wrapper-depth-0::before {
    content: '';
    display: none;
}

.title-wrapper-depth-0:not(.title-wrapper-has-link)::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: auto;
    flex-shrink: 0;
    background-color: var(--main-colors-black);
    mask-image: url('/blog/wp-content/themes/se_theme/template-parts/header-2025/assets/images/chevron_right.svg');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url('/blog/wp-content/themes/se_theme/template-parts/header-2025/assets/images/chevron_right.svg');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.title-wrapper-depth-0.active {
    background: var(--main-colors-grey-3);
    gap: 12px;
}

.title-wrapper-depth-0.active::before {
    content: '';
    display: block;
    width: 8px;
    height: 24px;
    min-width: 8px;
    min-height: 24px;
    background-color: var(--main-colors-blue);
    mask-image: url('/blog/wp-content/themes/se_theme/template-parts/header-2025/assets/images/chevron_left.svg');
    mask-size: 13px 24px;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url('/blog/wp-content/themes/se_theme/template-parts/header-2025/assets/images/chevron_left.svg');
    -webkit-mask-size: 13px 24px;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    flex-shrink: 0;
    order: -1;
}

.title-wrapper-depth-0.active::after {
    display: none;
}

.title-wrapper-depth-0.active a,
.title-wrapper-depth-0.active span {
    color: var(--main-colors-blue);
}

.title-wrapper-depth-0 a,
.title-wrapper-depth-0 span {
    flex: 1;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--main-colors-black);
}

.title-wrapper-depth-0.menu-tab-header-hidden {
    display: none !important;
}

.apps-menu-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background-color: var(--main-colors-grey-3);
    border-radius: 8px;
}

.apps-menu-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.menu-item-apps-products .title-wrapper-depth-0 {
    gap: 12px;
}

.menu-item-apps-products {
    display: none;
}

@media screen and (max-width: 767px) {
    .menu-item-apps-products {
        display: block;
    }
}

.menu-tabs-wrapper {
    position: static;
    top: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: auto;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
}

.menu-tabs-wrapper.hidden {
    display: none;
}

.menu-tabs-container {
    width: 100%;
}

.menu-tabs-container .se-buttons-group {
    display: none;
}

.menu-tab-header {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--main-colors-grey-2);
}

.menu-tab-header.hidden {
    display: none !important;
}

.menu-tab-header-back {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--main-colors-grey-3);
    cursor: pointer;
}

.menu-tab-header-chevron {
    display: block;
    width: 8px;
    height: 24px;
    min-width: 8px;
    min-height: 24px;
    flex-shrink: 0;
    background-color: var(--main-colors-blue);
    mask-image: url('/blog/wp-content/themes/se_theme/template-parts/header-2025/assets/images/chevron_left.svg');
    mask-size: 13px 24px;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url('/blog/wp-content/themes/se_theme/template-parts/header-2025/assets/images/chevron_left.svg');
    -webkit-mask-size: 13px 24px;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.menu-tab-header-title {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--main-colors-blue);
    flex: 1;
}

.menu-tablist {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.menu-tablist.hidden {
    display: none;
}

.menu-tab {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px;
    border-radius: 0;
    background: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--main-colors-black);
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-top: 1px solid var(--main-colors-grey-2);
}

.menu-tab:hover {
    background: transparent;    
    text-decoration: none;
}

a.menu-tab svg {
    display: none
}

.menu-tab.selected {
    background: var(--main-colors-grey-3);
    color: var(--main-colors-blue);
}

.menu-tab.selected:hover {
    background: var(--main-colors-grey-3);
}

.menu-tab svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.menu-tabpanels-container {
    display: flex;
    flex-direction: column;
}

.menu-tabpanel {
    display: flex;
    flex-direction: column;
}

.menu-tabpanel.hidden,
.menu-tabpanel[hidden] {
    display: none !important;
}

.menu-tabpanel-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.menu-tabpanel-list li:last-child {
    border-bottom: none;
}

.title-wrapper-depth-2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 16px;
    height: auto;
    border-top: 1px solid var(--main-colors-grey-2);
    position: relative;
    background-size: 32px 32px;
    background-repeat: no-repeat;
    background-position: left 16px center;
}

.title-wrapper-depth-2:first-child {
    border-top: none;
}

.title-wrapper-depth-2::before {
    content: '';
    position: absolute;
    left: 16px;
    width: 32px;
    height: 32px;
    background-color: var(--main-colors-grey-2);
    border-radius: 8px;
    z-index: -1;
}

.header-menu-2025__list a.menu-item-title-link {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--main-colors-black);
    padding-left: 44px;
    width: 100%;
    text-decoration: none;
}

.header-menu-2025__list a.menu-item-title-link.current-menu-link {
    color: var(--main-colors-blue);
}

.title-wrapper-depth-0 a.menu-item-title-link {
    padding-left: 0;
}

.menu-tabpanel-list .current-menu-item a.menu-item-title-link {
    color: var(--main-colors-blue);
}

.header-menu-2025__list a.menu-item-title-link:hover {
    color: var(--main-colors-blue);
}

.header-menu-2025__mobile-buttons {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: #fff;
}

.header-menu-2025__mobile-buttons .se-btn {
    width: 100%;
    height: 40px;
    justify-content: center;
}

@media screen and (min-width: 768px) {
    .header-menu-2025__list li     {
        border-bottom: none;
    }

    .menu-tab-header {
        display: none !important;
    }

    a.menu-tab svg {
        display: inline-block;
    }

    .menu-tab svg {
        width: 16px;    
        height: 16px;
    }

    .header-menu-2025 {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        z-index: auto;
        overflow-y: visible;
        transform: none;
        transition: none;
        display: block;
        visibility: visible;
    }

    .header-menu-2025__list {
        display: flex;
        gap: 24px;
        align-items: center;
        flex-direction: row;
        min-height: auto;
        color: var(--main-colors-black);
        padding-bottom: 12px;
        border-bottom: 1px solid var(--main-colors-grey-2);
    }

    .menu-item-has-children {
        border-top: none;
    }

    .title-wrapper-depth-0 {
        display: block;
        padding: 0;
        gap: 0;
        background: transparent;
    }

    .title-wrapper-depth-0::before {
        display: none;
    }

    .title-wrapper-depth-0.title-wrapper-no-link::after {
        content: '';
        display: inline-block;
        width: 16px;
        height: 16px;
        background-color: var(--main-colors-black);
        mask-image: url('/blog/wp-content/themes/se_theme/template-parts/header-2025/assets/images/arrow_down.svg');
        mask-size: contain;
        mask-repeat: no-repeat;
        mask-position: center;
        -webkit-mask-image: url('/blog/wp-content/themes/se_theme/template-parts/header-2025/assets/images/arrow_down.svg');
        -webkit-mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-position: center;
        margin-left: 2px;
        vertical-align: middle;
        transition: transform 0.2s ease, background-color 0.2s ease;
    }

    .title-wrapper-depth-0::after {
        width: 16px;
        height: 16px;
        margin-left: 2px;
        vertical-align: middle;
    }

    .title-wrapper-depth-0.active::after {
        transform: rotate(180deg);
        background-color: var(--main-colors-blue);
    }

    .title-wrapper-depth-0:hover a {
        color: var(--main-colors-blue);
    }

    .title-wrapper-depth-0.active {
        background: transparent;
        gap: 0;
    }

    .title-wrapper-depth-0.active::before {
        display: none;
    }

    .title-wrapper-depth-0.active::after {
        display: inline-block;
    }

    .title-wrapper-depth-0 .menu-item-title-link,
    .title-wrapper-depth-0 .menu-item-title-text {
        flex: none;
        color: var(--main-colors-black);
        text-decoration: none;
        transition: color 0.2s ease;
        font-size: 16px;
    }

    .title-wrapper-depth-0.active a,
    .title-wrapper-depth-0.active span {
        color: var(--main-colors-blue);
    }

    .header-menu-2025__list .title-wrapper-depth-0 a.menu-item-title-link{
        font-size: 16px;
    }

    .menu-tabs-wrapper {
        position: absolute;
        top: 100%;
        left: -1px;
        z-index: 1000;
        display: grid;
        grid-template-columns: minmax(280px, 1fr) minmax(280px,1fr);
        gap: 24px;
        width: calc(100% + 2px);
        padding: 24px;
        border: 1px solid var(--main-colors-grey-2);
        border-top: none;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 4px 6px 1px rgba(0, 0, 0, 0.05);
        background: #fff;
    }

    .menu-tabs-container {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .menu-tabs-container .se-buttons-group {
        display: flex;
        justify-content: flex-start;    
    }

    .menu-tablist {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .menu-tab {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-top: none;
        border-radius: 12px;
        background: transparent;
        border: none;
        cursor: pointer;
        font-family: 'TT Fors', sans-serif;
        font-weight: 500;
        font-size: 14px;
        line-height: 1.4;
        color: var(--main-colors-black);
        text-align: left;
        transition: background-color 0.2s ease;
    }

    .menu-tab.current-menu-link {
        color: var(--main-colors-blue);
    }

    .menu-tab.current-menu-link path {
        fill: var(--main-colors-blue);
    }

    .menu-tab:hover {
        background: var(--main-colors-grey-3);
    }

    .menu-tab.selected {
        background: var(--accent-colors-pale-cyan);
        color: var(--main-colors-black);
    }

    .menu-tab.selected:hover {
        background: var(--accent-colors-pale-cyan);
    }

    .menu-tabpanel-list {
        display: grid;
        grid-gap: 8px;
    }

    .title-wrapper-depth-2 {
        height: 32px;
        padding: 0;
        border-top: none;
        align-items: center;
        background-size: 32px 32px;
        background-repeat: no-repeat;
        background-position: left center;
    }

    .title-wrapper-depth-2::before {
        display: none;
    }

    .title-wrapper-depth-2:hover {
        cursor: pointer;
    }

    .header-menu-2025__list a.menu-item-title-link {
        font-size: 14px;
        font-weight: 400;
        line-height: 140%;
        color: var(--main-colors-black);
        text-decoration: none;
    }

    .title-wrapper-depth-2:hover a {
        color: var(--main-colors-blue);
        text-decoration: none;
    }

    .header-menu-2025__mobile-buttons {
        display: none;
    }
}

@media screen and (min-width: 1024px) {
    .menu-tabs-container .se-buttons-group {
        display: none;
    }
}

@media screen and (min-width: 1280px) {
    .header-menu-2025__list {
        padding-bottom: 0;  
        border-bottom: none;
        position: relative;
    }

    .menu-tabs-wrapper {
        width: max-content;
        min-width: 632px;
        border-radius: 12px;
        top: calc(100% + 12px);
        border-top: 1px solid var(--main-colors-grey-2);
        grid-template-columns: minmax(280px, max-content) minmax(280px, max-content);
    }
}