/* Header "Menu 2" (social-proof mega menu, winner of Mida test 36510), loaded
   by TwVite_AaHeader and the legacy Header2 only for the languages in lib/HeaderNavMenuData.php.
   Ported unchanged from the tested variant (Media/css/ab-tests/nav-menu-v1.css),
   apart from the drawer scope, so it still avoids gap / inset / object-fit. */

/* ---------- Desktop bar (visible only >= 1201px, Tailwind desktop-lg) ---------- */

.abnav-bar {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.abnav-item {
    position: relative;
    margin-right: 20px;
}

.abnav-item:last-child {
    margin-right: 0;
}

.abnav-trigger {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    color: inherit;
    font-family: inherit;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    outline: none;
}

.abnav-trigger:hover,
.abnav-trigger:focus {
    color: rgba(255, 255, 255, 0.82);
    outline: none;
}

.abnav-chev {
    display: inline-block;
    margin-left: 4px;
    -webkit-transition: -webkit-transform 0.15s ease;
    transition: transform 0.15s ease;
}

.abnav-item.is-open .abnav-chev {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

.abnav-plus {
    color: inherit;
    text-decoration: none;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    white-space: nowrap;
}

.abnav-plus:hover {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

/* Fit steps: the header script adds abnav-fit-1..5 to header#header, one at a
   time, until the bar (AirAdvisor+ included) no longer runs into the
   right-hand block (Log in / language / CTA). */
header#header.abnav-fit-1 .abnav-item {
    margin-right: 16px;
}

header#header.abnav-fit-1 .abnav-trigger,
header#header.abnav-fit-1 .abnav-plus {
    font-size: 15px;
}

header#header.abnav-fit-2 a[aria-label="AirAdvisor"] > svg {
    max-width: 160px;
}

header#header.abnav-fit-2 .abnav-item {
    margin-right: 12px;
}

header#header.abnav-fit-2 .abnav-trigger,
header#header.abnav-fit-2 .abnav-plus {
    font-size: 14px;
}

header#header.abnav-fit-3 a[aria-label="AirAdvisor"] > svg {
    max-width: 140px;
}

header#header.abnav-fit-3 .menu__wrapper {
    margin-left: -20px;
}

header#header.abnav-fit-3 .abnav-item {
    margin-right: 10px;
}

header#header.abnav-fit-3 .abnav-trigger,
header#header.abnav-fit-3 .abnav-plus {
    font-size: 13px;
}

header#header.abnav-fit-3 .abnav-trigger .abnav-chev {
    width: 14px;
    height: 14px;
    margin-left: 2px;
}

/* Last resort at narrow desktop widths (1201-1280px, logged out): labels
   may break onto two lines, the header is tall enough for that. AirAdvisor+ is a single word and stays on one line. */
header#header.abnav-fit-4 .menu__wrapper {
    margin-left: -28px;
}

header#header.abnav-fit-4 .abnav-item {
    margin-right: 8px;
}

header#header.abnav-fit-4 .abnav-trigger {
    white-space: normal;
    max-width: 104px;
    line-height: 16px;
    text-align: left;
}

header#header.abnav-fit-4 .abnav-trigger .abnav-chev {
    flex-shrink: 0;
}

header#header.abnav-fit-5 a[aria-label="AirAdvisor"] > svg {
    max-width: 120px;
}

header#header.abnav-fit-5 .menu__wrapper {
    margin-left: -32px;
}

header#header.abnav-fit-5 .abnav-trigger,
header#header.abnav-fit-5 .abnav-plus {
    font-size: 12px;
}

header#header.abnav-fit-5 .abnav-trigger {
    max-width: 96px;
    line-height: 15px;
}

/* ---------- Dropdown ---------- */

.abnav-dd {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
}

@media (min-width: 75.0625rem) {
    .abnav-dd {
        display: block;
        visibility: hidden;
        opacity: 0;
        -webkit-transform: translateY(-6px);
        transform: translateY(-6px);
        -webkit-transition: opacity 0.15s ease, -webkit-transform 0.15s ease, visibility 0s linear 0.15s;
        transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
    }

    .abnav-dd.is-open {
        visibility: visible;
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
        -webkit-transition: opacity 0.15s ease, -webkit-transform 0.15s ease, visibility 0s linear 0s;
        transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0s;
    }
}

