/*
 * Page styles for the catalogue, cart, checkout and status pages.
 *
 * Loaded before nx.css, which holds the storefront look and must keep the last
 * word on anything the two both define — the same order the stylesheets were
 * stacked in before the move to CakePHP.
 */

/* ============================== catalogue ============================== */

/* ==========================================================================
   Catalogue, product detail and content pages (Phase 2 of the migration).
   Built on the token set in globals.css so the ported pages match the
   marketing pages rather than introducing a second visual language.
   ========================================================================== */

.page-head { margin-bottom: 24px; }
.page-head h1, .page-head h2 { font-family: var(--font-display); margin: 0 0 8px; }
.page-head a { color: var(--c-p1a); text-decoration: underline; font-size: 14px; }

.breadcrumb { font-size: 14px; color: var(--c-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--c-p1a); text-decoration: underline; }

/* --------------------------------------------------------------- chip row */

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }

.chip {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  background: var(--c-n3);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.chip:hover { border-color: var(--c-p1); }
.chip.is-active { background: var(--c-p1); border-color: var(--c-p1); color: #fff; }

/* ---------------------------------------------------------- product cards */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--c-n3);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.product-card-media { display: block; aspect-ratio: 4 / 3; background: var(--c-n1); }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; }

.product-card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }

.product-card-category {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-muted);
}

.product-card-title { margin: 0; font-size: 17px; font-family: var(--font-display); }
.product-card-title a { text-decoration: none; }
.product-card-title a:hover { color: var(--c-p1a); }

.product-card-desc {
  margin: 0;
  font-size: 14px;
  color: var(--c-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price { margin: auto 0 0; font-weight: 700; font-size: 18px; }
.product-card-from { font-size: 12px; font-weight: 500; color: var(--c-muted); }
.product-card-quote { font-size: 14px; font-weight: 600; color: var(--c-p1a); }

/* --------------------------------------------------------- product detail */

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) { .product-detail-grid { grid-template-columns: 1fr; } }

.product-detail-media {
  background: var(--c-n3);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-detail-media img { width: 100%; height: auto; }
.product-detail-info h1 { font-family: var(--font-display); margin: 0 0 8px; font-size: 30px; }
.product-detail-lead { color: var(--c-muted); margin: 0 0 20px; }

.product-detail-from {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 20px;
}

.product-detail-from strong {
  font-family: var(--font-display);
  font-size: 28px;
}

body.build-wizard-open { overflow: hidden; }

/* Paired with .modal-backdrop for the same load-order reason as the dialog. */
.modal-backdrop.build-wizard-backdrop {
  z-index: 90;
  padding: 16px;
}

/*
 * `.modal` in nx.css caps every modal at 460px, and nx.css is loaded after this
 * file, so a bare `.build-wizard` selector loses on equal specificity. Pairing
 * the two classes is what actually makes the wizard wider than a phone column.
 */
.modal.build-wizard {
  width: min(100%, 1080px);
  max-height: min(92vh, 860px);
  padding: 32px 40px 24px;
}

.build-wizard-head {
  margin-bottom: 28px;
}

.build-wizard-kicker {
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.build-wizard h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
}

.build-wizard-step-label {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-n4);
  line-height: 1.4;
}

.build-wizard-progress {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0 0 8px;
  overflow-x: auto;
}

.build-wizard-progress-item {
  flex: 1 1 0;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: var(--c-muted);
}

.build-wizard-progress-item span {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1.5px solid var(--c-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  background: #fff;
}

.build-wizard-progress-item small {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.build-wizard-progress-item.is-active { color: var(--c-p1a); }
.build-wizard-progress-item.is-active small { font-weight: 800; }
.build-wizard-progress-item.is-active span,
.build-wizard-progress-item.is-done span {
  background: var(--c-p1a);
  border-color: var(--c-p1a);
  color: #fff;
}

.build-wizard-panels {
  min-height: 240px;
  padding-top: 4px;
}
.build-wizard-panel[hidden] { display: none !important; }

.build-wizard .card,
.build-wizard .variant-picker-card .card {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
}

.build-wizard .card-body { padding: 0 !important; }
.build-wizard .size-guide { margin-top: 0; }
.build-wizard .mt-4 { margin-top: 0 !important; }
.build-wizard .configurator { padding: 0; background: transparent; box-shadow: none; border: 0; }

.build-wizard .variant-picker-card h3 {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 800;
}

.build-wizard .variant-picker-card .mb-4 { margin-bottom: 24px !important; }

.build-wizard .variant-picker-card .mb-4 > .small,
.build-wizard .variant-picker-card .mb-4 > .text-muted {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-muted);
}

.build-wizard .variant-picker-card .variant-price {
  font-size: 30px;
  font-weight: 800;
  color: var(--c-p1a);
}

.build-wizard .variant-picker-card .fw-semibold {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 800;
  text-transform: capitalize;
}

.build-wizard .variant-picker-card .option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.build-wizard .variant-picker-card .card-body > .small.text-muted {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.build-wizard .option-button {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-line);
  background: var(--c-n1);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.build-wizard .option-button.active,
.build-wizard .option-button.btn-primary {
  background: var(--c-p1);
  border-color: var(--c-p1);
  color: #fff;
}

.build-wizard .option-button:hover:not(:disabled) { border-color: var(--c-n4); }

/*
 * The value picked in each row — the quantity above all. The picker marked it
 * with .is-selected but nothing styled that class, so "3,000" looked like
 * every other quantity. A thick black border, as the client asked for; the
 * inset shadow thickens the 1px border to 3px without resizing the button, so
 * the row does not shift when a value is picked.
 */
.build-wizard .option-button.is-selected {
  border-color: #000;
  box-shadow: inset 0 0 0 2px #000;
  background: var(--c-n3);
  color: #000;
}

.build-wizard .option-button:focus-visible {
  outline: 2px solid var(--c-p1);
  outline-offset: 2px;
}

/* No variant has this value with the rest of the selection. */
.build-wizard .option-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.build-wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}

.build-wizard-nav .btn {
  min-width: 132px;
  font-weight: 700;
}

/* --------------------------- build wizard: the steps after "Choose options"
 *
 * These panels were written against Bootstrap, but the storefront layout loads
 * nx-app, nx and nx-toast only. Every d-flex, w-100, rounded-4, small and
 * fw-semibold in them resolved to nothing, which is why the artwork step
 * rendered as a run of unstyled text with a raw file input sitting in the middle
 * of it. Below are the handful of utilities those panels actually use, scoped to
 * the wizard so they cannot leak into the rest of the site.
 */

.build-wizard .d-none { display: none !important; }
.build-wizard .d-flex { display: flex; }
.build-wizard .flex-column { flex-direction: column; }
.build-wizard .align-items-center { align-items: center; }
.build-wizard .justify-content-between { justify-content: space-between; }
.build-wizard .text-center { text-align: center; }
.build-wizard .w-100 { width: 100%; }
.build-wizard .gap-2 { gap: 8px; }
.build-wizard .ms-auto { margin-left: auto; }
.build-wizard .mb-1 { margin-bottom: 4px; }
.build-wizard .mb-2 { margin-bottom: 8px; }
.build-wizard .mb-3 { margin-bottom: 14px; }
.build-wizard .my-2 { margin: 14px 0; }
.build-wizard .small { font-size: 13px; }
.build-wizard .fw-semibold { font-weight: 650; }
.build-wizard .fw-bold { font-weight: 800; }
.build-wizard .fs-5 { font-size: 20px; }
.build-wizard .text-muted { color: var(--c-muted); }
.build-wizard .text-primary { color: var(--c-p1a); }

.build-wizard h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 800;
  color: var(--c-n4);
  margin: 0 0 16px;
}

.build-wizard hr { border: 0; border-top: 1px solid var(--c-line); }

/* ------------------------------------------------ artwork step */

.build-wizard .artwork-hints {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-muted);
}

