:root {
    --tzu-header-height: 60px;
    --tzu-mobile-max-height: var(--tzu-header-height);
}

.tcw-super-nav .menu-link:hover {
    color: var(--tcw-super-nav-menu-link-color);
}

body.admin-bar {
    --tzu-mobile-max-height: calc(var(--tzu-header-height) + 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        --tzu-mobile-max-height: calc(var(--tzu-header-height) + 46px);
    }
}

/**
Stop double clicks from selecting text
 */
.tcw-super-nav {
    user-select: none; /* standard syntax */
    -webkit-user-select: none; /* webkit (safari, chrome) browsers */
    -moz-user-select: none; /* mozilla browsers */
    -khtml-user-select: none; /* webkit (konqueror) browsers */
    -ms-user-select: none; /* IE10+ */
}

.tcw-super-nav .menu-link {
    display: inline-block;
    color: var(--tcw-super-nav-menu-link-color);
    background: var(--tcw-super-nav-menu-background-color);
}

.tcw-super-nav .tab {
    cursor: pointer;
}

.tcw-super-nav .logo-image {
    display: block;
}

.tcw-super-nav .logo {
    display: flex;
    align-items: center;
}

.tcw-super-nav .logo-with-region > div {
    display: flex;
    align-items: start;
    justify-content: start;
    flex-direction: column;
}

@media only screen and (min-width: 1200px) {
    .tcw-super-nav .logo-with-region > div {
        flex-direction: row;
        align-items: center;
    }
}

.tcw-super-nav > div > .tcw-super-nav-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    flex-grow: 2;
    flex-shrink: 0;
}

@media only screen and (min-width: 1025px) {
    .tcw-super-nav {
        display: flex;
    }

    .tcw-super-nav > div {
        display: flex;
        margin-right: auto;
    }

    .tcw-super-nav .mobile-footer {
        display: none;
    }

    .tcw-super-nav > div > * {
        display: none;
    }

    .tcw-super-nav > div > .tcw-super-nav-logo-wrapper {
        flex-direction: row;
    }

    .tcw-super-nav > div > .tcw-super-nav-logo-wrapper img {
        height: 40px;
        width: auto;
    }

    .tcw-super-nav > nav,
    .tcw-super-nav > nav > ul {
        display: flex;
        margin: 0;
        padding: 0;
        list-style-type: none;
    }

    .tcw-super-nav .logo-anchor,
    .tcw-super-nav > nav > ul > li > a > h6,
    .tcw-super-nav > nav > ul .tab > a > h6 {
        margin: 0;
        line-height: var(--tzu-header-height);
        padding: 0 1.2vw;
        white-space: nowrap;
    }

    .tcw-super-nav > div > .tcw-super-nav-logo-wrapper h6 {
        padding: 0;
    }

    .tcw-super-nav > nav > ul .tab > input,
    .tcw-super-nav > nav > ul .tab > label {
        display: none;
    }

    .tcw-super-nav > nav > ul .tab > .tab-content {
        position: absolute;
        width: 85%;
        left: 10%;
        display: none;
        box-shadow: 0 9999px 0 9999px rgba(30, 61, 74, 0.8);
        top: calc(100% + var(--tzu-nav-dropdown-positioning-offset, 0));
        z-index: 100;
    }

    .tcw-super-nav > nav > ul .tab > .tab-content.dynamic-width {
        width: auto;
        left: auto;
    }

    /* Hover is controlled by JS click event in script.js */
    .tcw-super-nav > nav > ul li:not(.search) .tab:hover > .tab-content {
        display: block;
        z-index: 9999;
    }

    .tcw-super-nav > nav > ul.main.menu li > a > h6:hover,
    .tcw-super-nav > nav > ul.main.menu li > .tab > a > h6:hover {
        box-shadow: inset 0px -4px 0 0px #11884b;
        transition: box-shadow 0.2s;
    }

    .tcw-super-nav > nav > ul.cta.menu li > a > h6 {
        min-width: 10vw;
        text-align: center;
        padding: 0;
    }

    /* hide sticky to bottom buttons on larger screens */
    .sticky-to-bottom .cta.menu {
        display: none;
    }

}

