:root {
    --navy-950: #061d30;
    --navy-900: #0b2942;
    --navy-800: #123b5b;
    --blue-600: #1677bd;
    --blue-500: #258bd0;
    --blue-100: #e9f4fb;
    --orange-500: #f58220;
    --orange-100: #fff1e5;
    --ink-900: #102a3e;
    --ink-700: #3c566a;
    --ink-500: #6f8393;
    --line: #dce6ed;
    --surface: #ffffff;
    --canvas: #f3f7fa;
    --danger: #c83e46;
    --success: #16836a;
    --shadow-sm: 0 8px 24px rgba(11, 41, 66, 0.07);
    --shadow-lg: 0 24px 60px rgba(6, 29, 48, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--canvas);
}

body.dashboard-page {
    min-height: 100vh;
    margin: 0;
    background: var(--canvas);
    color: var(--ink-900);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
}

body.dashboard-page a {
    color: var(--blue-600);
}

body.dashboard-page img {
    max-width: 100%;
    height: auto;
}

.skip-link {
    position: fixed;
    z-index: 999;
    top: -100px;
    left: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--surface);
    color: var(--navy-900) !important;
    font-weight: 700;
}

.skip-link:focus {
    top: 12px;
}

.dashboard-topbar {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    height: 76px;
    padding: 0 28px;
    border-bottom: 1px solid rgba(220, 230, 237, 0.85);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 3px 16px rgba(11, 41, 66, 0.05);
}

.dashboard-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--navy-900) !important;
    text-decoration: none;
}

.dashboard-brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--navy-900), var(--blue-600));
    color: #fff;
    font-family: Manrope, Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 18px rgba(22, 119, 189, 0.2);
}

.dashboard-brand-copy,
.dashboard-user-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.dashboard-brand-copy strong {
    font-family: Manrope, Arial, sans-serif;
    font-size: 16px;
}

.dashboard-brand-copy small,
.dashboard-user-copy small {
    margin-top: 3px;
    color: var(--ink-500);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-left: auto;
}

.dashboard-user-copy {
    text-align: right;
}

.dashboard-user-copy strong {
    max-width: 220px;
    overflow: hidden;
    color: var(--ink-900);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--orange-100);
    color: #a9500a;
    font-weight: 800;
}

.dashboard-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-right: 10px;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: var(--blue-100);
    cursor: pointer;
}

.dashboard-menu-toggle span {
    display: block;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: var(--navy-900);
}

.dashboard-shell {
    display: flex;
    min-height: calc(100vh - 76px);
    padding-top: 76px;
}

.dashboard-sidebar {
    position: fixed;
    z-index: 80;
    top: 76px;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 272px;
    overflow-y: auto;
    padding: 28px 20px 22px;
    background: var(--navy-900);
    color: #fff;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dashboard-nav-label {
    margin: 0 12px 8px;
    color: #8eabc0;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.dashboard-nav-label-spaced {
    margin-top: 22px;
}

.dashboard-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 11px;
    color: #cfdee9 !important;
    font-weight: 600;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.dashboard-nav-link:hover,
.dashboard-nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    transform: translateX(2px);
}

