/* ==========================================================================
   Origin: Priorly's default storefront theme
   Version 1.0.6

   Every Priorly theme reuses this markup and these class names. A theme
   changes three things only: token values (light and dark), a stylesheet
   that restyles these classes using tokens, and the layout choices below.

   Contents
   1. Tokens (the public contract)
   2. Derived tokens (internal, computed from the public tokens)
   3. Layout choice presets
   4. Section library contract (--pb-*)
   5. Base
   6. Typography
   7. Layout
   8. Components
   9. Shared parts
   10. Templates
   11. Layout choices
   12. Accessibility and print
   13. Old token names (Origin 1.x only)

   Root attributes (on <html> in the store, on .theme-scope in previews):
   data-theme="origin"
   data-scheme="light | dark | auto"
   data-header="menu | centred | search"
   data-product="gallery-left | gallery-right | stacked"
   data-cards="bordered | flat | raised"
   data-buttons="square | rounded | pill"

   Breakpoints (mobile first): 40rem (640px), 48rem (768px),
   64rem (1024px), 80rem (1280px).
   ========================================================================== */


/* 1. Tokens ----------------------------------------------------------------
   Light values. Business overrides are emitted after this file as
   :root { ... } and win over these. */

:root,
.theme-scope {
  color-scheme: light;

  /* Colour */
  --color-page: #f8f7f4;
  --color-surface: #ffffff;
  --color-surface-subtle: #f2f0eb;
  --color-border: #e3e0d9;
  --color-border-strong: #8a857b;
  --color-text: #1b1c1e;
  --color-text-muted: #4b4d52;
  --color-text-faint: #66686d;
  --color-primary: #0f5e5c;
  --color-on-primary: #ffffff;
  --color-accent: #b0451a;
  --color-success: #1d7748;
  --color-warning: #8a5300;
  --color-danger: #b42318;
  --color-focus: #1f5bd8;

  /* Type (Google Fonts only) */
  --font-heading: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-size-base: 1rem;
  --type-scale: 1.2;

  /* Shape */
  --radius: 10px;
  --radius-button: 10px;
  --radius-card: 14px;

  /* Space */
  --space-unit: 0.25rem;
  --container: 75rem;
  --section-space: clamp(3.5rem, 2rem + 5vw, 6rem);

  /* Optional theme tokens (themes may set these; defaults shown) */
  --heading-weight: 500;
  --heading-tracking: -0.012em;

  /* Scheme-specific internals */
  --shadow-sm: 0 1px 2px rgb(27 28 30 / 0.06);
  --shadow-md: 0 1px 2px rgb(27 28 30 / 0.04), 0 8px 24px rgb(27 28 30 / 0.08);
  --shadow-lg: 0 16px 48px rgb(27 28 30 / 0.18);
  --overlay: rgb(17 18 20 / 0.5);
}

/* Dark values. The higher specificity (0,2,0) stops a business's light
   override leaking into dark. Business dark overrides use these same
   selectors and are emitted after this file. */
:root[data-scheme="dark"],
.theme-scope[data-scheme="dark"] {
  color-scheme: dark;
  --color-page: #111214;
  --color-surface: #191b1e;
  --color-surface-subtle: #212327;
  --color-border: #2d3035;
  --color-border-strong: #6e737b;
  --color-text: #f1f0ed;
  --color-text-muted: #c4c3be;
  --color-text-faint: #9c9c98;
  --color-primary: #5ec2bb;
  --color-on-primary: #04211f;
  --color-accent: #f2925e;
  --color-success: #5cc98b;
  --color-warning: #e9b04e;
  --color-danger: #ff8a7f;
  --color-focus: #89a9ff;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.45);
  --shadow-lg: 0 16px 48px rgb(0 0 0 / 0.6);
  --overlay: rgb(0 0 0 / 0.66);
}

@media (prefers-color-scheme: dark) {
  :root[data-scheme="auto"],
  .theme-scope[data-scheme="auto"] {
    color-scheme: dark;
    --color-page: #111214;
    --color-surface: #191b1e;
    --color-surface-subtle: #212327;
    --color-border: #2d3035;
    --color-border-strong: #6e737b;
    --color-text: #f1f0ed;
    --color-text-muted: #c4c3be;
    --color-text-faint: #9c9c98;
    --color-primary: #5ec2bb;
    --color-on-primary: #04211f;
    --color-accent: #f2925e;
    --color-success: #5cc98b;
    --color-warning: #e9b04e;
    --color-danger: #ff8a7f;
    --color-focus: #89a9ff;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.45);
    --shadow-lg: 0 16px 48px rgb(0 0 0 / 0.6);
    --overlay: rgb(0 0 0 / 0.66);
  }
}


/* 2. Derived tokens ---------------------------------------------------------
   Recomputed on every element that sets tokens, so a dark section inside a
   light page gets dark tints. Never set these in a theme; set the public
   tokens instead. */

:root,
.theme-scope,
[data-scheme],
[data-theme] {
  /* Tints for status backgrounds and selected states */
  --tint-primary: color-mix(in srgb, var(--color-primary) 9%, var(--color-surface));
  --tint-primary-strong: color-mix(in srgb, var(--color-primary) 18%, var(--color-surface));
  --tint-accent: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface));
  --tint-success: color-mix(in srgb, var(--color-success) 10%, var(--color-surface));
  --tint-warning: color-mix(in srgb, var(--color-warning) 11%, var(--color-surface));
  --tint-danger: color-mix(in srgb, var(--color-danger) 9%, var(--color-surface));
  --line-primary: color-mix(in srgb, var(--color-primary) 35%, var(--color-surface));
  --line-accent: color-mix(in srgb, var(--color-accent) 35%, var(--color-surface));
  --line-success: color-mix(in srgb, var(--color-success) 35%, var(--color-surface));
  --line-warning: color-mix(in srgb, var(--color-warning) 40%, var(--color-surface));
  --line-danger: color-mix(in srgb, var(--color-danger) 40%, var(--color-surface));
  --primary-hover: color-mix(in srgb, var(--color-primary) 85%, var(--color-text));
  --primary-active: color-mix(in srgb, var(--color-primary) 74%, var(--color-text));

  /* Type scale: every step follows --font-size-base and --type-scale */
  --text-xs: calc(var(--font-size-base) * 0.75);
  --text-sm: calc(var(--font-size-base) * 0.875);
  --text-md: var(--font-size-base);
  --text-lg: calc(var(--text-md) * var(--type-scale));
  --text-xl: calc(var(--text-lg) * var(--type-scale));
  --text-2xl: calc(var(--text-xl) * var(--type-scale));
  --text-3xl: calc(var(--text-2xl) * var(--type-scale));
  --text-4xl: calc(var(--text-3xl) * var(--type-scale));
  --text-5xl: calc(var(--text-4xl) * var(--type-scale));
  --text-6xl: calc(var(--text-5xl) * var(--type-scale));
  --text-display: clamp(var(--text-3xl), 1.4rem + 3.2vw, var(--text-6xl));
  --text-h1: clamp(var(--text-2xl), 1.25rem + 2vw, var(--text-4xl));
  --text-h2: clamp(var(--text-xl), 1.1rem + 1.2vw, var(--text-3xl));
  --text-h3: clamp(var(--text-lg), 1rem + 0.5vw, var(--text-xl));

  /* Space scale: every step follows --space-unit */
  --space-1: calc(var(--space-unit) * 1);
  --space-2: calc(var(--space-unit) * 2);
  --space-3: calc(var(--space-unit) * 3);
  --space-4: calc(var(--space-unit) * 4);
  --space-5: calc(var(--space-unit) * 5);
  --space-6: calc(var(--space-unit) * 6);
  --space-8: calc(var(--space-unit) * 8);
  --space-10: calc(var(--space-unit) * 10);
  --space-12: calc(var(--space-unit) * 12);
  --space-16: calc(var(--space-unit) * 16);
  --space-20: calc(var(--space-unit) * 20);
  --gutter: clamp(1rem, 4vw, 2.5rem);

  /* Controls never drop below a 44px target */
  --control-height: max(2.75rem, calc(var(--space-unit) * 12));
  --control-height-sm: 2.25rem;
  --control-height-lg: max(3.25rem, calc(var(--space-unit) * 14));
  --radius-small: calc(var(--radius) * 0.6);
  --header-height: 4rem;
}

@media (min-width: 64rem) {
  :root,
  .theme-scope,
  [data-theme] {
    --header-height: 4.5rem;
  }
}


/* 3. Layout choice presets -------------------------------------------------
   Square and pill set the button radius. Rounded uses --radius-button as
   set by the theme or the business. The doubled attribute gives these
   (0,2,0), so a layout choice beats any token block (theme or business
   overrides use (0,1,0)). */

[data-buttons][data-buttons="square"] { --radius-button: 0px; }
[data-buttons][data-buttons="pill"] { --radius-button: 999px; }


/* 4. Section library contract ----------------------------------------------
   Section types use only --pb-* variables. Origin defines them from its
   tokens so every section follows the theme. The space steps keep the
   section library's documented scale (4, 8, 16, 24, 40 and 72px at the
   default --space-unit), so sections built before Origin keep their
   spacing. */

:root,
.theme-scope,
[data-scheme],
[data-theme] {
  --pb-font-heading: var(--font-heading);
  --pb-font-body: var(--font-body);
  --pb-text: var(--color-text);
  --pb-muted: var(--color-text-muted);
  --pb-accent: var(--color-primary);
  --pb-surface: var(--color-surface);
  --pb-surface-subtle: var(--color-surface-subtle);
  --pb-surface-brand: var(--color-primary);
  --pb-on-brand: var(--color-on-primary);
  --pb-error: var(--color-danger);
  --pb-radius: var(--radius-card);
  /* 1.0.5: a section frame is box-sizing border-box with the gutter inside its
     width, and .container adds the gutters outside --container, so the frame
     takes both gutters to line its sections up with the header and footer
     (before, they sat a gutter in on each side). */
  --pb-container: calc(var(--container) + var(--gutter) * 2);
  --pb-gutter: var(--gutter);
  --pb-space-1: var(--space-1);
  --pb-space-2: var(--space-2);
  --pb-space-3: var(--space-4);
  --pb-space-4: var(--space-6);
  --pb-space-5: var(--space-10);
  --pb-space-6: calc(var(--space-unit) * 18);
}


/* 5. Base ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
.theme-scope {
  margin: 0;
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.6;
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

::selection {
  background: var(--tint-primary-strong);
  color: var(--color-text);
}

.icon,
.button__icon,
.header-action__icon,
.alert__icon,
.badge__icon,
.accordion__icon,
.select__icon,
.link__icon,
.rating__star {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm { width: 1rem; height: 1rem; }
.icon--lg { width: 1.5rem; height: 1.5rem; }
.icon--fill { fill: currentColor; stroke: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-3);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}


/* 6. Typography ------------------------------------------------------------ */

h1,
h2,
h3,
.display,
.h1,
.h2,
.h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1.15;
  color: var(--color-text);
  text-wrap: balance;
}

h4,
h5,
h6,
.h4 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}

.display { font-size: var(--text-display); line-height: 1.06; }
h1, .h1 { font-size: var(--text-h1); line-height: 1.1; }
h2, .h2 { font-size: var(--text-h2); }
h3, .h3 { font-size: var(--text-h3); line-height: 1.25; }
h4, .h4 { font-size: var(--text-md); }
h5, h6 { font-size: var(--text-sm); }

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--primary-hover);
  text-decoration-thickness: 2px;
}

strong,
b {
  font-weight: 600;
}

small {
  font-size: var(--text-sm);
}

hr,
.divider {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--color-text-muted);
}

.text-muted { color: var(--color-text-muted); }
.text-small { font-size: var(--text-sm); }
.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }

/* Links */
.link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.link--quiet {
  color: var(--color-text-muted);
  font-weight: 500;
}

.link--quiet:hover { color: var(--color-text); }

.link--arrow,
.link--back,
.link--external {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  text-decoration: none;
}

.link--arrow:hover,
.link--back:hover,
.link--external:hover {
  text-decoration: underline;
}

.link__icon {
  width: 1rem;
  height: 1rem;
}

/* Rich text: CMS content, legal pages, guides, product content */
.rich-text {
  font-size: var(--text-md);
  line-height: 1.7;
  max-width: 46rem;
}

.rich-text > * + *,
.rich-text > [data-pb-part] > * + * { margin-top: 1em; }
.rich-text > :first-child,
.rich-text > [data-pb-part] > :first-child { margin-top: 0; }

.rich-text h2 {
  font-size: var(--text-2xl);
  margin-top: 1.8em;
}

.rich-text h3 {
  font-size: var(--text-xl);
  margin-top: 1.6em;
}

.rich-text h4 { margin-top: 1.5em; }

.rich-text h2 + *,
.rich-text h3 + *,
.rich-text h4 + * {
  margin-top: 0.6em;
}

.rich-text ul,
.rich-text ol {
  padding-left: 1.3em;
}

.rich-text li + li { margin-top: 0.4em; }
.rich-text li::marker { color: var(--color-text-muted); }

.rich-text blockquote {
  margin-inline: 0;
  padding-left: 1.25em;
  border-left: 2px solid var(--color-border-strong);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  line-height: 1.5;
}

.rich-text img,
.rich-text figure {
  border-radius: var(--radius);
}

.rich-text figure { margin-inline: 0; }

.rich-text figcaption {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.rich-text table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.rich-text th,
.rich-text td {
  text-align: left;
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.rich-text th { font-weight: 600; }

.rich-text hr { margin: 2.5em 0; }

.rich-text .table th,
.rich-text .table td { border-bottom: 0; }

.rich-text .key-takeaways__list { padding-left: 0; }
.rich-text .key-takeaways__item + .key-takeaways__item { margin-top: 0; }

.rich-text--article {
  font-size: calc(var(--text-md) * 1.0625);
  line-height: 1.75;
}


/* 7. Layout ---------------------------------------------------------------- */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: calc(46rem + var(--gutter) * 2); }
.container--medium { max-width: calc(64rem + var(--gutter) * 2); }

.section {
  padding-block: var(--section-space);
}

.section--subtle { background: var(--color-surface-subtle); }
.section--surface { background: var(--color-surface); }
.section--tight { padding-block: calc(var(--section-space) * 0.6); }
.section--flush-top { padding-top: 0; }
.section--rule { border-top: 1px solid var(--color-border); }

.section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-3) var(--space-8);
  margin-bottom: var(--space-8);
}

.section__heading {
  display: grid;
  gap: var(--space-2);
  max-width: 42rem;
}

.section__title {
  font-size: var(--text-h2);
}

.section__intro {
  color: var(--color-text-muted);
  font-size: var(--text-md);
}

.section__link {
  white-space: nowrap;
}

.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-10);
}

@media (min-width: 64rem) {
  .layout-split {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
    gap: var(--space-12);
    align-items: start;
  }
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

@media (max-width: 39.99rem) {
  .button-row--stack { display: grid; }
}

.layout-split__main,
.layout-split__aside {
  display: grid;
  gap: var(--space-8);
  align-content: start;
  min-width: 0;
}

/* Single-column page grids get a zero minimum so a scrolling row of chips
   or tabs can never widen the page on phones. */
.product__layout,
.content-layout,
.contact-layout,
.catalogue__layout,
.article__layout,
.form-page__layout,
.checkout__layout,
.order-page__layout,
.account__layout,
.booking-flow__layout,
.booking-manage__layout {
  grid-template-columns: minmax(0, 1fr);
}

/* 8. Components ------------------------------------------------------------ */

/* Button ---------------------------------------------------------------- */
.button {
  --button-bg: var(--color-surface);
  --button-fg: var(--color-text);
  --button-border: var(--color-border-strong);
  --button-bg-hover: var(--color-surface-subtle);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-height);
  padding: 0 calc(var(--space-5) + 2px);
  border: 1px solid var(--button-border);
  border-radius: var(--radius-button);
  background: var(--button-bg);
  color: var(--button-fg);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  background: var(--button-bg-hover);
  color: var(--button-fg);
  text-decoration: none;
}

