/* Customer account theme: keep every panel, form and status legible in both modes. */
html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] .account-page .account-tab { color: #50595d; }
html[data-theme="light"] .account-page .account-tab > span { color: #626d72; }
html[data-theme="light"] .account-page .account-user-card small,
html[data-theme="light"] .account-page .account-topline p,
html[data-theme="light"] .account-page .account-status-badge small,
html[data-theme="light"] .account-page .account-metric > small,
html[data-theme="light"] .account-page .account-order-top small,
html[data-theme="light"] .account-page .quote-card-top small,
html[data-theme="light"] .account-page .account-order-body small,
html[data-theme="light"] .account-page .saved-address-card > small,
html[data-theme="light"] .account-page .business-benefits small,
html[data-theme="light"] .account-page .settings-block small { color: #596367; }
html[data-theme="light"] .account-page .account-sample-note { color: #596367; }
html[data-theme="light"] .account-page .account-form-heading small,
html[data-theme="light"] .account-page .business-request-form > p { color: #596367; }
html[data-theme="light"] .account-page .formal-invoice-details summary,
html[data-theme="light"] .account-page .formal-invoice-fields summary { color: #4c5559; }
html[data-theme="light"] .account-page .order-number i { color: #687277; }
html[data-theme="light"] .account-page .quote-progress-labels { color: #596367; }
html[data-theme="light"] .account-page .account-logout { color: #a8171e; }
html[data-theme="light"] .account-page .account-logout:hover { background: #fff1f1; border-color: #edc6c9; }
html[data-theme="light"] .account-page .account-form-grid input,
html[data-theme="light"] .account-page .account-form-grid select,
html[data-theme="light"] .account-page .account-form-grid textarea { border-color: #c8d0d3; color: #202326; }
html[data-theme="light"] .account-page .account-form-grid input::placeholder,
html[data-theme="light"] .account-page .account-form-grid textarea::placeholder { color: #687277; opacity: 1; }

html[data-theme="dark"] .account-page {
  --customer-surface: #1b1e22;
  --customer-raised: #22262a;
  --customer-muted-surface: #25292e;
  --customer-border: #3b4249;
  --customer-text: #edf0f2;
  --customer-muted: #c0c8cf;
  --customer-subtle: #aeb6bd;
  --customer-red: #ff929a;
  --customer-red-surface: #3b272a;
  --customer-green: #a7e0b8;
  --customer-green-surface: #20382b;
  --customer-amber: #f0d69d;
  --customer-amber-surface: #3b3020;
  background: #111315 !important;
  color: var(--customer-text) !important;
}

html[data-theme="dark"] .account-page .preview-notice {
  background: #25292e !important;
  color: #d9dfe3 !important;
  border-bottom: 1px solid #3b4249;
}
html[data-theme="dark"] .account-page .preview-notice a { color: #ff929a !important; }
html[data-theme="dark"] .account-page .account-header,
html[data-theme="dark"] .account-page .site-footer {
  background: #191c20 !important;
  color: #edf0f2 !important;
  border-color: #343a40 !important;
}
html[data-theme="dark"] .account-page .account-header .main-nav a,
html[data-theme="dark"] .account-page .account-help-link { color: #d0d7dc !important; }
html[data-theme="dark"] .account-page .account-help-link { border-color: #3b4249 !important; }
html[data-theme="dark"] .account-page .account-help-link > span:first-child { color: #ff929a !important; }

html[data-theme="dark"] .account-page .account-sidebar,
html[data-theme="dark"] .account-page .account-panel,
html[data-theme="dark"] .account-page .account-subcard,
html[data-theme="dark"] .account-page .account-metric,
html[data-theme="dark"] .account-page .account-order-card,
html[data-theme="dark"] .account-page .quote-card,
html[data-theme="dark"] .account-page .saved-address-card,
html[data-theme="dark"] .account-page .business-benefits > div,
html[data-theme="dark"] .account-page .address-edit-form,
html[data-theme="dark"] .account-page .business-request-form,
html[data-theme="dark"] .account-page .profile-form,
html[data-theme="dark"] .account-page .logout-dialog-card {
  background: var(--customer-surface) !important;
  color: var(--customer-text) !important;
  border-color: var(--customer-border) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
html[data-theme="dark"] .account-page .account-subcard,
html[data-theme="dark"] .account-page .account-metric,
html[data-theme="dark"] .account-page .saved-address-card,
html[data-theme="dark"] .account-page .business-benefits > div { background: var(--customer-raised) !important; }
html[data-theme="dark"] .account-page .quote-reminder-card { background: linear-gradient(140deg, #24272b, #1b1e22) !important; }
html[data-theme="dark"] .account-page .account-panel-heading,
html[data-theme="dark"] .account-page .account-user-card,
html[data-theme="dark"] .account-page .account-order-top,
html[data-theme="dark"] .account-page .quote-card-top,
html[data-theme="dark"] .account-page .order-card-footer,
html[data-theme="dark"] .account-page .saved-address-actions,
html[data-theme="dark"] .account-page .settings-block,
html[data-theme="dark"] .account-page .formal-invoice-details,
html[data-theme="dark"] .account-page .formal-invoice-fields,
html[data-theme="dark"] .account-page .profile-formal-fields { border-color: var(--customer-border) !important; }
html[data-theme="dark"] .account-page .account-user-card b,
html[data-theme="dark"] .account-page .account-panel-heading h2,
html[data-theme="dark"] .account-page .account-metric > b,
html[data-theme="dark"] .account-page .subcard-heading h3,
html[data-theme="dark"] .account-page .account-order-body b,
html[data-theme="dark"] .account-page .account-order-body > strong,
html[data-theme="dark"] .account-page .saved-address-title > b,
html[data-theme="dark"] .account-page .business-benefits b,
html[data-theme="dark"] .account-page .settings-block b,
html[data-theme="dark"] .account-page .account-form-heading b,
html[data-theme="dark"] .account-page .business-request-form h3 { color: var(--customer-text) !important; }

html[data-theme="dark"] .account-page .account-tab {
  color: #d0d7dc !important;
}
html[data-theme="dark"] .account-page .account-tab > span { color: #b7c1c9 !important; }
html[data-theme="dark"] .account-page .account-tab:hover { background: #282c31 !important; color: #fff !important; }
html[data-theme="dark"] .account-page .account-tab.is-active { background: #3b272a !important; color: #ffabb2 !important; }
html[data-theme="dark"] .account-page .account-tab.is-active > span { color: #ff929a !important; }
html[data-theme="dark"] .account-page .account-tab > b { background: #343a40 !important; color: #dce2e6 !important; }
html[data-theme="dark"] .account-page .account-tab > b.tab-alert { background: #3b3020 !important; color: #f0d69d !important; }
html[data-theme="dark"] .account-page .sample-pill { background: #30353a !important; color: #d0d7dc !important; }
html[data-theme="dark"] .account-page .account-status-badge { background: #20382b !important; border-color: #356448 !important; }
html[data-theme="dark"] .account-page .account-status-badge b { color: #b8e8c7 !important; }
html[data-theme="dark"] .account-page .account-status-badge small { color: #a7d2b4 !important; }
html[data-theme="dark"] .account-page .verified-check { background: #20382b !important; color: #a7e0b8 !important; }

html[data-theme="dark"] .account-page .account-eyebrow,
html[data-theme="dark"] .account-page .account-metric > i,
html[data-theme="dark"] .account-page .inline-action,
html[data-theme="dark"] .account-page .saved-address-title > span,
html[data-theme="dark"] .account-page .saved-address-actions button,
html[data-theme="dark"] .account-page .account-file-field > span { color: #ff929a !important; }
html[data-theme="dark"] .account-page .metric-icon.red,
html[data-theme="dark"] .account-page .quote-reminder-icon,
html[data-theme="dark"] .account-page .account-file-field > span { background: #3b272a !important; }
html[data-theme="dark"] .account-page .metric-icon.amber { background: #3b3020 !important; color: #f0d69d !important; }
html[data-theme="dark"] .account-page .metric-icon.green { background: #20382b !important; color: #a7e0b8 !important; }
html[data-theme="dark"] .account-page .order-product-art,
html[data-theme="dark"] .account-page .order-product-art.aa-art {
  background: linear-gradient(145deg, #30363a, #252a2e) !important;
  color: #edf0f2 !important;
}
html[data-theme="dark"] .account-page .order-product-art small { color: #ff929a !important; }

html[data-theme="dark"] .account-page .order-status-tag { background: #20382b !important; color: #a7e0b8 !important; }
html[data-theme="dark"] .account-page .order-status-tag.delivered { background: #28313a !important; color: #c3d2e3 !important; }
html[data-theme="dark"] .account-page .quote-status.pending { background: #3b3020 !important; color: #f0d69d !important; }
html[data-theme="dark"] .account-page .quote-status.approved { background: #20382b !important; color: #a7e0b8 !important; }
html[data-theme="dark"] .account-page .quote-progress > span { background: #343a40 !important; color: #c0c8cf !important; }
html[data-theme="dark"] .account-page .quote-progress > span.is-done { background: #20382b !important; color: #a7e0b8 !important; }
html[data-theme="dark"] .account-page .quote-progress > span.is-current { background: #3b272a !important; color: #ff929a !important; }
html[data-theme="dark"] .account-page .quote-progress > i { background: #454d55 !important; }
html[data-theme="dark"] .account-page .quote-progress > i.is-done { background: #4e8962 !important; }
html[data-theme="dark"] .account-page .approved-quote { border-color: #356448 !important; }
html[data-theme="dark"] .account-page .approved-price-row { border-color: var(--customer-border) !important; }
html[data-theme="dark"] .account-page .quote-payment-choice { background: var(--customer-muted-surface) !important; color: var(--customer-text) !important; }
html[data-theme="dark"] .account-page .quote-payment-choice label,
html[data-theme="dark"] .account-page .settings-checks label { color: #d0d7dc !important; }
html[data-theme="dark"] .account-page .quote-payment-choice input,
html[data-theme="dark"] .account-page .settings-checks input,
html[data-theme="dark"] .account-page .formal-invoice-toggle input { accent-color: #ff737c; }

html[data-theme="dark"] .account-page .account-form-heading small,
html[data-theme="dark"] .account-page .business-request-form > p,
html[data-theme="dark"] .account-page .business-benefits small,
html[data-theme="dark"] .account-page .account-topline p,
html[data-theme="dark"] .account-page .account-user-card small,
html[data-theme="dark"] .account-page .account-metric > small,
html[data-theme="dark"] .account-page .account-order-top small,
html[data-theme="dark"] .account-page .quote-card-top small,
html[data-theme="dark"] .account-page .account-order-body small,
html[data-theme="dark"] .account-page .account-order-body > strong small,
html[data-theme="dark"] .account-page .order-card-footer,
html[data-theme="dark"] .account-page .saved-address-card > small,
html[data-theme="dark"] .account-page .quote-progress-labels,
html[data-theme="dark"] .account-page .account-sample-note,
html[data-theme="dark"] .account-page .settings-block small { color: var(--customer-muted) !important; }
html[data-theme="dark"] .account-page .account-order-body small,
html[data-theme="dark"] .account-page .account-order-top small,
html[data-theme="dark"] .account-page .quote-card-top small,
html[data-theme="dark"] .account-page .saved-address-card > small,
html[data-theme="dark"] .account-page .account-metric > small { font-size: 10px; }
html[data-theme="dark"] .account-page .account-sample-note { font-size: 12px; }
html[data-theme="dark"] .account-page .order-number { color: #edf0f2 !important; }
html[data-theme="dark"] .account-page .order-number i { color: #c0c8cf !important; }
html[data-theme="dark"] .account-page .quote-card > p { color: #d0d7dc !important; }
html[data-theme="dark"] .account-page .approved-price-row small { color: #c0c8cf !important; }
html[data-theme="dark"] .account-page .text-action { color: #d0d7dc !important; }
html[data-theme="dark"] .account-page .business-request-form .field-label,
html[data-theme="dark"] .account-page .profile-form .field-label,
html[data-theme="dark"] .account-page .address-edit-form .field-label,
html[data-theme="dark"] .account-page .formal-invoice-toggle { color: #d1d8dd !important; }
html[data-theme="dark"] .account-page .formal-invoice-details summary,
html[data-theme="dark"] .account-page .formal-invoice-fields summary { color: #d0d7dc !important; }
html[data-theme="dark"] .account-page .account-form-grid input,
html[data-theme="dark"] .account-page .account-form-grid select,
html[data-theme="dark"] .account-page .account-form-grid textarea {
  background: #121416 !important;
  border-color: #454d55 !important;
  color: #edf0f2 !important;
}
html[data-theme="dark"] .account-page .account-form-grid input::placeholder,
html[data-theme="dark"] .account-page .account-form-grid textarea::placeholder { color: #aeb6bd !important; opacity: 1; }
html[data-theme="dark"] .account-page .account-form-grid input[readonly] { background: #202428 !important; color: #c0c8cf !important; }
html[data-theme="dark"] .account-page .account-form-grid option { background: #121416; color: #edf0f2; }
html[data-theme="dark"] .account-page .account-form-grid input:focus,
html[data-theme="dark"] .account-page .account-form-grid select:focus,
html[data-theme="dark"] .account-page .account-form-grid textarea:focus { border-color: #ff737c !important; box-shadow: 0 0 0 3px rgba(255, 115, 124, .18) !important; }
html[data-theme="dark"] .account-page .map-pin-action { background: #25292e !important; border-color: #454d55 !important; color: #e2e7ea !important; }
html[data-theme="dark"] .account-page .map-pin-action span:first-child { color: #ff929a !important; }
html[data-theme="dark"] .account-page .account-file-field { background: #202428 !important; border-color: #59636a !important; color: #d0d7dc !important; }
html[data-theme="dark"] .account-page .account-file-field input { color: #c0c8cf !important; }
html[data-theme="dark"] .account-page .account-file-field input::file-selector-button { background: #343a40; border: 1px solid #59636a; border-radius: 5px; color: #edf0f2; padding: 5px 8px; }
html[data-theme="dark"] .account-page .account-action-button { background: #c91c24 !important; color: #fff !important; }
html[data-theme="dark"] .account-page .account-action-button:hover { background: #a8171e !important; }
html[data-theme="dark"] .account-page .account-logout { background: #25292e !important; border-color: #454d55 !important; color: #ffabb2 !important; }
html[data-theme="dark"] .account-page .account-logout:hover { background: #3b272a !important; border-color: #704045 !important; }
html[data-theme="dark"] .account-page .account-logout > span:first-child { background: #3b272a !important; color: #ff929a !important; }

html[data-theme="light"] .account-page .logout-dialog { color-scheme: light; }
html[data-theme="light"] .account-page .logout-dialog-card { background: #fff; color: #202326; border: 1px solid #dfe3e5; border-radius: 14px; box-shadow: 0 18px 55px rgba(18, 24, 28, .18); }
html[data-theme="dark"] .account-page .logout-dialog { color-scheme: dark; }
html[data-theme="dark"] .account-page .logout-dialog-card { background: #1b1e22; color: #edf0f2; border: 1px solid #3b4249; }
.account-page .logout-dialog { max-width: min(460px, calc(100vw - 28px)); padding: 0; border: 0; background: transparent; }
.account-page .logout-dialog::backdrop { background: rgba(12, 16, 19, .58); }
.account-page .logout-dialog-card { padding: 25px; text-align: center; }
.account-page .logout-dialog-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 13px; border-radius: 12px; background: #fff0f0; color: #c91c24; font-size: 22px; }
.account-page .logout-dialog-card h2 { margin: 7px 0; font-size: 19px; }
.account-page .logout-dialog-card p { color: #596367; line-height: 1.8; }
.account-page .logout-dialog-actions { display: flex; justify-content: center; gap: 9px; margin-top: 18px; }
.account-page .logout-dialog-actions button { min-height: 42px; padding: 0 15px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.account-page .logout-cancel { border: 1px solid #c8d0d3; background: #fff; color: #3e474b; }
.account-page .logout-confirm { border: 1px solid #c91c24; background: #c91c24; color: #fff; }
html[data-theme="dark"] .account-page .logout-dialog-card p { color: #c0c8cf !important; }
html[data-theme="dark"] .account-page .logout-dialog-icon { background: #3b272a; color: #ff929a; }
html[data-theme="dark"] .account-page .logout-cancel { border-color: #454d55; background: #25292e; color: #edf0f2; }
html[data-theme="dark"] .account-page .logout-confirm { border-color: #c91c24; background: #c91c24; color: #fff; }

html[data-theme="dark"] .account-page .toast { background: #25292e !important; color: #edf0f2 !important; border: 1px solid #454d55; }
.account-page :where(button, a, input, select, textarea, summary):focus-visible { outline: 3px solid rgba(217, 31, 40, .48); outline-offset: 2px; }
html[data-theme="dark"] .account-page :where(button, a, input, select, textarea, summary):focus-visible { outline-color: #ff929a; }
.account-page :where(button, input, select, textarea):disabled { cursor: not-allowed; opacity: .62; }

/* The customer sign-in, registration and password recovery screens use the same theme choice. */
html[data-theme="light"] body:has(.login-card) { color-scheme: light; background: radial-gradient(circle at 18% 12%, #fff 0, #f3f4f4 46%, #eceeef 100%); color: #202326; }
html[data-theme="dark"] body:has(.login-card) { color-scheme: dark; background: radial-gradient(circle at 18% 12%, #262a2e 0, #171a1d 46%, #111315 100%) !important; color: #edf0f2 !important; }
html[data-theme="dark"] body:has(.login-card) .login-card,
html[data-theme="dark"] body:has(.login-card) .form-side { background: #1b1e22 !important; border-color: #3b4249 !important; color: #edf0f2 !important; }
html[data-theme="dark"] body:has(.login-card) .welcome { background: #171a1d !important; color: #f1f3f5 !important; }
html[data-theme="dark"] body:has(.login-card) .welcome p,
html[data-theme="dark"] body:has(.login-card) .benefit small { color: #c0c8cf !important; }
html[data-theme="dark"] body:has(.login-card) .benefit i { background: #30353a !important; color: #ff929a !important; }
html[data-theme="dark"] body:has(.login-card) .intro,
html[data-theme="dark"] body:has(.login-card) .hint { color: #c0c8cf !important; }
html[data-theme="dark"] body:has(.login-card) .demo-note { background: #3b3020 !important; border-color: #62502e !important; color: #f0d69d !important; }
html[data-theme="dark"] body:has(.login-card) .method-tabs { background: #25292e !important; }
html[data-theme="dark"] body:has(.login-card) .method-tabs button { color: #d0d7dc !important; }
html[data-theme="dark"] body:has(.login-card) .method-tabs button.active { background: #3b272a !important; color: #ffabb2 !important; box-shadow: none; }
html[data-theme="dark"] body:has(.login-card) .field > span,
html[data-theme="dark"] body:has(.login-card) .form-footer,
html[data-theme="dark"] body:has(.login-card) .form-footer label { color: #edf0f2 !important; }
html[data-theme="dark"] body:has(.login-card) .field input,
html[data-theme="dark"] body:has(.login-card) .field select { background: #121416 !important; border-color: #454d55 !important; color: #edf0f2 !important; }
html[data-theme="dark"] body:has(.login-card) .field input::placeholder { color: #aeb6bd !important; opacity: 1; }
html[data-theme="dark"] body:has(.login-card) .toggle-password,
html[data-theme="dark"] body:has(.login-card) .secondary { background: #30353a !important; border-color: #59636a !important; color: #edf0f2 !important; }
html[data-theme="dark"] body:has(.login-card) .text-link { color: #ff929a !important; }
html[data-theme="dark"] body:has(.login-card) .form-error { color: #ff9da4 !important; }
html[data-theme="dark"] body:has(.login-card) .separator { color: #b7c1c9 !important; }
html[data-theme="dark"] body:has(.login-card) .separator::before,
html[data-theme="dark"] body:has(.login-card) .separator::after { background: #3b4249 !important; }
html[data-theme="dark"] body:has(.login-card) .checkout-note { background: #25292e !important; border-color: #3b4249 !important; color: #d0d7dc !important; }
html[data-theme="dark"] body:has(.login-card) .checkout-note b { color: #edf0f2 !important; }
html[data-theme="dark"] body:has(.login-card) .checkout-note a { color: #ff929a !important; }
html[data-theme="dark"] body:has(.login-card) .success-icon { background: #20382b !important; color: #a7e0b8 !important; }
html[data-theme="dark"] body:has(.login-card) .success p { color: #c0c8cf !important; }
html[data-theme="dark"] body:has(.login-card) .toast { background: #25292e !important; border: 1px solid #454d55; color: #edf0f2 !important; }
html[data-theme="dark"] body:has(.login-card) :where(input, select, button):focus-visible { outline: 3px solid #ff929a; outline-offset: 2px; }

@media (max-width: 560px) {
  .account-page .logout-dialog-actions { flex-direction: column; }
  .account-page .logout-dialog-actions button { width: 100%; }
}