.dashboard-nav-link.is-active {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.dashboard-nav-icon {
    display: grid;
    flex: 0 0 28px;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.dashboard-balance-card {
    margin-top: auto;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.07);
}

.dashboard-balance-card span {
    color: #9fb9ca;
    font-size: 12px;
}

.dashboard-balance-card strong {
    display: block;
    margin: 3px 0 12px;
    color: #fff;
    font-family: Manrope, Arial, sans-serif;
    font-size: 25px;
}

.dashboard-balance-card strong.is-negative {
    color: #ffb1b6;
}

.dashboard-balance-card a {
    display: block;
    padding: 9px 12px;
    border-radius: 9px;
    background: var(--orange-500);
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.dashboard-logout {
    display: block;
    margin: 14px 4px 0;
    padding: 10px 12px;
    color: #b8cbd8 !important;
    font-weight: 600;
    text-decoration: none;
}

.dashboard-content {
    width: calc(100% - 272px);
    max-width: 1500px;
    min-width: 0;
    margin-left: 272px;
    padding: 42px clamp(24px, 4vw, 64px) 70px;
    overflow-x: hidden;
}

.dashboard-footer {
    display: flex;
    justify-content: space-between;
    margin-left: 272px;
    padding: 18px clamp(24px, 4vw, 64px) 26px;
    border-top: 1px solid var(--line);
    background: var(--canvas);
    color: var(--ink-500);
    font-size: 13px;
}

.dashboard-footer a {
    font-weight: 700;
    text-decoration: none;
}

.dashboard-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 28px;
}

.dashboard-eyebrow {
    margin: 0 0 7px;
    color: var(--orange-500);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.dashboard-page-heading h1 {
    margin: 0;
    color: var(--navy-900);
    font-family: Manrope, Arial, sans-serif;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.dashboard-page-heading p:last-child {
    max-width: 620px;
    margin: 8px 0 0;
    color: var(--ink-700);
}

.dashboard-primary-button,
.dashboard-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 11px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-primary-button {
    background: var(--orange-500);
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(245, 130, 32, 0.24);
}

.dashboard-secondary-button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy-900) !important;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.dashboard-stat-card,
.dashboard-panel {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.dashboard-stat-card {
    position: relative;
    min-height: 148px;
    overflow: hidden;
    padding: 22px;
}

.dashboard-stat-card::after {
    content: "";
    position: absolute;
    top: -34px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--blue-100);
}

.dashboard-stat-card.is-balance::after {
    background: var(--orange-100);
}

.dashboard-stat-label {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 10px;
    color: var(--ink-500);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-stat-value {
    position: relative;
    z-index: 1;
    display: block;
    color: var(--navy-900);
    font-family: Manrope, Arial, sans-serif;
    font-size: clamp(24px, 2.5vw, 32px);
    line-height: 1.2;
}

.dashboard-stat-value.is-negative {
    color: var(--danger);
}

.dashboard-stat-note {
    display: block;
    margin-top: 8px;
    color: var(--ink-500);
    font-size: 13px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
    gap: 22px;
}

.dashboard-panel {
    min-width: 0;
    overflow: hidden;
}

.dashboard-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
}

.dashboard-panel-header h2 {
    margin: 0;
    color: var(--navy-900);
    font-family: Manrope, Arial, sans-serif;
    font-size: 19px;
}

.dashboard-panel-header a {
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-panel-body {
    padding: 24px;
}

.dashboard-address {
    margin: 0;
    color: var(--ink-700);
    font-style: normal;
    line-height: 1.75;
}

.dashboard-address strong {
    color: var(--ink-900);
}

.dashboard-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Shared treatment for older customer pages. */
.headerlabel {
    display: inline-block;
    width: auto !important;
    height: auto !important;
    margin: 0 0 22px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--navy-900) !important;
    font-family: Manrope, Arial, sans-serif;
    font-size: clamp(26px, 3vw, 38px) !important;
    font-weight: 800;
    line-height: 1.2;
    text-align: left !important;
    cursor: default !important;
}

.dashboard-content > center,
.dashboard-content > center > center {
    text-align: left;
}

.dashboard-content input[type="text"],
.dashboard-content input[type="email"],
.dashboard-content input[type="password"],
.dashboard-content input[type="number"],
.dashboard-content input[type="tel"],
.dashboard-content select,
.dashboard-content textarea {
    max-width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #cbd9e2;
    border-radius: 9px;
    background: #fff;
    color: var(--ink-900);
    font: inherit;
}

.dashboard-content textarea {
    min-height: 120px;
}

.dashboard-content input:focus,
.dashboard-content select:focus,
.dashboard-content textarea:focus {
    border-color: var(--blue-500);
    outline: 3px solid rgba(37, 139, 208, 0.14);
}

.dashboard-content input[type="button"],
.dashboard-content input[type="submit"],
.dashboard-content button:not(.dashboard-scrim) {
    min-height: 42px;
    padding: 9px 16px;
    border: 0;
    border-radius: 9px;
    background: var(--blue-600);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.dashboard-content table {
    border-collapse: collapse;
    max-width: 100%;
    background: #fff;
}

.dashboard-content table:not(.ui-datepicker-calendar) td,
.dashboard-content table:not(.ui-datepicker-calendar) th {
    padding: 11px 13px;
    border-color: var(--line);
}

.dashboard-content table.display,
.dashboard-content table.dataTable {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border: 0 !important;
}

.dashboard-content table.dataTable thead th,
.dashboard-content table.dataTable thead td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: #f7fafc;
    color: var(--ink-700);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.dashboard-content table.dataTable tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid #edf2f5;
    color: var(--ink-700);
    white-space: nowrap;
}

.dashboard-content table.dataTable.no-footer {
    border-bottom: 0;
}

.dashboard-content .dataTables_wrapper {
    width: 100%;
    overflow-x: auto;
}

.dashboard-content .dataTables_filter,
.dashboard-content .dataTables_length {
    margin: 0 0 16px;
}

.dashboard-content .dataTables_filter input {
    margin-left: 8px;
}

.dashboard-content .ui-tabs {
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.dashboard-content .ui-tabs .ui-tabs-nav {
    padding: 12px 12px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 16px 16px 0 0;
    background: #f7fafc;
}

.dashboard-content .ui-tabs .ui-tabs-panel {
    padding: 22px;
}

.loader {
    position: absolute;
    top: calc(50% - 32px);
    left: calc(50% - 32px);
    width: 64px;
    height: 64px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--blue-600);
    border-radius: 50%;
    animation: dashboard-spin 1.3s linear infinite;
}

.loader-wrapper {
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(255, 255, 255, 0.88);
}

@keyframes dashboard-spin {
    to { transform: rotate(360deg); }
}

.product-item {
    float: left;
    width: 200px;
    margin: 15px;
    text-align: center;
}

.product-item div {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .dashboard-menu-toggle {
        display: block;
    }

    .dashboard-topbar {
        padding: 0 18px;
    }

    .dashboard-sidebar {
        top: 0;
        z-index: 140;
        transform: translateX(-105%);
        width: min(86vw, 300px);
        padding-top: 30px;
        transition: transform 220ms ease;
        box-shadow: var(--shadow-lg);
    }

    .dashboard-menu-open .dashboard-sidebar {
        transform: translateX(0);
    }

    .dashboard-scrim {
        position: fixed;
        z-index: 130;
        inset: 0;
        visibility: hidden;
        border: 0;
        background: rgba(6, 29, 48, 0.55);
        opacity: 0;
        transition: opacity 220ms ease, visibility 220ms ease;
    }

    .dashboard-menu-open .dashboard-scrim {
        visibility: visible;
        opacity: 1;
    }

    .dashboard-content {
        width: 100%;
        margin-left: 0;
        padding: 34px 22px 58px;
    }

    .dashboard-footer {
        margin-left: 0;
        padding-right: 22px;
        padding-left: 22px;
    }
}

@media (max-width: 720px) {
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stat-card {
        min-height: 126px;
    }

    .dashboard-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .dashboard-topbar {
        height: 68px;
        padding: 0 12px;
    }

    .dashboard-shell {
        padding-top: 68px;
    }

    .dashboard-brand-copy small,
    .dashboard-user-copy {
        display: none;
    }

    .dashboard-brand-copy strong {
        font-size: 14px;
    }

    .dashboard-avatar {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .dashboard-content {
        padding: 28px 14px 48px;
    }

    .dashboard-panel-header,
    .dashboard-panel-body {
        padding: 18px;
    }

    .dashboard-footer {
        flex-direction: column;
        gap: 5px;
        padding-right: 14px;
        padding-left: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Customer login */
body.auth-page {
    min-height: 100vh;
    margin: 0;
    background: #f3f7fa;
    color: var(--ink-900);
    font-family: "DM Sans", Arial, sans-serif;
    line-height: 1.5;
}

.auth-page *,
.auth-page *::before,
.auth-page *::after {
    box-sizing: border-box;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(380px, 0.9fr) minmax(520px, 1.1fr);
    min-height: 100vh;
}

.auth-showcase {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    padding: clamp(30px, 5vw, 64px);
    background: linear-gradient(145deg, #061d30 0%, #0b3554 55%, #126da5 100%);
    color: #fff;
}

.auth-showcase::before,
.auth-showcase::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.auth-showcase::before {
    top: -180px;
    right: -170px;
    width: 440px;
    height: 440px;
    background: rgba(37, 139, 208, 0.2);
}

.auth-showcase::after {
    bottom: -220px;
    left: -170px;
    width: 480px;
    height: 480px;
    border: 70px solid rgba(245, 130, 32, 0.11);
}

.auth-brand,
.auth-mobile-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #fff;
    text-decoration: none;
}

.auth-brand-mark {
    display: grid;
    flex: 0 0 50px;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: linear-gradient(145deg, #f58220, #ffad65);
    color: #fff;
    font-family: Manrope, Arial, sans-serif;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.auth-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.auth-brand-copy strong {
    font-family: Manrope, Arial, sans-serif;
    font-size: 18px;
}

.auth-brand-copy small {
    margin-top: 5px;
    color: #ffc38f;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.auth-showcase-content {
    position: relative;
    z-index: 1;
    max-width: 590px;
    margin: auto 0;
    padding: 70px 0;
}

.auth-eyebrow {
    margin: 0 0 9px;
    color: var(--orange-500);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.auth-showcase .auth-eyebrow {
    color: #ffae67;
}

.auth-showcase h1 {
    margin: 0;
    font-family: Manrope, Arial, sans-serif;
    font-size: clamp(40px, 5.4vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.auth-showcase-content > p:not(.auth-eyebrow) {
    max-width: 550px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(16px, 1.4vw, 19px);
}

.auth-benefits {
    display: grid;
    gap: 13px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 600;
}

.auth-benefits span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffb777;
    font-size: 13px;
}

.auth-home-link {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.auth-home-link:hover,
.auth-home-link:focus-visible {
    color: #fff;
}

.auth-form-area {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: clamp(28px, 5vw, 72px);
}

.auth-mobile-brand {
    display: none;
    margin-bottom: 28px;
    color: var(--navy-900);
}

.auth-mobile-brand .auth-brand-copy small {
    color: var(--orange-500);
}

.auth-card {
    width: min(100%, 490px);
    padding: clamp(30px, 4.5vw, 52px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(6, 29, 48, 0.12);
}

.auth-card h2 {
    margin: 0;
    color: var(--navy-900);
    font-family: Manrope, Arial, sans-serif;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.auth-intro {
    margin: 10px 0 28px;
    color: var(--ink-500);
}

.auth-status {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 18px 0 26px;
    padding: 14px 16px;
    border: 1px solid #bfe3d8;
    border-radius: 12px;
    background: #edf9f5;
    color: #126b59;
}

.auth-status-icon {
    display: grid;
    flex: 0 0 34px;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #16836a;
    color: #fff;
    font-weight: 800;
}

.auth-status strong,
.auth-status small {
    display: block;
}

.auth-status strong {
    font-size: 14px;
}

.auth-status small {
    margin-top: 2px;
    color: #47796f;
    font-size: 12px;
}

.auth-status--error {
    border-color: #f1c5c8;
    background: #fff1f2;
    color: #a52f38;
}

.auth-status--error .auth-status-icon {
    background: #c83e46;
}

.auth-status--error small {
    color: #86575b;
}

.auth-form {
    display: grid;
    gap: 20px;
}

.auth-trap {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.auth-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink-900);
    font-size: 13px;
    font-weight: 800;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.auth-label-row a {
    margin-bottom: 7px;
    color: var(--blue-600);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.auth-field input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #cad8e2;
    border-radius: 11px;
    background: #fff;
    color: var(--ink-900);
    font: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-field input:focus {
    border-color: var(--blue-500);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(37, 139, 208, 0.13);
}

.auth-submit,
.auth-install-button {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    font: 800 15px/1 "DM Sans", Arial, sans-serif;
    cursor: pointer;
}

.auth-submit {
    margin-top: 3px;
    background: var(--orange-500);
    box-shadow: 0 12px 25px rgba(245, 130, 32, 0.23);
}

.auth-submit:hover,
.auth-submit:focus-visible {
    background: #df6f12;
}

.auth-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.auth-status[hidden] {
    display: none;
}

.auth-install {
    margin-top: 14px;
}

.auth-install:empty {
    display: none;
}

.auth-install-button {
    background: var(--navy-900);
}

.auth-signup {
    margin: 25px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--ink-500);
    font-size: 13px;
    text-align: center;
}

.auth-signup a,
.auth-help a {
    color: var(--blue-600);
    font-weight: 800;
    text-decoration: none;
}

.auth-help {
    margin: 22px 0 0;
    color: var(--ink-500);
    font-size: 13px;
}

@media (max-width: 900px) {
    .auth-shell {
        display: block;
    }

    .auth-showcase {
        display: none;
    }

    .auth-form-area {
        min-height: 100vh;
        padding: 28px 18px;
    }

    .auth-mobile-brand {
        display: inline-flex;
    }
}

@media (max-width: 520px) {
    .auth-form-area {
        justify-content: flex-start;
        padding: 24px 14px;
    }

    .auth-mobile-brand {
        align-self: flex-start;
        margin: 0 4px 22px;
    }

    .auth-card {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .auth-help {
        margin-bottom: 8px;
    }
}

/* Customer signup and account-result screens */
.auth-signup-shell,
.auth-message-shell {
    min-height: 100vh;
    padding: clamp(24px, 4vw, 56px);
    background:
        radial-gradient(circle at 5% 5%, rgba(37, 139, 208, 0.14), transparent 30%),
        radial-gradient(circle at 95% 95%, rgba(245, 130, 32, 0.12), transparent 28%),
        #f3f7fa;
}

.auth-signup-shell {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.auth-signup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(100%, 860px);
    margin-bottom: 28px;
}

.auth-signup-brand,
.auth-message-brand {
    display: inline-flex;
    color: var(--navy-900);
    text-decoration: none;
}

.auth-signup-brand .auth-brand-copy small,
.auth-message-brand .auth-brand-copy small {
    color: var(--orange-500);
}

.auth-login-return {
    color: var(--ink-500);
    font-size: 13px;
    text-decoration: none;
}

.auth-login-return strong {
    color: var(--blue-600);
}

.auth-card--signup {
    width: min(100%, 860px);
    padding: clamp(30px, 5vw, 58px);
}

.auth-signup-heading {
    max-width: 620px;
    margin-bottom: 32px;
}

.auth-signup-heading h1 {
    margin: 0;
    color: var(--navy-900);
    font-family: Manrope, Arial, sans-serif;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.auth-signup-heading > p:last-child {
    margin: 10px 0 0;
    color: var(--ink-500);
}

.auth-form--signup {
    gap: 22px;
}

.auth-form-section {
    margin: 10px 0 -6px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
    color: var(--navy-900);
    font-family: Manrope, Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.auth-signup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.auth-field--full {
    grid-column: 1 / -1;
}

.auth-field label span {
    color: var(--ink-500);
    font-weight: 500;
}

.auth-field-help {
    display: block;
    margin-top: 6px;
    color: var(--ink-500);
    font-size: 12px;
}

.auth-form--signup .auth-submit {
    width: min(100%, 260px);
    margin-top: 8px;
}

.auth-signup-shell > .auth-help {
    margin-bottom: 0;
}

.auth-message-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.auth-message-brand {
    width: min(100%, 490px);
    margin-bottom: 26px;
}

.auth-message-card {
    width: min(100%, 490px);
}

.auth-action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 640px) {
    .auth-signup-shell,
    .auth-message-shell {
        padding: 24px 14px;
    }

    .auth-signup-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 22px;
    }

    .auth-signup-brand,
    .auth-message-brand {
        align-self: flex-start;
        margin-left: 4px;
    }

    .auth-signup-grid {
        grid-template-columns: 1fr;
    }

    .auth-field--full {
        grid-column: auto;
    }

    .auth-form--signup .auth-submit {
        width: 100%;
    }
}

/* Cart checkout inside the customer portal */
.portal-order-card {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid #dce6ed;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(11, 41, 66, 0.09);
}

.dashboard-cart-count {
    display: none;
    min-width: 23px;
    height: 23px;
    margin-left: auto;
    padding: 0 7px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--orange-500);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.dashboard-cart-count.has-items {
    display: inline-flex;
}

.portal-order-eyebrow {
    margin: 0 0 8px;
    color: #f47c20;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.portal-order-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.portal-order-heading h1,
.portal-order-success h1,
.portal-order-empty h1 { margin: 0 0 8px; color: #0b2942; }
.portal-order-heading p:not(.portal-order-eyebrow),
.portal-order-success p,
.portal-order-empty p { color: #607488; }
.portal-order-heading > a { color: #1479bd; font-weight: 700; white-space: nowrap; }

.portal-order-list { border-top: 1px solid #e1e9ef; }
.portal-order-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 0; border-bottom: 1px solid #e1e9ef; }
.portal-order-item small { display: block; margin-top: 5px; color: #718397; }
.portal-order-total { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0 12px; color: #0b2942; font-size: 1.16rem; }
.portal-order-note { margin: 10px 0 24px; color: #607488; font-size: 0.9rem; line-height: 1.6; }
.portal-order-alert { margin-bottom: 20px; padding: 14px 16px; border-radius: 12px; background: #fff0ef; color: #973d37; font-weight: 700; }
.portal-order-button { display: inline-block; padding: 13px 22px; border: 0; border-radius: 999px; background: #f47c20; color: #fff !important; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.portal-order-button:hover { background: #d9650c; }
.portal-order-success,
.portal-order-empty { padding: clamp(30px, 6vw, 70px) 10px; text-align: center; }
.portal-order-success__icon { display: grid; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: #e8f7ef; color: #168352; font-size: 2rem; place-items: center; }

@media (max-width: 620px) {
    .portal-order-card { padding: 22px 18px; border-radius: 18px; }
    .portal-order-heading { flex-direction: column; }
    .portal-order-item { align-items: flex-start; }
}
