/*
 * Four Star Cargo - Mobile App Promo
 * Intentionally prefixed with fsc- to avoid collisions with Divi/WordPress.
 */

:root {
    --fsc-blue: #0a2f78;
    --fsc-blue-deep: #06245f;
    --fsc-blue-bright: #0b46a0;
    --fsc-yellow: #ffbd00;
    --fsc-white: #ffffff;
    --fsc-ink: #10234a;
}

html {
    scroll-behavior: smooth;
}

.fsc-mobile-app[hidden] {
    display: none !important;
}

.fsc-mobile-app {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
    color: var(--fsc-white);
    background:
        radial-gradient(circle at 4% 16%, rgba(255,255,255,.07) 0 3px, transparent 4px) 0 0 / 28px 28px,
        linear-gradient(125deg, var(--fsc-blue-deep) 0%, var(--fsc-blue) 67%, var(--fsc-yellow) 67%, var(--fsc-yellow) 100%);
    box-sizing: border-box;
}

.fsc-mobile-app::after {
    content: none;
    display: none;
}

.fsc-mobile-app *,
.fsc-mobile-app *::before,
.fsc-mobile-app *::after {
    box-sizing: border-box;
}

.fsc-mobile-app__inner {
    position: relative;
    z-index: 1;
    width: min(1500px, 94vw);
    min-height: 338px;
    margin: 0 auto;
    padding: 34px 0 30px;
    display: grid;
    grid-template-columns: minmax(350px, 1.08fr) minmax(315px, .86fr) minmax(410px, 1fr);
    gap: 32px;
    align-items: center;
}

.fsc-mobile-app__copy {
    min-width: 0;
}

.fsc-mobile-app__eyebrow {
    margin-bottom: 10px;
}

.fsc-mobile-app__app-icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 2px solid var(--fsc-yellow);
    border-radius: 9px;
    color: var(--fsc-yellow);
    font-size: 28px;
    line-height: 1;
}

.fsc-mobile-app__title {
    margin: 0 !important;
    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(32px, 2.5vw, 48px) !important;
    line-height: .98 !important;
    letter-spacing: -.8px;
    font-weight: 800 !important;
    text-transform: uppercase;
}

.fsc-mobile-app__title span {
    display: block;
    color: var(--fsc-yellow);
}

.fsc-mobile-app__lead {
    max-width: 520px;
    margin: 16px 0 8px !important;
    color: #fff !important;
    font-size: 19px;
    line-height: 1.42;
}

.fsc-mobile-app__description {
    max-width: 520px;
    margin: 0 !important;
    color: rgba(255,255,255,.92) !important;
    font-size: 15px;
    line-height: 1.55;
}

.fsc-mobile-app__stores {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.fsc-store-button {
    display: inline-block !important;
    position: relative;
    min-width: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 8px;
    background: transparent !important;
    color: inherit !important;
    text-decoration: none !important;
    box-shadow: 0 5px 14px rgba(0,0,0,.18);
    line-height: 0 !important;
    overflow: hidden;
    transition: transform .16s ease, box-shadow .16s ease;
}

.fsc-store-button::before,
.fsc-store-button::after {
    content: none !important;
    display: none !important;
}

.fsc-store-button img {
    display: block !important;
    width: auto !important;
    height: 54px !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.fsc-store-button:hover,
.fsc-store-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.26);
}

.fsc-store-button[data-link-pending="true"] {
    cursor: default;
}

.fsc-mobile-app__features {
    padding-left: 28px;
    border-left: 1px solid rgba(255,189,0,.72);
}

.fsc-mobile-app__list {
    list-style: none !important;
    margin: 0 0 22px !important;
    padding: 0 !important;
}

.fsc-mobile-app__list li {
    position: relative;
    margin: 0 0 16px !important;
    padding: 0 0 0 34px !important;
    color: #fff !important;
    font-size: 17px;
    line-height: 1.34;
}