/*******************************
Tablet
***********************/

@media only screen and (max-width: 1200px) {
    .tcw-super-nav .logo-anchor,
    .tcw-super-nav > nav > ul > li > a > h6,
    .tcw-super-nav > nav > ul .tab > a > h6 {
        font-size: 16px;
    }

    html.super-nav-is-open,
    body.super-nav-is-open {
        overflow: hidden;
    }
}

/*******************************
Mobile
***********************/

@media only screen and (max-width: 1024px) {
    .tcw-super-nav {
        display: flex;
        flex-direction: column;
        height: 100vh;
    }

    .tcw-super-nav > nav {
        max-height: calc(100vh - var(--tzu-mobile-max-height));
        height: calc(100vh - var(--tzu-mobile-max-height));
        overflow: hidden;
        overflow-y: auto;
        display: flex;
        flex-wrap: nowrap;
        flex-direction: column;
    }

    .tcw-super-nav ul.menu,
    .tcw-super-nav ul.menu > li > a > h6 {
        width: 100%;
        margin: 0;
        padding: 0;
        list-style-type: none;
    }

    .search-form-stuck-yes .mobile-search,
    .menu-stuck-main-yes .menu.mobile-main,
    .menu-stuck-cta-yes .menu.cta,
    .menu-stuck-mobile_header-yes .menu.mobile-header,
    .menu-stuck-mobile_footer-yes .menu.mobile-footer {
        margin-top: auto !important;
    }

    /* LOGO */
    .tcw-super-nav > div {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px;
    }

    .tcw-super-nav > div a {
        margin-left: 14px;
        display: inline-block;
    }

    .tcw-super-nav > div .logo {
        margin-right: auto;
        margin-left: 0;
    }

    .tcw-super-nav > div .logo a {
        margin: 0;
    }

    .tcw-super-nav .logo-anchor,
    .tcw-super-nav > div a h6 {
        margin: 0;
        padding: 0;
        white-space: nowrap;
    }

    .tcw-super-nav > div .logo img,
    .tcw-super-nav > div a img {
        height: 40px;
        width: auto;
        max-width: none;
        margin-right: 10px;
    }

    .tcw-super-nav > div .logo img {
        margin: 0;
    }

    /* Main Menu */
    .tcw-super-nav .main.menu li {
        border-top: 1px solid #e5e5e5;
    }

    .tcw-super-nav .main.menu li:nth-last-child(2) {
        border-bottom: 1px solid #e5e5e5;
    }

    .tcw-super-nav .main.menu li > a > h6,
    .tcw-super-nav .main.menu li > .tab > a > h6 {
        line-height: 64px;
        padding: 0 0 0 20px;
        margin: 0;
    }

    .tcw-super-nav .main.menu li > a {
        display: block;
    }

    .tcw-super-nav .search_menu.menu,
    .tcw-super-nav .main.menu li.search {
        display: none;
    }

    /* Tab */
    .tcw-super-nav .tab {
        display: flex;
        flex-flow: wrap;
        justify-content: space-between;
    }

    .tcw-super-nav .tab input {
        display: none;
    }

    .tcw-super-nav .tab-content {
        max-height: 0;
        transition: max-height 0.35s;
        overflow: hidden;
        width: 100%;
    }

    .tcw-super-nav .tab input:checked ~ .tab-content {
        max-height: 1000vh;
    }

    /* Tab Icon */
    .tcw-super-nav .tab label {
        width: 80px;
        height: 64px;
        padding: 24px 34px;
        border-left: 1px solid #e5e5e5;
    }

    .tcw-super-nav .tab {
        width: 100%;
    }

    .tcw-super-nav .tab > a {
        flex-grow: 2;
    }

    .tcw-super-nav .tab label svg {
        display: none;
        width: 16px;
        height: 16px;
    }

    .tcw-super-nav .tab input[type="checkbox"]:checked + label {
        background: #edfef5;
    }

    .tcw-super-nav .tab input[type="checkbox"] + label svg.open {
        display: block;
    }

    .tcw-super-nav .tab input[type="checkbox"]:checked + label svg.open {
        display: none;
    }

    .tcw-super-nav .tab input[type="checkbox"]:checked + label svg.closed {
        display: block;
    }

    /* Mobile MENU */
    .tcw-super-nav .mobile.menu {
        justify-content: flex-end;
        display: flex;
        padding: 0;
        margin: 0;
    }

    /* CTA MENU */
    .tcw-super-nav .cta.menu {
        display: flex;
        order: -1;
        width: 100%;
    }

    .tcw-super-nav .cta.menu > li {
        flex: 1;
        height: var(--tzu-header-height);
        align-items: center;
        justify-content: center;
        text-align: center;
        vertical-align: middle;
        line-height: var(--tzu-header-height);
        display: flex;
    }

    .tcw-super-nav .cta.menu > li > a {
        display: flex;
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: center;
    }

    /* Mobile Footer */
    .tcw-super-nav .mobile-footer.menu {
        width: 100%;
        padding-bottom: 40px;
    }

    .tcw-super-nav .mobile-footer.menu li:not(.embed) {
        width: 100%;
    }

    .tcw-super-nav .mobile-footer.menu li:not(.embed) a {
        display: block;
        width: 100%;
    }

    .tcw-super-nav .mobile-footer.menu li:not(.embed) a h6 {
        font-weight: normal;
        color: #777;
        padding: 20px 20px 0px;
    }

    .tcw-super-nav .mobile-footer.menu li.embed {
        padding: 20px;
    }

    .tcw-super-nav .mobile-footer.menu li.embed .elementor-social-icons-wrapper {
        text-align: left;
    }

    .tcw-super-nav .mobile-footer.menu li.embed .elementor-social-icon {
        font-size: 20px;
    }

    .tcw-super-nav .menu-toggle {
        width: 48px;
        text-align: center;
        white-space: nowrap;
        border: 0;
        padding: 0;
        outline: none;
        background: none;
        color: #000;
    }


    .elementor-widget-tzu-chi-super-nav:not(.elementor-element-editable) .tcw-super-nav.closed {
        height: var(--tzu-header-height);
    }

    .elementor-widget-tzu-chi-super-nav:not(.elementor-element-editable) .tcw-super-nav.closed > nav {
        display: none;
    }

    .tcw-super-nav .menu-toggle svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .tcw-super-nav.closed .menu-toggle .close-menu-icon,
    .tcw-super-nav:not(.closed) .menu-toggle .open-menu-icon {
        display: none;
    }

    .sticky-to-bottom.tcw-super-nav {
        height: auto;
    }

    .home .elementor-element .tcw-super-nav .cta.menu {
        /* hide the buttons in the nav dropdown on mobile */
        display: none;
    }

    .sticky-to-bottom .cta.menu {
        /* show the buttons on the bottom of the page */
        display: -ms-flexbox;
        display: flex;
        justify-content: space-between;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        padding-left: 0;
        margin-bottom: 0;
        list-style: none;

        position: fixed;
        bottom: 0;
        border-style: solid;
        border-width: 1px 0px 0px 0px;
        border-color: #cbcbcb;
        box-shadow: 0 -2px 6px 0px rgba(0, 0, 0, 0.27);
        transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
        z-index: 999;

    }

    .sticky-to-bottom .cta.menu a {
        text-decoration: none;
    }
}


.mobile-search {
    padding: 1rem;
    display: flex;
    width: 100%;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .mobile-search {
        display: none !important;
    }
}

.mobile-search input[type="search"] {
    flex-grow: 2;
    font-size: 1.1em;
    outline: none !important;
    -webkit-appearance: none;
}

.mobile-search button {
    border: 0 !important;
    background: none !important;
}

.elementor-sticky--effects .has-2-logos .logo-image,
.elementor-section:not(.elementor-sticky--effects) .has-2-logos .logo-image-2 {
    display: none;
}

.tcw-super-nav-region-label:hover,
.tcw-super-nav-region-label {
    border-radius: 10px;
    padding: .2rem .5rem;
    line-height: 1;
    color: var(--region-text-color);
    background-color: var(--region-background-color);
    display: block;
}

.tcw-super-nav .logo-anchor {
    font-size: 1.1em;
    padding: 0;
    line-height: 1.1;
}