/* The dialog is wide enough to read three short hints side by side. */
@media (min-width: 861px) {
  .build-wizard .artwork-hints { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 28px; }
}

.build-wizard .artwork-hints li { position: relative; padding-left: 18px; }

.build-wizard .artwork-hints li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-p1);
}

/*
 * Visually hidden rather than display:none, so a label click reliably opens the
 * file picker and the input stays reachable by keyboard.
 */
.build-wizard .artwork-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.build-wizard .artwork-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 176px;
  padding: 30px 24px;
  text-align: center;
  border: 2px dashed var(--c-line);
  border-radius: var(--radius);
  background: var(--c-n1);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.build-wizard .artwork-drop-zone:hover,
.build-wizard .artwork-drop-zone.drag-over {
  border-color: var(--c-p1);
  background: rgba(1, 171, 157, 0.07);
}

.build-wizard .artwork-drop-zone:focus-within {
  outline: 2px solid var(--c-p1);
  outline-offset: 3px;
}

.build-wizard .artwork-drop-icon { width: 34px; height: 34px; color: var(--c-p1a); }
.build-wizard .artwork-drop-title { font-size: 15px; font-weight: 700; color: var(--c-n4); }
.build-wizard .artwork-drop-meta { font-size: 13px; color: var(--c-muted); }

.build-wizard .artwork-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-n1);
  font-size: 14px;
  color: var(--c-muted);
}

/* Needed because the rule above would otherwise beat the attribute's own
   display:none and the row would show before a file is chosen. */
.build-wizard .artwork-progress[hidden] { display: none; }