.fsc-mobile-app__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -2px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(255,189,0,.85);
    color: var(--fsc-yellow);
    font-weight: 800;
    font-size: 17px;
    line-height: 1;
}

.fsc-mobile-app__list .fsc-mobile-app__highlight {
    color: var(--fsc-yellow) !important;
    font-weight: 700;
}

.fsc-mobile-app__available {
    color: var(--fsc-yellow);
    font-size: clamp(22px, 1.8vw, 30px);
    font-weight: 800;
    line-height: 1;
}

.fsc-mobile-app__available-copy {
    margin: 7px 0 0 !important;
    color: #fff !important;
    font-size: 16px;
}

.fsc-mobile-app__devices {
    position: relative;
    align-self: stretch;
    min-height: 350px;
}

.fsc-device {
    position: absolute;
    margin: 0;
    width: 220px;
    padding: 5px;
    border: 4px solid #202020;
    border-radius: 29px;
    background: #111;
    box-shadow: 0 18px 34px rgba(0,0,0,.34);
    overflow: hidden;
}

.fsc-device img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 21px;
}

.fsc-device--login {
    left: 1%;
    bottom: -42px;
    transform: rotate(-1deg);
    z-index: 2;
}

.fsc-device--shipments {
    left: 45%;
    bottom: -46px;
    transform: rotate(4deg);
    z-index: 1;
}