.button--primary {
  --button-bg: var(--color-primary);
  --button-fg: var(--color-on-primary);
  --button-border: var(--color-primary);
  --button-bg-hover: var(--primary-hover);
}

.button--primary:hover { border-color: var(--primary-hover); }
.button--primary:active { background: var(--primary-active); }

.button--secondary {
  --button-bg: var(--color-surface);
  --button-fg: var(--color-text);
  --button-border: var(--color-border-strong);
}

.button--ghost {
  --button-bg: transparent;
  --button-fg: var(--color-primary);
  --button-border: transparent;
  --button-bg-hover: var(--tint-primary);
}

.button--danger {
  --button-bg: var(--color-surface);
  --button-fg: var(--color-danger);
  --button-border: var(--line-danger);
  --button-bg-hover: var(--tint-danger);
}

.button--inverse {
  --button-bg: var(--color-on-primary);
  --button-fg: var(--color-primary);
  --button-border: var(--color-on-primary);
  --button-bg-hover: color-mix(in srgb, var(--color-on-primary) 88%, var(--color-primary));
}

.button--small {
  min-height: var(--control-height-sm);
  padding-inline: var(--space-4);
  font-size: var(--text-sm);
}

.button--large {
  min-height: var(--control-height-lg);
  padding-inline: var(--space-8);
  font-size: var(--text-lg);
}

.button--block {
  display: flex;
  width: 100%;
}

.button--icon {
  padding: 0;
  width: var(--control-height);
  min-width: var(--control-height);
}

.button--icon.button--small {
  width: var(--control-height-sm);
  min-width: var(--control-height-sm);
}

.button__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.button:disabled,
.button[aria-disabled="true"] {
  --button-bg: var(--color-surface-subtle);
  --button-fg: var(--color-text-faint);
  --button-border: var(--color-border);
  --button-bg-hover: var(--color-surface-subtle);
  cursor: not-allowed;
  box-shadow: none;
}

/* .loading: the platform's sign-in and password scripts mark it so. */
.button:is([aria-busy="true"], .loading) {
  color: transparent;
  pointer-events: none;
}

.button:is([aria-busy="true"], .loading)::after {
  content: "";
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--button-fg);
  border-right-color: transparent;
  animation: origin-spin 0.8s linear infinite;
}

.button:is([aria-busy="true"], .loading) .button__icon { visibility: hidden; }

/* The sign-in and password pages: their script marks a field it has checked
   .touched and shows the form's error with .--show-error. */
.auth .field__error { display: none; }
.auth .field:has(.touched:invalid) .field__error { display: flex; }
.auth [id$="error-container"]:not(.--show-error) { display: none; }
/* Their panels the script swaps (the form, "check your email"). */
.auth__card > div[id]:not([hidden]) { display: contents; }
/* Sign out posts, so it is a button in a form. */

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

/* Text button that looks like a link (e.g. Remove, Change) */
.text-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.text-button--quiet {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: var(--text-sm);
}

.text-button--danger { color: var(--color-danger); }

/* Fields ---------------------------------------------------------------- */
.field {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}

.field__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
}

.field__optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.field__hint {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-top: calc(var(--space-1) * -1);
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-danger);
  line-height: 1.45;
}

.field__error .icon {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.05rem;
}

.field-row {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 40rem) {
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row--postcode { grid-template-columns: minmax(0, 12rem) auto; justify-content: start; align-items: end; }
}

.fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}

.fieldset__legend {
  padding: 0;
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
}

.fieldset__value {
  font-weight: 400;
  color: var(--color-text-muted);
}

/* Date answer: day, month and year as three short fields in a row */
.date-input {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.date-input__item { width: 4.5rem; }
.date-input__item--year { width: 6.5rem; }

.input,
.textarea,
.select__control {
  display: block;
  width: 100%;
  min-height: var(--control-height);
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: max(16px, var(--text-md));
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.textarea {
  min-height: 7.5rem;
  padding-block: var(--space-3);
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--color-text-faint);
  opacity: 1;
}

.input:hover,
.textarea:hover,
.select__control:hover {
  border-color: var(--color-text-muted);
}

.input:focus-visible,
.textarea:focus-visible,
.select__control:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
  border-color: var(--color-text-muted);
}

.input:disabled,
.textarea:disabled,
.select__control:disabled,
.input[readonly] {
  background: var(--color-surface-subtle);
  color: var(--color-text-muted);
  border-color: var(--color-border);
  cursor: not-allowed;
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"],
.select__control[aria-invalid="true"],
.field--error .input,
.field--error .textarea,
.field--error .select__control {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 1px var(--color-danger);
}

.input--short { max-width: 12rem; }
.input--code { font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }

.select {
  position: relative;
  display: block;
}

.select__control {
  appearance: none;
  padding-right: var(--space-10);
  cursor: pointer;
}

.select__icon {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  width: 1.125rem;
  height: 1.125rem;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--color-text-muted);
}

.select--small .select__control {
  min-height: var(--control-height-sm);
  font-size: var(--text-sm);
}

.input-group {
  display: flex;
  gap: var(--space-2);
  align-items: stretch;
}

.input-group > .input { flex: 1 1 auto; min-width: 0; }
.input-group > .button { flex: none; }

.input-icon {
  position: relative;
  display: block;
}

.input-icon__icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.input-icon > .input { padding-left: calc(var(--space-4) + 1.75rem); }

.password-field {
  position: relative;
}

.password-field .input { padding-right: 5.5rem; }

.password-field__toggle {
  position: absolute;
  right: var(--space-1);
  top: 50%;
  transform: translateY(-50%);
  min-height: 2.5rem;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-small);
  background: none;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}

.password-field__toggle:hover { background: var(--tint-primary); }

.password-rules {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.password-rules__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.password-rules__item .icon { width: 1rem; height: 1rem; }
.password-rules__item.is-met { color: var(--color-success); }
.password-rules__item.is-unmet { color: var(--color-danger); }

/* Checkbox and radio ---------------------------------------------------- */
.choice {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--space-3);
  color: var(--color-text);
  cursor: pointer;
}

.choice__input {
  appearance: none;
  display: grid;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0.1rem 0 0;
  border: 1.5px solid var(--color-border-strong);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.choice__input[type="checkbox"] { border-radius: calc(var(--radius) * 0.5); }
.choice__input[type="radio"] { border-radius: 50%; }

.choice__input:hover { border-color: var(--color-text-muted); }

.choice__input:checked {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.choice__input[type="checkbox"]:checked::before {
  content: "";
  width: 0.375rem;
  height: 0.7rem;
  border: solid var(--color-on-primary);
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}

.choice__input[type="radio"]:checked {
  box-shadow: inset 0 0 0 0.25rem var(--color-surface);
}

.choice__input:disabled {
  background: var(--color-surface-subtle);
  border-color: var(--color-border);
  cursor: not-allowed;
}

.choice:has(.choice__input:disabled) {
  color: var(--color-text-faint);
  cursor: not-allowed;
}

.choice__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.choice__label {
  font-weight: 500;
  line-height: 1.4;
}

.choice__hint {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.45;
}

.choice:has(.choice__input:disabled) .choice__hint { color: var(--color-text-faint); }

.choice__aside {
  justify-self: end;
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}

.choice:has(.choice__aside) {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.choice__aside-meta {
  display: block;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
}

.choice:has(.choice__media-inline) {
  grid-template-columns: auto auto minmax(0, 1fr);
}

.choice:has(.choice__media-inline):has(.choice__aside) {
  grid-template-columns: auto auto minmax(0, 1fr) auto;
}

.choice-list {
  display: grid;
  gap: var(--space-3);
}

.choice-list--inline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
}

/* Bordered option card: questionnaire answers, delivery options, plans */
.choice--card {
  align-items: center;
  min-height: 3.5rem;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.choice--card:hover { border-color: var(--color-text-muted); }

.choice--card:has(.choice__input:checked) {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
  background: var(--tint-primary);
}

.choice--card:has(.choice__input:focus-visible) {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.choice--card .choice__input:focus-visible { outline: none; }

.choice--card:has(.choice__input:disabled) {
  background: var(--color-surface-subtle);
  border-color: var(--color-border);
}

.choice--card.choice--error,
.question--error .choice--card {
  border-color: var(--color-danger);
}

.choice--image {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  padding: var(--space-3) var(--space-3) var(--space-4);
}

.choice--image .choice__input {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  margin: 0;
  z-index: 1;
}

.choice__media {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) - 3px);
  overflow: hidden;
  background: var(--color-surface-subtle);
}

.choice__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.choice--image .choice__body { padding-inline: var(--space-2); }

/* Switch (cookie preferences, settings) ---------------------------------- */
.switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.switch__input {
  appearance: none;
  position: relative;
  width: 2.75rem;
  height: 1.625rem;
  margin: 0;
  border-radius: 999px;
  background: var(--color-border-strong);
  cursor: pointer;
  transition: background-color 0.15s ease;
  flex: none;
}

.switch__input::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}

.switch__input:checked { background: var(--color-primary); }
.switch__input:checked::before { transform: translateX(1.125rem); }

.switch__input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.switch__label {
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Quantity stepper ------------------------------------------------------ */
.quantity {
  display: inline-grid;
  grid-template-columns: var(--control-height) 3rem var(--control-height);
  align-items: stretch;
  min-height: var(--control-height);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-button);
  background: var(--color-surface);
  overflow: hidden;
}

.quantity__button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text);
  cursor: pointer;
}

.quantity__button:hover { background: var(--color-surface-subtle); }

.quantity__button:disabled {
  color: var(--color-text-faint);
  background: none;
  cursor: not-allowed;
}

.quantity__button:focus-visible { outline-offset: -3px; }

.quantity__input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
}

.quantity__input::-webkit-outer-spin-button,
.quantity__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity__input:focus-visible { outline-offset: -3px; }

.quantity--small {
  --control-height: 2.5rem;
  grid-template-columns: 2.5rem 2.25rem 2.5rem;
}

.quantity__note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* Badge ----------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 1.625rem;
  padding: 0.125rem 0.625rem;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  background: var(--color-surface-subtle);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.badge__icon {
  width: 0.875rem;
  height: 0.875rem;
  flex: none;
}

.badge--prescription {
  background: var(--color-text);
  color: var(--color-surface);
}

.badge--pharmacy {
  background: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--line-primary);
}

.badge--general {
  background: var(--color-surface-subtle);
  color: var(--color-text-muted);
}

.badge--sold-out {
  background: var(--color-surface);
  color: var(--color-text-muted);
  border-color: var(--color-border-strong);
}

.badge--subscription {
  background: var(--tint-primary);
  color: var(--color-primary);
}

.badge--sale {
  background: var(--tint-accent);
  color: var(--color-accent);
}

.badge--info {
  background: var(--tint-primary);
  color: var(--color-primary);
}

.badge--success {
  background: var(--tint-success);
  color: var(--color-success);
}

.badge--warning {
  background: var(--tint-warning);
  color: var(--color-warning);
}

.badge--danger {
  background: var(--tint-danger);
  color: var(--color-danger);
}

.badge--neutral {
  background: var(--color-surface-subtle);
  color: var(--color-text-muted);
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Count bubble: basket, unread, tasks ---------------------------------- */
.count {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding-inline: 0.3125rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.count--quiet {
  background: var(--color-surface-subtle);
  color: var(--color-text-muted);
}

.unread-dot {
  display: inline-block;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--color-primary);
  flex: none;
}

/* Price ----------------------------------------------------------------- */
.price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--space-2);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.price__from {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}

.price__current {
  font-weight: 600;
  color: var(--color-text);
}

.price--sale .price__current { color: var(--color-accent); }

.price__compare {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-decoration-thickness: 1px;
}

.price__unit {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.price__saving {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
}

.price--large .price__current {
  font-size: var(--text-2xl);
  font-family: var(--font-body);
  letter-spacing: -0.01em;
}

.price--large .price__from,
.price--large .price__unit,
.price--large .price__compare {
  font-size: var(--text-md);
}

.price--small .price__current { font-size: var(--text-sm); }

/* Stock ----------------------------------------------------------------- */
.stock {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  margin: 0;
}

.stock .icon { width: 1rem; height: 1rem; }
.stock--in { color: var(--color-success); }
.stock--low { color: var(--color-warning); }
.stock--out { color: var(--color-text-muted); }

/* Rating ---------------------------------------------------------------- */
.rating {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.rating__stars {
  display: inline-flex;
  gap: 1px;
  color: var(--color-accent);
}

.rating__star {
  width: 1rem;
  height: 1rem;
}

.rating__star--empty { color: var(--color-border-strong); }

.rating__value { font-weight: 600; color: var(--color-text); }
.rating__count { color: var(--color-text-muted); }

.rating--large .rating__star { width: 1.375rem; height: 1.375rem; }

/* Alert ----------------------------------------------------------------- */
.alert {
  --alert-color: var(--color-primary);
  --alert-bg: var(--tint-primary);
  --alert-line: var(--line-primary);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--alert-line);
  border-radius: var(--radius);
  background: var(--alert-bg);
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: 1.55;
}

/* Without an icon the body takes the whole width. */
.alert:not(:has(> .alert__icon)) { grid-template-columns: minmax(0, 1fr); }

.alert__icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.05rem;
  color: var(--alert-color);
}

.alert__body {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

.alert__title {
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.alert__text { margin: 0; }
.alert__text > * + * { margin-top: var(--space-2); }

.alert__text ul {
  margin: 0;
  padding-left: 1.2em;
}

.alert__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-2);
}

.alert--info {
  --alert-color: var(--color-primary);
  --alert-bg: var(--tint-primary);
  --alert-line: var(--line-primary);
}

.alert--success {
  --alert-color: var(--color-success);
  --alert-bg: var(--tint-success);
  --alert-line: var(--line-success);
}

.alert--warning {
  --alert-color: var(--color-warning);
  --alert-bg: var(--tint-warning);
  --alert-line: var(--line-warning);
}

.alert--error {
  --alert-color: var(--color-danger);
  --alert-bg: var(--tint-danger);
  --alert-line: var(--line-danger);
}

/* Clinical warning: safety information a customer must read. Stronger
   border, larger title, body in full text colour. */
.alert--clinical {
  --alert-color: var(--color-warning);
  --alert-bg: var(--tint-warning);
  --alert-line: var(--color-warning);
  border-width: 2px;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-md);
  gap: var(--space-4);
}

.alert--clinical .alert__icon {
  width: 1.5rem;
  height: 1.5rem;
}

.alert--clinical .alert__title {
  font-size: var(--text-lg);
}

.alert--compact {
  padding: var(--space-3) var(--space-4);
}

/* Error summary at the top of a form ---------------------------------- */
.error-summary {
  padding: var(--space-5) var(--space-6);
  border: 2px solid var(--color-danger);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.error-summary__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0;
}

.error-summary__title .icon { color: var(--color-danger); }

.error-summary__list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: var(--space-1);
}

.error-summary__list a {
  color: var(--color-danger);
  font-weight: 600;
}