.build-wizard .artwork-spinner {
  flex: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--c-line);
  border-top-color: var(--c-p1);
  border-radius: 50%;
  animation: artwork-spin 0.7s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .build-wizard .artwork-spinner { animation: none; }
}

/* ------------------------------------------------ add-to-cart step */

/*
 * A price summary and one button do not want to be 1080px wide, so this panel
 * keeps a readable measure and sits in the middle of the dialog.
 */
.build-wizard .build-wizard-panel[data-step-id="order"] > .card {
  max-width: 520px;
  margin: 0 auto;
}

.build-wizard #price-calculator {
  padding: 18px 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-n1);
}

.build-wizard #calc-total { color: var(--c-p1a) !important; }

/* ------------------------------------------------ add-ons step */

/*
 * .addon-toggle already has a full set of styles further down this file, keyed
 * on the `selected` class the add-to-cart script actually toggles. Nothing is
 * restyled here on purpose - a `.build-wizard .addon-toggle` rule would outrank
 * those and break the selected state. Only the wide layout is added.
 */
@media (min-width: 861px) {
  .build-wizard #addons-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
  .build-wizard #addons-section > div:first-child { grid-column: 1 / -1; }
  .build-wizard #addons-section > .addons-total,
  .build-wizard #addons-section > .special-instructions { grid-column: 1 / -1; }
}

/*
 * Special instructions close the add-ons step, once the extras are chosen
 * (client feedback, 03/10), and read back on the review as they were typed.
 */
.build-wizard .special-instructions { margin: 12px 0 0; }
.build-wizard #review-notes { white-space: pre-line; overflow-wrap: anywhere; }

/* -------------------------------------------- build wizard: wide + mobile */

/*
 * The dialog is wider than it used to be, so the option groups run two across
 * instead of one per row down a narrow column. Widening it on its own only
 * bought whitespace - the picker still stacked everything vertically.
 */
@media (min-width: 861px) {
  .build-wizard .variant-picker-card .card-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    align-items: start;
  }

  .build-wizard .variant-picker-card .card-body > h3,
  .build-wizard .variant-picker-card .variant-price-block,
  .build-wizard .variant-picker-card .variant-picker-note {
    grid-column: 1 / -1;
  }
}

/*
 * Tablet and below: back to a single column, and the dialog gives its padding
 * back to the content. There was no responsive rule here at all, so the wizard
 * kept desktop padding on a phone and the panels were squeezed into what was
 * left.
 */
@media (max-width: 860px) {
  .modal.build-wizard {
    width: 100%;
    max-height: 94vh;
    padding: 24px 20px 20px;
  }

  .build-wizard h2 { font-size: 24px; }
  .build-wizard-head { margin-bottom: 20px; }
  .build-wizard-progress { gap: 10px; margin-bottom: 24px; }
  .build-wizard-progress-item { min-width: 64px; }
  .build-wizard-progress-item small { font-size: 11px; }
}

/*
 * Phone: the wizard becomes a full-height sheet. A centred box with margins on
 * a 375px screen left the option buttons about two words wide.
 */
@media (max-width: 560px) {
  .modal-backdrop.build-wizard-backdrop { padding: 0; align-items: stretch; }

  .modal.build-wizard {
    width: 100%;
    max-width: none;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
    padding: 20px 16px 16px;
    overflow-y: auto;
  }

  .build-wizard h2 { font-size: 21px; }

  /* Step labels collapse to the numbered dots; the current step is named in
     full by .build-wizard-step-label just above, so the text is redundant here
     and it is what forces the strip to scroll sideways. */
  .build-wizard-progress { gap: 8px; margin-bottom: 20px; }
  .build-wizard-progress-item { min-width: 0; }
  .build-wizard-progress-item small { display: none; }

  .build-wizard .option-button { padding: 9px 13px; font-size: 13px; }
  .build-wizard .variant-picker-card .variant-price { font-size: 26px; }

  .build-wizard-nav { gap: 10px; margin-top: 20px; padding-top: 16px; }
  .build-wizard-nav .btn { min-width: 0; flex: 1 1 0; }
}

.product-description { margin-top: 48px; }
.product-description h2 { font-family: var(--font-display); }

/* ---------------------------------------------------------- configurator */

.configurator {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--c-n3);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.option-group { border: 0; padding: 0; margin: 0; }

.option-group legend {
  font-weight: 700;
  font-size: 14px;
  text-transform: capitalize;
  margin-bottom: 8px;
  padding: 0;
}

.option-values { display: flex; flex-wrap: wrap; gap: 8px; }

.option-chip {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-line);
  background: var(--c-n1);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.option-chip:hover { border-color: var(--c-p1); }
