.SiteHeader {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1000;

    & ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    & a {
        font-weight: 500;
    }
}

.SiteHeader__top {
    display: flex;
    padding: 30px 34px;
    justify-content: space-between;
    border-bottom: 1px solid #d6d6d6;

}

/* Hide Top Bar On Mobile */
@media (max-width: 767px) {
    .SiteHeader__top {
        display: none;
    }
}

.SiteHeader__actions {
    display: flex;
    gap: 21px;

    & a {
        display: flex;
        gap: 10px;
        text-decoration: none;
        color: black;
        /* font-weight: bold; */
        align-items: center;

        & span {
            position: relative;
            display: flex;
            height: 27px;
            flex-direction: column;
            justify-content: space-around;

            &::after {
                height: 2px;
                content: "";
                display: block;
                width: 100%;
                background: green;
            }
        }
    }
}

.SiteHeader__bottom {
    display: flex;
    justify-content: space-between;
    padding: 17px 34px;
    border-bottom: 1px solid #d6d6d6;
    --spring-easing: linear(0, 0.0045, 0.0171 1.86%, 0.0923, 0.2029 7.46%, 0.5756 15.85%, 0.6817, 0.772, 0.8459, 0.9042, 0.9483, 0.9804, 1.0024, 1.0165, 1.0244 41.03%, 1.0283 44.76%, 1.0265 49.42%, 1.0098 63.4%, 1.0026 72.73%, 0.9996 82.98%, 0.9994 99.77%);
    --spring-duration: 0.4631s;
    transition: var(--spring-duration) all var(--spring-easing);
    will-change: transform;

    & .SiteHeader__actions span::after {
        display: none !important;
    }

    & a {
        text-decoration: none;
        color: #464646;
    }
}

@media (max-width: 767px) {
    .SiteHeader__bottom {
        padding: 17px 10px;
    }
}

body.NavIsSticky .SiteHeader__bottom {
    width: 100%;
    max-width: var(--content-width);
    background: #ffffffb5;
    border: none;
    border-radius: 10px;
    transform: translateY(20px);
    backdrop-filter: blur(8px);

    border: 1px solid #eee;
}

body.NavIsSticky .SiteHeader__top {
    display: none !important;
}

@media (max-width: 767px) {
    body.NavIsSticky .SiteHeader__bottom {
        width: 92%;
    }
}

body.NavIsSticky .SiteHeader {
    position: fixed;
    width: 100%;
    top: 0;
}

body.NavIsSticky .SiteHeader {
    align-items: center;
}

.SiteHeader__logo {
    height: 100%;
    width: auto;
}

.SiteHeader__desktop-menu {
    display: flex;
    gap: 3vw;
    align-items: center;

    & a {
        position: relative;

        &::after {
            height: 2px;
            content: "";
            transform: scaleX(0);
            display: block;
            width: 100%;
            transition: 0.4s all ease;
            background: var(--e-global-color-11b72df);
        }
    }

    & .menu-item-has-children {
        padding-right: 10px;
    }

    & .menu-item-has-children>a {

        &::before {
            content: "";
            display: block;
            width: 15px;
            right: -18px;
            bottom: 4.5px;
            height: 15px;
            position: absolute;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='currentColor' class='size-6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E%0A");
        }
    }

    & .sub-menu {
        display: flex;
        position: absolute;
        flex-direction: column;
        gap: 14px;
        border: 1px solid #eee;
        background: white;
        top: 100%;
        padding: 10px 30px;
        transform: translateY(20px);
        opacity: 0;
        visibility: hidden;
        will-change: transform, opacity, visibility;
        transition: var(--spring-duration) all var(--spring-easing);
        border-bottom-left-radius: 2px;
        border-bottom-right-radius: 2px;

        & a::after {
            display: none;
        }
    }

/*     & .menu-item-has-children:hover>.sub-menu {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    } */

    & li:hover,
    & li.current-menu-item {
        &>a {
            color: #000;

        }

        &>a::after {
            transform: none;
        }
    }
}



@media (max-width: 767px) {
    .SiteHeader__desktop-menu {
        display: none;
    }
}

.SiteHeader__trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Hide trigger and mob logo on desktop */

.SiteHeader__trigger path {
    --spring-easing: linear(0, 0.0045, 0.0171 1.86%, 0.0923, 0.2029 7.46%, 0.5756 15.85%, 0.6817, 0.772, 0.8459, 0.9042, 0.9483, 0.9804, 1.0024, 1.0165, 1.0244 41.03%, 1.0283 44.76%, 1.0265 49.42%, 1.0098 63.4%, 1.0026 72.73%, 0.9996 82.98%, 0.9994 99.77%);
    --spring-duration: 0.4631s;
    transition: var(--spring-duration) all var(--spring-easing);
    will-change: transform;
    transform: none;
    transform-origin: 50% 50%;
    transform-box: fill-box;
}

.SiteHeader__mobileMenuActive .top-p {
    transform: translateY(4px) rotate(45deg);
    transform-origin: 50% 50%;
    transform-box: fill-box;
}

.SiteHeader__mobileMenuActive .bottom-p {
    transform: translateY(-4px) rotate(-45deg);
    transform-origin: 50% 50%;
    transform-box: fill-box;
}

.SiteHeader__info svg {
    color: var(--e-global-color-primary);
}

/* Mobile */
.SiteHeader__mobile-menu {
    width: 100%;
    display: none;
    flex-direction: column;
    padding: 17px 10px;
    visibility: hidden;
    transform: scale(1.1) translateY(10px);
    transition: var(--spring-duration) all var(--spring-easing);
    position: absolute;
    background: white;
    top: 100%;

    & a {
        display: flex;
        text-decoration: none;
        padding: 8px 10px !important;
        border-bottom: 1px solid #eee;
        position: relative;
        justify-content: space-between;
        align-items: baseline;
    }

    & .sub-menu {
        max-height: 0;
        overflow: hidden;
        transition: var(--spring-duration) max-height var(--spring-easing);

        & a {
            padding: 8px 15px !important;
        }
    }

    & .menu-item-has-children>a {

        &::after {
            content: "";
            display: block;
            width: 15px;
            right: -15px;
            bottom: 3.5px;
            height: 15px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='currentColor' class='size-6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E%0A");
        }
    }
}

.SiteHeader__mobileMenuActive .SiteHeader__mobile-menu {
    visibility: visible;
    transform: none;
    display: flex;
}

.sub-menu-open {
    .sub-menu {
        max-height: 1000px;
    }

    &>a::after {
        transform: rotate(180deg);
    }
}

.SiteHeader__logo__mob {
    display: flex;
}

@media (min-width: 768px) {

    .SiteHeader__trigger,
    .SiteHeader__mobile-menu,
    .SiteHeader__logo__mob {
        display: none;
    }
}

.NavIsSticky .SiteHeader__mobile-menu {
    border-radius: 5px;
    top: 140%;
    width: 98%;
}