/* Progress steps ------------------------------------------------------- */
.steps {
  display: grid;
  grid-auto-flow: row;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps__item {
  position: relative;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  column-gap: var(--space-3);
  padding-bottom: var(--space-5);
}

.steps__item::before {
  content: "";
  position: absolute;
  left: calc(0.875rem - 1px);
  top: 1.75rem;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.steps__item:last-child { padding-bottom: 0; }
.steps__item:last-child::before { display: none; }
.steps__item.is-complete::before { background: var(--color-primary); }

.steps__marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid var(--color-border-strong);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  grid-row: span 3;
}

.steps__marker .icon { width: 0.875rem; height: 0.875rem; stroke-width: 2.4; }

.steps__item.is-complete .steps__marker {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.steps__item.is-current .steps__marker {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--tint-primary-strong);
}

.steps__item.is-stopped .steps__marker {
  border-color: var(--color-text-muted);
  background: var(--color-text-muted);
  color: var(--color-surface);
}

.steps__label {
  align-self: center;
  min-height: 1.75rem;
  display: flex;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.steps__item:not(.is-complete):not(.is-current):not(.is-stopped) .steps__label {
  color: var(--color-text-muted);
  font-weight: 500;
}

.steps__meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.steps__detail {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text);
}

@media (min-width: 48rem) {
  .steps--horizontal {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }

  .steps--horizontal .steps__item {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    row-gap: var(--space-2);
    padding-bottom: 0;
    padding-right: var(--space-3);
  }

  .steps--horizontal .steps__item::before {
    left: 2.25rem;
    right: 0.5rem;
    top: calc(0.875rem - 1px);
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .steps--horizontal .steps__marker { grid-row: auto; }
  .steps--horizontal .steps__label { min-height: 0; }
}

/* Linear progress (questionnaire, free delivery) ------------------------ */
.progress {
  position: relative;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--color-surface-subtle);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: var(--value, 0%);
  border-radius: inherit;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.progress--complete .progress__bar { background: var(--color-success); }

.form-progress {
  display: grid;
  gap: var(--space-2);
}

.form-progress__label {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.form-progress__label strong { color: var(--color-text); }

/* Table ----------------------------------------------------------------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.table th,
.table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  vertical-align: middle;
  border-top: 1px solid var(--color-border);
}

.table thead th {
  border-top: 0;
  background: var(--color-surface-subtle);
  color: var(--color-text-muted);
  font-weight: 600;
  white-space: nowrap;
  padding-block: var(--space-3);
}

.table tbody tr:hover { background: color-mix(in srgb, var(--color-surface-subtle) 50%, var(--color-surface)); }

.table__numeric { text-align: right !important; }
.table__primary { font-weight: 600; color: var(--color-text); }
.table__muted { color: var(--color-text-muted); }

.table--compact th,
.table--compact td {
  padding: var(--space-3) var(--space-4);
}

@media (max-width: 47.99rem) {
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--stack,
  .table--stack tbody,
  .table--stack tr,
  .table--stack td { display: block; width: 100%; }
  .table--stack tr { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--color-border); }
  .table--stack tr:first-child { border-top: 0; }
  .table--stack td { border: 0; padding: var(--space-1) 0; display: flex; justify-content: space-between; gap: var(--space-4); text-align: right; }
  .table--stack td::before { content: attr(data-label); color: var(--color-text-muted); font-weight: 500; text-align: left; }
  .table--stack td.table__primary { display: block; text-align: left; font-size: var(--text-md); padding-bottom: var(--space-2); }
  .table--stack td.table__primary::before { content: none; }
  .table--stack .table__numeric { text-align: right; }
}

/* Tabs (server-side: each tab is a link) -------------------------------- */
.tabs {
  position: relative;
  display: flex;
  gap: var(--space-6);
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tabs__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 3rem;
  padding: 0 2px;
  color: var(--color-text-muted);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.tabs__tab:hover { color: var(--color-text); text-decoration: none; }

.tabs__tab[aria-current="page"],
.tabs__tab[aria-selected="true"] {
  color: var(--color-text);
  font-weight: 600;
}

.tabs__tab[aria-current="page"]::after,
.tabs__tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--color-primary);
}

.tabs__panel { padding-top: var(--space-6); }

/* Accordion (native details) -------------------------------------------- */
.accordion {
  border-bottom: 1px solid var(--color-border);
}

.accordion__item {
  border-top: 1px solid var(--color-border);
}

.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 3.5rem;
  padding-block: var(--space-4);
  list-style: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1.3;
  color: var(--color-text);
}

.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary::marker { content: ""; }

.accordion__summary:hover { color: var(--primary-hover); }

.accordion__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}

.accordion__item[open] > .accordion__summary .accordion__icon {
  transform: rotate(180deg);
}

/* Compact accordions use a plus, which turns into a cross when open */
.accordion--compact .accordion__item[open] > .accordion__summary .accordion__icon {
  transform: rotate(45deg);
}

.accordion__content {
  padding-bottom: var(--space-6);
}

.accordion__content:not(.rich-text) {
  display: grid;
  gap: var(--space-4);
}

.accordion--compact .accordion__summary {
  min-height: 3.25rem;
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0;
}

.accordion--compact .accordion__content {
  padding-bottom: var(--space-5);
  color: var(--color-text-muted);
}

/* FAQ section (the section library's faq and its editorial variant) -------
   1.0.6: until then the storefront Worker added these rules inline on every
   page (templates-worker src/themes/origin/index.js); they are unchanged. */
.storefront-content-faq__item {
  border-bottom: 1px solid var(--storefront-section-faq-line, #d6d9de);
}

.storefront-content-faq__toggle {
  position: relative;
  display: flex;
  min-height: 48px;
  padding: 12px 32px 12px 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.storefront-content-faq__toggle::-webkit-details-marker { display: none; }

.storefront-content-faq__toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.storefront-content-faq__icon {
  position: absolute;
  top: 50%;
  right: 2px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--storefront-section-faq-icon, currentColor);
}

.storefront-content-faq__icon::before,
.storefront-content-faq__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  content: '';
  transform: translate(-50%, -50%);
}

.storefront-content-faq__icon::before { width: 16px; height: 1px; }

.storefront-content-faq__icon::after {
  width: 1px;
  height: 16px;
  transition: transform 160ms ease-out;
}

.storefront-content-faq__item[open] .storefront-content-faq__icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.storefront-content-faq__answer {
  padding: 0 32px 16px 0;
  line-height: 1.6;
}

.storefront-content-faq--list .storefront-content-faq__item { padding: 16px 0; }

.storefront-content-faq--list .storefront-content-faq__question {
  margin: 0 0 6px;
  font: inherit;
  font-weight: 600;
}

.storefront-content-faq--list .storefront-content-faq__answer { padding: 0; }

.storefront-content-faq-editorial__items {
  border-top: 1px solid var(--storefront-section-faq-line, #d6d9de);
}

.storefront-content-faq-editorial__item {
  display: grid;
  grid-template-columns: minmax(112px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(16px, 3vw, 32px);
  padding: 20px 0;
  border-bottom: 1px solid var(--storefront-section-faq-line, #d6d9de);
}

.storefront-content-faq-editorial__question {
  margin: 0;
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
}

.storefront-content-faq-editorial__answer {
  color: var(--storefront-section-faq-answer, inherit);
  line-height: 1.6;
}

@media (max-width: 560px) {
  .storefront-content-faq-editorial__item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .storefront-content-faq__icon::after { transition: none; }
}

/* Modal (native dialog) ------------------------------------------------- */
.modal {
  width: min(35rem, calc(100% - 2rem));
  max-height: min(85vh, 48rem);
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal[open] {
  display: flex;
  flex-direction: column;
}

.modal::backdrop { background: var(--overlay); }

.modal--small { width: min(26rem, calc(100% - 2rem)); }
.modal--large { width: min(48rem, calc(100% - 2rem)); }

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.modal__title {
  font-size: var(--text-xl);
  line-height: 1.25;
}

.modal__subtitle {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.modal__close,
.drawer__close {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: calc(var(--space-2) * -1) calc(var(--space-2) * -1) 0 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-small);
  background: none;
  color: var(--color-text-muted);
  cursor: pointer;
  flex: none;
}

.modal__close:hover,
.drawer__close:hover {
  background: var(--color-surface-subtle);
  color: var(--color-text);
}

.modal__body {
  padding: var(--space-6);
  overflow-y: auto;
}

.modal__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

/* The consultation dialog: the runtime's (storefront-embeds.js), opened by a
   journey's Start consultation (data-priorly-start-form data-form-embed),
   with the form page in a frame. Its full-screen layout is the runtime's;
   Origin draws the bar along the top and the waiting state. The runtime's
   own sheet is unlayered, so what it sets needs !important here. */
.priorly-consultation[open] { background: var(--color-page) !important; color: var(--color-text); }
.priorly-consultation .consultation-header { padding: var(--space-3) var(--gutter) !important; border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.priorly-consultation .consultation-product { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.priorly-consultation .consultation-product img { width: 2.75rem; height: 2.75rem; border-radius: var(--radius-small); background: var(--color-surface-subtle); object-fit: contain; }
.priorly-consultation .consultation-product strong { display: block; font-family: var(--font-heading); font-size: var(--text-lg); font-weight: var(--heading-weight); line-height: 1.25; }
.priorly-consultation .consultation-product p { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.priorly-consultation .consultation-product p:empty { display: none; }
.priorly-consultation :is(.consultation-close, .secondary-btn, .full-btn) { min-height: 2.5rem; padding: 0 var(--space-4); border: 1px solid var(--color-border-strong); border-radius: var(--radius-button); background: var(--color-surface); color: var(--color-text); font: inherit; font-weight: 600; cursor: pointer; }
.priorly-consultation .full-btn { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-on-primary); }
.priorly-consultation :is(.consultation-close, .secondary-btn):hover { background: var(--color-surface-subtle); }
.priorly-consultation :is(.consultation-close, .secondary-btn, .full-btn):focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.priorly-consultation .consultation-loading { background: var(--color-page) !important; color: var(--color-text-muted) !important; }
.priorly-consultation .consultation-spinner { border-color: var(--color-border) !important; border-top-color: var(--color-primary) !important; }
.priorly-consultation .consultation-leave { padding: var(--space-3) var(--gutter) !important; border-color: var(--color-border) !important; background: var(--tint-warning); }

@media (max-width: 39.99rem) {
  .modal {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    border-bottom: 0;
    max-height: 92vh;
  }
  .modal__footer { flex-direction: column-reverse; }
  .modal__footer .button { width: 100%; }
}

/* Side drawer (native dialog) ------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(28rem, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
}

.drawer[open] {
  display: flex;
  flex-direction: column;
}

.drawer::backdrop { background: var(--overlay); }

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 4.25rem;
  padding: var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.drawer__title {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--text-xl);
}

.drawer__title-count {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0;
}

.drawer__close { margin: 0 calc(var(--space-2) * -1) 0 0; }

.drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: var(--space-2) var(--space-6) var(--space-6);
}

.drawer__body > .alert { margin-top: var(--space-4); }

/* Groups of fields in a drawer, such as filters */
.drawer__body > .fieldset { padding-block: var(--space-4); }
.drawer__body > .fieldset + .fieldset { border-top: 1px solid var(--color-border); }

.drawer__footer {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6) var(--space-6);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

/* Empty state ----------------------------------------------------------- */
.empty-state {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-12) var(--space-6);
  text-align: center;
}

.empty-state__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--space-2);
  border-radius: 50%;
  background: var(--color-surface-subtle);
  color: var(--color-text-muted);
}

.empty-state__icon .icon { width: 1.5rem; height: 1.5rem; }

.empty-state__title {
  font-size: var(--text-xl);
  line-height: 1.25;
}

.empty-state__text {
  max-width: 28rem;
  color: var(--color-text-muted);
}

.empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.empty-state--bordered {
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-card);
}

.empty-state--compact {
  padding: var(--space-8) var(--space-4);
}

.empty-state--left {
  justify-items: start;
  text-align: left;
}

.empty-state--left .empty-state__actions { justify-content: flex-start; }

/* Loading skeleton and spinner ----------------------------------------- */
.skeleton {
  display: block;
  border-radius: var(--radius-small);
  background:
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-surface) 70%, transparent), transparent) 0 0 / 40% 100% no-repeat,
    var(--color-surface-subtle);
  animation: origin-shimmer 1.4s ease-in-out infinite;
}

.skeleton--text { height: 0.875rem; width: 100%; }
.skeleton--title { height: 1.25rem; width: 60%; }
.skeleton--media { aspect-ratio: 1; width: 100%; border-radius: var(--radius); }
.skeleton--button { height: var(--control-height); width: 8rem; border-radius: var(--radius-button); }
.skeleton--circle { border-radius: 50%; }

@keyframes origin-shimmer {
  from { background-position: -40% 0, 0 0; }
  to { background-position: 140% 0, 0 0; }
}

.spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, currentColor 22%, transparent);
  border-top-color: currentColor;
  animation: origin-spin 0.8s linear infinite;
}

.spinner--large { width: 2.5rem; height: 2.5rem; border-width: 3px; }

/* Card: anything that sits on a surface. Follows the Cards choice. ------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: none;
}

.card--padded { padding: var(--space-6); }

.card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.card__title {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

.card__body { display: grid; gap: var(--space-3); }

.card__footer {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

a.card,
.card--link {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

a.card:hover,
.card--link:hover {
  border-color: var(--color-border-strong);
  color: inherit;
}

/* Product card --------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 48rem) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); }
}

@media (min-width: 64rem) {
  .product-grid { grid-template-columns: repeat(var(--columns, 4), minmax(0, 1fr)); }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: var(--color-surface-subtle);
  overflow: hidden;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Shown when a product has no photo yet */
.product-card__placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--space-2);
  height: 100%;
  padding: var(--space-4);
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  text-align: center;
}

.product-card__placeholder .icon { width: 2rem; height: 2rem; stroke-width: 1.3; }

.product-card__badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  pointer-events: none;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1 1 auto;
  padding: var(--space-3) var(--space-3) var(--space-4);
}

.product-card__title {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  overflow-wrap: break-word;
  hyphens: auto;
}

.product-card__link {
  color: var(--color-text);
  text-decoration: none;
}

.product-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.product-card__link:hover { color: var(--color-text); text-decoration: underline; }

.product-card__link:focus-visible { outline: none; }
.product-card:has(.product-card__link:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.product-card__meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.45;
}

.product-card__rating { margin-top: var(--space-1); }

.product-card__footer {
  display: grid;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-3);
}

.product-card__button {
  position: relative;
  z-index: 1;
  width: 100%;
  white-space: normal;
  padding-block: var(--space-2);
  text-wrap: balance;
}

.product-card--unavailable .product-card__image,
.product-card--unavailable .product-card__media > * {
  opacity: 0.55;
}

@media (min-width: 48rem) {
  .product-card__body { padding: var(--space-4) var(--space-5) var(--space-5); }
}

/* Breadcrumbs ----------------------------------------------------------- */
.breadcrumbs {
  font-size: var(--text-sm);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--color-text-muted);
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: var(--color-text-faint);
}

.breadcrumbs__link {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumbs__link:hover {
  color: var(--color-text);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] { color: var(--color-text); }

/* Pagination ------------------------------------------------------------ */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: var(--space-10);
}

.pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination__link {
  display: inline-grid;
  place-items: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding-inline: var(--space-3);
  border-radius: var(--radius-small);
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.pagination__link:hover { background: var(--color-surface-subtle); text-decoration: none; }

.pagination__link[aria-current="page"] {
  background: var(--color-text);
  color: var(--color-surface);
  font-weight: 600;
}

.pagination__link--direction {
  display: inline-flex;
  gap: var(--space-1);
}

.pagination__gap { color: var(--color-text-faint); padding-inline: var(--space-2); }

.load-more {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Chips ----------------------------------------------------------------- */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--color-text);
  color: var(--color-text);
  text-decoration: none;
}

.chip[aria-current="page"],
.chip[aria-current="true"],
.chip[aria-pressed="true"] {
  border-color: var(--color-text);
  background: var(--color-text);
  color: var(--color-surface);
}

.chip__count {
  font-size: var(--text-xs);
  color: inherit;
  opacity: 0.75;
}