.option-chip.is-selected { background: var(--c-p1); border-color: var(--c-p1); color: #fff; }

/* Still selectable: choosing it re-narrows the other options rather than
   dead-ending the customer. */
.option-chip.is-unavailable { opacity: 0.45; }

.addon-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 14px;
}

.addon-row:last-child { border-bottom: 0; }
.addon-price { font-weight: 700; white-space: nowrap; }

.quantity-field { max-width: 140px; }

.price-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  border-top: 2px solid var(--c-line);
  font-size: 15px;
}

.price-summary strong { font-size: 24px; font-family: var(--font-display); }

/* -------------------------------------------------------- artwork upload */

.artwork-upload {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--c-a1);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.artwork-upload h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-family: var(--font-sans);
}

.artwork-existing {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

/* ------------------------------------------------------------------ search */

.search-form { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 240px;
  padding: 0 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-n3);
  color: var(--c-muted);
}

.search-input-wrap input {
  flex: 1;
  border: 0;
  background: none;
  padding: 12px 0;
  outline: none;
  color: var(--c-n4);
}

.search-summary { color: var(--c-muted); margin-bottom: 20px; }

/* -------------------------------------------------------------------- hero */

.hero { padding: 56px 0 24px; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}

@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } }

.hero-copy h1 { font-family: var(--font-display); font-size: 44px; margin: 0 0 12px; }
.hero-copy h1 span { color: var(--c-p1); }
.hero-sub { color: var(--c-muted); font-size: 18px; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-media img { width: 100%; height: auto; border-radius: var(--radius); }

/* ---------------------------------------------------------------- features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--c-n3);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.feature-card h2, .feature-card h3 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 18px;
}

.feature-card p { margin: 0; color: var(--c-muted); font-size: 14px; }

/* --------------------------------------------------------------------- faq */

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--c-n3);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.faq-item summary { font-weight: 700; cursor: pointer; }
.faq-item[open] summary { margin-bottom: 10px; }
.faq-item > div { color: var(--c-muted); font-size: 15px; }
.faq-footer { margin-top: 24px; color: var(--c-muted); }
.faq-footer a, .empty-state a { color: var(--c-p1a); text-decoration: underline; }
/*
 * The rule above is for links in a sentence. A button in an empty state stays
 * a button: "Browse the catalogue" on the empty cart was teal on teal
 * (client feedback, 27/10).
 */
.empty-state a.btn { text-decoration: none; }
.empty-state a.btn-primary { color: #fff; }

/* ----------------------------------------------------------------- contact */

.contact-panel {
  background: var(--c-n3);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 640px;
  box-shadow: var(--shadow-sm);
}

/* ------------------------------------------------------------------- about */

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
}

@media (max-width: 860px) { .about-intro { grid-template-columns: 1fr; } }

.about-intro img { width: 100%; height: auto; border-radius: var(--radius); }
.about-contact { margin-top: 48px; }
.about-contact h2 { font-family: var(--font-display); }
.about-contact a { color: var(--c-p1a); }

/* ------------------------------------------------------------------- legal */

.legal-page { max-width: 820px; }
.legal-head { text-align: center; margin-bottom: 40px; }

.legal-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(1, 171, 157, 0.12);
  color: var(--c-p1a);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-updated { font-size: 13px; color: var(--c-muted); }
.legal-sections { list-style: none; padding: 0; margin: 0; }
.legal-sections > li { margin-bottom: 36px; }

.legal-sections h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 12px;
}

.legal-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--c-p1);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.legal-sections p { color: var(--c-muted); }
.legal-list { color: var(--c-muted); padding-left: 20px; }
.legal-callout { margin-top: 12px; }
.legal-contact { margin-top: 40px; text-align: center; color: var(--c-muted); }
.legal-contact a { color: var(--c-p1a); text-decoration: underline; }

.catalogue-search { margin-bottom: 20px; }

/* The browser default for <mark> is a flat highlighter yellow that fights the
   palette. A tint of the brand accent reads as emphasis without shouting. */
.hl {
  background: var(--c-a1);
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}

/* =============================== checkout ============================== */

/* ==========================================================================
   Cart, checkout, order and invoice pages (Phase 3 of the migration).
   ========================================================================== */

.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-icon { padding: 8px; line-height: 0; }

.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }

/* ------------------------------------------------------------------- cart */

.cart-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.cart-sort label { font-size: 13px; font-weight: 600; color: var(--c-muted); }
.cart-sort select {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-n3);
  font: inherit;
  font-size: 14px;
}
.cart-sort .btn { min-height: 40px; padding-inline: 18px; font-size: 14px; }

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 16px;
  align-items: center;
  background: var(--c-n3);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px;
}

@media (max-width: 720px) {
  .cart-line { grid-template-columns: minmax(0, 1fr) auto; }
  .cart-line-main { grid-column: 1 / -1; }
}