.abnav-dd-inner {
    position: relative;
    box-sizing: border-box;
    max-width: 1330px;
    margin: 0 auto;
    padding: 0 24px;
}

.abnav-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 900px;
    box-sizing: border-box;
    background: #FFFFFF;
    color: #172F6F;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 14px 34px rgba(20, 49, 92, 0.14);
    padding: 26px 28px 28px;
    text-align: left;
}

.abnav-panel {
    display: none;
}

.abnav-panel.is-on {
    display: flex;
    align-items: flex-start;
}

.abnav-col {
    width: 236px;
    flex: 0 0 236px;
    margin-right: 32px;
}

.abnav-eyebrow {
    font-size: 11px;
    line-height: 16px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #8B95A5;
    margin: 0 0 10px;
}

.abnav-link {
    display: block;
    font-size: 14.5px;
    line-height: 20px;
    font-weight: 500;
    color: #14315C;
    text-decoration: none;
    padding: 7px 0;
}

.abnav-link:hover {
    color: #2F80ED;
    text-decoration: none;
}

.abnav-promo {
    flex: 1 1 auto;
    min-width: 0;
}

.abnav-h3 {
    font-size: 20px;
    line-height: 26px;
    font-weight: 600;
    color: #14315C;
    margin: 0 0 4px;
}

.abnav-sub {
    font-size: 13px;
    line-height: 18px;
    color: #6B7A90;
    margin: 0 0 16px;
}

.abnav-stats {
    display: flex;
    margin: 0 -5px 18px;
}

.abnav-stat {
    flex: 1 1 0%;
    min-width: 0;
    margin: 0 5px;
    background: #EAF2FF;
    border-radius: 10px;
    padding: 12px 10px;
}

.abnav-stat b {
    display: block;
    font-size: 22px;
    line-height: 26px;
    font-weight: 600;
    color: #14315C;
}

.abnav-stat span {
    display: block;
    font-size: 11px;
    line-height: 15px;
    color: #4C5B75;
    margin-top: 3px;
}

.abnav-ctas {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 12px;
}

.abnav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    margin-right: 10px;
    white-space: nowrap;
    -webkit-transition: background-color 0.15s, color 0.15s, border-color 0.15s;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.abnav-btn:last-child {
    margin-right: 0;
}

.abnav-btn--solid {
    background: #2F80ED;
    color: #FFFFFF;
    border: 1px solid #2F80ED;
}

.abnav-btn--solid:hover {
    background: #2470D6;
    border-color: #2470D6;
    color: #FFFFFF;
    text-decoration: none;
}

.abnav-btn--outline {
    background: #FFFFFF;
    color: #14315C;
    border: 1px solid #E3EAF6;
}

.abnav-btn--outline:hover {
    border-color: #2F80ED;
    color: #2F80ED;
    text-decoration: none;
}

.abnav-btn--block {
    display: flex;
    width: 100%;
    margin-right: 0;
}

.abnav-note {
    font-size: 12.5px;
    line-height: 1.6;
    color: #6B7A90;
    margin: 0;
}

.abnav-trust {
    display: block;
    margin-top: 2px;
}

.abnav-trust a {
    color: #2F80ED;
    font-weight: 500;
    text-decoration: none;
}

.abnav-trust a:hover {
    text-decoration: underline;
}

.abnav-sep {
    color: #C7D3E8;
    margin: 0 6px;
}

/* ---------- Mobile drawer (#float__menu, < 1201px) ----------
   Per the "Menu 2 mobile" mock: brand-blue top bar with the AirAdvisor logo
   and a rounded close button, white sheet, icon rows with dividers, tinted
   open row, promo card -> link rows -> stat boxes -> note -> trust links, and
   one blue Check compensation button with a "No win, no fee" caption. Scoped
   under #float__menu.abnav-drawer, set server-side with the menu. */

#float__menu.abnav-drawer {
    background: #FFFFFF;
    padding: 0;
    height: auto;
    max-height: 100vh;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    overflow-y: auto;
    box-shadow: 0 16px 40px rgba(20, 49, 92, 0.18);
}

