#menu-improved__overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease-in-out;
    z-index: 999999999;
}

#menu-improved__trigger {
    z-index: 99999999999;
    position: relative;
}

input#menu-toggle:checked ~ #menu-improved__overlay {
    opacity: 1;
    visibility: visible;
}

input#menu-toggle {
    display: none;
}

#menu-improved__overlay #menu-improved__content {
    height: 100%;
    width: 450px;
    max-width: 90%;
    position: absolute;
    background: white;
    transition: transform .25s ease-in-out, max-height .25s ease-in-out;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#menu-improved__overlay[data-position="full"] #menu-improved__content {
    height: 100%;
    max-width: 100%;
}


#menu-improved__overlay #menu-improved__content::-webkit-scrollbar {
    display: none;
}

input#menu-toggle:checked ~ #menu-improved__overlay[data-position="left"] #menu-improved__content {
    transform: translateX(0);
}

input#menu-toggle:checked ~ #menu-improved__overlay[data-position="right"] #menu-improved__content {
    transform: translateX(0);
}

#menu-improved__overlay[data-position="full"] #menu-improved__content {
    max-height: 0;
}

input#menu-toggle:checked ~ #menu-improved__overlay[data-position="full"] #menu-improved__content {
    max-height: 100%;
}

#menu-improved__overlay[data-position="full"] #menu-improved__content {
    width: 100%;
}

#menu-improved__overlay[data-position="left"] #menu-improved__content {
    left: 0;
    transform: translateX(-100%);
}

#menu-improved__overlay[data-position="right"] #menu-improved__content {
    right: 0;
    transform: translateX(100%);
}

#menu-improved__content {
    padding: 35px 25px;
}

#menu-improved__content .menu-item-icon {
    width: 66px;
    height: 66px;
    margin-right: 16px;
}

#menu-improved__content .menu-improved-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

#menu-improved__content .menu-improved-nav > li:not(.menu-item-html) {
    border-bottom: 1px #D9D9D9 solid;
}

#menu-improved__overlay[data-animate-items="yes"] #menu-improved__content .menu-improved-nav li {
    transform: translateY(10px);
    opacity: 0;
}

#menu-improved__content .menu-improved-nav li .sub-menu {
    max-height: 0;
    opacity: 0;
    transform: translateY(40px);
    transition: transform .5s cubic-bezier(.25, .46, .45, .94), max-height .3s cubic-bezier(.86, 0, .07, 1), opacity .3s ease-in-out, visibility .3s ease-in-out;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    visibility: hidden;
}

#menu-improved__content .menu-improved-nav li .sub-menu li a {
    height: 44px;
    line-height: 44px;
    padding-left: 20px;
}

#menu-improved__content .menu-improved-nav li .sub-menu li:last-child {
    margin-bottom: 1rem;
}

#menu-improved__content .menu-improved-nav li:not(.menu-item-html) > a {
    height: 88px;
    line-height: 88px;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

@media screen and (max-width: 767px) {
    #menu-improved__content .menu-improved-nav li:not(.menu-item-html) > a {
        height: 66px;
        line-height: 66px;
    }

    #menu-improved__content .menu-item-icon {
        height: 44px;
        width: 44px;
        margin-right: 10px;
    }

    #menu-improved__content .menu-improved-nav li .sub-menu li a {
        height: 33px;
        line-height: 33px;
    }
}

#menu-improved__content .menu-improved-nav li:not(.menu-item-html) a {
    color: var(--menu-text-color);
}

input#menu-toggle:checked ~ #menu-improved__overlay[data-animate-items="yes"] li {
    animation: opacity .4s cubic-bezier(.6, -.28, .74, .05);
    animation-fill-mode: forwards;
}

input#menu-toggle:checked ~ #menu-improved__overlay li:nth-child(1) {
    animation-delay: .05s;
}

input#menu-toggle:checked ~ #menu-improved__overlay li:nth-child(2) {
    animation-delay: .1s;
}

input#menu-toggle:checked ~ #menu-improved__overlay li:nth-child(3) {
    animation-delay: .15s;
}

input#menu-toggle:checked ~ #menu-improved__overlay li:nth-child(4) {
    animation-delay: .2s;
}

input#menu-toggle:checked ~ #menu-improved__overlay li:nth-child(5) {
    animation-delay: .25s;
}

input#menu-toggle:checked ~ #menu-improved__overlay li:nth-child(6) {
    animation-delay: .3s;
}

input#menu-toggle:checked ~ #menu-improved__overlay li:nth-child(7) {
    animation-delay: .35s;
}

input#menu-toggle:checked ~ #menu-improved__overlay li:nth-child(8) {
    animation-delay: .4s;
}

input#menu-toggle:checked ~ #menu-improved__overlay li:nth-child(9) {
    animation-delay: .45s;
}

input#menu-toggle:checked ~ #menu-improved__overlay li:nth-child(10) {
    animation-delay: .5s;
}