.cart-line.is-unavailable { border-color: #f5c2c2; background: #fffafa; }

.cart-line-main h2 { margin: 0 0 4px; font-size: 16px; font-family: var(--font-display); }
.cart-line-main h2 a { text-decoration: none; }
.cart-line-main h2 a:hover { color: var(--c-p1a); }

.cart-line-options { margin: 0; font-size: 13px; color: var(--c-muted); }
.cart-line-addons { margin: 4px 0 0; padding-left: 16px; font-size: 13px; color: var(--c-muted); }
.cart-line-artwork { margin: 4px 0 0; font-size: 13px; color: var(--c-p1a); font-weight: 600; }

.cart-line-qty { display: flex; gap: 6px; align-items: center; }
.cart-line-qty input {
  width: 68px;
  padding: 8px;
  text-align: center;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-n3);
}

.cart-line-price { display: flex; flex-direction: column; align-items: flex-end; }
.cart-line-price strong { font-size: 17px; }
.cart-line-price span { font-size: 12px; }

/* --------------------------------------------------------------- summary */

.cart-summary {
  background: var(--c-n3);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 24px;
}

.cart-summary h2 { margin: 0 0 16px; font-size: 18px; font-family: var(--font-display); }
.cart-summary dl { margin: 0 0 20px; }

.cart-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
}

.cart-summary dt { color: var(--c-muted); }
.cart-summary dd { margin: 0; font-weight: 600; }

.cart-summary-total {
  border-top: 2px solid var(--c-line);
  margin-top: 8px;
  padding-top: 12px !important;
  font-size: 17px !important;
}

.cart-summary-total dd { font-size: 20px; font-family: var(--font-display); }

/* The GST inside the total, read as part of it rather than added to it. */
.cart-summary dl > div.checkout-tax-included { padding-top: 0; font-size: 13px; }
.checkout-tax-included dd { font-weight: 400; color: var(--c-muted); }

.cart-continue {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
  color: var(--c-p1a);
  text-decoration: underline;
}

/* --------------------------------------------------------------- checkout */

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }

.checkout-main { display: flex; flex-direction: column; gap: 24px; }

.checkout-section {
  background: var(--c-n3);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-section h2 { margin: 0; font-size: 17px; font-family: var(--font-display); }

.fulfilment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .fulfilment-options { grid-template-columns: 1fr; } }

.fulfilment-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.fulfilment-option.is-selected { border-color: var(--c-p1); background: rgba(1, 171, 157, 0.06); }
.fulfilment-option span { display: flex; flex-direction: column; gap: 2px; }
.fulfilment-option .muted { font-size: 13px; }

.checkout-summary { position: sticky; top: 24px; }

.checkout-items {
  list-style: none;
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.checkout-items li { display: flex; justify-content: space-between; gap: 12px; }
.checkout-items li > span { display: flex; flex-direction: column; }
.checkout-item-options { font-size: 12px; }
.checkout-note { font-size: 12px; margin: 12px 0 0; text-align: center; }
.checkout-test-card {
  padding: 10px 12px;
  border: 1px dashed var(--c-line);
  border-radius: 8px;
  text-align: left;
}
.checkout-test-card[hidden] { display: none; }

/* ---------------------------------------------------------- confirmation */

.confirmation { max-width: 820px; }
.confirmation-head { text-align: center; margin-bottom: 32px; }
.confirmation-head svg { color: var(--c-p1); }
.confirmation-head h1 { font-family: var(--font-display); margin: 12px 0 8px; }

.confirmation-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* --------------------------------------------------------------- invoice */

.invoice-sheet { max-width: 860px; }

.invoice-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--c-line);
}

.invoice-head h1 { font-family: var(--font-display); margin: 0; color: var(--c-p1a); }
.invoice-business { text-align: right; font-size: 14px; }

/* ------------------------------------------------------------ pagination */

.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }

/* ------------------------------------------------------------- print */

@media print {
  .site-header, .site-footer, .confirmation-actions, .skip-link { display: none !important; }
  body { background: #fff; }
  .invoice-sheet { max-width: none; }
}

/* ================================ status =============================== */

/* ---------------------------------------------------- status pages (403/404/500)
 *
 * Shared by forbidden, not-found, the error boundaries and the cancelled
 * payment. Centred, generous and quiet: a visitor who lands here has already
 * had something go wrong, so the page should read as a calm signpost rather
 * than a warning box.
 */

.status-page {
  max-width: 34rem;
  margin-inline: auto;
  padding: 8px 0 24px;
  text-align: center;
}

/*
 * The numeral is scenery, not information — it is aria-hidden, and the heading
 * below says the same thing in words. Sized off the viewport so it stays
 * proportionate on a phone.
 */
.status-code {
  font-family: var(--font-display);
  font-size: clamp(72px, 16vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0 0 4px;
  color: var(--c-p1a);
  opacity: 0.16;
  user-select: none;
}

/*
 * Two classes deep so it beats `.section h1`, which these pages sit inside and
 * which would otherwise impose the much larger page-title size.
 */
.status-page .status-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--c-n4);
}

