/* Nothing is hidden until the navigation enhancement has installed a working menu. */
#header.tt-header .tt-secondary-list {
    --axiom-navigation-ready: 1;
}

#header.tt-header .tt-secondary-list[data-axiom-navigation="ready"] .axiom-navigation-superseded,
#header.tt-header[data-axiom-navigation="ready"] #mainNavbar > form.d-xl-none.axiom-navigation-superseded {
    display: none !important;
}

#header.tt-header .tt-secondary-list .axiom-account-menu {
    position: relative;
    flex: 0 0 auto;
    list-style: none;
}

#header.tt-header .axiom-account-menu > .axiom-account-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease;
}

#header.tt-header .axiom-account-menu > .axiom-account-toggle::after {
    display: none;
}

#header.tt-header .axiom-account-menu > .axiom-account-toggle:hover,
#header.tt-header .axiom-account-menu > .axiom-account-toggle[aria-expanded="true"] {
    background: #262626;
    border-color: #666;
    color: #fff;
}

#header.tt-header .axiom-account-menu > .axiom-account-toggle:focus-visible,
#header.tt-header .axiom-account-menu .dropdown-menu a:focus-visible {
    outline: 2px solid #bca5ff;
    outline-offset: 2px;
}

#header.tt-header .axiom-account-menu > .dropdown-menu {
    display: none;
    position: absolute;
    inset: 100% 0 auto auto;
    float: none;
    width: max-content;
    min-width: 220px;
    max-width: min(320px, calc(100vw - 24px));
    max-height: min(560px, calc(100dvh - 170px));
    overflow-y: auto;
    margin: 0;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 8px;
    background: #111;
    color: #fff;
    box-shadow: 0 12px 28px #0004;
    z-index: 1050;
}

#header.tt-header .axiom-account-menu > .dropdown-menu.show {
    display: block;
}

#header.tt-header .axiom-account-menu .dropdown-menu > .dropdown-item {
    padding: 0;
    background: transparent;
    color: inherit;
}

#header.tt-header .axiom-account-menu .dropdown-menu a,
#header.tt-header .axiom-account-menu .dropdown-menu a.dropdown-item {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 12px !important;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-decoration: none;
}

#header.tt-header .axiom-account-menu .dropdown-menu a:hover,
#header.tt-header .axiom-account-menu .dropdown-menu a:focus {
    background: #303030;
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    #header.tt-header .axiom-account-menu > .axiom-account-toggle {
        transition: none;
    }
}

@media (max-width: 1199px) {
    #header.tt-header > .navbar { margin: 0; padding-block: 12px; min-height: 90px; border: 0; }
    #header.tt-header > .navbar > .container { flex-wrap: nowrap; align-items: center; gap: 12px; }
    #header.tt-header .navbar-brand { flex: 0 0 66px; width: 66px; margin: 0; }
    #header.tt-header .tt-main-header.tt-toolbar-wrap { width: auto; margin-left: auto; flex: 0 0 auto; }
    #header.tt-header .tt-secondary-list { flex-direction: row; align-items: center; gap: 4px; margin: 0; padding: 0; }
    #header.tt-header .axiom-account-menu > .dropdown-menu {
        position: fixed; inset: 90px 12px auto auto; width: 260px; min-width: 0;
        max-width: calc(100vw - 24px); max-height: calc(100dvh - 110px);
    }
}
