/* Builder routes use a solid commerce canvas. The account-shell grid must not
   bleed through the utility area above it, and injected WHMCS notices stay in
   the same inner rhythm as the builder rather than spanning the viewport. */
body.f2h-shell:is(.f2h-template-cloud-vps-builder,.f2h-template-vps-builder,.f2h-template-dedicated-builder) .f2h-main {
    background: #030625 !important;
}

body.f2h-shell:is(.f2h-template-cloud-vps-builder,.f2h-template-vps-builder,.f2h-template-dedicated-builder) #main-body .primary-content > div[style*="background-color:#ffffd2"] {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 48px), 1800px) !important;
    box-sizing: border-box;
    margin: 0 auto 18px !important;
}

.f2h-order-workspace {
    --f2h-order-nav-line: rgba(92, 145, 235, .22);
    --f2h-order-nav-text: #f4f8ff;
    --f2h-order-nav-muted: #91a8cc;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding-inline: max(24px, calc((100% - 1800px) / 2));
    background: transparent;
    box-sizing: border-box;
}

.f2h-order-workspace__content {
    min-width: 0;
}

.f2h-order-workspace__content:only-child {
    grid-column: 1 / -1;
}

.f2h-order-navigation {
    position: relative;
    z-index: 1;
    display: block;
    align-self: stretch;
    min-width: 0;
    margin: 0;
    padding: 54px 22px 48px 0;
    overflow: visible;
    border: 0;
    border-right: 1px solid var(--f2h-order-nav-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--f2h-order-nav-text);
    font: 600 15px/1.35 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    backdrop-filter: none;
}

.f2h-order-navigation__header {
    position: static;
    inset: auto;
    z-index: auto;
    display: grid;
    height: auto;
    gap: 6px;
    padding: 0 13px 20px;
    border: 0;
    border-bottom: 1px solid rgba(92, 145, 235, .16);
    background: transparent;
    box-shadow: none;
    transition: none;
}