.status-body {
  color: var(--c-muted);
  line-height: 1.65;
}

.status-body p { margin: 0 0 12px; }
.status-body p:last-child { margin-bottom: 0; }

.status-reference {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--c-muted);
}

.status-reference code {
  background: var(--c-n2);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-size: 12px;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

/* The admin shell already supplies its own padding and background. */
.admin-content .status-page { padding-top: 0; text-align: left; margin-inline: 0; }
.admin-content .status-actions { justify-content: flex-start; }
.admin-content .status-code { display: none; }

/* ------------------------------------------------------- product add-ons */

/*
 * Selectable add-on rows on the product page. The add-to-cart script toggles
 * `.selected` and writes the per-unit price into `.addon-unit-price` once a
 * variant is chosen, so the tier shown always matches what will be charged.
 */
.addon-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
  text-align: left;
  padding: 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-n1);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.addon-toggle:hover { border-color: var(--c-p1); }
.addon-toggle.selected { border-color: var(--c-p1); background: #f0fffe; }

.addon-toggle .addon-check {
  width: 22px;
  height: 22px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
  flex-shrink: 0;
}

.addon-toggle.selected .addon-check {
  background: var(--c-p1);
  border-color: var(--c-p1);
  color: #fff;
}

.addon-toggle .addon-name { display: block; font-weight: 700; }
.addon-toggle .muted { display: block; font-size: 13px; }
.addon-toggle .addon-unit-price {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-p1a);
}

/* ----------------------------------------------------- artwork size guide */
/* Laid out as the client's reference guide (13/10); see element/product_size_guide. */

.size-guide {
  --sg-bleed: #c0306b;
  --sg-trim: #1c2422;
  --sg-safe: #13806a;
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.size-guide-head h3 { margin: 0; font-size: 22px; line-height: 1.2; }
.size-guide-product { margin: 6px 0 0; font-size: 15px; font-weight: 600; }
.size-guide-finished { margin: 4px 0 0; font-size: 15px; font-weight: 700; color: var(--sg-safe); }

.size-guide-body { display: grid; gap: 20px; margin-top: 20px; align-items: center; }

@media (min-width: 900px) {
  .size-guide-body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; }
}

.size-guide-figure { margin: 0; }
.size-guide-diagram { display: block; width: 100%; height: auto; max-height: 440px; color: var(--sg-trim); }
.size-guide-diagram text { font-size: 11px; fill: currentColor; }

.sg-box { fill: none; stroke-width: 1.5; }
.sg-box.is-bleed { stroke: var(--sg-bleed); stroke-dasharray: 6 4; }
.sg-box.is-trim { stroke: var(--sg-trim); stroke-width: 2; fill: #fff; }
.sg-box.is-safe { stroke: var(--sg-safe); stroke-dasharray: 5 4; }
.sg-placeholder { font-size: 13px; fill: var(--c-muted) !important; }

.sg-dim line { stroke: currentColor; stroke-width: 1; }
.sg-dim.is-bleed { color: var(--sg-bleed); }
.sg-dim.is-trim { color: var(--sg-trim); }
.sg-dim.is-safe { color: var(--sg-safe); }
.sg-dim-value { font-weight: 700; }
.sg-dim-name { font-size: 9.5px !important; }

/* The label sits on its line, so the line is masked behind it. */
.sg-dim-inline { paint-order: stroke; stroke: #fff; stroke-width: 6px; stroke-linejoin: round; font-weight: 600; }

.size-guide-legend { list-style: none; margin: 0; padding: 0; }

.size-guide-area {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
}

.size-guide-area:first-child { padding-top: 0; }
.size-guide-area:last-child { border-bottom: 0; padding-bottom: 0; }
.size-guide-area strong { font-size: 16px; }
.size-guide-area p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--c-muted); }
.size-guide-area.is-bleed strong { color: var(--sg-bleed); }
.size-guide-area.is-safe strong { color: var(--sg-safe); }

.size-guide-swatch { width: 30px; height: 30px; border-radius: 3px; border: 2px dashed var(--sg-bleed); }
.is-trim .size-guide-swatch { border-style: solid; border-color: var(--sg-trim); }
.is-safe .size-guide-swatch { border-color: var(--sg-safe); }

.size-guide-icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }

.size-guide-notes {
  margin-top: 22px;
  padding: 16px 20px;
  background: #f1f7f5;
  border: 1px solid #d6e6e1;
  border-radius: 12px;
}