/* Phones: the sheet spans the full width, flush with the top of the screen,
   and ends after the button with rounded bottom corners (the default drawer is a
   full-height 350px side drawer). Closed position is parked at -100% so the
   wider sheet still slides in from the edge (en/en-us are LTR, so plain
   `right`); Alpine's `inset-e-0!` wins when open. */
@media (max-width: 480px) {
    #float__menu.abnav-drawer {
        min-width: 100%;
        max-width: 100%;
        right: -100%;
    }
}

#float__menu.abnav-drawer .top__part {
    background: #2F80ED;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.abnav-m-logo {
    display: inline-flex;
    align-items: center;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
}

.abnav-m-logo svg {
    display: block;
    width: 124px;
    height: auto;
    max-width: none;
}

#float__menu.abnav-drawer .close__button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#float__menu.abnav-drawer .close__button:focus {
    outline: none;
    box-shadow: none;
}

#float__menu.abnav-drawer .close__button svg {
    width: 14px;
    height: 14px;
    display: block;
}

#float__menu.abnav-drawer .float__menu__wrapper {
    order: 1;
    margin-top: 0;
}

#float__menu.abnav-drawer .login__button {
    order: 3;
    margin: 16px 16px 20px;
    width: auto;
    flex-direction: column;
}

#float__menu.abnav-drawer .login__button > a {
    background: #2F80ED;
    color: #FFFFFF;
    border-color: #2F80ED;
    border-radius: 8px;
    min-height: 44px;
    font-size: 15px;
}

#float__menu.abnav-drawer .login__button > a:hover {
    background: #2470D6;
    border-color: #2470D6;
    color: #FFFFFF;
}

.abnav-m-nwnf {
    width: 100%;
    margin: 8px 0 0;
    text-align: center;
    font-size: 11px;
    line-height: 14px;
    color: #6B7A90;
}

/* Log in / account: the drawer's own block (logged out = "Log in", which
   opens the login modal; logged in = the user's name, expanding to My
   claims / Settings / Log out), shown as the last row of the list, right
   above the Check compensation button, styled like the other rows. */
#float__menu.abnav-drawer .float__menu_profile {
    order: 2;
    margin: 0;
    border-bottom: 1px solid #E3EAF6;
}

#float__menu.abnav-drawer .float__menu_profile > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    padding: 14px 16px;
    color: #172F6F;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
    -webkit-transition: color 0.15s;
    transition: color 0.15s;
}

#float__menu.abnav-drawer .float__menu_profile > span:hover {
    color: #2F80ED;
}

/* right-pointing chevron like the other link rows (logged-out "Log in") */
#float__menu.abnav-drawer .float__menu_profile > span.login:after {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-right: 1px solid #8B95A5;
    border-bottom: 1px solid #8B95A5;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

#float__menu.abnav-drawer .float__menu_profile > span svg {
    width: 18px;
    height: 18px;
    color: #8B95A5;
}

#float__menu.abnav-drawer .fm_profile_db {
    margin: 0;
    padding: 0 16px 12px;
}

#float__menu.abnav-drawer .fm_profile_db > div {
    box-shadow: none;
    border: 1px solid #E3EAF6;
    padding: 12px 14px;
}

/* Language switcher (the drawer's own button, still opening its language
   modal) sits in the blue top bar between the logo and the close button,
   shrunk to fit next to the logo. */
#float__menu.abnav-drawer .abnav-m-lang {
    margin-left: auto;
    margin-right: 12px;
}

#float__menu.abnav-drawer .abnav-m-lang button {
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.22);
}

#float__menu.abnav-drawer .abnav-m-lang button > span {
    margin-right: 6px;
}

#float__menu.abnav-drawer .abnav-m-lang img {
    width: 21px;
    height: 14px;
    border-radius: 2px;
}

#float__menu.abnav-drawer .abnav-m-lang p {
    font-size: 13px;
    line-height: 18px;
    font-weight: 500;
    white-space: nowrap;
}

.abnav-m {
    list-style: none;
    margin: 0;
    padding: 0;
}

.abnav-m-item {
    position: relative;
    width: 100%;
    margin: 0;
    border-bottom: 1px solid #E3EAF6;
}

.abnav-m-head {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    background: none;
    border: 0;
    padding: 14px 16px;
    margin: 0;
    color: #172F6F;
    font-family: inherit;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    outline: none;
    text-decoration: none;
    -webkit-transition: background-color 0.15s, color 0.15s;
    transition: background-color 0.15s, color 0.15s;
}