input#menu-toggle:checked ~ #menu-improved__overlay li:nth-child(11) {
    animation-delay: .55s;
}

input#menu-toggle:checked ~ #menu-improved__overlay li:nth-child(12) {
    animation-delay: .6s;
}

input#menu-toggle:checked ~ #menu-improved__overlay li:nth-child(13) {
    animation-delay: .65s;
}

input#menu-toggle:checked ~ #menu-improved__overlay li:nth-child(14) {
    animation-delay: .7s;
}

#menu-improved__content .menu-improved-nav li a .toggle-submenu .toggle-submenu__inner {
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#menu-improved__content .menu-improved-nav li a .toggle-submenu {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 66px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#menu-improved__content .menu-improved-nav li.is-active > a > .toggle-submenu svg {
    transform: rotate(180deg);
}

#menu-improved__content .menu-improved-nav li.is-active > .sub-menu {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

#menu-improved__content .menu-improved-nav li a .toggle-submenu svg {
    width: 50%;
    transition: .2s transform ease-in;
}

#menu-improved__content .menu-improved-nav li.menu-item-has-children li.menu-item-has-children .toggle-submenu .toggle-submenu__inner {
    border-radius: 50%;
    border: 1px #3e3e3e solid;
    width: 20px;
    height: 20px;
}

#menu-improved__content .menu-improved-nav li.menu-item-has-children li.menu-item-has-children .sub-menu li:last-child {
    margin-bottom: 10px;
}

#menu-improved__content .menu-improved-nav li.menu-item-has-children li.menu-item-has-children .sub-menu li a::before {
    content: "";
    width: 1px;
    height: 100%;
    background: #cacaca;
    left: 20px;
    position: absolute;
    top: 0;
}
#menu-improved__content .menu-improved-nav li.menu-item-has-children li.menu-item-has-children .sub-menu li:first-child {
    margin-top: 10px;
}


/* Multistep */
#menu-improved__content:not(.menu-improved__multistep) .menu-improved-nav li.menu-item-has-children li.menu-item-has-children .sub-menu li a {
    padding-left: 40px;
    position: relative;
}

#menu-improved__content:not(.menu-improved__multistep) .menu-improved-nav li.menu-item-has-children .sub-menu .close-submenu {
    display: none;
}

#menu-improved__content.menu-improved__multistep ul.menu-improved-nav {
    position: relative;
}

#menu-improved__content.menu-improved__multistep .menu-improved-nav li.menu-item-has-children .sub-menu {
    padding-top: 40px;
}

#menu-improved__content.menu-improved__multistep .menu-improved-nav li.menu-item-has-children .sub-menu .close-submenu {
    position: absolute;
    top: 0;
    left: 15px;
    cursor: pointer;
}

#menu-improved__content.menu-improved__multistep .menu-improved-nav li.menu-item-has-children .sub-menu .close-submenu svg {
    stroke: #000;
    width: 20px;
    height: 20px;
    transform: rotate(90deg);
}

#menu-improved__content.menu-improved__multistep .menu-improved-nav li.menu-item-has-children .toggle-submenu {
    width: 100%;
    justify-content: end;
    padding-right: 10px;
}

#menu-improved__content.menu-improved__multistep ul.menu-improved-nav .sub-menu {
    padding: 0;
    margin: 0;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    max-height: none !important;
    opacity: 1 !important;
    background: white;
    z-index: 10;
    transform: translateX(100%);
}

#menu-improved__content.menu-improved__multistep .menu-improved-nav li.is-active > .sub-menu {
    transform: translateX(0);
}

#menu-improved__content.menu-improved__multistep .menu-improved-nav li a .toggle-submenu svg {
    transform: rotate(270deg);
}


@keyframes opacity {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-improved__custom-trigger * {
    pointer-events: none;
}

.hamburger {
    padding: 15px 15px;
    display: inline-block;
    cursor: pointer;
    transition-property: opacity, filter;
    transition-duration: 0.15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    overflow: visible;
}

.hamburger:hover {
    opacity: 0.7;
}

input#menu-toggle:checked ~ .hamburger:hover {
    opacity: 0.7;
}

input#menu-toggle:checked ~ .hamburger .hamburger-inner,
input#menu-toggle:checked ~ .hamburger .hamburger-inner::before,
input#menu-toggle:checked ~ .hamburger .hamburger-inner::after {
    background-color: #000;
}

.hamburger-box {
    width: 40px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 40px;
    height: 4px;
    background-color: #000;
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

/* Desktop Menu */
.menu-improved__desktop,
.menu-improved__horizontal {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    gap: 20px;
    position: relative;
}

.mega-content {
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(60px);
    transition: all .25s cubic-bezier(.47,0,.74,.71);
}

.mega-menu-toggle {
    display: none;
}

.mega-menu-toggle:checked + .mega-item + .mega-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
}