.size-guide-notes h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--sg-safe);
}

.size-guide-notes ul { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.5; }
.size-guide-notes li { margin: 0 0 6px; break-inside: avoid; }
.size-guide-notes li.is-key { color: var(--sg-safe); font-weight: 700; }

@media (min-width: 900px) {
  .size-guide-notes ul { columns: 2; column-gap: 40px; }
}

.size-guide-help {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 14px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--c-muted);
}

.size-guide-help .size-guide-icon,
.size-guide-help strong { color: var(--sg-safe); }
.size-guide-help span { flex: 1 1 260px; }

/* ============================ forms shared ============================ */

/*
 * Two fields on one line: first/last name, city/state, postcode/country.
 *
 * Checkout has asked for this class since the storefront was ported and never
 * had a rule for it, so every pair stacked and the form ran on for a screen and
 * a half. Class names paired with `.checkout-section` where nx.css also defines
 * something, because nx.css loads second and wins any tie.
 */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
}

/* A checkbox or radio with its label on the same line. */
.choice-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 4px;
}

.choice-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--c-p1);
  cursor: pointer;
  flex-shrink: 0;
}

.billing-fields { margin-top: 20px; }
.billing-fields[hidden] { display: none; }

/*
 * Checkout's information banners. `.alert` was written against Bootstrap, which
 * the storefront layout does not load, so "card payment is unavailable" was one
 * unadorned sentence in the middle of the form.
 */
.alert {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-line);
  background: var(--c-n1);
  font-size: 14px;
  color: var(--c-muted);
  margin: 0;
}

.alert-info {
  border-color: rgba(1, 171, 157, 0.3);
  background: rgba(1, 171, 157, 0.07);
  color: var(--c-n4);
}

/* ======================= account pages (orders, support) ============== */

/*
 * Order history, one order, and the support form.
 *
 * All three were written against Bootstrap containers and grids that the
 * storefront layout never loads, so they rendered full-bleed against the left
 * edge with every column stacked. They now use the same wrap/section rhythm as
 * the rest of the shop.
 */

.account-page .page-head { margin-bottom: 32px; }
.account-page .page-head h1 { margin-bottom: 12px; }
.account-page .page-head p { max-width: 62ch; margin: 0; }

.account-page .back-link { margin: 0 0 16px; font-size: 14px; }

/*
 * `.page-head a` above underlines every link in a page header and paints it
 * link-teal, which turns a primary button into teal text on a teal background.
 * A button in a header is still a button.
 */
.page-head a.btn { text-decoration: none; font-size: 14px; }
.page-head a.btn-primary { color: #fff; }
.page-head a.btn-secondary,
.page-head a.btn-ghost { color: var(--c-p1a); }

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 28px;
}

.order-panel {
  background: var(--c-n3);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}

/*
 * The section headings the customer reads to find one fact - Products,
 * Customer Information - are deliberately larger and heavier than the body
 * around them. They used to be an h5 and an h6 at the same weight as a price.
 */
.order-panel > h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.order-empty { text-align: center; padding: 48px 28px; }
.order-empty h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: 24px; }
.order-empty p { margin: 0 0 24px; }

.order-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.order-support h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 6px 0 8px;
}

.order-support p { margin: 0; max-width: 56ch; }

/* ------------------------------------------------------- order history */

.table-scroll { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-n3);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--c-line);
  vertical-align: middle;
}

.data-table thead th {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-p1a);
  background: var(--c-n1);
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: 0; }

.data-table .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .actions { text-align: right; white-space: nowrap; }

.order-history td { font-size: 15px; }

.row-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.row-actions form { display: inline; margin: 0; }

.status-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--c-n1);
  border: 1px solid var(--c-line);
  color: var(--c-muted);
  white-space: nowrap;
}

.status-pill.status-paid,
.status-pill.status-completed {
  background: rgba(1, 171, 157, 0.12);
  border-color: rgba(1, 171, 157, 0.35);
  color: var(--c-p1a);
}

.status-pill.status-processing,
.status-pill.status-shipped {
  background: rgba(250, 232, 189, 0.5);
  border-color: rgba(180, 140, 40, 0.3);
  color: #7a5b12;
}

.status-pill.status-failed,
.status-pill.status-cancelled,
.status-pill.status-refunded {
  background: #fdecea;
  border-color: rgba(155, 28, 28, 0.25);
  color: var(--c-error);
}

.status-pill.status-unpaid {
  background: #fae8bd;
  border-color: #f0d68a;
  color: #6b4e00;
}

.order-progress {
  list-style: none;
  margin: 8px 0 28px;
  padding: 22px 22px 8px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 16px;
}

.order-progress li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  position: relative;
  padding-bottom: 18px;
}

