body, html {
    --nav-bottom: 52px;
    /* Default for height of navbar. Updated by JS. */
    scrollbar-gutter: stable;
}

.nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1095;
    background: #fff;
}

:where(.nav) a {
    display: block;
    color: inherit;
    font-weight: inherit;
    text-decoration: inherit;
    white-space: inherit;
    overflow: inherit;
}

:where(.nav) ul, :where(.nav) li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav button {
    padding: 0;
    border: none;
    margin: 0;
    background: transparent;
}

.nav__button {
    background: transparent;
    align-self: center;
    width: 3rem;
    height: 3rem;
    padding: 1rem;
    border-radius: 3rem;
    transition: background 0.2s ease, fill 0.2s ease;
}

.nav__button:hover, .nav__button:focus {
    box-shadow: inset 2px 1px 0px 25px rgb(255 255 240 / 20%);
}

.nav__button svg {
    width: 1rem;
    height: 1rem;
}

.nav__button_plain:hover, .nav__button_plain:focus {
    background: none;
}

.nav__main {
    position: relative;
}

.nav__home {
    display: flex;
    align-items: center;
    width: 8rem;
    padding: 1rem 0;
}

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

.nav__container {
    display: grid;
    grid-gap: 0.25rem;
    grid-template-columns: 1fr auto auto auto;
}

.megamenu_container {
    display: none;
}

.nav-mobile {
    --nav-sidebar-width: 15rem;
    display: grid;
    grid-template-columns: 1fr var(--nav-sidebar-width);
    position: fixed;
    top: var(--nav-bottom);
    left: 0;
    right: 0;
    bottom: 0;
    transition: opacity 0.4s;
}

.nav-mobile[inert], .nav-mobile[hidden] {
    display: grid !important;
    transform: translateX(var(--nav-sidebar-width));
    opacity: 0;
    pointer-events: none;
}

.accordionmenu__container {
    background: white;
    height: 100%;
    overflow: auto;
    scrollbar-gutter: stable;
    color: black;
    font-size: 1.2rem;
    font-weight: 400;
    text-decoration: none;
    box-shadow: -80vw 100vw 0 100vw rgba(0, 0, 0, 0.5);
}

.accordionmenu-cat-link {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 2rem;
    position: relative;
}

.accordionmenu-open > a::before, .accordionmenu-open > a::after {
    content: '';
    position: absolute;
    top: 50%;
    background-color: #000;
    -webkit-transition: all .3s;
    transition: all .3s;
}

.accordionmenu-open > a::before {
    right: 2.5rem;
    width: 3px;
    height: 1.5rem;
    margin-top: calc(-0.75rem - 1.5px);
}

.accordionmenu-open > a::after {
    right: 1.85rem;
    width: 1.5rem;
    height: 3px;
    margin-top: -3px;
}

.accordionmenu-open[aria-expanded="true"] > a::before {
    transform: rotate(90deg);
}

.accordionmenu {
    background: #ebebeb;
    max-height: 0;
    overflow: hidden;
}

.accordionmenu-subcat {
    margin: 2rem;
}

.accordionmenu[hidden] {
    display: none;
}

.accordionmenu-subcat-item {
    margin-bottom: 1rem;
}

.accordionmenu-subcat-item-link {
    font-size: 1rem;
}

