@media screen and (max-width: 600px) {
    .admin-bar {
        --admin-bar: 46px !important;
    }
}

@media (max-width: 999px) {
    #header {
        z-index: 999999 !important;
    }

    #header .main-menu {
        display: block !important;
        position: relative;
        visibility: hidden;
        height: 0;
        z-index: 1;
    }

    #header .main-menu nav {
        position: absolute;
        visibility: visible;
        left: 40vw;
        top: 90px;
        height: auto;
        width: 52vw;
        opacity: 0;
        transform: translateX(20%);
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        pointer-events: none;
    }

    #header .main-menu nav a {
        font-size: 20px;
        font-weight: 700;
        line-height: 1.65;
        padding: 5px 0px;
        color: var(--selectionTextColor);
    }

    #header .main-menu nav > ul {
        flex-direction: column;
        width: 100%;
        height: calc(100vh - 100px);
        max-height: 100vh;
        transition: right 0.3s ease-in-out;
        touch-action: auto;
    }

    #header .main-menu nav > ul li {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        border-top: 1px dashed rgb(255, 255, 255, 0.2);
    }

    #header .main-menu nav li.ct-active2 > a svg {
        --toggle-icon-transform: rotate(-180deg);
    }

    #header .main-menu nav > ul > li .ct-toggle-dropdown-desktop-ghost {
        display: none;
    }

    #header .main-menu nav > ul li > a > span {
        margin-left: auto;
    }

    #header .main-menu nav li > .ct-menu-link {
        justify-content: flex-start;
    }

    #header .main-menu nav[mobile-menu="true"] {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }

    #header .main-menu nav[mobile-menu="true"] li.ct-active2 > .sub-menu {
        display: block;
        width: 100%;
        padding-left: 25px;
    }

    #header .main-menu nav[mobile-menu="true"] li:not(.ct-active2) > .sub-menu {
        display: none;
    }

    #header .main-menu nav[mobile-menu="true"] li.ct-active2 li.ct-active2 > a:not(:empty)::before {
        opacity: 1;
        transform: scaleX(2);
    }

    #header .main-menu nav[mobile-menu="true"] li.ct-active2 li > a:not(:empty)::before {
        opacity: 0.3;
        content: "-";
        position: relative;
        left: -25px;
        transform-origin: left center;
        transition: opacity 0.2s, transform 0.2s;
    }

    #header .main-menu nav[mobile-menu="true"] li.ct-active2 li > a:not(:empty):hover::before {
        opacity: 1;
        transform: scaleX(3);
    }

    #header .main-menu nav[data-responsive="no"] {
        overflow: visible !important;
    }

    #header [data-row*="middle"] {
        z-index: 0 !important;
    }

    #header button {
        --icon-color: #fffefe;
        --icon-hover-color: #ffffff;
    }

    #offcanvas .site-logo-container {
        display: none;
    }
}

@media (max-width: 689px) {
    #header .main-menu nav {
        left: 16vw;
        width: 77vw;
    }
}