.f2h-order-navigation__header span {
    color: #aeb5c0;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.f2h-order-navigation__header strong {
    color: var(--f2h-order-nav-text);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.f2h-order-navigation__links {
    display: grid;
    gap: 2px;
    padding: 12px 0;
    background: transparent;
}

.f2h-order-navigation__scroll {
    display: none;
}

.f2h-order-navigation__link {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    min-height: 43px;
    padding: 10px 12px;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0 9px 9px 0;
    background: transparent;
    color: #c3c8d0;
    text-decoration: none !important;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.f2h-order-navigation__link i {
    width: 7px;
    height: 7px;
    border: 1px solid #4d76b1;
    border-radius: 50%;
    background: #102b60;
}

.f2h-order-navigation__link:hover,
.f2h-order-navigation__link:focus-visible {
    border-left-color: rgba(73, 184, 255, .58);
    background: rgba(24, 77, 164, .17);
    color: #fff;
    outline: 0;
}

.f2h-order-navigation__link.is-active {
    border-left-color: #49b8ff;
    background: linear-gradient(90deg, rgba(25, 107, 223, .34), rgba(15, 69, 150, .08));
    color: #fff;
    box-shadow: none;
}

.f2h-order-navigation__link.is-active i {
    border-color: #7bd2ff;
    background: #49b8ff;
    box-shadow: 0 0 9px rgba(73, 184, 255, .46);
}

.f2h-order-navigation__link.is-domain {
    margin-top: 5px;
    padding-top: 13px;
    border-top: 1px solid rgba(92, 145, 235, .14);
}

.f2h-order-navigation__cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 13px;
    border: 0;
    border-top: 1px solid rgba(92, 145, 235, .16);
    border-radius: 0;
    background: transparent;
    color: #d0d4db;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.f2h-order-navigation__cart:hover,
.f2h-order-navigation__cart:focus-visible,
.f2h-order-navigation__cart.is-active {
    color: #fff;
    background: rgba(24, 77, 164, .14);
    outline: 0;
}

@media (max-width: 1831px) {
    .f2h-order-workspace {
        display: block;
        padding-inline: 0;
    }

    .f2h-order-navigation {
        position: relative;
        display: flex;
        align-items: center;
        gap: 7px;
        width: 100%;
        margin: 0;
        padding: 12px max(24px, calc((100% - 1480px) / 2));
        border: 0;
        border-bottom: 1px solid var(--f2h-order-nav-line);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .f2h-order-navigation__header {
        flex: 0 0 auto;
        padding: 0 18px 0 0;
        border: 0;
        border-right: 1px solid var(--f2h-order-nav-line);
    }

    .f2h-order-navigation__header span {
        font-size: 9px;
    }

    .f2h-order-navigation__header strong {
        font-size: 14px;
    }

    .f2h-order-navigation__links {
        display: flex;
        flex: 1 1 auto;
        gap: 3px;
        min-width: 0;
        padding: 0;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-behavior: smooth;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .f2h-order-navigation__links::-webkit-scrollbar {
        display: none;
    }

    .f2h-order-navigation__link {
        display: flex;
        flex: 0 0 auto;
        min-height: 44px;
        padding: 8px 11px;
        border: 0;
        border-bottom: 2px solid transparent;
        border-radius: 8px 8px 0 0;
        scroll-snap-align: start;
        white-space: nowrap;
    }

    .f2h-order-navigation__scroll {
        display: grid;
        place-items: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid rgba(112, 140, 184, .24);
        border-radius: 9px;
        background: rgba(7, 18, 44, .9);
        color: #f4f4f4;
        box-shadow: inset 0 1px rgba(255, 255, 255, .04);
        cursor: pointer;
        transition: border-color .18s ease, background .18s ease, color .18s ease, opacity .18s ease;
    }

    .f2h-order-navigation__scroll[hidden] {
        display: none;
    }

    .f2h-order-navigation__scroll > span {
        display: block;
        margin-top: -2px;
        font-size: 27px;
        font-weight: 500;
        line-height: 1;
    }

    [dir="rtl"] .f2h-order-navigation__scroll > span {
        transform: scaleX(-1);
    }

    .f2h-order-navigation__scroll:hover,
    .f2h-order-navigation__scroll:focus-visible {
        border-color: rgba(73, 146, 255, .64);
        background: rgba(18, 53, 111, .74);
        color: #fff;
        outline: 0;
    }

    .f2h-order-navigation__scroll:disabled {
        border-color: rgba(112, 140, 184, .12);
        background: rgba(7, 18, 44, .46);
        color: #6f7784;
        cursor: default;
        opacity: .62;
    }

    .f2h-order-navigation__link:hover,
    .f2h-order-navigation__link:focus-visible {
        border-bottom-color: rgba(73, 184, 255, .58);
    }

    .f2h-order-navigation__link.is-active {
        border-bottom-color: #49b8ff;
        background: linear-gradient(180deg, rgba(25, 107, 223, .24), rgba(15, 69, 150, .04));
    }

    .f2h-order-navigation__link.is-domain {
        margin: 0;
        padding-top: 8px;
        border-top: 0;
        border-left: 1px solid rgba(92, 145, 235, .16);
    }

    .f2h-order-navigation__cart {
        flex: 0 0 auto;
        padding: 10px 12px;
        border: 0;
        border-left: 1px solid var(--f2h-order-nav-line);
    }
}

@media (max-width: 760px) {
    body.f2h-shell:is(.f2h-template-cloud-vps-builder,.f2h-template-vps-builder,.f2h-template-dedicated-builder) #main-body .primary-content > div[style*="background-color:#ffffd2"] {
        width: min(calc(100% - 26px), 1800px) !important;
    }

    .f2h-order-navigation {
        padding: 9px 12px;
    }

    .f2h-order-navigation__header,
    .f2h-order-navigation__cart span {
        display: none;
    }

    .f2h-order-navigation__cart {
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        padding: 9px;
    }

    .f2h-order-navigation__scroll {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .f2h-order-navigation__links {
        scroll-behavior: auto;
    }
}

/* Final type lock: navigation copy remains neutral while geometry carries blue. */
.f2h-order-navigation__header span,
.f2h-order-navigation__cart {
    color: #b8b8b8 !important;
}

.f2h-order-navigation__link {
    color: #d4d4d4 !important;
}

.f2h-order-navigation__link:hover,
.f2h-order-navigation__link:focus-visible,
.f2h-order-navigation__link.is-active,
.f2h-order-navigation__cart:hover,
.f2h-order-navigation__cart:focus-visible,
.f2h-order-navigation__cart.is-active {
    color: #fff !important;
}

.f2h-order-navigation__link:focus-visible,
.f2h-order-navigation__cart:focus-visible,
.f2h-order-navigation__scroll:focus-visible {
    outline: 2px solid rgba(120, 174, 255, .92);
    outline-offset: 2px;
}

/* Cart and domain orderform pages reuse the builder navigation instead of the
   WHMCS Categories / Actions cards. Map the standard_cart column layout onto
   the same workspace grid so Domain names sits in the same menu as hosting. */
body.f2h-shell.f2h-shopping-cart #order-standard_cart > .row {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding-inline: max(24px, calc((100% - 1800px) / 2));
    background: transparent;
    box-sizing: border-box;
}

body.f2h-shell.f2h-shopping-cart #order-standard_cart .cart-sidebar {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    float: none;
    margin: 0;
    padding: 0 !important;
    background: transparent;
}

body.f2h-shell.f2h-shopping-cart #order-standard_cart .cart-body {
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    flex: none !important;
    float: none;
    padding: 54px 0 48px;
}

body.f2h-shell.f2h-shopping-cart #order-standard_cart .sidebar-collapsed {
    display: none !important;
}

@media (max-width: 1831px) {
    body.f2h-shell.f2h-shopping-cart #order-standard_cart > .row {
        display: block;
        padding-inline: 0;
    }

    body.f2h-shell.f2h-shopping-cart #order-standard_cart .cart-sidebar {
        width: 100% !important;
    }

    body.f2h-shell.f2h-shopping-cart #order-standard_cart .cart-body {
        padding: 24px max(24px, calc((100% - 1480px) / 2));
    }
}

@media (max-width: 760px) {
    body.f2h-shell.f2h-shopping-cart #order-standard_cart .cart-body {
        padding: 18px 12px 28px;
    }
}