/* Summary list (check your answers, form answers) ---------------------- */
.summary-list {
  margin: 0;
  border-top: 1px solid var(--color-border);
}

.summary-list__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-1) var(--space-6);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.summary-list__key {
  grid-column: 1 / -1;
  font-weight: 600;
  color: var(--color-text);
}

.summary-list__value {
  margin: 0;
  color: var(--color-text-muted);
}

.summary-list__action {
  align-self: start;
  justify-self: end;
}

@media (min-width: 48rem) {
  .summary-list__row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; align-items: baseline; }
  .summary-list__key { grid-column: auto; }
  .summary-list__value { color: var(--color-text); }
}

/* Answers grouped by step, each group a heading over a summary list */
.summary-group {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}

.summary-group__title { font-size: var(--text-xl); }

/* Detail list (key and value pairs) ------------------------------------ */
.detail-list {
  display: grid;
  grid-template-columns: minmax(7rem, auto) minmax(0, 1fr);
  gap: var(--space-3) var(--space-5);
  margin: 0;
  font-size: var(--text-sm);
}

.detail-list__term {
  color: var(--color-text-muted);
}

.detail-list__value {
  margin: 0;
  color: var(--color-text);
}

.detail-list--stacked {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-1);
}

.detail-list--stacked .detail-list__value + .detail-list__term { margin-top: var(--space-3); }

/* Totals ---------------------------------------------------------------- */
.totals {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.totals__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}

.totals__label { color: var(--color-text-muted); }
.totals__value { margin: 0; color: var(--color-text); text-align: right; }
.totals__row--discount .totals__value { color: var(--color-success); font-weight: 600; }

.totals__row--total {
  margin-top: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-lg);
  font-weight: 600;
}

.totals__row--total .totals__label { color: var(--color-text); }

.totals__note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Outcome: confirmations, stops and status pages ----------------------- */
.outcome {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
}

.outcome__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--tint-primary);
  color: var(--color-primary);
}

.outcome__icon .icon { width: 1.625rem; height: 1.625rem; }

.outcome--success .outcome__icon { background: var(--tint-success); color: var(--color-success); }
.outcome--warning .outcome__icon { background: var(--tint-warning); color: var(--color-warning); }
.outcome--error .outcome__icon { background: var(--tint-danger); color: var(--color-danger); }
.outcome--neutral .outcome__icon { background: var(--color-surface-subtle); color: var(--color-text-muted); }

.outcome__title { font-size: var(--text-h2); }

.outcome__text {
  color: var(--color-text-muted);
  font-size: var(--text-md);
}

.outcome__text + .outcome__text { margin-top: calc(var(--space-2) * -1); }

.outcome__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.outcome__meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.outcome--left {
  justify-items: start;
  text-align: left;
  margin-inline: 0;
}

.outcome--left .outcome__actions { justify-content: flex-start; }

/* Full-width, left-aligned area inside a centred outcome (file lists,
   detail lists, forms) */
.outcome__body {
  justify-self: stretch;
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-2);
  text-align: left;
}

/* The product or appointment a status page is about */
.outcome__item {
  justify-self: stretch;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: left;
}

/* Store mark and name on pages reached from an email */
.outcome__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--color-text);
}

.outcome__brand .icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--color-primary);
}

@media (max-width: 39.99rem) {
  .outcome__actions--stacked {
    justify-self: stretch;
    flex-direction: column;
  }
}

.next-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-5);
  text-align: left;
  counter-reset: next-step;
}

.next-steps__item {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: var(--space-1) var(--space-4);
  counter-increment: next-step;
}

.next-steps__item::before {
  content: counter(next-step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}

.next-steps__title { font-weight: 600; line-height: 2rem; }
.next-steps__text { font-size: var(--text-sm); color: var(--color-text-muted); }

.reference {
  display: inline-block;
  padding: 0.125rem var(--space-2);
  border-radius: var(--radius-small);
  background: var(--color-surface-subtle);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

/* Avatar ---------------------------------------------------------------- */
.avatar {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--tint-primary-strong);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  overflow: hidden;
  flex: none;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--small { width: 2rem; height: 2rem; font-size: var(--text-xs); }
.avatar--large { width: 3.5rem; height: 3.5rem; font-size: var(--text-md); }

/* File item (documents, leaflets, attachments) ------------------------- */
.file-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--color-border);
}

.file-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.file-item__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: var(--color-surface-subtle);
  color: var(--color-text-muted);
}

.file-item__title {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.file-item__meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.file-item__actions {
  display: flex;
  gap: var(--space-2);
}

@media (max-width: 39.99rem) {
  .file-item { grid-template-columns: auto minmax(0, 1fr); }
  .file-item__actions { grid-column: 2; }
}

/* Upload (native file input inside a drop zone) ------------------------ */
.upload {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  padding: var(--space-10) var(--space-6);
  border: 1.5px dashed var(--color-border-strong);
  border-radius: var(--radius-card);
  background: var(--color-surface-subtle);
  text-align: center;
  cursor: pointer;
}

.upload:hover { border-color: var(--color-text-muted); }
.upload:has(.upload__input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.upload__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload__icon { color: var(--color-primary); }
.upload__title { font-weight: 600; }
.upload__hint { font-size: var(--text-sm); color: var(--color-text-muted); }

/* Date tile ------------------------------------------------------------- */
.date-tile {
  display: grid;
  justify-items: center;
  align-content: center;
  width: 4rem;
  min-height: 4.25rem;
  padding-block: var(--space-2);
  border-radius: var(--radius);
  background: var(--tint-primary);
  color: var(--color-primary);
  flex: none;
}

.date-tile__month {
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.2;
}

.date-tile__day {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  line-height: 1;
}

.date-tile--muted {
  background: var(--color-surface-subtle);
  color: var(--color-text-muted);
}

/* Copy field (tracking numbers, links) --------------------------------- */
.copy-field {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-1) var(--space-1) var(--space-1) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface-subtle);
}

.copy-field__value {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Key facts ------------------------------------------------------------- */
.key-facts {
  margin: 0;
  border-top: 1px solid var(--color-border);
}

.key-facts__row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.key-facts__term { color: var(--color-text-muted); }
.key-facts__value { margin: 0; font-weight: 500; }

/* Fact list (icon and short line) -------------------------------------- */
.fact-list {
  display: grid;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}

.fact-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.fact-list__icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--tint-primary);
  color: var(--color-primary);
  flex: none;
}

.fact-list__icon .icon { width: 1.125rem; height: 1.125rem; }

.fact-list--inline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
}

/* Table of contents ----------------------------------------------------- */
.toc {
  font-size: var(--text-sm);
}

.toc__title {
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--color-border);
}

.toc__link {
  display: block;
  margin-left: -1px;
  padding: var(--space-2) var(--space-4);
  border-left: 2px solid transparent;
  color: var(--color-text-muted);
  text-decoration: none;
  line-height: 1.4;
}

.toc__link:hover { color: var(--color-text); }

.toc__link[aria-current="true"],
.toc__link[aria-current="location"] {
  border-left-color: var(--color-primary);
  color: var(--color-text);
  font-weight: 600;
}

/* Sticky bar (consultation start, phone buy bar) ----------------------- */
.sticky-bar {
  position: sticky;
  bottom: 0;
  z-index: 25;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 24px color-mix(in srgb, var(--color-text) 6%, transparent);
}

.sticky-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}

.sticky-bar__text { display: grid; min-width: 0; }
.sticky-bar__title { font-weight: 600; line-height: 1.3; }
.sticky-bar__meta { font-size: var(--text-sm); color: var(--color-text-muted); }

@media (max-width: 39.99rem) {
  .sticky-bar__meta { display: none; }
}

/* Inline notice line (icon and short text) ------------------------------ */
.note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.45;
  margin: 0;
}

.note .icon { width: 1.125rem; height: 1.125rem; margin-top: 0.05rem; color: var(--color-text-muted); }
.note--success, .note--success .icon { color: var(--color-success); }
.note--warning, .note--warning .icon { color: var(--color-warning); }
.note--error, .note--error .icon { color: var(--color-danger); }

/* 9. Shared parts ---------------------------------------------------------- */

/* Announcement bar ------------------------------------------------------ */
.announcement-bar {
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.announcement-bar__inner {
  display: flex;
  justify-content: center;
  gap: var(--space-2) var(--space-6);
  flex-wrap: wrap;
  padding-block: var(--space-2);
  text-align: center;
}

.announcement-bar a {
  color: inherit;
  font-weight: 600;
}

/* Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand actions";
  align-items: center;
  column-gap: var(--space-4);
  min-height: var(--header-height);
}

.site-header__brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  max-width: 100%;
  min-height: 2.75rem;
  color: var(--color-text);
  text-decoration: none;
  justify-self: start;
}

.site-header__brand:hover { color: var(--color-text); text-decoration: none; }

.site-header__logo {
  display: block;
  height: 2.25rem;
  width: auto;
  max-width: 11rem;
  object-fit: contain;
}

.site-header__mark {
  width: 2rem;
  height: 2rem;
  flex: none;
  color: var(--color-primary);
}

.site-header__name {
  min-width: 0;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 63.99rem) {
  .site-header .header-action--account { display: none; }
  .site-header__mark { width: 1.75rem; height: 1.75rem; }
  .site-header__brand { gap: var(--space-2); }
  .site-header__inner { column-gap: var(--space-2); }
}

@media (min-width: 64rem) {
  .site-header__name { font-size: var(--text-xl); }
}

/* 1.0.4: a name's accent mark (logo_accent, like a full stop) in the accent
   colour, in the header and the footer. */
.site-header__accent,
.site-footer__accent { color: var(--color-accent); }

/* 1.0.4: the booking button on a phone too (cta_on_phone). */
@media (max-width: 63.99rem) {
  .site-header--cta-phone .header-cta { display: inline-flex; }
}

/* 1.0.4: the menu beside the buttons (menu_position end). */
@media (min-width: 64rem) {
  .site-header--menu-end .nav__list { justify-content: flex-end; }
}

.site-header__nav {
  grid-area: nav;
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 2.75rem;
  padding-inline: var(--space-3);
  border-radius: var(--radius-small);
  color: var(--color-text-muted);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--color-text);
  background: var(--color-surface-subtle);
  text-decoration: none;
}

.nav__link[aria-current="page"],
.nav__link[aria-current="true"] {
  color: var(--color-text);
}

.nav__link[aria-current="page"]::after,
.nav__link[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: 0.375rem;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
}

.site-header__search {
  grid-area: search;
}

.site-header .site-header__search {
  display: none;
}

.site-header__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 var(--space-2);
  border: 0;
  border-radius: var(--radius-small);
  background: none;
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}

.header-action::-webkit-details-marker { display: none; }
.header-action::marker { content: ""; }

.header-action:hover {
  background: var(--color-surface-subtle);
  color: var(--color-text);
  text-decoration: none;
}

.header-action__icon {
  width: 1.375rem;
  height: 1.375rem;
}

.header-action__label {
  display: none;
}

.header-action .count {
  position: absolute;
  top: 0.125rem;
  right: 0;
}

.header-action .avatar { width: 1.75rem; height: 1.75rem; font-size: 0.6875rem; }

.header-cta {
  display: none;
  margin-left: var(--space-2);
}

/* Phone menu: native details, so it works without JavaScript */
.mobile-menu { position: static; }

.mobile-menu__icon-close { display: none; }
.mobile-menu[open] .mobile-menu__icon-open { display: none; }
.mobile-menu[open] .mobile-menu__icon-close { display: block; }

.mobile-menu__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 40;
  height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  padding: var(--space-4) var(--gutter) var(--space-12);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  display: grid;
  align-content: start;
  gap: var(--space-6);
}

.mobile-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  letter-spacing: var(--heading-tracking);
  text-decoration: none;
}

.mobile-menu__link .icon { color: var(--color-text-muted); }
.mobile-menu__link[aria-current="page"] { color: var(--color-primary); }

.mobile-menu__secondary {
  display: grid;
  gap: var(--space-2);
}

.mobile-menu__secondary-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 2.75rem;
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
}

.mobile-menu__contact {
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--color-surface-subtle);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.mobile-menu__contact strong { color: var(--color-text); }

/* Minimal header for checkout, questionnaires, sign in and status pages */
.site-header--minimal { position: static; }

.site-header__meta {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.site-header__meta-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.site-header__meta-item .icon { width: 1.125rem; height: 1.125rem; }

@media (max-width: 39.99rem) {
  .site-header__meta-item--optional { display: none; }
}

@media (min-width: 64rem) {
  .site-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav actions";
    column-gap: var(--space-8);
  }

  .site-header--minimal .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions";
  }

  .site-header__nav { display: block; }
  .header-action { padding-inline: var(--space-3); }
  .header-action__label { display: inline; }
  .header-action .count { position: static; }
  .header-action--icon-only .header-action__label { display: none; }
  .header-action--menu,
  .mobile-menu { display: none; }
  .header-cta { display: inline-flex; }
}

/* Footer ---------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: var(--color-surface-subtle);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.site-footer__main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-10) var(--space-6);
  padding-block: var(--space-12) var(--space-10);
}

.site-footer__brand {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--space-4);
  align-content: start;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  justify-self: start;
}

.site-footer__about {
  max-width: 24rem;
}

.site-footer__contact {
  font-style: normal;
  display: grid;
  gap: var(--space-1);
}

.site-footer__contact a { color: var(--color-text); font-weight: 600; text-decoration: none; }
.site-footer__contact a:hover { text-decoration: underline; }

.site-footer__heading {
  margin: 0 0 var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-text);
}

.site-footer__links {
  display: grid;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: var(--color-text-muted);
  text-decoration: none;
}

.site-footer__link:hover {
  color: var(--color-text);
  text-decoration: underline;
}

.site-footer__social {
  display: flex;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-link {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: var(--color-text-muted);
}

.social-link:hover { background: var(--color-surface); color: var(--color-text); }

.hours {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: var(--space-1) var(--space-6);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.hours__day { color: var(--color-text-muted); }
.hours__time { margin: 0; color: var(--color-text); white-space: nowrap; }
.hours__day--today,
.hours__time--today { font-weight: 600; color: var(--color-text); }

.hours__note {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
}

.site-footer__regulatory {
  display: grid;
  gap: var(--space-6);
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.site-footer__marks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: flex-start;
}

.regulatory-mark {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.35;
}

.regulatory-mark:hover { border-color: var(--color-text); color: var(--color-text); text-decoration: none; }
.regulatory-mark .icon { width: 1.75rem; height: 1.75rem; color: var(--color-primary); }
.regulatory-mark__title { display: block; font-weight: 600; }
.regulatory-mark__detail { display: block; font-size: var(--text-xs); color: var(--color-text-muted); }

.site-footer__legal {
  display: grid;
  gap: var(--space-2);
  max-width: 60rem;
  color: var(--color-text-muted);
}

.site-footer__legal strong { color: var(--color-text); font-weight: 600; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer--minimal .site-footer__bottom { border-top: 0; }

/* 1.0.4: the simple footer, for a small site: the name and one row of links,
   then the about line, company details and copyright in small print. */
.site-footer--simple { background: var(--color-page); }

.site-footer__simple-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-8);
  padding-block: var(--space-10) var(--space-6);
}

.site-footer--simple .site-footer__logo { font-size: var(--text-lg); }

.site-footer__simple-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__simple-links .site-footer__link { color: var(--color-text-muted); text-decoration: none; }
.site-footer__simple-links .site-footer__link:hover { color: var(--color-text); }

.site-footer__simple-legal {
  display: grid;
  gap: var(--space-2);
  max-width: 52rem;
  padding-block: var(--space-6) var(--space-10);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  line-height: 1.8;
}

.site-footer__simple-legal p { margin: 0; }

.site-footer__column--hours { grid-column: 1 / -1; }