/* Keep the promo flush against the Divi hero. */
.fsc-hero-section {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.fsc-hero-section + .fsc-mobile-app {
    margin-top: -18px !important;
}

.fsc-hero-actions {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.fsc-hero-actions .fsc-hero-get-app {
    margin-left: 0 !important;
}

/* Optional hero enhancement injected by JS. */
.fsc-hero-app-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px;
    color: #fff;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
}

.fsc-hero-app-badge__new {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    background: var(--fsc-yellow);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .2px;
}

.fsc-hero-get-app {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-left: 0 !important;
    padding: 11px 30px !important;
    border: 2px solid var(--fsc-yellow) !important;
    border-radius: 4px !important;
    background: rgba(12,31,64,.28) !important;
    color: var(--fsc-yellow) !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.fsc-hero-get-app:hover,
.fsc-hero-get-app:focus-visible {
    background: var(--fsc-yellow) !important;
    color: var(--fsc-blue-deep) !important;
}



/*
 * Divi adds an icon through ::after on CTA hover and changes the button
 * padding. On this legacy slider that icon font renders as several garbled
 * symbols and can cover the buttons. Disable those generated icons only
 * inside our hero action wrapper.
 */
.fsc-hero-actions {
    position: relative !important;
    z-index: 40 !important;
    pointer-events: auto !important;
}

.fsc-hero-actions > a,
.fsc-hero-actions .fsc-hero-contact-button,
.fsc-hero-actions .fsc-hero-get-app {
    position: relative !important;
    z-index: 41 !important;
    pointer-events: auto !important;
}

.fsc-hero-actions > a::before,
.fsc-hero-actions > a::after,
.fsc-hero-actions .fsc-hero-contact-button::before,
.fsc-hero-actions .fsc-hero-contact-button::after,
.fsc-hero-actions .fsc-hero-get-app::before,
.fsc-hero-actions .fsc-hero-get-app::after {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

.fsc-hero-actions .fsc-hero-contact-button,
.fsc-hero-actions .fsc-hero-contact-button:hover,
.fsc-hero-actions .fsc-hero-contact-button:focus {
    padding-left: 1em !important;
    padding-right: 1em !important;
}


/* Desktop-only hero spacing requested for the production homepage. */
@media (min-width: 901px) {
    .fsc-hero-actions {
        gap: 0 !important;
    }

    .fsc-hero-actions .fsc-hero-get-app {
        margin-left: 32px !important;
    }
}

@media (max-width: 1180px) {
    .fsc-mobile-app__inner {
        width: min(1060px, 94vw);
        grid-template-columns: 1fr .9fr .9fr;
        gap: 20px;
    }

    .fsc-device {
        width: 178px;
    }
}

@media (max-width: 900px) {

    .fsc-hero-section + .fsc-mobile-app {
        margin-top: 0 !important;
    }

    .fsc-hero-actions {
        gap: 10px;
    }
    .fsc-mobile-app {
        background: linear-gradient(150deg, var(--fsc-blue-deep) 0%, var(--fsc-blue-bright) 80%, var(--fsc-yellow) 80%, var(--fsc-yellow) 100%);
    }

    .fsc-mobile-app::after {
        display: none;
    }

    .fsc-mobile-app__inner {
        width: 100%;
        min-height: 0;
        padding: 34px 26px 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .fsc-mobile-app__copy,
    .fsc-mobile-app__features {
        width: 100%;
    }

    .fsc-mobile-app__eyebrow {
        margin-bottom: 10px;
    }

    .fsc-mobile-app__app-icon {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    .fsc-mobile-app__title {
        font-size: clamp(31px, 8vw, 40px) !important;
        line-height: 1.03 !important;
    }

    .fsc-mobile-app__lead {
        max-width: none;
        font-size: 18px;
    }

    .fsc-mobile-app__description {
        max-width: none;
        font-size: 15px;
    }

    .fsc-mobile-app__features {
        padding: 4px 0 0;
        border-left: 0;
    }

    .fsc-mobile-app__list li {
        margin-bottom: 12px !important;
        font-size: 16px;
    }

    .fsc-mobile-app__stores {
        order: 3;
    }

    .fsc-mobile-app__devices {
        width: 100%;
        min-height: 390px;
        margin-top: 0;
    }

    .fsc-device {
        width: min(42vw, 198px);
        border-width: 3px;
        border-radius: 25px;
    }

    .fsc-device img {
        border-radius: 18px;
    }

    .fsc-device--login {
        left: 13%;
        bottom: -16px;
        transform: rotate(-2deg);
    }

    .fsc-device--shipments {
        left: 48%;
        bottom: -20px;
        transform: rotate(4deg);
    }

    .fsc-hero-get-app {
        margin-left: 0 !important;
        margin-top: 10px !important;
    }
}

@media (max-width: 520px) {
    .fsc-mobile-app__inner {
        padding: 30px 20px 0;
    }

    .fsc-mobile-app__title {
        font-size: 31px !important;
    }

    .fsc-mobile-app__lead {
        font-size: 17px;
    }

    .fsc-mobile-app__stores {
        gap: 9px;
    }
.fsc-mobile-app__devices {
        min-height: 350px;
    }

    .fsc-device {
        width: min(43vw, 178px);
    }

    .fsc-device--login {
        left: 5%;
    }

    .fsc-device--shipments {
        left: 45%;
    }
}


/* ==========================================================
   v1.5 - MOBILE FIX FOR THE LEGACY DIVI HERO
   ----------------------------------------------------------
   On the legacy Four Star Cargo mobile layout Divi leaves the
   slider section height in place but hides/collapses the slide
   content/background. That is the large white block seen on
   iPhone. These rules force the FIRST desktop slide to render
   as a compact mobile hero and hide the unused second slide.
   Desktop is not affected.
   ========================================================== */
@media (max-width: 900px) {

    .fsc-hero-section {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: transparent !important;
    }

    .fsc-hero-section .et_pb_slider,
    .fsc-hero-section .et_pb_slides {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: transparent !important;
    }

    .fsc-hero-section .et_pb_slide {
        display: none !important;
    }

    .fsc-hero-section .et_pb_slide:first-child,
    .fsc-hero-section .et_pb_slide.et-pb-active-slide:first-child {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 500px !important;
        margin: 0 !important;
        padding: 0 !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    .fsc-hero-section .et_pb_container,
    .fsc-hero-section .et_pb_slider_container_inner {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 500px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .fsc-hero-section .et_pb_slide_description {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 5 !important;
        width: calc(100% - 36px) !important;
        max-width: 560px !important;
        margin: 0 18px !important;
        padding: 34px 22px 32px !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        text-align: left !important;
        background: rgba(7, 19, 35, .62) !important;
        box-sizing: border-box !important;
    }

    .fsc-hero-section .et_pb_slide_title,
    .fsc-hero-section .et_pb_slide_title a {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #fff !important;
        font-size: 34px !important;
        line-height: 1.05 !important;
        font-weight: 800 !important;
        text-align: left !important;
    }

    .fsc-hero-section .et_pb_slide_content,
    .fsc-hero-section .et_pb_slide_content p {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #fff !important;
        font-size: 16px !important;
        line-height: 1.5 !important;
        text-align: left !important;
    }

    .fsc-hero-section .fsc-hero-app-badge {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-bottom: 14px !important;
        font-size: 14px !important;
    }

    .fsc-hero-section .fsc-hero-app-badge__new {
        font-size: 11px !important;
        padding: 5px 8px !important;
    }

    .fsc-hero-section .et_pb_button_wrapper,
    .fsc-hero-section .fsc-hero-actions {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
        margin-top: 22px !important;
    }

    .fsc-hero-section .fsc-hero-contact-button,
    .fsc-hero-section .fsc-hero-get-app {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        min-height: 48px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    /* Divi's desktop slider controls are unnecessary on the forced
       single-slide mobile hero and can sit over the CTA area. */
    .fsc-hero-section .et-pb-arrow-prev,
    .fsc-hero-section .et-pb-arrow-next,
    .fsc-hero-section .et-pb-controllers {
        display: none !important;
    }

    /* The app promo must begin immediately after the repaired hero. */
    .fsc-hero-section + .fsc-mobile-app {
        margin-top: 0 !important;
    }

    /* Store badges: keep the official-looking images readable on phones. */
    .fsc-store-button img {
        height: 50px !important;
        width: auto !important;
    }
}

/* Narrow iPhones */
@media (max-width: 520px) {
    .fsc-hero-section .et_pb_slide:first-child,
    .fsc-hero-section .et_pb_slide.et-pb-active-slide:first-child,
    .fsc-hero-section .et_pb_container,
    .fsc-hero-section .et_pb_slider_container_inner {
        min-height: 470px !important;
    }

    .fsc-hero-section .et_pb_slide_description {
        width: calc(100% - 28px) !important;
        margin: 0 14px !important;
        padding: 28px 18px 26px !important;
    }

    .fsc-hero-section .et_pb_slide_title,
    .fsc-hero-section .et_pb_slide_title a {
        font-size: 30px !important;
    }

    .fsc-mobile-app__stores {
        gap: 10px !important;
    }

    .fsc-store-button img {
        height: 46px !important;
    }
}



/* ==========================================================
   v1.6 - MOBILE HEADER: LOGO BESIDE THE HAMBURGER MENU
   ----------------------------------------------------------
   The legacy theme puts the logo below the Sign in / Tracking
   bar on iPhone. JS moves the EXISTING linked logo into this
   compact brand row; these rules place it at left and leave
   the existing hamburger at right.
   ========================================================== */
@media (max-width: 900px) {

    #main-header {
        position: relative !important;
        min-height: 104px !important;
        height: 104px !important;
        padding: 0 !important;
    }

    #main-header > .container,
    #main-header .et_menu_container,
    #main-header .container {
        position: relative !important;
        min-height: 104px !important;
        height: 104px !important;
    }

    .fsc-mobile-brand-row {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 104px !important;
        padding: 0 92px 0 20px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        z-index: 999 !important;
        pointer-events: none !important;
    }

    .fsc-mobile-brand-row > a,
    .fsc-mobile-brand-row > img {
        display: block !important;
        max-width: 100% !important;
        pointer-events: auto !important;
    }

    .fsc-mobile-brand-row #logo {
        display: block !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        max-width: min(100%, 440px) !important;
        max-height: 54px !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* The old logo container is now intentionally empty on mobile.
       Collapse it so it does not reserve another row below Tracking. */
    html.fsc-mobile-logo-promoted #main-header .logo_container {
        height: 0 !important;
        min-height: 0 !important;
        width: 0 !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    /* Keep Divi's existing hamburger on the same visual row. */
    #main-header #et-top-navigation,
    #main-header #et_mobile_nav_menu {
        position: absolute !important;
        top: 50% !important;
        right: 20px !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 1002 !important;
    }

    #main-header .mobile_menu_bar {
        display: block !important;
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 1003 !important;
    }
}

@media (max-width: 520px) {
    #main-header,
    #main-header > .container,
    #main-header .et_menu_container,
    #main-header .container {
        min-height: 92px !important;
        height: 92px !important;
    }

    .fsc-mobile-brand-row {
        height: 92px !important;
        padding-left: 16px !important;
        padding-right: 82px !important;
    }

    .fsc-mobile-brand-row #logo {
        max-height: 44px !important;
        max-width: 100% !important;
    }

    #main-header #et-top-navigation,
    #main-header #et_mobile_nav_menu {
        right: 16px !important;
    }
}



/* ==========================================================
   v1.7 - MOBILE MENU FIX
   ----------------------------------------------------------
   Because the hamburger container is intentionally narrow,
   Divi's dropdown inherited that same narrow width. This made
   every menu item wrap into a thin vertical strip over the
   page. Force the opened Divi menu to become a full-width
   branded panel below the compact mobile header.
   ========================================================== */
@media (max-width: 900px) {

    #main-header .et_mobile_menu {
        position: fixed !important;
        top: 104px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        height: auto !important;
        max-height: calc(100dvh - 104px) !important;
        margin: 0 !important;
        padding: 8px 0 16px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        background: rgba(255,255,255,.985) !important;
        border-top: 4px solid #ffb800 !important;
        box-shadow: 0 14px 28px rgba(0,0,0,.22) !important;
        z-index: 2147483000 !important;
        text-align: left !important;
    }

    #main-header .mobile_nav.opened .et_mobile_menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    #main-header .et_mobile_menu,
    #main-header .et_mobile_menu ul,
    #main-header .et_mobile_menu li {
        float: none !important;
    }

    #main-header .et_mobile_menu li {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        box-sizing: border-box !important;
    }

    #main-header .et_mobile_menu li a {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        min-height: 54px !important;
        margin: 0 !important;
        padding: 14px 24px !important;
        box-sizing: border-box !important;
        border: 0 !important;
        border-bottom: 1px solid #e8edf3 !important;
        background: transparent !important;
        color: #132d68 !important;
        font-size: 17px !important;
        line-height: 1.3 !important;
        font-weight: 600 !important;
        letter-spacing: 0 !important;
        text-align: left !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        opacity: 1 !important;
    }

    #main-header .et_mobile_menu li:last-child > a {
        border-bottom: 0 !important;
    }

    #main-header .et_mobile_menu li a:hover,
    #main-header .et_mobile_menu li a:focus,
    #main-header .et_mobile_menu li.current-menu-item > a {
        background: #f4f7fb !important;
        color: #0056a6 !important;
        opacity: 1 !important;
    }

    /* If Divi outputs nested mobile submenus, keep them full width too. */
    #main-header .et_mobile_menu li ul,
    #main-header .et_mobile_menu .sub-menu {
        display: block !important;
        visibility: visible !important;
        position: static !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 0 0 18px !important;
        background: #f8fafc !important;
        box-shadow: none !important;
    }

    #main-header .et_mobile_menu li li a {
        min-height: 48px !important;
        padding-left: 30px !important;
        font-size: 16px !important;
    }

    /* Keep the hamburger above the dropdown and turn it into a clear X
       while the panel is open. */
    #main-header #et_mobile_nav_menu,
    #main-header .mobile_menu_bar {
        z-index: 2147483001 !important;
    }

    #main-header .mobile_nav.opened .mobile_menu_bar::before {
        content: "×" !important;
        display: block !important;
        font-family: Arial, Helvetica, sans-serif !important;
        font-size: 38px !important;
        font-weight: 300 !important;
        line-height: 1 !important;
        color: #159bd3 !important;
        transform: translateY(-2px) !important;
    }
}

