/* General customer cabinet and real header account forms. */
.customer-page,
.customer-auth {
  --customer-bg: var(--b2b-shell-bg, #fff);
  --customer-text: var(--b2b-shell-text, #182128);
  --customer-muted: var(--b2b-shell-muted, #58636d);
  --customer-line: var(--b2b-shell-line, #d5dde3);
  --customer-surface: var(--b2b-shell-alt, #f3f6f8);
  --customer-accent: var(--b2b-shell-accent, #d63819);
  color: var(--customer-text);
}
.customer-page { padding: clamp(28px, 5vw, 64px) 0 80px; }
.customer-wrap { width: min(100% - 40px, 1180px); margin-inline: auto; }
.customer-page__heading { max-width: 800px; margin-bottom: 30px; }
.customer-page__heading h1, .customer-auth h1 { margin: 4px 0 10px; font-family: var(--f-head, inherit); font-size: clamp(32px, 4vw, 46px); line-height: 1.08; letter-spacing: -.025em; }
.customer-page__heading > p:last-child, .customer-auth__lead { max-width: 680px; margin: 0; color: var(--customer-muted); font-size: 16px; line-height: 1.6; }
.customer-eyebrow { margin: 0 0 7px; color: var(--customer-muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.customer-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); align-items: start; gap: 22px; }
.customer-sidebar, .customer-card, .customer-help-card { border: 1px solid var(--customer-line); border-radius: 5px; background: var(--customer-bg); }
.customer-sidebar { position: sticky; top: 150px; padding: 18px; }
.customer-sidebar__identity { display: flex; align-items: center; gap: 12px; padding: 4px 0 19px; border-bottom: 1px solid var(--customer-line); }
.customer-avatar { width: 42px; height: 42px; display: grid; flex: 0 0 42px; place-items: center; color: #fff; background: var(--customer-accent); border-radius: 50%; font-size: 18px; font-weight: 750; }
.customer-sidebar__identity div { min-width: 0; display: grid; gap: 4px; }
.customer-sidebar__identity strong, .customer-sidebar__identity span:not(.customer-avatar) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-sidebar__identity strong { font-size: 14px; }
.customer-sidebar__identity div span { color: var(--customer-muted); font-size: 12px; }
.customer-nav { display: grid; gap: 4px; padding: 15px 0; }
.customer-nav a { padding: 11px 12px; color: var(--customer-muted); border-radius: 4px; font-size: 14px; font-weight: 650; }
.customer-nav a:hover, .customer-nav a[aria-current="page"] { color: var(--customer-text); background: var(--customer-surface); }
.customer-nav a[aria-current="page"] { box-shadow: inset 3px 0 var(--customer-accent); }
.customer-sidebar__logout { border-top: 1px solid var(--customer-line); padding-top: 14px; }
.customer-sidebar__logout button, .customer-auth__logout button { padding: 0; color: var(--customer-muted); background: none; border: 0; font: inherit; font-size: 13px; cursor: pointer; }
.customer-sidebar__logout button:hover, .customer-auth__logout button:hover { color: var(--customer-accent); }
.customer-content { min-width: 0; display: grid; gap: 18px; }
.customer-card { padding: clamp(18px, 3vw, 26px); }
.customer-card__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.customer-card__heading h2, .customer-help-card h2 { margin: 0; font-family: var(--f-head, inherit); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; }
.customer-count { min-width: 38px; height: 38px; display: grid; place-items: center; padding-inline: 9px; color: var(--customer-accent); background: color-mix(in srgb, var(--customer-accent) 10%, var(--customer-bg)); border-radius: 50px; font-size: 14px; font-weight: 800; }
.customer-empty { display: flex; flex-direction: column; align-items: flex-start; padding: 22px 0 8px; border-top: 1px solid var(--customer-line); }
.customer-empty__icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 12px; color: var(--customer-accent); background: var(--customer-surface); border-radius: 50%; font-size: 22px; }
.customer-empty h3 { margin: 0 0 8px; font-size: 18px; }
.customer-empty p { max-width: 650px; margin: 0 0 18px; color: var(--customer-muted); font-size: 14px; line-height: 1.6; }
.customer-request-list { border-top: 1px solid var(--customer-line); }
.customer-request-row { min-height: 76px; display: grid; grid-template-columns: 64px minmax(0, 1fr) 28px; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--customer-line); }
.customer-request-row:hover .customer-request-row__main strong, .customer-inline-link:hover, .customer-card__footer a:hover { color: var(--customer-accent); }
.customer-request-row__id { color: var(--customer-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.customer-request-row__main { min-width: 0; display: grid; gap: 5px; }
.customer-request-row__main strong { overflow: hidden; color: var(--customer-text); font-size: 14px; text-overflow: ellipsis; }
.customer-request-row__main small { color: var(--customer-muted); font-size: 12px; }
.customer-request-row__arrow { color: var(--customer-accent); text-align: right; }
.customer-card__footer { padding-top: 17px; text-align: right; }
.customer-card__footer a, .customer-inline-link { color: var(--customer-text); font-size: 13px; font-weight: 750; }
.customer-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 0; }
.customer-summary-grid div { min-width: 0; }
.customer-summary-grid dt { margin-bottom: 5px; color: var(--customer-muted); font-size: 12px; }
.customer-summary-grid dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; }
.customer-help-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; background: var(--customer-surface); }
.customer-help-card h2 { font-size: 20px; }
.customer-help-card p:not(.customer-eyebrow) { margin: 7px 0 0; color: var(--customer-muted); font-size: 13px; line-height: 1.5; }
.customer-help-card > a { flex: 0 0 auto; color: var(--customer-accent); font-size: 14px; font-weight: 750; }
.customer-form { display: grid; gap: 16px; }
.customer-form--profile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.customer-form--password { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.customer-field { min-width: 0; display: grid; align-content: start; gap: 7px; color: var(--customer-text); font-size: 13px; font-weight: 700; }
.customer-field > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; }
.customer-field small { color: var(--customer-muted); font-size: 11px; font-weight: 450; }
.customer-field input, .customer-field select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; color: var(--customer-text); background: var(--customer-bg); border: 1px solid var(--customer-line); border-radius: 4px; font: inherit; font-size: 15px; }
.customer-field input[readonly] { color: var(--customer-muted); background: var(--customer-surface); }
.customer-field input:focus, .customer-field select:focus { outline: 2px solid var(--customer-accent); outline-offset: 1px; }
.customer-org-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px; background: var(--customer-surface); border: 1px solid var(--customer-line); border-radius: 4px; }
.customer-org-fields[hidden] { display: none; }
.customer-form__actions { grid-column: 1 / -1; display: flex; justify-content: flex-start; padding-top: 2px; }
.customer-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 11px 18px; border: 1px solid transparent; border-radius: 4px; font: inherit; font-size: 14px; font-weight: 750; text-align: center; cursor: pointer; }
.customer-button--primary { color: #fff; background: var(--customer-accent); }
.customer-button--primary:hover { filter: brightness(.92); }
.customer-button--secondary { color: var(--customer-text); background: var(--customer-surface); border-color: var(--customer-line); }
.customer-button--secondary:hover { border-color: var(--customer-accent); }
.customer-check { display: flex; align-items: flex-start; gap: 9px; color: var(--customer-muted); font-size: 13px; line-height: 1.45; }
.customer-check input { width: 17px; height: 17px; flex: 0 0 17px; margin: 1px 0 0; accent-color: var(--customer-accent); }
.customer-alert { margin-bottom: 16px; padding: 13px 15px; border: 1px solid var(--customer-line); border-radius: 4px; font-size: 13px; line-height: 1.5; }
.customer-alert ul { margin: 7px 0 0; padding-left: 20px; }
.customer-alert--success { color: var(--customer-text); background: var(--customer-surface); border-left: 3px solid #23804e; }
.customer-alert--error { color: var(--customer-text); background: color-mix(in srgb, var(--customer-accent) 7%, var(--customer-bg)); border-left: 3px solid var(--customer-accent); }
.customer-back-link { display: inline-block; margin-bottom: 14px; color: var(--customer-muted); font-size: 13px; font-weight: 650; }
.customer-back-link:hover, .customer-auth a:hover { color: var(--customer-accent); }
.customer-request-detail__message { margin: 0 0 22px; padding: 16px; background: var(--customer-surface); border-radius: 4px; }
.customer-request-detail__message h3 { margin: 0 0 8px; font-size: 14px; }
.customer-request-detail__message p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.65; }
.customer-request-status { flex: 0 0 auto; padding: 8px 11px; color: var(--customer-text); background: var(--customer-surface); border: 1px solid var(--customer-line); border-radius: 4px; font-size: 12px; font-weight: 700; }
.customer-request-detail__section { margin-top: 22px; padding-top: 19px; border-top: 1px solid var(--customer-line); }
.customer-request-detail__section h3 { margin: 0 0 15px; font-family: var(--f-head, inherit); font-size: 17px; }
.customer-request-items { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.customer-request-items li { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--customer-line); }
.customer-request-items__main { min-width: 0; display: grid; gap: 5px; }
.customer-request-items__main strong { overflow-wrap: anywhere; font-size: 14px; }
.customer-request-items__main small, .customer-request-items__quantity { color: var(--customer-muted); font-size: 12px; }
.customer-request-items__quantity { flex: 0 0 auto; }
.customer-email-warning { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 16px 18px; background: color-mix(in srgb, var(--customer-accent) 7%, var(--customer-bg)); border: 1px solid color-mix(in srgb, var(--customer-accent) 30%, var(--customer-line)); border-radius: 5px; }
.customer-email-warning__badge { padding: 6px 9px; color: var(--customer-accent); background: var(--customer-bg); border: 1px solid var(--customer-line); border-radius: 4px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.customer-email-warning h2 { margin: 0; font-size: 16px; }
.customer-email-warning p { margin: 4px 0 0; color: var(--customer-muted); font-size: 12px; line-height: 1.45; }
.customer-email-warning > a { color: var(--customer-accent); font-size: 13px; font-weight: 750; }
.customer-dashboard-actions { display: flex; align-items: center; gap: 18px; }
.customer-dashboard-actions__help { color: var(--customer-muted); font-size: 13px; font-weight: 700; }
.customer-dashboard-actions__help:hover { color: var(--customer-accent); }
.customer-verify-dashboard { width: 100%; margin-top: 12px; }
.customer-pagination { padding-top: 18px; }
.customer-pagination nav { display: flex; justify-content: center; }
.customer-auth { min-height: 58vh; display: grid; place-items: center; padding: 42px 20px 72px; }
.customer-auth__card { width: min(100%, 480px); padding: clamp(22px, 5vw, 38px); border: 1px solid var(--customer-line); border-radius: 5px; background: var(--customer-bg); box-shadow: 0 20px 55px rgb(0 0 0 / 7%); }
.customer-consent-page { align-items: start; }
.customer-consent-page__card { width: min(100%, 860px); }
.customer-consent-page__paragraph { margin: 0 0 15px; color: var(--customer-text); font-size: 15px; line-height: 1.7; }
.customer-consent-page__version { margin: 24px 0 0; padding-top: 14px; color: var(--customer-muted); border-top: 1px solid var(--customer-line); font-size: 12px; }
.customer-auth__card--wide { width: min(100%, 620px); }
.customer-auth__back { display: inline-block; margin-bottom: 25px; color: var(--customer-muted); font-size: 13px; }
.customer-auth__lead { margin: 0 0 22px; font-size: 14px; }
.customer-auth__links, .customer-auth__foot { display: flex; justify-content: space-between; gap: 14px; margin: 20px 0 0; color: var(--customer-muted); font-size: 13px; }
.customer-auth__links a, .customer-auth__foot a { color: var(--customer-text); font-weight: 700; }
.customer-auth__foot { justify-content: flex-start; }
.customer-auth__logout { margin-top: 20px; text-align: center; }
.customer-auth .customer-form { margin-top: 18px; }
.customer-auth .customer-button { width: 100%; }
.customer-auth .customer-org-fields { margin-inline: -1px; }
.customer-form .consent-field, .customer-form .consent-policy-note { grid-column: 1 / -1; }
.customer-form .consent-policy-note { margin: -7px 0 0; color: var(--customer-muted); font-size: 12px; line-height: 1.5; }
.customer-form .consent-field { display: flex; align-items: flex-start; gap: 9px; color: var(--customer-muted); font-size: 12px; line-height: 1.5; }
.customer-form .consent-field input { width: 17px; height: 17px; flex: 0 0 17px; margin: 1px 0 0; accent-color: var(--customer-accent); }
.customer-form .consent-field label { margin: 0; }
.b2b-account__form .customer-field { display: grid; gap: 6px; }
.b2b-account__form .customer-field input, .b2b-account__form .customer-field select { width: 100%; min-height: 44px; padding: 9px 11px; color: var(--b2b-shell-text); background: var(--b2b-shell-bg); border: 1px solid var(--b2b-shell-line); border-radius: 4px; font: inherit; font-size: 15px; }
.b2b-account__form .customer-org-fields:not([hidden]) { display: grid; gap: 13px; }
.b2b-account__form .customer-org-fields { padding: 12px; background: var(--b2b-shell-alt); border: 1px solid var(--b2b-shell-line); border-radius: 4px; }
.b2b-account__form .customer-field small { color: var(--b2b-shell-muted); font-size: 11px; font-weight: 450; }
.b2b-account__form .consent-field { display: flex; gap: 9px; align-items: flex-start; color: var(--b2b-shell-muted); font-size: 12px; font-weight: 450; line-height: 1.5; }
.b2b-account__form .consent-field input { width: 17px; height: 17px; flex: 0 0 17px; margin: 1px 0 0; accent-color: var(--b2b-shell-accent); }
.b2b-account__form .consent-field label { display: inline; font-size: inherit; font-weight: inherit; line-height: inherit; }
.b2b-account__form .consent-policy-note { margin: -6px 0 0; color: var(--b2b-shell-muted); font-size: 11px; line-height: 1.45; }
.b2b-account__form .consent-policy-note a, .b2b-account__form .consent-field a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.b2b-account__submit { min-height: 46px; margin-top: 5px; color: #fff; background: var(--b2b-shell-accent); border: 0; border-radius: 4px; font: inherit; font-weight: 750; cursor: pointer; }
.b2b-account__submit:hover { filter: brightness(.93); }
.b2b-account__link { color: var(--b2b-shell-muted); font-size: 13px; text-align: center; }
.b2b-account__note { margin: 4px 0 0; padding: 10px 12px; color: var(--b2b-shell-muted); background: var(--b2b-shell-alt); border-left: 3px solid var(--b2b-shell-accent); font-size: 12px; line-height: 1.5; }
.b2b-account__note a { color: var(--b2b-shell-text); font-weight: 700; }
.b2b-account__panel:has([data-account-panel="register"]:not([hidden])) { width: min(540px, 100%); }
@media (max-width: 840px) {
  .customer-layout { grid-template-columns: 1fr; }
  .customer-sidebar { position: static; padding: 14px; }
  .customer-sidebar__identity { padding-bottom: 12px; }
  .customer-nav { display: flex; flex-wrap: wrap; padding: 10px 0; }
  .customer-nav a { flex: 1 1 auto; text-align: center; }
  .customer-nav a[aria-current="page"] { box-shadow: inset 0 -3px var(--customer-accent); }
  .customer-sidebar__logout { padding-top: 11px; }
}
@media (max-width: 560px) {
  .customer-wrap { width: min(100% - 28px, 1180px); }
  .customer-page { padding-top: 28px; }
  .customer-form--profile, .customer-form--password, .customer-org-fields { grid-template-columns: 1fr; }
  .customer-summary-grid { grid-template-columns: 1fr; gap: 14px; }
  .customer-help-card { align-items: flex-start; flex-direction: column; gap: 14px; padding: 18px; }
  .customer-request-row { grid-template-columns: 48px minmax(0, 1fr) 18px; gap: 9px; }
  .customer-request-row__main strong { font-size: 13px; }
  .customer-card__heading { align-items: flex-start; }
  .customer-auth { padding-inline: 14px; }
  .customer-auth__links { flex-direction: column; }
  .customer-org-fields { padding: 12px; }
  .customer-email-warning { grid-template-columns: 1fr; align-items: start; gap: 10px; }
  .customer-dashboard-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .customer-dashboard-actions__help { text-align: center; }
  .customer-request-items li { align-items: flex-start; flex-direction: column; gap: 7px; }
  .customer-request-status { padding: 6px 8px; font-size: 11px; }
}
@media (prefers-reduced-motion: no-preference) {
  .customer-button, .customer-nav a, .customer-request-row { transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
}