@media (min-width: 48rem) {
  .site-footer__main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__column--hours { grid-column: auto; }
}

@media (min-width: 64rem) {
  .site-footer__main {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr);
    gap: var(--space-10);
    padding-block: var(--space-16) var(--space-12);
  }
  .site-footer__brand { grid-column: auto; }
  /* Hours keep the wide last track whatever number of link columns a business has. */
  .site-footer__column--hours { grid-column: -2 / -1; }
  /* With fewer than three link columns, hours take the spare track too. */
  .site-footer__column--hours:nth-child(-n+4) { grid-column: -3 / -1; }
  .site-footer__regulatory { grid-template-columns: auto minmax(0, 1fr); gap: var(--space-10); }
}

/* Cart drawer ----------------------------------------------------------- */
.delivery-progress {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface-subtle);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.delivery-progress__text { margin: 0; }
.delivery-progress .progress { background: var(--color-surface); }
.delivery-progress--done .delivery-progress__text { color: var(--color-success); font-weight: 600; display: flex; gap: var(--space-2); align-items: center; }

/* 1.0.6: the Free delivery progress business section, when a store places it
   in basket markup of its own ({% section 'free-delivery-progress' %}); the
   drawer above has its own bar. Its look follows the tokens; a store's CSS
   can set the --delivery-progress-* variables for an appearance of its own.
   Priorly used to add every appearance inline on every page. */
.priorly-delivery-progress {
  flex: none;
  padding: var(--delivery-progress-padding, 0);
  margin: var(--delivery-progress-margin, 0 0 var(--space-4));
  border-bottom: var(--delivery-progress-border, 0);
  background: var(--delivery-progress-background, transparent);
  color: var(--delivery-progress-color, inherit);
  font: inherit;
}

.priorly-delivery-progress__message {
  margin: 0 0 var(--space-2);
  color: inherit;
  font: inherit;
  font-size: var(--delivery-progress-font-size, var(--text-sm));
  line-height: 1.5;
}

.priorly-delivery-progress__bar {
  display: block;
  width: 100%;
  height: var(--delivery-progress-height, 3px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  background: var(--delivery-progress-track, var(--color-border));
  color: var(--delivery-progress-accent, var(--color-primary));
}

.priorly-delivery-progress__bar::-webkit-progress-bar { background: var(--delivery-progress-track, var(--color-border)); }
.priorly-delivery-progress__bar::-webkit-progress-value { background: var(--delivery-progress-accent, var(--color-primary)); }
.priorly-delivery-progress__bar::-moz-progress-bar { background: var(--delivery-progress-accent, var(--color-primary)); }

.cart-lines {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.cart-line__media {
  display: block;
  width: 4.5rem;
  aspect-ratio: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface-subtle);
  overflow: hidden;
}

.cart-line__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-line__body {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
  align-content: start;
}

.cart-line__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.cart-line__title {
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
  text-decoration: none;
}

.cart-line__title:hover { color: var(--color-text); text-decoration: underline; }

.cart-line__price {
  display: grid;
  justify-items: end;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cart-line__price s {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
}

.cart-line__meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.cart-line__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-1);
}

.cart-line__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.cart-line__notice {
  margin-top: var(--space-2);
}

.cart-line--busy { opacity: 0.6; }

.cart-addons {
  margin-top: var(--space-6);
}

.cart-addons__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0;
}

.addon {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-3);
}

.addon + .addon { border-top: 1px solid var(--color-border); }

.addon__media {
  width: 3.5rem;
  aspect-ratio: 1;
  border-radius: var(--radius-small);
  background: var(--color-surface-subtle);
  overflow: hidden;
}

.addon__title { font-size: var(--text-sm); font-weight: 600; line-height: 1.35; }
.addon__price { font-size: var(--text-sm); color: var(--color-text-muted); }

.cart-drawer__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin: calc(var(--space-1) * -1) 0 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.cart-drawer__note .icon { width: 1rem; height: 1rem; }

/* Search panel ---------------------------------------------------------- */
.search-panel {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  max-width: 100%;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.search-panel::backdrop { background: var(--overlay); }

.search-panel__inner {
  padding-block: var(--space-4) var(--space-8);
}

.search-form {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.search-form__field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.search-form__icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.search-form__input {
  padding-left: calc(var(--space-4) + 1.75rem);
  padding-right: var(--space-12);
}

.search-form__input::-webkit-search-cancel-button { -webkit-appearance: none; }

.search-form__clear {
  position: absolute;
  right: var(--space-1);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: var(--radius-small);
  background: none;
  color: var(--color-text-muted);
}

.search-form__clear:hover { background: var(--color-surface-subtle); color: var(--color-text); }

.search-form--large .search-form__input {
  min-height: var(--control-height-lg);
  font-size: var(--text-lg);
}

.search-panel__status {
  margin: var(--space-5) 0 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.search-panel__status strong { color: var(--color-text); }

.search-panel__alert { margin-top: var(--space-5); }

.search-panel__suggestion {
  margin: var(--space-5) 0 0;
  font-size: var(--text-md);
}

.search-panel__results {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-6);
}

.search-panel__group-title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-text-muted);
}

.search-panel__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}

.search-panel__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.search-result {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-2);
  border-radius: var(--radius);
  color: var(--color-text);
  text-decoration: none;
}

.search-result:hover,
.search-result[aria-selected="true"] {
  background: var(--color-surface-subtle);
  color: var(--color-text);
  text-decoration: none;
}

.search-result__media {
  display: grid;
  place-items: center;
  width: 3.25rem;
  aspect-ratio: 1;
  border-radius: var(--radius-small);
  background: var(--color-surface-subtle);
  color: var(--color-text-muted);
  overflow: hidden;
}

.search-result__title { display: block; font-weight: 600; line-height: 1.35; }
.search-result__meta { display: block; font-size: var(--text-sm); color: var(--color-text-muted); }
.search-result__price { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

.search-result mark,
.search-results mark {
  background: var(--tint-accent);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}

.search-result--compact {
  grid-template-columns: auto minmax(0, 1fr);
  padding-block: var(--space-3);
}

@media (min-width: 64rem) {
  .search-panel__inner { padding-block: var(--space-6) var(--space-10); }
  .search-panel__results { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-12); }
  .search-panel__results--single { grid-template-columns: minmax(0, 1fr); }
}

/* Cookie banner --------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: var(--space-3);
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 60;
  display: grid;
  gap: var(--space-5);
  max-width: 62rem;
  max-height: calc(100dvh - var(--space-6));
  margin-inline: auto;
  padding: var(--space-6);
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
}

.cookie-banner__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.cookie-banner__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.cookie-banner__actions {
  display: grid;
  gap: var(--space-2);
}

.cookie-preferences {
  display: grid;
  border-top: 1px solid var(--color-border);
}

.cookie-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.cookie-option__title {
  font-size: var(--text-md);
}

.cookie-option__text {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.cookie-option__status {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

@media (min-width: 48rem) {
  .cookie-banner {
    left: var(--space-6);
    right: var(--space-6);
    bottom: var(--space-6);
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-8);
  }
  .cookie-banner__actions { grid-auto-flow: column; }
  .cookie-banner--choosing { grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: var(--space-5); }
  .cookie-banner--choosing .cookie-banner__actions { justify-content: end; }
}

/* 10. Templates ------------------------------------------------------------ */

/* Page header (content pages, collections, account, search) ------------ */
.page-header {
  padding-block: var(--space-8) var(--space-8);
}

.page-header__inner {
  display: grid;
  gap: var(--space-3);
}

.page-header__title {
  font-size: var(--text-h1);
}

.page-header__intro {
  max-width: 44rem;
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--color-text-muted);
}

.page-header__meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.page-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.page-header--rule { border-bottom: 1px solid var(--color-border); }

@media (min-width: 64rem) {
  .page-header { padding-block: var(--space-12) var(--space-10); }
}

/* Home: hero ------------------------------------------------------------ */
.hero {
  padding-block: var(--space-10) var(--space-12);
}

.hero__inner {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

.hero__content {
  display: grid;
  gap: var(--space-5);
  align-content: center;
}

.hero__title {
  font-size: var(--text-display);
  max-width: 15ch;
}

.hero__text {
  max-width: 34rem;
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--color-text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__trust-item .icon { color: var(--color-primary); width: 1.125rem; height: 1.125rem; }

.hero__media {
  position: relative;
  min-width: 0;
}

.hero__image {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.hero--centred .hero__inner { justify-items: center; text-align: center; }
.hero--centred .hero__content { justify-items: center; }
.hero--centred .hero__title { max-width: 20ch; }
.hero--centred .hero__actions,
.hero--centred .hero__trust { justify-content: center; }

@media (min-width: 64rem) {
  .hero { padding-block: var(--space-16) var(--space-12); }
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--space-16); }
  .hero--centred .hero__inner { grid-template-columns: minmax(0, 1fr); }
}

/* Home: categories ------------------------------------------------------ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-6);
  height: 100%;
  min-height: 8.5rem;
  padding: var(--space-5);
}

.category-card__icon {
  width: 2rem;
  height: 2rem;
  color: var(--color-primary);
  stroke-width: 1.4;
}

.category-card__title {
  display: block;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

.category-card__meta {
  display: block;
  margin-top: 2px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (min-width: 48rem) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
}

@media (min-width: 64rem) {
  .category-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* How it works ---------------------------------------------------------- */
.how-it-works__list {
  display: grid;
  gap: var(--space-8);
  list-style: none;
  padding: 0;
  margin: 0;
}

.how-it-works__item {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border-strong);
}

.how-it-works__number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  line-height: 1;
  color: var(--color-primary);
}

.how-it-works__title { font-size: var(--text-xl); }
.how-it-works__text { color: var(--color-text-muted); }

.how-it-works__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-10);
}

@media (min-width: 48rem) {
  .how-it-works__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
}

/* Reviews --------------------------------------------------------------- */
.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
}

.reviews-summary__score {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  line-height: 1;
  color: var(--color-text);
}

.reviews-summary__text { color: var(--color-text-muted); font-size: var(--text-sm); }

.review-grid {
  display: grid;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
  margin: 0;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  padding: var(--space-6);
}

.review-card__title { font-weight: 600; line-height: 1.35; }
.review-card__text { color: var(--color-text); }

.review-card__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.review-card__author { font-weight: 600; color: var(--color-text); }

.review-card__verified {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-success);
  font-weight: 500;
}

.review-card__verified .icon { width: 1rem; height: 1rem; }

.review-list {
  display: grid;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* In a list, reviews are rows rather than cards, whatever the card choice */
.review-list .review-card,
.review-list .review-card.card {
  padding: var(--space-6) 0;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.rating-bars {
  display: grid;
  gap: var(--space-2);
  margin: 0;
}

.rating-bars__row {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) 2.25rem;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.rating-bars__track {
  height: 0.5rem;
  border-radius: 999px;
  background: var(--color-surface-subtle);
  overflow: hidden;
}

.rating-bars__fill {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  background: var(--color-accent);
  border-radius: inherit;
}

.rating-bars__count { text-align: right; font-variant-numeric: tabular-nums; }
.rating-bars dd { margin: 0; }
.product-details__leaflet { margin-top: var(--space-5); }

@media (min-width: 48rem) {
  .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
}

/* Guides ---------------------------------------------------------------- */
.guide-grid {
  display: grid;
  gap: var(--space-6);
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  color: var(--color-text);
  text-decoration: none;
}

.guide-card__media {
  aspect-ratio: 16 / 10;
  background: var(--color-surface-subtle);
  overflow: hidden;
}

.guide-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* No picture: the icon in the middle of the box (a guide, or a product a
   guide mentions, without one). */
.guide-card__media,
.product-cta__media,
.addon__media { display: grid; place-items: center; color: var(--color-text-faint); }
.guide-card__media > .icon { width: 2.5rem; height: 2.5rem; stroke-width: 1.3; }
.product-cta__media > .icon,
.addon__media > .icon { width: 1.5rem; height: 1.5rem; stroke-width: 1.3; }
.product-cta__media > img,
.addon__media > img { width: 100%; height: 100%; object-fit: cover; }

.guide-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1 1 auto;
  padding: var(--space-5) var(--space-5) var(--space-6);
}

.guide-card__topic {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
}

.guide-card__title {
  font-size: var(--text-xl);
  line-height: 1.22;
}

.guide-card__excerpt {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.guide-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

a.guide-card:hover .guide-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }

.guide-card--feature .guide-card__title { font-size: var(--text-3xl); }
.guide-card--feature .guide-card__excerpt { font-size: var(--text-md); }

/* Phones: guide cards in a list sit beside a small picture, so a list of
   guides doesn't run to several screens */
@media (max-width: 39.99rem) {
  .guide-grid .guide-card:not(.guide-card--feature) {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }

  .guide-grid .guide-card:not(.guide-card--feature) .guide-card__media { aspect-ratio: auto; min-height: 100%; }
  .guide-grid .guide-card:not(.guide-card--feature) .guide-card__body { gap: var(--space-1); padding: var(--space-4); }
  .guide-grid .guide-card:not(.guide-card--feature) .guide-card__title { font-size: var(--text-lg); }
  .guide-grid .guide-card:not(.guide-card--feature) .guide-card__excerpt { display: none; }
  .guide-grid .guide-card:not(.guide-card--feature) .guide-card__meta { padding-top: var(--space-2); font-size: var(--text-xs); }
}

@media (min-width: 48rem) {
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
  .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-card--feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .guide-card--feature .guide-card__media { aspect-ratio: auto; min-height: 22rem; }
  .guide-card--feature .guide-card__body { padding: var(--space-10); justify-content: center; }
}

/* Content page ---------------------------------------------------------- */
.content-layout {
  display: grid;
  gap: var(--space-10);
}

@media (min-width: 64rem) {
  .content-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--space-16); }
  .content-layout__aside { position: sticky; top: calc(var(--header-height) + var(--space-8)); align-self: start; }
}

.contact-layout {
  display: grid;
  gap: var(--space-10);
}

.contact-form {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-6);
}

.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.contact-details {
  display: grid;
  gap: var(--space-6);
  align-content: start;
}

.contact-details__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
}

.contact-details__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--tint-primary);
  color: var(--color-primary);
}

.contact-details__title { font-weight: 600; }
.contact-details__text { color: var(--color-text-muted); }
.contact-details__text a { font-weight: 600; }

/* About page: the team */
.team-grid {
  display: grid;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
  margin: 0;
}

.team-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--space-4);
  height: 100%;
  padding: var(--space-6);
}

.team-card__body { display: grid; gap: var(--space-1); min-width: 0; }
.team-card__role { font-size: var(--text-sm); color: var(--color-text-muted); }
.team-card__registration { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); font-variant-numeric: tabular-nums; }
.team-card__text { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }

@media (min-width: 64rem) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
  /* Four people sit two by two rather than three and one */
  .team-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
  .contact-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-16); }
  .contact-form { padding: var(--space-10); }
}

/* Product --------------------------------------------------------------- */
.product {
  padding-block: var(--space-4) var(--space-12);
}

.product__breadcrumbs { margin-bottom: var(--space-5); }

.product__layout {
  display: grid;
  grid-template-areas: "gallery" "info";
  gap: var(--space-6);
  align-items: start;
}

.product__gallery { grid-area: gallery; min-width: 0; }
.product__info { grid-area: info; min-width: 0; }

.gallery {
  display: grid;
  gap: var(--space-3);
}

.gallery__main {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--radius-card);
  background: var(--color-surface-subtle);
  overflow: hidden;
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery__badges {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.gallery__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface-subtle);
  overflow: hidden;
  cursor: pointer;
}

.gallery__thumb[aria-current="true"] {
  border-color: var(--color-text);
  box-shadow: 0 0 0 1px var(--color-text);
}