@media (max-width: 520px) {
    #main-header .et_mobile_menu {
        top: 92px !important;
        max-height: calc(100dvh - 92px) !important;
    }

    #main-header .et_mobile_menu li a {
        min-height: 52px !important;
        padding: 13px 20px !important;
        font-size: 16px !important;
    }
}



/* ==========================================================
   v1.8 - FULL-WIDTH MOBILE MENU CONTAINER
   ----------------------------------------------------------
   Divi keeps .et_mobile_menu inside #et_mobile_nav_menu.
   In v1.7 the dropdown itself was 100vw, but its PARENT was
   still the narrow hamburger-width container. On iPhone/Safari
   that parent clips the dropdown, producing the right-side
   strip seen in the screenshot.

   Make the nav parent span the full mobile header width while
   keeping only the hamburger and dropdown interactive.
   ========================================================== */
@media (max-width: 900px) {

    #main-header #et-top-navigation,
    #main-header #et_mobile_nav_menu {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        height: 100% !important;
        top: 0 !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        pointer-events: none !important;
    }

    #main-header #et_mobile_nav_menu {
        position: absolute !important;
        z-index: 2147483001 !important;
    }

    #main-header .mobile_nav {
        position: static !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: none !important;
    }

    #main-header .mobile_menu_bar {
        position: absolute !important;
        top: 50% !important;
        right: 20px !important;
        transform: translateY(-50%) !important;
        width: 48px !important;
        height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: auto !important;
        z-index: 2147483003 !important;
    }

    #main-header .et_mobile_menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        margin: 0 !important;
        padding: 8px 0 16px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        pointer-events: auto !important;
        box-sizing: border-box !important;
        background: rgba(255,255,255,.99) !important;
        border-top: 4px solid #ffb800 !important;
        box-shadow: 0 14px 28px rgba(0,0,0,.22) !important;
        z-index: 2147483002 !important;
    }

    #main-header .et_mobile_menu li,
    #main-header .et_mobile_menu li a {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #main-header .et_mobile_menu li a {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