/* Search */
.nav_search,
.languages{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1097;
    background: rgba(0, 0, 0);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.nav_search[hidden], .nav_search[inert],
.languages[hidden], .languages[inert]{
    display: block;
    pointer-events: none;
    opacity: 0;
    transform: scale(1.05);
}

.nav_search .nav__button {
    fill: white;
}

.search__close,
.languages__close{
    position: absolute;
    top: 10%;
    right: 10%;
    z-index: 10;
    background-color: #fc4f4f;
    fill: white;
    transition: box-shadow 0.3s ease;
}

.search__label {
    position: absolute;
    top: 33%;
    left: 10%;
    right: 10%;
    margin: 0 auto;
    max-width: 75ch;
    transform: translateY(-50%);
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid grey;
    transition: border-bottom-color 0.2s ease;
}

.search__label:focus-within {
    border-bottom-color: #00e5c2;
}

.search__input {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    flex-grow: 1;
    padding: 15px 0;
}

.search__input:focus {
    outline: none;
}

/* Product CTAs */
.nav__ctas {
    background: #ebebeb;
    padding: 1rem 0;
}

.nav__ctas_wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav__ctas_label {
    display: none;
    margin: 0;
    margin-right: 1rem;
    line-height: 1;
    font-size: 1rem;
}

.nav__cta {
    color: black;
    font-weight: 600;
    text-align: center;
}

.nav__cta_mobile {
    display: inline;
}

.nav__cta_desktop {
    display: none;
}


.languages{
}
.languages__selector,
.languages__selector .wpml-ls{
    padding: 0;
    margin: 0;
    border: 0;
    width: 100%;
    height: 100%;
}
.languages__selector .wpml-ls{
    display: flex;
    align-items: center;
    justify-content: center;
}
.languages__selector ul{
    display: grid;
    width: 100%;
    max-width: 992px;
    max-height: 100%;
    overflow-y: auto;
    padding: 2rem !important;
    gap: 3rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-template-rows: repeat(auto-fit, minmax(2.5rem, 1fr));
}
.languages__selector .wpml-ls-link{
    color: white;
    font-size: 1.2rem;
    font-weight: 400;

    padding: 0;
    padding-left: 0.75rem;
    height: 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;

    position: relative;
}
.languages__selector .wpml-ls-link:hover,
.languages__selector .wpml-ls-link:focus{
    text-decoration: underline;
}
.languages__selector .wpml-ls-link::after{
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 3rem;
    height: 3rem;
    background: white;
    border-radius: 100%;
    outline-offset: -1px;
    outline: 0px solid #00E5C2;
    transition: all 0.2s ease;
}
.languages__selector .wpml-ls-link:hover::after,
.languages__selector .wpml-ls-link:focus::after{
    outline: 3px solid #00E5C2;
}
.languages__selector .wpml-ls-flag{
    display: block;
    position: relative;
    z-index: 1;
    width: 1.5rem;
    height: auto;
    border-radius: 2px;
}
.languages__selector .wpml-ls-native{
    margin: 0;
}
.languages__selector .wpml-ls-display{
    display: none;
}


.nav__cta + .nav__cta {
    padding-left: 1rem;
    margin-left: 1rem;
    border-left: 2px solid #00e5c2;
}

@media (min-width: 300px) {
    .nav-mobile {
        --nav-sidebar-width: 17rem;
    }
}

@media (min-width: 400px) {
    .nav-mobile {
        --nav-sidebar-width: 20rem;
    }
}

@media (min-width: 768px) {
    .nav__ctas_label {
        display: block;
    }

    .nav__cta_mobile {
        display: none;
    }

    .nav__cta_desktop {
        display: inline;
    }
}

@media (min-width: 992px) {
    .nav__main .nav__container {
        display: grid;
        grid-template-columns: auto 1fr auto auto;
    }

    .nav__mobile_button {
        display: none;
    }

    .nav-mobile {
        display: none;
        pointer-events: none;
    }

    .nav__home {
        max-width: 11rem;
        padding: 2rem 0;
    }

    /* Megamenu */
    .megamenu_container {
        display: grid;
        justify-self: end;
        grid-auto-flow: column;
    }

    .megamenu-cat-link {
        display: flex;
        align-items: center;
        height: 100%;
        font-size: 1rem;
        text-decoration: none;
        font-weight: 600;
        color: black;
        white-space: nowrap;
        overflow: hidden;
        padding: 1.5rem;
        border-bottom: 0.3rem solid transparent;
        transition: border-bottom-color 0.2s ease;
    }

    .megamenu-cat-link:hover, .megamenu-cat-link:focus {
        text-decoration: underline;
    }

    .megamenu-open[aria-expanded="true"] > a {
        border-bottom-color: #00e5c2;
        background: #ebebeb;
    }

    .megamenu {
        display: grid;
        grid-gap: 4rem;
        grid-auto-flow: column;
        padding: 3rem;
        background: #ebebeb;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1096;
        margin-left: auto;
        margin-right: auto;
        max-width: calc(1024px - 1.5rem);
    }
	.megamenu:has(.megamenu-subcat:only-child){
        padding: 2rem;
        max-width: fit-content;
        left: unset;
        margin-left: unset;
        right: unset;
        margin-right: unset;
    }

    .megamenu[inert], .megamenu[hidden] {
        display: none;
        pointer-events: none;
    }

    .megamenu-subcat-link {
        font-size: 1.2rem;
        font-weight: 600;
    }

    .megamenu-subcat-item-link {
        font-size: 1rem;
        margin: 0.75rem 0;
    }

    /* Language Switcher */
    .langmenu {
        left: unset;
        right: unset;
        padding: 0rem;
        grid-auto-flow: row;
        grid-gap: 0rem;
    }

    .langmenu .wpml-ls-menu-item {
        width: 4rem;
    }

    .langmenu .wpml-ls-menu-item a {
        width: 4rem;
        height: 4rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s ease;
    }

    .langmenu .wpml-ls-menu-item a:hover, .langmenu .wpml-ls-menu-item a:focus {
        background: white;
    }

    .search__label {
        top: 50%;
    }
}

@media (prefers-reduced-motion:no-preference) {
    .nav_search {
        transition: transform 0.4s, opacity 0.4s;
    }

    .nav {
        transition: top 0.4s ease;
    }

    #nav-mobile {
        transition: opacity 0.4s, transform 0.4s;
    }

    .accordionmenu__container .accordionmenu {
        transition: max-height 0.5s ease;
    }
}



.ot-sdk-show-settings{
    padding: 0 !important;
    border: none !important;
    background: none !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    font-family: inherit !important;
    color: inherit !important;
}
.ot-sdk-show-settings:hover,
.ot-sdk-show-settings:focus{
    color: inherit !important;
}

#onetrust-consent-sdk{
    font-family: 'Poppins', sans-serif;
}