.gallery__placeholder {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  color: var(--color-text-faint);
  font-size: var(--text-sm);
  text-align: center;
}

.gallery__placeholder .icon { width: 3rem; height: 3rem; stroke-width: 1.2; }

.product-info {
  display: grid;
  gap: var(--space-5);
}

.product-info__header {
  display: grid;
  gap: var(--space-2);
}

.product-info__brand {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.product-info__title {
  font-size: clamp(var(--text-2xl), 1.2rem + 1.6vw, var(--text-4xl));
  line-height: 1.12;
}

.product-info__subtitle {
  color: var(--color-text-muted);
}

.product-info__rating {
  color: inherit;
  text-decoration: none;
}

.product-info__rating:hover .rating__count { text-decoration: underline; }

.product-info__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.product-info__summary { color: var(--color-text); }

.buy-box {
  display: grid;
  gap: var(--space-5);
}

.buy-box__actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
}

.buy-box__actions--single { grid-template-columns: minmax(0, 1fr); }

.buy-box__notify {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  border-radius: var(--radius);
  background: var(--color-surface-subtle);
}

.buy-box__notify-title { font-weight: 600; }

.variant-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(9rem, 100%), 1fr));
  gap: var(--space-2);
}

.variant-option {
  position: relative;
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 3.75rem;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
}

.variant-option:hover { border-color: var(--color-text-muted); }

.variant-option__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.variant-option__label { font-weight: 600; font-size: var(--text-sm); line-height: 1.3; }
.variant-option__price { font-size: var(--text-sm); color: var(--color-text-muted); font-variant-numeric: tabular-nums; }

.variant-option:has(.variant-option__input:checked) {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
  background: var(--tint-primary);
}

.variant-option:has(.variant-option__input:focus-visible) {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.variant-option--unavailable {
  border-style: dashed;
  border-color: var(--color-border-strong);
  background: var(--color-surface-subtle);
  color: var(--color-text-muted);
}

.variant-option--unavailable .variant-option__label { text-decoration: line-through; text-decoration-thickness: 1px; }

/* An option that changes the picture (a colour, a glaze) shows the image of
   its first variant beside the label. The label, and the price when there is
   one, sit centred beside the image. */
.variant-option:has(.variant-option__media) {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto auto 1fr;
  column-gap: var(--space-3);
  row-gap: 0;
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-2);
}

.variant-option:has(.variant-option__media) .variant-option__label { grid-column: 2; grid-row: 2; }
.variant-option:has(.variant-option__media) .variant-option__price { grid-column: 2; grid-row: 3; }

.variant-option__media {
  grid-column: 1;
  grid-row: 1 / -1;
  display: block;
  width: 2.75rem;
  aspect-ratio: 1;
  border-radius: var(--radius-small);
  background: var(--color-surface-subtle);
  overflow: hidden;
}

.variant-option__media img { width: 100%; height: 100%; object-fit: cover; }

/* Short labels, such as clothing sizes */
.variant-options--compact { grid-template-columns: repeat(auto-fill, minmax(4rem, 1fr)); }

.variant-options--compact .variant-option {
  min-height: var(--control-height);
  padding: var(--space-2);
  justify-items: center;
  text-align: center;
}

.plan-options {
  display: grid;
  gap: var(--space-2);
}

.plan-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-1) var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
}

.plan-option:has(.choice__input:checked) {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
  background: var(--tint-primary);
}

.plan-option:has(.choice__input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.plan-option .choice__input:focus-visible { outline: none; }

.plan-option__label { cursor: pointer; }
.plan-option__title { display: block; font-weight: 600; line-height: 1.4; }
.plan-option__text { display: block; font-size: var(--text-sm); color: var(--color-text-muted); }

.plan-option__price {
  display: grid;
  justify-items: end;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.plan-option__saving { font-size: var(--text-sm); color: var(--color-accent); font-weight: 600; }

.plan-option__extra {
  grid-column: 2 / -1;
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.plan-option:not(:has(.choice__input:checked)) .plan-option__extra { display: none; }

.supply-info {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  background: var(--color-surface-subtle);
}

.supply-info__icon { color: var(--color-text-muted); margin-top: 0.1rem; }
.supply-info__title { font-weight: 600; font-size: var(--text-sm); }
.supply-info__text { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 2px; }
.supply-info__text a { font-weight: 600; }

.supply-info--pharmacy { background: var(--tint-primary); }
.supply-info--pharmacy .supply-info__icon { color: var(--color-primary); }

.supply-info--prescription {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
}

.supply-info--prescription .supply-info__icon { color: var(--color-text); }

.delivery-estimate {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  list-style: none;
  margin: 0;
  padding-left: 0;
  font-size: var(--text-sm);
}

.delivery-estimate__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  color: var(--color-text-muted);
}

.delivery-estimate__row strong { color: var(--color-text); }
.delivery-estimate__row .icon { color: var(--color-text); width: 1.125rem; height: 1.125rem; margin-top: 0.1rem; }

.product-details {
  display: grid;
  gap: var(--space-10);
  padding-top: var(--space-12);
}

.product-details__facts {
  padding: var(--space-6);
  align-self: start;
}

.product-details__facts-title {
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
}

.product-reviews {
  display: grid;
  gap: var(--space-8);
}

.product-reviews__summary {
  display: grid;
  gap: var(--space-5);
  align-content: start;
}

@media (min-width: 48rem) {
  .product { padding-block: var(--space-6) var(--space-16); }
  .gallery__thumbs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
  .product__layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas: "gallery info";
    gap: var(--space-12);
  }

  .product__gallery {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
  }

  .product-info .buy-box {
    padding: var(--space-6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-surface);
  }

  .product-details {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-12);
    padding-top: var(--space-16);
  }

  .product-details__facts { position: sticky; top: calc(var(--header-height) + var(--space-6)); }

  .product-reviews { grid-template-columns: 18rem minmax(0, 1fr); gap: var(--space-16); }
}

/* Collection (condition or category) ------------------------------------ */
.collection-hero {
  padding-block: var(--space-8) var(--space-10);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.collection-hero__inner {
  display: grid;
  gap: var(--space-8);
}

.collection-hero__content {
  display: grid;
  gap: var(--space-4);
  align-content: start;
}

.collection-hero__title { font-size: var(--text-h1); }

.collection-hero__intro {
  max-width: 40rem;
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--color-text-muted);
}

.collection-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.collection-hero__facts {
  padding: var(--space-6);
  align-self: end;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  margin-bottom: var(--space-6);
}

.toolbar__count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.toolbar__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.toolbar__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (min-width: 64rem) {
  .collection-hero { padding-block: var(--space-12) var(--space-12); }
  .collection-hero__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-16); }
}

/* Catalogue A to Z ------------------------------------------------------ */
.catalogue__layout {
  display: grid;
  gap: var(--space-6);
}

.catalogue__search {
  max-width: 36rem;
  margin-top: var(--space-2);
}

.filter-list {
  position: relative;
  display: flex;
  gap: var(--space-2);
  list-style: none;
  padding: 0 0 var(--space-1);
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-list::-webkit-scrollbar { display: none; }

.filter-list__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.filter-list__link:hover { border-color: var(--color-text); color: var(--color-text); text-decoration: none; }

.filter-list__link[aria-current="page"],
.filter-list__link[aria-current="true"] {
  border-color: var(--color-text);
  background: var(--color-text);
  color: var(--color-surface);
}

.filter-list__count {
  font-size: var(--text-xs);
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

.az-index {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
}

.az-index__link {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-small);
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
}

.az-index__link:hover { background: var(--color-surface-subtle); text-decoration: none; }
.az-index__link--empty { color: var(--color-text-faint); font-weight: 400; cursor: default; }
.az-index__link--empty:hover { background: none; }

.az-group + .az-group { margin-top: var(--space-10); }

.az-group__letter {
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-strong);
  font-size: var(--text-3xl);
  scroll-margin-top: calc(var(--header-height) + var(--space-4));
}

.az-group__list {
  display: grid;
  list-style: none;
  padding: 0;
  margin: 0;
  column-gap: var(--space-10);
}