@media (max-width: 520px) {
    #main-header .mobile_menu_bar {
        right: 16px !important;
    }

    #main-header .et_mobile_menu {
        top: 100% !important;
        max-height: calc(100dvh - 92px) !important;
    }
}



/* ==========================================================
   v1.9 - FINAL MOBILE MENU POSITIONING
   ----------------------------------------------------------
   1) Center the 100vw dropdown against the VIEWPORT even
      though Divi nests it inside a centered .container.
   2) Start the dropdown BELOW the legacy Sign in / Tracking
      row. JS measures that row at runtime and writes
      --fsc-mobile-menu-gap on #main-header.
   ========================================================== */
@media (max-width: 900px) {

    #main-header .et_mobile_menu {
        left: 50% !important;
        right: auto !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        top: calc(100% + var(--fsc-mobile-menu-gap, 34px)) !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        padding-top: 10px !important;
    }

    #main-header .et_mobile_menu li:first-child,
    #main-header .et_mobile_menu li:first-child > a {
        margin-top: 0 !important;
    }

    #main-header .et_mobile_menu li:first-child > a {
        padding-top: 14px !important;
    }
}

@media (max-width: 520px) {
    #main-header .et_mobile_menu {
        left: 50% !important;
        right: auto !important;
        top: calc(100% + var(--fsc-mobile-menu-gap, 34px)) !important;
        transform: translateX(-50%) !important;
    }
}


@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fsc-store-button {
        transition: none;
    }
}