.order-progress li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 16px;
  bottom: 0;
  width: 2px;
  background: var(--c-line);
}

.order-progress-mark {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid var(--c-line);
  background: #fff;
  position: relative;
  z-index: 1;
}

.order-progress li.is-done .order-progress-mark {
  background: #007067;
  border-color: #007067;
}

.order-progress li.is-done .order-progress-mark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.order-progress li.is-current .order-progress-mark {
  border-color: #007067;
  box-shadow: inset 0 0 0 4px #007067;
}

.order-progress-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 1px;
}

.order-progress-copy strong {
  font-size: 15px;
  font-weight: 700;
}

.order-progress-copy span {
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 600;
}

.order-progress li.is-upcoming .order-progress-copy strong {
  color: var(--c-muted);
  font-weight: 700;
}

.order-history-product {
  display: block;
  margin-top: 2px;
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 600;
}

.portal-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 650;
  color: var(--c-muted);
}

.portal-crumb a {
  color: #007067;
  text-decoration: none;
  font-weight: 700;
}

/*
 * Below the breakpoint the table becomes one card per order, each cell
 * labelled from its `data-label`. A six-column order history cannot be made to
 * fit a phone by shrinking it.
 */
@media (max-width: 760px) {
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td { display: block; }

  .data-table thead { display: none; }

  .data-table tr {
    border-bottom: 1px solid var(--c-line);
    padding: 8px 0;
  }

  .data-table tr:last-child { border-bottom: 0; }

  .data-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-bottom: 0;
    padding: 8px 18px;
    text-align: right;
  }

  .data-table td::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-muted);
    text-align: left;
  }

  .data-table .actions { text-align: right; white-space: normal; }
}

/* ------------------------------------------------------ paginator */

.paginator { display: flex; justify-content: center; }

.paginator .pagination {
  list-style: none;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.paginator .pagination li { display: block; }

.paginator .pagination a,
.paginator .pagination .current {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-line);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  background: var(--c-n3);
}

.paginator .pagination a:hover { border-color: var(--c-p1a); color: var(--c-p1a); }

.paginator .pagination .current a,
.paginator .pagination .current {
  background: var(--c-p1);
  border-color: var(--c-p1);
  color: #fff;
}

.paginator .pagination .disabled a,
.paginator .pagination .disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* --------------------------------------------------- one order's lines */

.order-lines {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.order-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-line);
}

.order-line:first-child { padding-top: 0; }

.order-line-main { min-width: 0; }

.order-line-main h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-family: var(--font-display);
  font-weight: 700;
}

.order-line-main h3 a { text-decoration: none; }
.order-line-main h3 a:hover { color: var(--c-p1a); }

.order-line-flag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--c-n1);
  border: 1px solid var(--c-line);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-muted);
}

.order-line-qty { margin: 0; font-size: 14px; }

.order-line-options {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 13px;
}

.order-line-options > div { display: flex; gap: 6px; }
.order-line-options dt { font-weight: 700; }
.order-line-options dd { margin: 0; color: var(--c-muted); }

.order-line-addons {
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--c-line);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.order-line-addons li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--c-muted);
}

.order-line-addons strong { color: var(--c-n4); }

.order-line-artwork { margin: 10px 0 0; font-size: 13px; }

.order-line-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  white-space: nowrap;
}

.order-line-price strong { font-size: 17px; }
.order-line-price span { font-size: 12px; }

@media (max-width: 560px) {
  .order-line { flex-direction: column; gap: 10px; }
  .order-line-price { align-items: flex-start; text-align: left; }
}

/* ------------------------------------------------------- order totals */

.order-totals { margin: 24px 0 0; }

.order-totals > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 6px 0;
}

.order-totals dt { color: var(--c-muted); }
.order-totals dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }

.order-totals-grand {
  margin-top: 8px;
  padding-top: 14px !important;
  border-top: 1px solid var(--c-line);
}

.order-totals-grand dt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 800;
  color: var(--c-n4);
}

.order-totals-grand dt .muted { font-size: 12px; font-weight: 500; }

.order-totals-grand dd {
  font-size: 24px;
  font-family: var(--font-display);
  color: var(--c-p1a);
}

/* ------------------------------------------- customer information grid */

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.detail-block { min-width: 0; }

/*
 * The field headings the customer scans for - Payment Method, Shipping
 * Address, Shipping Method. They were muted 12px captions above the value,
 * which read as fine print rather than as a label.
 */
.detail-block h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c-n4);
}

.detail-block p {
  margin: 0 0 6px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.detail-block p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------- support form */

.support-page .order-panel { max-width: 720px; margin-inline: auto; }
.support-page .page-head { text-align: center; }
.support-page .page-head p { margin-inline: auto; }
.support-card .field:last-of-type { margin-bottom: 24px; }