.catalogue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px var(--space-4);
  align-items: baseline;
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.catalogue-item__link {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.catalogue-item__link:hover { color: var(--color-text); text-decoration: underline; }

.catalogue-item__meta {
  grid-column: 1;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.catalogue-item__price {
  grid-column: 2;
  grid-row: 1;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.catalogue-item__badge {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
}

@media (min-width: 64rem) {
  .catalogue__layout { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--space-12); align-items: start; }
  .catalogue__filters { position: sticky; top: calc(var(--header-height) + var(--space-6)); }
  .catalogue__filters .filter-list { display: grid; gap: 2px; overflow: visible; padding: 0; }
  .catalogue__filters .filter-list__link {
    justify-content: space-between;
    width: 100%;
    border: 0;
    border-radius: var(--radius-small);
    background: none;
    color: var(--color-text-muted);
    font-size: var(--text-md);
  }
  .catalogue__filters .filter-list__link:hover { background: var(--color-surface-subtle); color: var(--color-text); }
  .catalogue__filters .filter-list__link[aria-current="page"],
  .catalogue__filters .filter-list__link[aria-current="true"] {
    background: var(--tint-primary);
    color: var(--color-primary);
    font-weight: 600;
  }
  .az-group__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Search results -------------------------------------------------------- */
.search-results__form { max-width: 40rem; margin-top: var(--space-5); }

.search-results__correction {
  font-size: var(--text-md);
  color: var(--color-text-muted);
}

.search-results__correction strong { color: var(--color-text); }

.search-results__section + .search-results__section { margin-top: var(--space-12); }

.search-results__section-title {
  margin-bottom: var(--space-5);
  font-size: var(--text-2xl);
}

.result-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--color-border);
}

.result-list__item {
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.result-list__type {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
}

.result-list__title {
  margin-top: var(--space-1);
  font-size: var(--text-xl);
}

.result-list__title a { color: var(--color-text); text-decoration: none; }
.result-list__title a:hover { text-decoration: underline; }
.result-list__text { margin-top: var(--space-2); color: var(--color-text-muted); max-width: 46rem; }

/* Guide index ------------------------------------------------------------ */
.topic-nav {
  margin-bottom: var(--space-8);
}

/* Guide article --------------------------------------------------------- */
.article-header {
  padding-block: var(--space-8) var(--space-8);
}

.article-header__inner {
  display: grid;
  gap: var(--space-4);
  max-width: 50rem;
}

.article-header__topic {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.article-header__title {
  font-size: clamp(var(--text-3xl), 1.4rem + 2.6vw, var(--text-5xl));
  line-height: 1.08;
}

.article-header__standfirst {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 44rem;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-8);
  margin-top: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.byline__person {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.byline__role {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.byline__name {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.byline__qualification {
  font-weight: 400;
  color: var(--color-text-muted);
}

.byline__dates {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.article__layout {
  display: grid;
  gap: var(--space-10);
  padding-bottom: var(--space-16);
}

.article__body { min-width: 0; }

.article__aside {
  display: grid;
  gap: var(--space-8);
  align-content: start;
}

.article__section + .article__section { margin-top: var(--space-12); }

.article__section-title {
  margin-bottom: var(--space-5);
  font-size: var(--text-2xl);
}

.key-takeaways {
  padding: var(--space-6);
  border-radius: var(--radius-card);
  background: var(--tint-primary);
}

.key-takeaways__title {
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0;
}

.key-takeaways__list {
  display: grid;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.key-takeaways__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
}

.key-takeaways__item .icon { color: var(--color-primary); margin-top: 0.2rem; width: 1.125rem; height: 1.125rem; }

.product-cta {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4);
}

.product-cta__media {
  width: 5rem;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--color-surface-subtle);
  overflow: hidden;
}

.product-cta__title { font-weight: 600; line-height: 1.35; }
.product-cta__meta { font-size: var(--text-sm); color: var(--color-text-muted); }

.product-cta__action {
  grid-column: 1 / -1;
}

.journey-cta {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-8);
  border-radius: var(--radius-card);
  background: var(--color-primary);
  color: var(--color-on-primary);
}

/* Version 2 articles' parts (plan-articles Phase 3; lib/business-articles/document-render.js). */
.article-person {
  display: grid;
  gap: var(--space-3);
  margin-block: var(--space-6);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}
.article-person__card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-4); }
.article-person__photo { display: grid; width: 56px; height: 56px; border-radius: 50%; place-items: center; object-fit: cover; background: var(--color-surface-subtle); font-weight: 700; }
.article-person__label { display: block; font-size: var(--text-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.article-person__name { margin: 0; font-weight: 700; }
.article-person__role { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.article-person__heading { margin: 0; font-weight: 700; font-size: var(--text-lg); }
.article-products { margin-block: var(--space-6); }
.article-products__title { margin: 0 0 var(--space-3); font-weight: 700; font-size: var(--text-lg); }
.article-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-4); }
.article-next-step { margin-block: var(--space-4); }

.journey-cta__title {
  color: inherit;
  font-size: var(--text-2xl);
}

.journey-cta__text { color: inherit; opacity: 0.92; }

.references {
  display: grid;
  gap: var(--space-2);
  padding-left: 1.4em;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.references a { overflow-wrap: anywhere; }

.related-list {
  display: grid;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}

.aside-title {
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-text-muted);
}

@media (min-width: 64rem) {
  .article-header { padding-block: var(--space-12) var(--space-10); }
  .article__layout { grid-template-columns: minmax(0, 1fr) 18rem; gap: var(--space-16); }
  .article__aside { position: sticky; top: calc(var(--header-height) + var(--space-8)); }
  .product-cta { grid-template-columns: 5rem minmax(0, 1fr) auto; }
  .product-cta__action { grid-column: auto; }
}

/* Questionnaire page ---------------------------------------------------- */
.form-page {
  padding-block: var(--space-6) var(--space-16);
}

.form-page__layout {
  display: grid;
  gap: var(--space-8);
  max-width: 66rem;
  margin-inline: auto;
}

.form-page__main {
  display: grid;
  gap: var(--space-8);
  align-content: start;
  min-width: 0;
}

.form-page__card {
  display: grid;
  gap: var(--space-8);
  align-content: start;
  min-width: 0;
  padding: var(--space-6) var(--space-5) var(--space-8);
}

.form-page__aside {
  display: grid;
  gap: var(--space-5);
  align-content: start;
}

.form-page__back {
  justify-self: start;
}

.questionnaire {
  display: grid;
  gap: var(--space-8);
}

.question {
  display: grid;
  gap: var(--space-4);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.question__title {
  padding: 0;
  margin: 0 0 var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1.22;
  color: var(--color-text);
}

.question__hint {
  margin-top: calc(var(--space-2) * -1);
  color: var(--color-text-muted);
}

.question__title:not(legend) { margin-bottom: 0; }

.question__options {
  display: grid;
  gap: var(--space-3);
}

.question__options--images {
  grid-template-columns: repeat(auto-fill, minmax(min(10rem, 100%), 1fr));
}

.question__more {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.form-nav {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-2);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.form-nav__continue { min-width: 10rem; }

.consult-summary {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6);
}

.consult-summary__title { font-size: var(--text-xl); }

.consult-summary__privacy {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

@media (min-width: 48rem) {
  .form-page__card { padding: var(--space-10) var(--space-10) var(--space-10); }
  .form-nav { flex-wrap: nowrap; }
}

@media (min-width: 64rem) {
  .form-page { padding-block: var(--space-10) var(--space-20); }
  .form-page__layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--space-10); }
  .form-page__aside { position: sticky; top: var(--space-8); }
  .form-page--single .form-page__layout { grid-template-columns: minmax(0, 46rem); justify-content: center; }
}

/* Treatment choice after a consultation -------------------------------- */
.product-choice {
  padding-block: var(--space-6) var(--space-16);
}

.product-choice__header {
  display: grid;
  gap: var(--space-3);
  max-width: 46rem;
  margin-bottom: var(--space-8);
}

.treatment-options {
  display: grid;
  gap: var(--space-4);
}

.treatment-option {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.treatment-option:has(.treatment-option__header .choice__input:checked) {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.treatment-option__header {
  display: grid;
  grid-template-columns: auto 4.5rem minmax(0, 1fr);
  align-items: start;
  gap: var(--space-4);
  cursor: pointer;
}

.treatment-option__header:has(.choice__input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: var(--radius); }
.treatment-option__header .choice__input:focus-visible { outline: none; }

.treatment-option__media {
  width: 4.5rem;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--color-surface-subtle);
  overflow: hidden;
}

.treatment-option__title,
.treatment-option__text,
.treatment-option__price {
  display: block;
}

.treatment-option__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1.25;
  color: var(--color-text);
  overflow-wrap: break-word;
  hyphens: auto;
}

.treatment-option__text {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.treatment-option__price {
  margin-top: var(--space-2);
  font-weight: 600;
}

.treatment-option__details {
  display: grid;
  gap: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.treatment-option:not(.treatment-option--single):not(:has(.treatment-option__header .choice__input:checked)) .treatment-option__details { display: none; }
.treatment-option--single .treatment-option__header { grid-template-columns: 4.5rem minmax(0, 1fr); }

.addon-options {
  display: grid;
  gap: var(--space-3);
}

.addon-option {
  grid-template-columns: auto 3.5rem minmax(0, 1fr) auto;
  align-items: center;
}

.addon-option .addon__media { width: 3.5rem; }

@media (min-width: 64rem) {
  .product-choice { padding-block: var(--space-10) var(--space-20); }
  .treatment-option { padding: var(--space-6); }
  .treatment-option__details { margin-left: calc(1.375rem + 4.5rem + var(--space-8)); }
  .treatment-option--single .treatment-option__details { margin-left: calc(4.5rem + var(--space-4)); }
}

/* Checkout -------------------------------------------------------------- */
.test-mode-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--gutter);
  border-bottom: 1px solid var(--line-warning);
  background: var(--tint-warning);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: center;
}

.test-mode-banner .icon { color: var(--color-warning); width: 1.125rem; height: 1.125rem; }

.checkout {
  padding-block: var(--space-5) var(--space-16);
}

.checkout__layout {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}

.checkout__main {
  display: grid;
  gap: var(--space-5);
  min-width: 0;
}

.checkout__summary { min-width: 0; }

.checkout-section {
  padding: var(--space-5) var(--space-5) var(--space-6);
}

.checkout-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.checkout-section__title {
  font-size: var(--text-xl);
}

.checkout-section__body {
  display: grid;
  gap: var(--space-4);
}

.checkout-section__summary {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.checkout-section--done .checkout-section__header { margin-bottom: var(--space-2); }

.account-prompt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.signed-in-as {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--color-surface-subtle);
}

.signed-in-as__who {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.signed-in-as__email { font-weight: 600; overflow-wrap: anywhere; }
.signed-in-as__label { font-size: var(--text-sm); color: var(--color-text-muted); }

.address-lookup {
  display: grid;
  gap: var(--space-3);
}

.address-results {
  list-style: none;
  max-height: 16rem;
  margin: 0;
  padding: var(--space-1);
  overflow-y: auto;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.address-results__option {
  display: block;
  width: 100%;
  padding: var(--space-3);
  border: 0;
  border-radius: var(--radius-small);
  background: none;
  text-align: left;
  cursor: pointer;
}

.address-results__option:hover,
.address-results__option[aria-selected="true"] { background: var(--tint-primary); }

.address-results__count {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.delivery-options {
  display: grid;
  gap: var(--space-2);
}

.card-field {
  display: flex;
  align-items: center;
  min-height: var(--control-height);
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card-field:focus-within {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
}

.card-field--error {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 1px var(--color-danger);
}

.card-field__frame {
  flex: 1 1 auto;
  min-width: 0;
}

.express-checkout {
  display: grid;
  gap: var(--space-2);
}

.divider-text {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.divider-text::before,
.divider-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.payment-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.payment-trust__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.payment-trust__item .icon { width: 1rem; height: 1rem; }

.checkout__pay { width: 100%; }

.checkout__terms {
  display: grid;
  gap: var(--space-3);
  font-size: var(--text-sm);
}

/* Checkout: what the platform's checkout script draws ------------------
   priorly-checkout.js keeps its own markup where it draws or redraws: the
   summary lines, delivery options, address results, the errors and the
   fields it adds. These rules give its pc- classes the boards' look inside
   .checkout (the recon's R6 decision); the classes are the platform's, not
   the contract's. */
.checkout [hidden],
.checkout .pc-hidden { display: none !important; }

.checkout #checkout-errors,
.checkout #payment-errors { display: none; }

.checkout #checkout-errors[data-visible="true"],
.checkout #payment-errors[data-visible="true"] {
  display: block;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line-danger);
  border-radius: var(--radius);
  background: var(--tint-danger);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.55;
}

.checkout #checkout-errors a,
.checkout #payment-errors a { color: inherit; text-decoration: underline; }

.checkout .pc-item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
}

.checkout .pc-item:not(:has(> img)) { grid-template-columns: minmax(0, 1fr) auto; }

.checkout .pc-item > img {
  width: 3.5rem;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface-subtle);
}

.checkout .pc-item-details { display: grid; gap: 2px; min-width: 0; }
.checkout .pc-item .pc-item-title { font-size: var(--text-sm); font-weight: 600; line-height: 1.35; }

.checkout .pc-item-meta,
.checkout .pc-item-assessment,
.checkout .pc-item-subscription { font-size: var(--text-sm); color: var(--color-text-muted); }

.checkout .pc-item-price {
  display: grid;
  justify-items: end;
  font-size: var(--text-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.checkout .pc-item-compare-price { font-weight: 400; color: var(--color-text-muted); text-decoration: line-through; }

.checkout .pc-delivery-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  min-height: 3.5rem;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.checkout .pc-delivery-option:hover { border-color: var(--color-text-muted); }

.checkout .pc-delivery-option:has(input:checked) {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
  background: var(--tint-primary);
}

.checkout .pc-delivery-option:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.checkout .pc-delivery-option input {
  appearance: none;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 50%;
  background: var(--color-surface);
  cursor: pointer;
}

.checkout .pc-delivery-option input:checked {
  border-color: var(--color-primary);
  background: var(--color-primary);
  box-shadow: inset 0 0 0 0.25rem var(--color-surface);
}

.checkout .pc-delivery-option input:focus-visible { outline: none; }
.checkout .pc-delivery-option > span:not(.pc-delivery-price) { display: grid; gap: 2px; min-width: 0; }
.checkout .pc-delivery-option .pc-item-title { font-weight: 500; line-height: 1.4; }
.checkout .pc-delivery-price { justify-self: end; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

.checkout .address-results > li { list-style: none; }

.checkout .pc-address-suggestion {
  display: block;
  width: 100%;
  padding: var(--space-3);
  border: 0;
  border-radius: var(--radius-small);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.checkout .pc-address-suggestion:hover,
.checkout [aria-selected="true"] > .pc-address-suggestion { background: var(--tint-primary); }

.checkout .pc-field { display: grid; gap: var(--space-2); min-width: 0; }
.checkout .pc-field > label { font-size: var(--text-sm); font-weight: 600; line-height: 1.35; }

.checkout .pc-field > input:not([type="checkbox"]):not([type="radio"]):not(.input) {
  display: block;
  width: 100%;
  min-height: var(--control-height);
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: max(16px, var(--text-md));
}

.checkout .pc-field-help { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.45; }
.checkout .pc-input-locked { background: var(--color-surface-subtle); color: var(--color-text-muted); }

.checkout .pc-checkbox {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  cursor: pointer;
}

.checkout .pc-checkbox input { width: 1.125rem; height: 1.125rem; margin: 0.1rem 0 0; accent-color: var(--color-primary); }

/* The card form is the payment platform's (Ryft), in its own frame, with
   its own fields: the box around it steps back, and the theme's tokens
   become its --ryft-* settings, read when it mounts. A store's own card
   styling (Checkout settings) is set on #card-input and wins. */
.checkout .card-field {
  display: grid;
  gap: var(--space-2);
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  --ryft-font-family: var(--font-body);
  /* Plain lengths: the card form can't read CSS maths. */
  --ryft-font-size: 16px;
  --ryft-text-color-1: var(--color-text);
  --ryft-text-color-2: var(--color-text-muted);
  --ryft-error-color: var(--color-danger);
  --ryft-base-background: transparent;
  --ryft-input-font-family: var(--font-body);
  --ryft-input-font-size: 16px;
  --ryft-input-text-color: var(--color-text);
  --ryft-input-placeholder-color: var(--color-text-faint);
  --ryft-input-background-color: var(--color-surface);
  --ryft-input-border-color: var(--color-border-strong);
  --ryft-input-border-width: 1px;
  --ryft-input-border-radius: var(--radius);
  --ryft-input-height: 48px;
  --ryft-input-focus-background-color: var(--color-surface);
  --ryft-input-focus-border-color: var(--color-focus);
  --ryft-input-label-font-family: var(--font-body);
  --ryft-input-label-font-weight: 600;
  --ryft-input-label-text-color: var(--color-text);
  --ryft-checkbox-checked-background-color: var(--color-primary);
  --ryft-checkbox-checked-border-color: var(--color-primary);
  --ryft-checkbox-label-text-color: var(--color-text);
  --ryft-divider-line-color: var(--color-border);
  --ryft-divider-text-color: var(--color-text-muted);
}

.checkout .card-field:focus-within { outline: none; }

/* Order summary: collapsible on phones with a CSS only toggle */
.order-summary {
  padding: var(--space-5);
}

.order-summary__toggle-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.order-summary__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 2.75rem;
  cursor: pointer;
  font-weight: 600;
}

.order-summary__toggle-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
}

.order-summary__toggle-label .icon { transition: transform 0.2s ease; }
.order-summary__toggle-total { font-variant-numeric: tabular-nums; }

.order-summary__toggle-input:focus-visible + .order-summary__toggle {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: var(--radius-small);
}

.order-summary__toggle-input:checked + .order-summary__toggle .icon { transform: rotate(180deg); }

.order-summary__body {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-4);
}

.order-summary__toggle-input:not(:checked) ~ .order-summary__body { display: none; }

.order-summary__body:first-child { margin-top: 0; }

.order-summary__title {
  font-size: var(--text-xl);
}

.order-summary__lines {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-4);
}

.summary-line {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
}

.summary-line__media {
  position: relative;
  width: 3.5rem;
  aspect-ratio: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface-subtle);
}

.summary-line__media > :not(.summary-line__qty) {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.summary-line__qty {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 1.375rem;
  height: 1.375rem;
  padding-inline: 0.25rem;
  border-radius: 999px;
  background: var(--color-text-muted);
  color: var(--color-surface);
  font-size: 0.75rem;
  font-weight: 700;
}

.summary-line__title {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.35;
}

.summary-line__meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.summary-line__price {
  font-size: var(--text-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.summary-line__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.discount-form {
  display: grid;
  gap: var(--space-2);
}

.discount-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.25rem;
  padding: 0 var(--space-1) 0 var(--space-3);
  border-radius: var(--radius-small);
  background: var(--tint-success);
  color: var(--color-success);
  font-size: var(--text-sm);
  font-weight: 600;
}

.discount-tag__remove {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: var(--radius-small);
  background: none;
  color: inherit;
  cursor: pointer;
}

.discount-tag__remove:hover { background: color-mix(in srgb, var(--color-success) 14%, transparent); }

.order-summary__trust {
  display: grid;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

@media (min-width: 64rem) {
  .checkout { padding-block: var(--space-8) var(--space-20); }
  .checkout__layout { grid-template-columns: minmax(0, 1fr) minmax(20rem, 25rem); gap: var(--space-10); }
  .checkout__summary { position: sticky; top: var(--space-6); grid-column: 2; grid-row: 1; }
  .checkout__main { grid-column: 1; grid-row: 1; }
  .checkout-section { padding: var(--space-6) var(--space-8) var(--space-8); }
  .order-summary { padding: var(--space-6); }
  .order-summary__toggle { display: none; }
  .order-summary__body { margin-top: 0; }
  .order-summary__toggle-input:not(:checked) ~ .order-summary__body { display: grid; }
}

/* Status pages (checkout status, download, payment link, utility) ------- */
.status-page {
  display: grid;
  align-content: start;
  padding-block: var(--space-12) var(--space-16);
}

.status-page__card {
  width: min(100%, 38rem);
  margin-inline: auto;
  padding: var(--space-10) var(--space-6);
}

.status-page__card--wide { width: min(100%, 46rem); }

.status-page__body {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 48rem) {
  .status-page { padding-block: var(--space-16) var(--space-20); }
  .status-page__card { padding: var(--space-12) var(--space-10); }
}

/* Order page ------------------------------------------------------------ */
.order-page {
  padding-block: var(--space-6) var(--space-16);
}

.order-page__header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.order-page__title { font-size: var(--text-h1); }

.order-page__meta {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
}

.order-page__layout {
  display: grid;
  gap: var(--space-5);
  align-items: start;
}

.order-page__main,
.order-page__aside {
  display: grid;
  gap: var(--space-5);
  min-width: 0;
}

.order-status {
  display: grid;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-5);
}

.order-status__headline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}

.order-status__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--tint-primary);
  color: var(--color-primary);
}

.order-status--success .order-status__icon { background: var(--tint-success); color: var(--color-success); }
.order-status--warning .order-status__icon { background: var(--tint-warning); color: var(--color-warning); }
.order-status--neutral .order-status__icon { background: var(--color-surface-subtle); color: var(--color-text-muted); }

.order-status__title { font-size: var(--text-2xl); }

.order-status__text {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
}

.order-status__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 39.99rem) {
  .order-status__actions .button { flex: 1 1 auto; }
}

.order-status__collect {
  display: grid;
  gap: var(--space-5);
  align-items: start;
}

.order-status__hours {
  display: grid;
  gap: var(--space-2);
  align-content: start;
}

@media (min-width: 40rem) {
  .order-status__collect { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.order-panel__lines {
  display: grid;
  gap: var(--space-4);
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0 0 var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.order-panel {
  padding: var(--space-5);
}

.order-panel__title {
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0;
}

.order-panel__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.order-panel__header .order-panel__title { margin-bottom: 0; }

.tracking {
  display: grid;
  gap: var(--space-3);
}

.message-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--color-surface-subtle);
  color: var(--color-text);
  text-decoration: none;
}

.message-preview:hover { color: var(--color-text); background: var(--tint-primary); }
.message-preview__from {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
}

.message-preview__from .unread-dot { align-self: center; }
.message-preview__time { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 400; }
.message-preview__text { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 2px; }

.prompt-card {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: var(--radius-card);
  background: var(--tint-primary);
}

.prompt-card__title { font-size: var(--text-xl); }
.prompt-card__text { color: var(--color-text-muted); }

.collection-code {
  display: grid;
  justify-items: start;
  gap: var(--space-1);
  padding: var(--space-5);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius);
}

.collection-code__label { font-size: var(--text-sm); color: var(--color-text-muted); }

.collection-code__value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  letter-spacing: 0.08em;
  line-height: 1.1;
}

/* Leaflets page body */
.leaflets {
  display: grid;
  gap: var(--space-8);
  max-width: 46rem;
  padding-bottom: var(--section-space);
}

@media (min-width: 48rem) {
  .order-status { padding: var(--space-8); }
  .order-panel { padding: var(--space-6); }
}

@media (min-width: 64rem) {
  .order-page { padding-block: var(--space-10) var(--space-20); }
  .order-page__layout { grid-template-columns: minmax(0, 1fr) 22rem; gap: var(--space-8); }
}