.abnav-m-head:hover,
.abnav-m-head:focus {
    color: #2F80ED;
    text-decoration: none;
    outline: none;
}

.abnav-m-ic {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-right: 10px;
    color: #2F80ED;
    display: inline-flex;
}

.abnav-m-ic svg {
    width: 20px;
    height: 20px;
}

.abnav-m-lbl {
    flex: 1 1 auto;
    min-width: 0;
}

.abnav-m-head .abnav-chev {
    color: #8B95A5;
    margin-left: 8px;
    flex: 0 0 18px;
}

.abnav-m-head--link .abnav-chev {
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
}

.abnav-m-item.is-open .abnav-m-head {
    background: #EAF2FF;
    color: #2F80ED;
}

.abnav-m-item.is-open .abnav-m-head .abnav-chev {
    color: #2F80ED;
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

.abnav-m-body {
    display: block;
    overflow: hidden;
    height: 0;
    -webkit-transition: height 0.15s ease;
    transition: height 0.15s ease;
}

.abnav-m-card {
    padding: 12px 16px 16px;
    background: #FFFFFF;
}

.abnav-m-promo {
    background: #EAF2FF;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.abnav-m-promo .abnav-h3 {
    font-size: 14px;
    line-height: 18px;
    margin: 0 0 3px;
}

.abnav-m-promo .abnav-sub {
    font-size: 12px;
    line-height: 16px;
    margin: 0;
}

.abnav-m-card .abnav-eyebrow {
    margin: 0 0 2px;
}

.abnav-m-links {
    margin-bottom: 14px;
}

.abnav-m-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid #EEF2F8;
    font-size: 15px;
    line-height: 20px;
    font-weight: 500;
    color: #172F6F;
    text-decoration: none;
}

.abnav-m-link:hover {
    color: #2F80ED;
    text-decoration: none;
}

.abnav-m-link .abnav-chev {
    color: #C7D3E8;
    margin-left: 8px;
    flex: 0 0 18px;
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
}

.abnav-m-card .abnav-stats {
    margin: 0 -3px 12px;
}

.abnav-m-card .abnav-stat {
    margin: 0 3px;
    padding: 8px 6px;
}

.abnav-m-card .abnav-stat b {
    font-size: 16px;
    line-height: 20px;
}

.abnav-m-card .abnav-stat span {
    font-size: 10px;
    line-height: 13px;
}

.abnav-m-card .abnav-note {
    font-size: 12px;
    line-height: 17px;
    margin: 0 0 6px;
}

.abnav-m-trust {
    margin: 0;
    font-size: 12px;
    line-height: 18px;
}

.abnav-m-trust a {
    color: #2F80ED;
    font-weight: 500;
    text-decoration: none;
    margin-right: 12px;
}

.abnav-m-trust a:hover {
    text-decoration: underline;
}

/* ---------- Legacy Header2 (pages still on new.site.css) ----------
   Same markup inside the Bootstrap header. Its own menu links are white by
   class. The fit levels need the bar to run into the right-hand block when
   it is too wide, so the left block may shrink and the right one may not
   (otherwise Log in / the CTA wrap or get pushed off the edge). */

.header_oh_lh .menu__wrapper {
    color: #FFFFFF;
}

.header_oh_lh {
    min-width: 0;
}

.header_oh_right {
    flex-shrink: 0;
}

.header_oh_right .login {
    white-space: nowrap;
}

/* The legacy script opens the drawer with .show (right: 0), which loses to
   the phone sheet's parked right: -100% above. */
#float__menu.abnav-drawer.show {
    right: 0;
}

#float__menu.abnav-drawer .abnav-m-lang button {
    gap: 0;
}

#float__menu.abnav-drawer .abnav-m-lang img {
    min-width: 0;
    max-width: none;
}

/* Logged-in account card: here the list sits straight in .fm_profile_db
   (a white legacy card), not in an inner div, so the card is that box. */
#float__menu.float__menu.abnav-drawer .fm_profile_db {
    margin: 0 16px 12px;
    padding: 12px 14px;
    border: 1px solid #E3EAF6;
    box-shadow: none;
}