/* Sign in and account set-up ------------------------------------------- */
.auth {
  display: grid;
  justify-items: center;
  align-content: start;
  padding-block: var(--space-8) var(--space-16);
}

.auth__card {
  display: grid;
  gap: var(--space-5);
  width: min(100%, 27rem);
  padding: var(--space-8) var(--space-6);
}

.auth__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--tint-primary);
  color: var(--color-primary);
}

.auth__icon--success { background: var(--tint-success); color: var(--color-success); }
.auth__icon--warning { background: var(--tint-warning); color: var(--color-warning); }

.auth__header { display: grid; gap: var(--space-2); }
.auth__title { font-size: var(--text-3xl); }
.auth__text { color: var(--color-text-muted); }

.auth__form {
  display: grid;
  gap: var(--space-5);
}

.auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-sm);
}

.auth__footer {
  text-wrap: balance;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
}

@media (min-width: 48rem) {
  .auth { padding-block: var(--space-16) var(--space-20); }
  .auth__card { padding: var(--space-10); }
}

/* Booking --------------------------------------------------------------- */
.booking-flow {
  padding-block: var(--space-5) var(--space-16);
}

.booking-flow__steps { display: none; margin-bottom: var(--space-8); }
.booking-flow__progress { margin-bottom: var(--space-6); }

.booking-flow__layout {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}

.booking-flow__main {
  display: grid;
  gap: var(--space-6);
  min-width: 0;
}

.booking-flow__panel {
  padding: var(--space-5);
}

.booking-flow__title {
  margin-bottom: var(--space-2);
  font-size: var(--text-2xl);
}

.booking-flow__intro {
  margin-bottom: var(--space-6);
  color: var(--color-text-muted);
}

.booking-flow__body {
  display: grid;
  gap: var(--space-6);
}

.booking-flow__section {
  display: grid;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.booking-flow__nav {
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.option-list {
  display: grid;
  gap: var(--space-3);
}

.choice__media-inline {
  width: 3rem;
  height: 3rem;
}

.slot-picker {
  display: grid;
  gap: var(--space-8);
}

.calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.calendar__title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0;
}

.calendar__nav {
  display: flex;
  gap: var(--space-1);
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  text-align: center;
}

.calendar__weekday {
  padding-block: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.calendar__day {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-height: 2.75rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  color: var(--color-text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.calendar__day:hover { background: var(--color-surface-subtle); }

.calendar__day.has-slots::after {
  content: "";
  position: absolute;
  bottom: 18%;
  width: 0.3125rem;
  height: 0.3125rem;
  border-radius: 50%;
  background: var(--color-primary);
}

.calendar__day.is-today { border-color: var(--color-border-strong); }

.calendar__day[aria-pressed="true"],
.calendar__day[aria-selected="true"] {
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 700;
}

.calendar__day[aria-pressed="true"]::after,
.calendar__day[aria-selected="true"]::after { background: var(--color-on-primary); }

.calendar__day:disabled,
.calendar__day[aria-disabled="true"] {
  color: var(--color-text-faint);
  background: none;
  cursor: default;
}

.calendar__day--outside { visibility: hidden; }

.calendar__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.calendar__legend-item { display: inline-flex; align-items: center; gap: var(--space-2); }

.calendar__legend-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--color-primary);
}

.time-slots__title {
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0;
}

.time-slots__group + .time-slots__group { margin-top: var(--space-5); }

.time-slots__group-title {
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

.time-slots__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: var(--space-2);
}

.time-slot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.time-slot:hover { border-color: var(--color-text-muted); }

.time-slot__input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.time-slot:has(.time-slot__input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.time-slot:has(.time-slot__input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.booking-summary {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-5);
}

.booking-summary__title { font-size: var(--text-xl); }

.booking-summary__service {
  display: grid;
  gap: 2px;
}

.booking-summary__name { font-weight: 600; }
.booking-summary__meta { font-size: var(--text-sm); color: var(--color-text-muted); }

.pay-options {
  display: grid;
  gap: var(--space-2);
}

@media (min-width: 64rem) {
  .booking-flow { padding-block: var(--space-8) var(--space-20); }
  .booking-flow__steps { display: grid; }
  .booking-flow__progress { display: none; }
  .booking-flow__layout { grid-template-columns: minmax(0, 1fr) 22rem; gap: var(--space-10); }
  .booking-flow__panel { padding: var(--space-8); }
  .booking-flow__aside { position: sticky; top: calc(var(--header-height) + var(--space-6)); }
  .slot-picker { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-10); }
  .booking-summary { padding: var(--space-6); }
}

/* Booking management ---------------------------------------------------- */
.booking-manage {
  padding-block: var(--space-6) var(--space-16);
}

.booking-manage__layout {
  display: grid;
  gap: var(--space-5);
  max-width: 60rem;
}

.booking-card {
  display: grid;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-5);
}

.booking-card__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}

.booking-card__title { font-size: var(--text-2xl); }
.booking-card__when { margin-top: var(--space-1); font-size: var(--text-lg); color: var(--color-text); }
.booking-card__badges { margin-top: var(--space-3); }

.booking-manage__aside {
  display: grid;
  gap: var(--space-5);
  align-content: start;
  min-width: 0;
}

@media (min-width: 48rem) {
  .booking-card { padding: var(--space-8); }
}

@media (min-width: 64rem) {
  .booking-manage { padding-block: var(--space-10) var(--space-20); }
  .booking-manage__layout { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; gap: var(--space-8); }
}

/* Video lobby ----------------------------------------------------------- */
.lobby {
  display: grid;
  justify-items: center;
  align-content: start;
  padding-block: var(--space-10) var(--space-16);
}

.lobby-card {
  display: grid;
  gap: var(--space-6);
  width: min(100%, 34rem);
  padding: var(--space-8) var(--space-6);
}

.lobby-card__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
}

.lobby-card__title { font-size: var(--text-3xl); }

.lobby-card__with {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--color-surface-subtle);
}

.lobby-card__checks {
  display: grid;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.lobby-card__check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.lobby-card__check .icon {
  margin-top: 0.15rem;
  color: var(--color-primary);
}

@media (min-width: 48rem) {
  .lobby { padding-block: var(--space-16) var(--space-20); }
  .lobby-card { padding: var(--space-10); }
}

/* Events ---------------------------------------------------------------- */
.event-hero {
  padding-block: var(--space-8) var(--space-10);
}

.event-hero__inner {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

.event-hero__content {
  display: grid;
  gap: var(--space-4);
}

.event-hero__title { font-size: var(--text-display); max-width: 18ch; }
.event-hero__text { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 38rem; }

.event-hero__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  background: var(--color-surface-subtle);
  overflow: hidden;
}

.date-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}

.date-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3) var(--space-5);
  align-items: center;
  padding: var(--space-4) var(--space-5);
}

.date-row__title { font-weight: 600; line-height: 1.35; }
.date-row__meta { margin-top: 2px; font-size: var(--text-sm); color: var(--color-text-muted); }

.date-row__side {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.date-row--sold-out .date-row__title { color: var(--color-text-muted); }

.ticket-types {
  display: grid;
  border-top: 1px solid var(--color-border);
}

.ticket-type {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3) var(--space-5);
  align-items: center;
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.ticket-type__name { font-weight: 600; }
.ticket-type__meta { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 2px; }
.ticket-type__price { font-weight: 600; font-variant-numeric: tabular-nums; }

.ticket {
  display: grid;
  overflow: hidden;
}

.ticket__main {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6);
}

.ticket__title { font-size: var(--text-2xl); }

.ticket__stub {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-6);
  border-top: 2px dashed var(--color-border);
  background: var(--color-surface-subtle);
  text-align: center;
}

.ticket__code-label { font-size: var(--text-sm); color: var(--color-text-muted); }

.ticket__code {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}

@media (min-width: 48rem) {
  .date-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .date-row__side { grid-column: auto; justify-content: flex-end; }
  .ticket { grid-template-columns: minmax(0, 1fr) 14rem; }
  .ticket__stub { border-top: 0; border-left: 2px dashed var(--color-border); align-content: center; }
}

@media (min-width: 64rem) {
  .event-hero { padding-block: var(--space-16) var(--space-12); }
  .event-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-16); }
}

/* Star rating input (review request) ----------------------------------- */
.star-rating {
  border: 0;
  padding: 0;
  margin: 0;
}

.star-rating__options {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: var(--space-1);
}

.star-rating__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.star-rating__label {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-small);
  color: var(--color-border-strong);
  cursor: pointer;
}

.star-rating__label .icon { width: 2.25rem; height: 2.25rem; }

.star-rating__input:checked ~ .star-rating__label,
.star-rating__label:hover,
.star-rating__label:hover ~ .star-rating__label {
  color: var(--color-accent);
}

.star-rating__input:focus-visible + .star-rating__label {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.star-rating__value {
  margin-top: var(--space-2);
  font-weight: 600;
}

/* Not found, error and private store ----------------------------------- */
.system-page {
  display: grid;
  align-content: center;
  padding-block: var(--space-16) var(--space-20);
}

.system-page__inner {
  display: grid;
  gap: var(--space-5);
  max-width: 40rem;
}

.system-page__code {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

.system-page__title { font-size: var(--text-display); }
.system-page__text { font-size: var(--text-lg); color: var(--color-text-muted); }

.link-list {
  display: grid;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 3rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
}

.link-list__link:hover { color: var(--color-primary); text-decoration: none; }

/* The platform's test-payments bar (core.js styles its contents and pads the
   body for it; its place at the top was in the classic stylesheet) */
.public-sandbox-badge { position: fixed; inset: 0 0 auto; z-index: 1300; background: #fdf6e3; border-bottom: 1px solid #e8d8a0; }

/* 11. Layout choices -------------------------------------------------------- */

/* Header: centred logo */
@media (min-width: 64rem) {
  [data-header="centred"] .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "nav brand actions";
  }

  [data-header="centred"] .site-header__brand { justify-self: center; }
  [data-header="centred"] .site-header__nav .nav__list { justify-content: flex-start; }
}

/* Header: logo left with a wide search bar, menu on its own row */
[data-header="search"] .site-header__inner {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: var(--header-height) auto;
  grid-template-areas:
    "brand actions"
    "search search";
}

[data-header="search"] .site-header .site-header__search {
  display: flex;
  padding-bottom: var(--space-3);
}

[data-header="search"] .header-action--search { display: none; }

@media (min-width: 64rem) {
  [data-header="search"] .site-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: var(--header-height) auto;
    grid-template-areas:
      "brand search actions"
      "nav nav nav";
    column-gap: var(--space-8);
  }

  [data-header="search"] .site-header .site-header__search {
    width: 100%;
    max-width: 42rem;
    justify-self: center;
    padding-bottom: 0;
  }

  [data-header="search"] .site-header__nav {
    border-top: 1px solid var(--color-border);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }

  [data-header="search"] .site-header__nav .nav__list { min-height: 3rem; gap: var(--space-2); }
  [data-header="search"] .nav__link { min-height: 2.5rem; font-size: var(--text-sm); }
}

/* Product page: gallery right */
@media (min-width: 64rem) {
  [data-product="gallery-right"] .product__layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "info gallery";
  }
}

/* Product page: stacked, gallery across the top then a two column buy area */
@media (min-width: 64rem) {
  [data-product="stacked"] .product__layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "gallery" "info";
    gap: var(--space-10);
  }

  [data-product="stacked"] .product__gallery { position: static; }

  [data-product="stacked"] .gallery {
    grid-template-columns: minmax(0, 1fr) 7rem;
    align-items: start;
  }

  [data-product="stacked"] .gallery__main { aspect-ratio: 21 / 9; }

  [data-product="stacked"] .gallery__thumbs {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-product="stacked"] .product-info {
    grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
    column-gap: var(--space-12);
    align-items: start;
  }

  [data-product="stacked"] .product-info > :not(.buy-box) { grid-column: 1; }
  [data-product="stacked"] .product-info > .buy-box { grid-column: 2; grid-row: 1 / span 6; }
}

/* Cards: flat (tinted, no border) and raised (shadow, no border) */
[data-cards="flat"] .card {
  border-color: transparent;
  background: var(--color-surface-subtle);
}

[data-cards="flat"] .product-card__media,
[data-cards="flat"] .guide-card__media {
  background: color-mix(in srgb, var(--color-surface-subtle) 55%, var(--color-border));
}

[data-cards="flat"] .card .message-preview,
[data-cards="flat"] .card .copy-field { background: var(--color-surface); }
[data-cards="flat"] .card .message-preview:hover { background: var(--tint-primary); }

[data-cards="raised"] .card {
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

[data-cards="raised"] a.card:hover,
[data-cards="raised"] .card--link:hover {
  box-shadow: var(--shadow-lg);
}

/* Buttons: pill buttons get a little more side padding */
[data-buttons="pill"] .button { padding-inline: calc(var(--space-6) + 2px); }
[data-buttons="pill"] .button--icon { padding-inline: 0; }

/* 12. Accessibility and print ---------------------------------------------- */

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

  .skeleton { animation: none; }
}

@media (forced-colors: active) {
  .button,
  .badge,
  .chip,
  .choice--card,
  .variant-option,
  .time-slot,
  .card {
    border: 1px solid CanvasText;
  }

  .choice__input:checked,
  .switch__input:checked { background: Highlight; }
  .progress__bar { background: Highlight; }
  .count { border: 1px solid CanvasText; }
}

@media print {
  .site-header__nav,
  .site-header__actions,
  .announcement-bar,
  .cookie-banner,
  .sticky-bar,
  .drawer,
  .search-panel,
  .site-footer__social {
    display: none !important;
  }

  body { background: white; }
  .card { box-shadow: none; border-color: currentColor; }
  a { color: inherit; }
}


/* 13. Old token names (Origin 1.x only) -------------------------------------
   Stores that move onto Origin 1.0 bring CSS written against earlier names
   (docs/origin-theme-recon.md, R1's token table). Here each old name reads
   as the token that replaced it, so that CSS keeps working; a store that
   sets one of them still wins, being unlayered. Setting an old name doesn't
   restyle Origin: a store's overrides move to the new names when it moves
   across. Removed in Origin 2.0 (D10). */

:root,
.theme-scope,
[data-scheme],
[data-theme] {
  --origin-brand: var(--color-primary);
  --origin-brand-tint: var(--tint-primary);
  --origin-page: var(--color-page);
  --origin-surface: var(--color-surface);
  --origin-border: var(--color-border);
  --origin-border-strong: var(--color-border-strong);
  --origin-text: var(--color-text);
  --origin-muted: var(--color-text-muted);
  --origin-faint: var(--color-text-faint);
  --pr-color-background: var(--color-page);
  --pr-color-surface: var(--color-surface);
  --pr-color-text: var(--color-text);
  --pr-color-muted-text: var(--color-text-muted);
  --pr-color-primary: var(--color-primary);
  --pr-color-primary-contrast: var(--color-on-primary);
  --pr-font-body: var(--font-body);
  --pr-font-heading: var(--font-heading);
  --pr-radius: var(--radius);
  --primary-color: var(--color-primary);
  --primary-color-contrast: var(--color-on-primary);
  --header-bg: var(--color-surface);
  --header-text: var(--color-text);
  --header-accent: var(--color-primary);
  --footer-bg: var(--color-surface-subtle);
  --footer-border: var(--color-border);
  --footer-heading: var(--color-text);
  --footer-text: var(--color-text-muted);
  --footer-hover: var(--color-primary);
  --font-header: var(--font-heading);
  --color-white: var(--color-surface);
  --color-gray-200: var(--color-border);
  --color-gray-300: var(--color-border-strong);
  --color-gray-700: var(--color-text-muted);
  --color-red-700: var(--color-danger);
}
