/* Additions the local server makes to the mirrored storefront. The site's
   own Tailwind build only contains classes the original pages used, so new
   UI is styled here with the same palette: primary #1E79B4, accent #F26522. */
:root {
  --or-primary: #1e79b4;
  --or-primary-dark: #186091;
  --or-accent: #f26522;
  --or-ink: #111827;
  --or-muted: #6b7280;
  --or-line: #e5e7eb;
  --or-ok: #15803d;
  --or-ok-bg: #f0fdf4;
  --or-warn: #b45309;
  --or-warn-bg: #fffbeb;
  --or-bad: #b91c1c;
  --or-bad-bg: #fef2f2;
}

/* The site's base stylesheet colours every link brand blue
   (a { color: var(--color-navy) }), which beats the light text colour links
   were meant to inherit inside dark sections. The top bar's "Serving all of
   Auckland" link and the category page breadcrumbs became blue on blue.
   :where() keeps this at element specificity, so the links' own colour and
   hover classes (text-white, hover:text-accent) still win. */
:where(#top-bar, .bg-primary, .bg-primary-dark) a { color: inherit; }

.or-dot-low { background: #f97316; }

.or-empty {
  grid-column: 1 / -1;
  padding: 4rem 1rem;
  text-align: center;
  color: var(--or-muted);
}
.or-empty a { color: var(--or-primary); font-weight: 700; }

.or-admin-bar {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  max-width: calc(100vw - 2.5rem);
  padding: 0.5rem;
  border-radius: 999px;
  background: #0f172a;
  box-shadow: 0 10px 30px rgb(15 23 42 / 0.35);
  font: 600 0.8125rem/1.2 Roboto, system-ui, sans-serif;
}
.or-admin-bar a,
.or-admin-bar button {
  padding: 0.5rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.or-admin-bar .or-admin-primary { background: var(--or-primary); }
.or-env-badge {
  position: fixed;
  left: 1.25rem;
  bottom: 1.5rem;
  z-index: 61;
  max-width: calc(100vw - 2.5rem);
  margin: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #b45309;
  color: #fff;
  box-shadow: 0 6px 18px rgb(15 23 42 / 0.3);
  font: 700 0.75rem/1.2 Roboto, system-ui, sans-serif;
  pointer-events: none;
}
@media (max-width: 640px) {
  .or-admin-bar ~ .or-env-badge { bottom: 5.25rem; }
}
.or-admin-bar a:hover,
.or-admin-bar button:hover { background: var(--or-primary-dark); }
.or-admin-tag {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: #fde68a;
  color: #78350f;
}

.or-demo-notice {
  margin: -1rem 0 1.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid #fcd34d;
  border-radius: 0.75rem;
  background: var(--or-warn-bg);
  color: #78350f;
  font-size: 0.9rem;
  line-height: 1.5;
}
.or-demo-notice code {
  padding: 0.1rem 0.35rem;
  border-radius: 0.3rem;
  background: #fef3c7;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

/* Order received and not-found pages */
.or-receipt { display: grid; gap: 1.25rem; color: var(--or-ink); }
.or-card {
  padding: 1.5rem;
  border: 1px solid #f3f4f6;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}
.or-center { max-width: 40rem; margin: 2rem auto; text-align: center; }
.or-center .or-actions { justify-content: center; }
.or-title { margin: 0 0 0.35rem; font-size: 1.5rem; font-weight: 900; line-height: 1.25; }
.or-h2 { margin: 0 0 1rem; font-size: 1.05rem; font-weight: 900; }
.or-card .or-h2:not(:first-child) { margin-top: 1.5rem; }
.or-muted { margin: 0.25rem 0; color: var(--or-muted); font-size: 0.9rem; }
.or-hero { display: flex; gap: 1rem; align-items: flex-start; }
.or-hero p { margin: 0.5rem 0 0; line-height: 1.55; }
.or-hero-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: var(--or-primary);
}
.or-hero-icon svg { width: 1.5rem; height: 1.5rem; }
.or-hero-ok .or-hero-icon { background: #dcfce7; color: var(--or-ok); }
.or-hero-wait .or-hero-icon { background: #fef3c7; color: var(--or-warn); }
.or-hero-bad .or-hero-icon { background: #fee2e2; color: var(--or-bad); }

.or-chip {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 700;
}
.or-chip-processing, .or-chip-completed { background: var(--or-ok-bg); color: var(--or-ok); }
.or-chip-pending { background: var(--or-warn-bg); color: var(--or-warn); }
.or-chip-failed, .or-chip-cancelled { background: var(--or-bad-bg); color: var(--or-bad); }

.or-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem !important; }
.or-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border: 2px solid var(--or-primary);
  border-radius: 0.75rem;
  background: var(--or-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.or-btn:hover { background: var(--or-primary-dark); border-color: var(--or-primary-dark); }
.or-btn-ghost { background: transparent; color: var(--or-primary); }
.or-btn-ghost:hover { background: rgb(30 121 180 / 0.06); color: var(--or-primary-dark); }

.or-two { display: grid; gap: 1.25rem; }
@media (min-width: 1024px) { .or-two { grid-template-columns: 3fr 2fr; align-items: start; } }

.or-lines { margin: 0; padding: 0; list-style: none; }
.or-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}
.or-line img, .or-line-img { width: 56px; height: 56px; border-radius: 0.5rem; object-fit: cover; background: #f9fafb; }
.or-line-body { display: grid; min-width: 0; }
.or-line-body a { color: var(--or-ink); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.or-line-body a:hover { color: var(--or-primary); }

.or-totals, .or-facts { margin: 1rem 0 0; display: grid; gap: 0.4rem; }
.or-totals div, .or-facts div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; }
.or-totals dt, .or-facts dt { color: var(--or-muted); }
.or-totals dd, .or-facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.or-facts { margin-top: 0; }
.or-total { margin-top: 0.4rem; padding-top: 0.6rem; border-top: 1px solid #f3f4f6; font-size: 1.05rem !important; font-weight: 900; }
.or-total dd { color: var(--or-primary); }
.or-facts code, .or-ev code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; }

.or-schedule { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.or-schedule li { display: grid; gap: 0.15rem; padding: 0.6rem; border-radius: 0.6rem; background: #f9fafb; font-size: 0.8rem; text-align: center; }
.or-address { font-style: normal; line-height: 1.6; font-size: 0.9rem; }

.or-journey summary { cursor: pointer; list-style: none; }
.or-journey summary::-webkit-details-marker { display: none; }
.or-journey summary .or-h2 { margin-bottom: 0.15rem; }
.or-journey summary::after { content: 'Show timeline ▾'; display: block; margin-top: 0.5rem; color: var(--or-primary); font-weight: 700; font-size: 0.85rem; }
.or-journey[open] summary::after { content: 'Hide timeline ▴'; }
.or-journey ol { margin: 1.25rem 0 0; padding: 0; list-style: none; border-left: 2px solid var(--or-line); }
.or-ev { position: relative; display: grid; grid-template-columns: 5.5rem 5.5rem 1fr; gap: 0.75rem; padding: 0.55rem 0 0.55rem 1rem; font-size: 0.85rem; }
.or-ev::before { content: ''; position: absolute; left: -6px; top: 0.85rem; width: 10px; height: 10px; border-radius: 999px; background: var(--or-primary); }
.or-ev-store::before { background: var(--or-ok); }
.or-ev-storefront::before { background: #64748b; }
.or-ev-issuer::before { background: #7c3aed; }
.or-ev-admin::before { background: var(--or-accent); }
.or-ev-bad::before { background: var(--or-bad); }
.or-ev p { margin: 0.1rem 0 0; color: #374151; }
.or-ev-time { color: var(--or-muted); font-variant-numeric: tabular-nums; }
.or-ev-src { color: var(--or-muted); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.7rem; font-weight: 700; padding-top: 0.15rem; }
@media (max-width: 640px) {
  .or-ev { grid-template-columns: 1fr; gap: 0.1rem; }
  .or-schedule { grid-template-columns: repeat(2, 1fr); }
}
.or-footnote { margin: 0; text-align: center; color: var(--or-muted); font-size: 0.85rem; }
.or-footnote a { color: var(--or-primary); font-weight: 700; }

/* On-page product editor (signed-in admins only) */
.or-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1rem 0.5rem;
  padding: 0.2rem 0.75rem;
  border: 1.5px solid var(--or-primary);
  border-radius: 999px;
  background: #fff;
  color: var(--or-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  vertical-align: top;
  cursor: pointer;
}
.or-edit-btn svg { width: 0.85rem; height: 0.85rem; }
.or-edit-btn:hover { background: var(--or-primary); color: #fff; }
.or-edit-btn:focus-visible, .or-qe :focus-visible { outline: 3px solid rgb(30 121 180 / 0.45); outline-offset: 2px; }

.or-qe-open, .or-qe-open body { overflow: hidden; }
.or-qe { position: fixed; inset: 0; z-index: 90; font-family: Roboto, system-ui, sans-serif; }
.or-qe[hidden], .or-qe [hidden] { display: none !important; }
.or-qe-backdrop { position: absolute; inset: 0; background: rgb(15 23 42 / 0.45); backdrop-filter: blur(2px); }
.or-qe-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  height: 100%;
  background: #fff;
  color: var(--or-ink);
  box-shadow: -20px 0 50px rgb(15 23 42 / 0.25);
  animation: or-qe-in 0.22s ease-out;
}
.or-qe-panel:focus { outline: none; }
@keyframes or-qe-in { from { transform: translateX(40px); opacity: 0; } }
.or-qe-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid #f3f4f6; }
.or-qe-head h2 { margin: 0; font-size: 1.15rem; font-weight: 900; line-height: 1.3; }
.or-qe-head p { margin: 0.2rem 0 0; color: var(--or-muted); font-size: 0.85rem; }
.or-qe-close { flex: none; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 0.6rem; background: none; color: var(--or-muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.or-qe-close:hover { background: #f3f4f6; color: var(--or-ink); }
.or-qe-form { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.or-qe-body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }
.or-qe-field { margin-bottom: 1rem; }
.or-qe-field label, .or-qe-group legend { display: block; margin-bottom: 0.35rem; color: #374151; font-size: 0.85rem; font-weight: 600; }
.or-qe input[type='text'], .or-qe input[type='number'], .or-qe select, .or-qe textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
  color: var(--or-ink);
  font: inherit;
  font-size: 0.95rem;
}
.or-qe textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8rem; line-height: 1.5; }
.or-qe input:focus, .or-qe select:focus, .or-qe textarea:focus { outline: none; border-color: var(--or-primary); box-shadow: 0 0 0 3px rgb(30 121 180 / 0.18); }
.or-qe [aria-invalid='true'] { border-color: var(--or-bad) !important; }
.or-qe-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 480px) { .or-qe-row { grid-template-columns: 1fr; } }
.or-qe-group { margin: 0 0 1rem; padding: 0.85rem 1rem; border: 1px solid #f3f4f6; border-radius: 0.75rem; background: #f9fafb; }
.or-qe-group legend { float: left; width: 100%; margin-bottom: 0.5rem; }
/* Flex rows start their own layout context and would sit beside the floated legend. */
.or-qe-group > :not(legend) { clear: both; }
.or-qe-group .or-qe-field { margin: 0.75rem 0 0; }
.or-qe-radios { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.or-qe-check { display: flex; align-items: center; gap: 0.5rem; margin: 0.3rem 0; font-size: 0.9rem; cursor: pointer; }
.or-qe-check input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--or-primary); }
.or-qe-hint { margin: 0.3rem 0 0; color: var(--or-muted); font-size: 0.78rem; }
.or-qe-error { margin: 0.3rem 0 0; color: var(--or-bad); font-size: 0.8rem; font-weight: 500; }
.or-qe-error:empty { display: none; }
.or-qe-foot { padding: 0.9rem 1.5rem 1.1rem; border-top: 1px solid #f3f4f6; background: #fff; }
.or-qe-status { min-height: 1.2rem; margin: 0 0 0.6rem; color: var(--or-muted); font-size: 0.85rem; }
.or-qe-status:empty { min-height: 0; margin: 0; }
.or-qe-status[data-tone='bad'] { color: var(--or-bad); font-weight: 600; }
.or-qe-status[data-tone='ok'] { color: var(--or-ok); font-weight: 600; }
.or-qe-status a { color: var(--or-primary); font-weight: 700; }
.or-qe-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.or-qe-link { margin-right: auto; color: var(--or-primary); font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.or-qe-link:hover { text-decoration: underline; }
.or-qe-cancel, .or-qe-save { padding: 0.65rem 1.2rem; border-radius: 0.75rem; font: inherit; font-weight: 700; cursor: pointer; }
.or-qe-cancel { border: 1.5px solid #e5e7eb; background: #fff; color: #374151; }
.or-qe-cancel:hover { background: #f9fafb; }
.or-qe-save { border: 0; background: var(--or-primary); color: #fff; }
.or-qe-save:hover { background: var(--or-primary-dark); }
.or-qe-save:disabled { opacity: 0.6; cursor: progress; }
.or-qe-toast {
  position: fixed;
  left: 50%;
  top: 1.25rem;
  z-index: 95;
  transform: translateX(-50%);
  padding: 0.7rem 1.1rem;
  border-radius: 0.75rem;
  background: #0f172a;
  color: #fff;
  font: 600 0.9rem/1.3 Roboto, system-ui, sans-serif;
  box-shadow: 0 10px 30px rgb(15 23 42 / 0.3);
}
@media (prefers-reduced-motion: reduce) { .or-qe-panel { animation: none; } }

/* Delete from the on-page editor (asks for the dashboard password) */
.or-qe input[type='password'] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
  font: inherit;
}
.or-qe-delete { margin-right: 0.25rem; padding: 0.65rem 0.4rem; border: 0; background: none; color: var(--or-bad); font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.or-qe-delete:hover { text-decoration: underline; }
.or-qe-delete-box { display: grid; gap: 0.45rem; margin-bottom: 0.25rem; padding: 0.9rem 1rem; border: 1px solid #fecaca; border-radius: 0.75rem; background: var(--or-bad-bg); }
.or-qe-delete-box label { color: #374151; font-size: 0.85rem; font-weight: 600; }
.or-qe-delete-box .or-qe-hint { margin: 0; }
.or-qe-delete-box .or-qe-actions { justify-content: flex-end; margin-top: 0.25rem; }
.or-qe-delete-title { margin: 0; color: var(--or-ink); font-weight: 800; }
.or-qe-danger { padding: 0.65rem 1.2rem; border: 0; border-radius: 0.75rem; background: #c62828; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.or-qe-danger:hover { background: #a91f1f; }
.or-qe-danger:disabled { opacity: 0.6; cursor: progress; }
.or-qe a.or-qe-save { display: inline-block; text-decoration: none; }

/* ------------------------------------------------------------ customer accounts */
/* Header link. Between 1024px and 1279px the header is tight, so only the
   icon shows there (the label stays available to screen readers). */
.or-account-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.or-account-link svg { flex: none; }
.or-account-link:hover, .or-account-link.is-active { background: rgb(255 255 255 / 0.14); color: #fff; }
@media (max-width: 1279px) {
  .or-account-link { padding: 0; }
  .or-account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* The phone number and Free Quote button beside it never wrap either. */
#main-nav-inner > div:has(> .or-account-link) { flex: none; }
#main-nav-inner > div:has(> .or-account-link) > a { white-space: nowrap; }
.or-account-mobile svg { flex: none; }
.or-account-notice {
  margin: -1rem 0 1rem;
  color: var(--or-muted);
  font-size: 0.9rem;
}
.or-account-notice a, .acc-claimed a { color: var(--or-primary); font-weight: 700; }
.or-chip-refunded { background: #f3f4f6; color: #374151; }

.acc { display: grid; gap: 1.25rem; color: var(--or-ink); }
/* The forms set display, which would otherwise beat the hidden attribute. */
.acc [hidden] { display: none !important; }
.acc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.acc-head .or-title { font-size: 1.75rem; }
.acc-demo { margin: 0; }
.acc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.acc-stats .or-card { display: grid; gap: 0.25rem; padding: 1.1rem 1.25rem; }
.acc-stats strong { font-size: 1.6rem; font-weight: 900; line-height: 1.2; }
/* Three across even on phones, with smaller figures. */
@media (max-width: 560px) {
  .acc-stats { gap: 0.5rem; }
  .acc-stats .or-card { padding: 0.75rem 0.8rem; }
  .acc-stats .or-muted { font-size: 0.75rem; }
  .acc-stats strong { font-size: 1.1rem; overflow-wrap: anywhere; }
}

.acc-orders { display: grid; gap: 1rem; }
.acc-order { display: grid; gap: 0.9rem; padding: 1.1rem 1.25rem; border: 1px solid #e5e7eb; border-radius: 0.9rem; }
.acc-order-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.acc-order-head h3 { margin: 0; font-size: 1.05rem; font-weight: 900; }
.acc-order-head .or-muted { margin: 0.1rem 0 0; }
.acc-items { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.acc-items li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; }
.acc-items img, .acc-img { flex: none; width: 44px; height: 44px; border-radius: 0.5rem; object-fit: cover; background: #f3f4f6; }
.acc-items li > span { display: grid; min-width: 0; }
.acc-items a { color: var(--or-ink); font-weight: 600; text-decoration: none; }
.acc-items a:hover { color: var(--or-primary); }
.acc-more { padding-left: 0.25rem; }

.acc-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.25rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.acc-step { position: relative; display: grid; justify-items: center; gap: 0.35rem; padding-top: 0.1rem; color: var(--or-muted); font-size: 0.78rem; font-weight: 600; text-align: center; }
.acc-step::before { content: ''; position: absolute; top: 0.55rem; right: 50%; left: -50%; height: 3px; background: #e5e7eb; }
.acc-step:first-child::before { display: none; }
.acc-dot { position: relative; z-index: 1; width: 1.1rem; height: 1.1rem; border: 3px solid #e5e7eb; border-radius: 50%; background: #fff; }
.acc-step-done { color: var(--or-ink); }
.acc-step-done .acc-dot { border-color: var(--or-primary); background: var(--or-primary); }
.acc-step-done::before, .acc-step-current::before, .acc-step-bad::before { background: var(--or-primary); }
.acc-step-current { color: var(--or-primary); font-weight: 800; }
.acc-step-current .acc-dot { border-color: var(--or-primary); box-shadow: 0 0 0 4px rgb(30 121 180 / 0.18); }
.acc-step-bad { color: var(--or-bad); font-weight: 800; }
.acc-step-bad .acc-dot { border-color: var(--or-bad); background: var(--or-bad); }
.acc-note { margin: 0; color: #374151; font-size: 0.9rem; }
.acc-order-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; padding-top: 0.75rem; border-top: 1px solid #f3f4f6; }
.acc-order-foot strong { font-size: 1.1rem; font-weight: 900; color: var(--or-primary); }
.acc-order-foot .or-actions { margin: 0 !important; }
.acc-order-foot .or-btn { padding: 0.55rem 1rem; font-size: 0.9rem; }
.acc-empty { padding: 1.5rem 0 0.5rem; text-align: center; color: var(--or-muted); }
.acc-empty .or-actions { justify-content: center; }

.acc-auth { grid-template-columns: minmax(0, 1fr); max-width: 980px; margin: 0 auto; }
@media (min-width: 900px) { .acc-auth { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }
.acc-auth-card form { display: grid; gap: 0.25rem; margin-top: 1rem; }
.acc-tabs { display: inline-grid; grid-auto-flow: column; margin-top: 1rem; padding: 0.25rem; border-radius: 0.75rem; background: #f3f4f6; }
.acc-tabs button { padding: 0.5rem 1rem; border: 0; border-radius: 0.55rem; background: none; color: var(--or-muted); font: inherit; font-weight: 700; cursor: pointer; }
.acc-tabs button[aria-selected='true'] { background: #fff; color: var(--or-ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.acc-field { display: grid; gap: 0.35rem; margin-bottom: 0.5rem; }
.acc-field label { color: #374151; font-size: 0.875rem; font-weight: 600; }
.acc-field input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
  color: var(--or-ink);
  font: inherit;
}
.acc-field input:focus { outline: none; border-color: var(--or-primary); box-shadow: 0 0 0 3px rgb(30 121 180 / 0.18); }
.acc-field input[aria-invalid='true'] { border-color: var(--or-bad); }
.acc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 480px) { .acc-two { grid-template-columns: 1fr; } }
.acc-error { margin: 0; color: var(--or-bad); font-size: 0.85rem; font-weight: 500; }
.acc-error:empty { display: none; }
.acc-form-error { padding: 0.6rem 0.8rem; border-radius: 0.6rem; background: var(--or-bad-bg); }
.acc-hint { margin: -0.25rem 0 0.25rem; color: var(--or-muted); font-size: 0.8rem; }
.acc-submit { width: 100%; margin-top: 0.5rem; }
.acc-submit:disabled { opacity: 0.7; cursor: progress; }
.acc-demo-hint { display: grid; gap: 0.6rem; margin-top: 1rem; padding: 0.9rem 1rem; border: 1px dashed #fcd34d; border-radius: 0.75rem; background: var(--or-warn-bg); font-size: 0.9rem; }
.acc-demo-hint p { margin: 0; color: #78350f; }
.acc-demo-hint code { padding: 0.1rem 0.35rem; border-radius: 0.3rem; background: #fef3c7; }
.acc-why ul { margin: 0; padding-left: 1.2rem; list-style: disc; color: #374151; line-height: 1.7; }
.acc-why li + li { margin-top: 0.35rem; }
.acc-claim { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; border-color: rgb(30 121 180 / 0.25); background: #f0f7fc; }
.acc-claim .or-h2 { margin-bottom: 0.25rem; }
.acc-claim .or-actions { margin: 0 !important; }
.acc-claimed { text-align: left; }

/* ------------------------------------------------------------ account area */
.acx { display: grid; gap: 1.5rem; align-items: start; color: var(--or-ink); }
@media (min-width: 960px) { .acx { grid-template-columns: 260px minmax(0, 1fr); } }
.acx [hidden] { display: none !important; }
.acx-icon { width: 1.15rem; height: 1.15rem; flex: none; }
.acx-small { font-size: 0.85rem; }
.acx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.acx-side { display: grid; gap: 1rem; }
@media (min-width: 960px) { .acx-side { position: sticky; top: 7rem; } }
.acx-user { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.1rem; border: 1px solid #f3f4f6; border-radius: 1rem; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }
.acx-user > div { display: grid; min-width: 0; }
.acx-user strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acx-user > div > span { overflow: hidden; color: var(--or-muted); font-size: 0.8rem; text-overflow: ellipsis; white-space: nowrap; }
.acx-avatar { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--or-primary); color: #fff; font-size: 1.15rem; font-weight: 900; }

.acx-menu { display: grid; gap: 0.15rem; padding: 0.5rem; border: 1px solid #f3f4f6; border-radius: 1rem; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }
.acx-menu a, .acx-menu button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 0;
  border-radius: 0.65rem;
  background: none;
  color: #374151;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.acx-menu a:hover, .acx-menu button:hover { background: #f3f4f6; color: var(--or-ink); }
.acx-menu a[aria-current="page"] { background: #e8f2f9; color: var(--or-primary); }
.acx-menu button { color: var(--or-muted); }
.acx-count { margin-left: auto; padding: 0 0.5rem; border-radius: 999px; background: #e5e7eb; color: #374151; font-size: 0.75rem; line-height: 1.4rem; }
.acx-menu a[aria-current="page"] .acx-count { background: var(--or-primary); color: #fff; }
.acx-help { display: grid; gap: 0.4rem; padding: 1rem 1.1rem; border-radius: 1rem; background: #f0f7fc; font-size: 0.875rem; }
.acx-help a { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--or-primary); font-weight: 700; text-decoration: none; }
.acx-help a:hover { text-decoration: underline; }
.acx-help .or-muted { margin: 0; font-size: 0.8rem; }

/* On phones and tablets the menu becomes a grid of buttons above the page,
   so every item is visible without scrolling. */
@media (max-width: 959px) {
  .acx-side { gap: 0.75rem; }
  .acx-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.25rem; padding: 0.35rem; }
  .acx-menu a, .acx-menu button { justify-content: center; padding: 0.6rem 0.5rem; font-size: 0.875rem; }
  .acx-help { display: none; }
}
@media (max-width: 640px) {
  .acx-menu { grid-template-columns: 1fr 1fr; }
}

.acx-main { display: grid; gap: 1.25rem; min-width: 0; }
.acx-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; padding: 1.5rem; border-radius: 1rem; background: linear-gradient(135deg, #1e79b4, #186091); color: #fff; }
.acx-hero .or-title { margin: 0; color: #fff; font-size: 1.85rem; }
.acx-hero .or-muted { color: #cfe3f2; }
.acx-eyebrow { margin: 0 0 0.2rem; color: #cfe3f2; font-size: 0.85rem; font-weight: 600; }
.acx-hero .or-btn { gap: 0.45rem; border-color: #fff; background: #fff; color: var(--or-primary); }
.acx-hero .or-btn:hover { border-color: #e8f2f9; background: #e8f2f9; }
a.or-card { color: inherit; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
a.or-card:hover { border-color: rgb(30 121 180 / 0.35); box-shadow: 0 4px 14px rgb(15 23 42 / 0.08); }
.acx-page-head .or-title { margin-bottom: 0.15rem; font-size: 1.6rem; }
.acx-page-head .or-muted { margin: 0; }
.acx-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.acx-section-head a { color: var(--or-primary); font-size: 0.9rem; font-weight: 700; text-decoration: none; }

.acx-attention { border-color: #fcd34d; background: #fffdf5; }
.acx-attention ul { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.acx-attention li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.75rem 0.9rem; border-radius: 0.75rem; background: #fff; }
.acx-attention li > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.acx-attention a:not(.or-btn) { color: var(--or-ink); text-decoration: none; }
.acx-attention .or-btn { padding: 0.5rem 1rem; }
.acx-tip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.acx-tip .or-h2 { margin-bottom: 0.2rem; }
.acx-tip .or-muted { margin: 0; }

.acc-order-head h3 a { color: var(--or-ink); text-decoration: none; }
.acc-order-head h3 a:hover { color: var(--or-primary); }
.acc-order-foot .or-btn { gap: 0.4rem; }

.acx-filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; }
.acx-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.acx-chips a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.85rem; border: 1px solid #e5e7eb; border-radius: 999px; background: #fff; color: #374151; font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.acx-chips a span { color: var(--or-muted); font-weight: 500; }
.acx-chips a:hover { border-color: var(--or-primary); }
.acx-chips a[aria-current="true"] { border-color: var(--or-primary); background: var(--or-primary); color: #fff; }
.acx-chips a[aria-current="true"] span { color: #cfe3f2; }
.acx-search { position: relative; flex: 1 1 220px; max-width: 320px; }
.acx-search .acx-icon { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--or-muted); }
.acx-search input { width: 100%; padding: 0.6rem 0.8rem 0.6rem 2.4rem; border: 1px solid #e5e7eb; border-radius: 999px; background: #fff; font: inherit; font-size: 0.9rem; }
.acx-search input:focus { outline: none; border-color: var(--or-primary); box-shadow: 0 0 0 3px rgb(30 121 180 / 0.18); }

.acx-back { color: var(--or-primary); font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.acx-back:hover { text-decoration: underline; }
.acx-order-top { display: grid; gap: 1.1rem; }
.acx-order-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.acx-order-title .or-title { margin: 0; }
.acx-order-top .or-actions { align-items: center; margin: 0 !important; }
.acx-order-top .or-btn { gap: 0.45rem; }
.acc-track-lg .acc-step { font-size: 0.875rem; }
.acc-track-lg .acc-dot { width: 1.4rem; height: 1.4rem; }
.acc-track-lg .acc-step::before { top: 0.65rem; }
.acx-two { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 1100px) { .acx-two { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.acx-stack { display: grid; gap: 1.25rem; }
.acx-history { display: grid; margin: 0; padding: 0; border-left: 2px solid #e5e7eb; list-style: none; }
.acx-history li { position: relative; display: grid; gap: 0.1rem; padding: 0 0 1rem 1.1rem; font-size: 0.9rem; }
.acx-history li:last-child { padding-bottom: 0; }
.acx-history li::before { content: ""; position: absolute; left: -7px; top: 0.3rem; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: var(--or-primary); box-shadow: 0 0 0 1px var(--or-primary); }
.acx-history li.is-bad::before { background: var(--or-bad); box-shadow: 0 0 0 1px var(--or-bad); }
.acx-history span { color: #374151; }
.acx-history time { color: var(--or-muted); font-size: 0.8rem; }

.acx-form { display: grid; gap: 0.25rem; }
.acx-form .or-h2:not(:first-child) { margin-top: 1rem; }
.acx-form .acc-submit { justify-self: start; width: auto; min-width: 12rem; }
.acc-submit.is-saved { border-color: var(--or-ok); background: var(--or-ok); }

/* ------------------------------------------------------------ native forms */
/* The enquiry forms that replace the GHL iframes (see server/lib/forms.js).
   Inputs reuse the site's own Tailwind classes; this adds layout, errors and
   the success state. */
.or-form-card { padding: 1.5rem 1.25rem; background: #f9fafb; }
@media (min-width: 640px) { .or-form-card { padding: 1.75rem; } }
.or-form { display: grid; gap: 1.1rem; text-align: left; }
.or-form-compact { gap: 0.85rem; }
.or-form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .or-form-row { grid-template-columns: 1fr 1fr; } }
.or-field { display: grid; min-width: 0; margin: 0; padding: 0; border: 0; }
.or-field-error { min-height: 0; margin: 0.3rem 0 0 0.25rem; color: var(--or-bad); font-size: 0.8rem; font-weight: 600; }
.or-field-error:empty { display: none; }
.or-form [aria-invalid="true"] { border-color: #f87171 !important; background: #fef2f2 !important; }
.or-form :is(input, select, textarea):focus-visible { outline: 2px solid var(--or-accent); outline-offset: 1px; }
.or-form-context { margin: 0; padding: 0.6rem 0.85rem; border-radius: 0.75rem; background: #e8f2f9; color: var(--or-ink); font-size: 0.875rem; }
.or-form-context a { color: var(--or-primary); font-weight: 700; }
.or-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.or-check { display: flex; gap: 0.6rem; align-items: flex-start; color: #4b5563; font-size: 0.78rem; line-height: 1.45; cursor: pointer; }
.or-check input { flex: none; width: 1.05rem; height: 1.05rem; margin-top: 0.1rem; accent-color: var(--or-accent); }
.or-form-alert { margin: 0; padding: 0.8rem 1rem; border: 1px solid #fecaca; border-radius: 0.75rem; background: #fef2f2; color: #991b1b; font-size: 0.875rem; }
.or-form-submit:disabled { opacity: 0.7; cursor: wait; transform: none; }
.or-form-privacy { margin: 0; color: #9ca3af; font-size: 0.72rem; text-align: center; }
.or-form-privacy a { color: inherit; text-decoration: underline; }
.or-form-success { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1.1rem 1.2rem; border: 1px solid #bbf7d0; border-radius: 0.9rem; background: #f0fdf4; color: #166534; font-size: 0.95rem; line-height: 1.5; outline: none; }
.or-form-success svg { flex: none; width: 1.5rem; height: 1.5rem; color: #22c55e; }
.or-form-success[hidden], .or-form[hidden], .or-form-alert[hidden] { display: none !important; }

/* Star rating: radios in reverse order so hovering a star lights it and the
   ones before it, with no script. */
.or-rating legend { padding: 0; }
.or-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 0.15rem; }
.or-stars input { position: absolute; opacity: 0; pointer-events: none; }
.or-stars label { width: 2.25rem; height: 2.25rem; color: #e5e7eb; cursor: pointer; transition: color 0.15s; }
.or-stars label svg { width: 100%; height: 100%; }
.or-stars input:checked ~ label, .or-stars label:hover, .or-stars label:hover ~ label { color: #facc15; }
.or-stars input:focus-visible + label { outline: 2px solid var(--or-accent); outline-offset: 2px; border-radius: 0.35rem; }
.or-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.or-error-list { margin: 0.5rem 0 1rem 1.25rem; color: var(--or-bad); }

.acc-tracking { display: flex; align-items: center; gap: 0.5rem; margin: 0; padding: 0.6rem 0.85rem; border-radius: 0.75rem; background: #f0f7fc; color: var(--or-ink); font-size: 0.9rem; font-weight: 600; }
.acc-tracking a { color: var(--or-primary); }

/* ------------------------------------------------------------ listings, search, options */
.or-listing-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 0 0 1.25rem; }
.or-listing-count { margin: 0 auto 0 0; color: var(--or-muted); font-size: 0.9rem; font-weight: 600; }
.or-listing-check { display: inline-flex; align-items: center; gap: 0.45rem; color: #374151; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.or-listing-check input { width: 1rem; height: 1rem; accent-color: var(--or-primary); }
.or-listing-sort { display: inline-flex; align-items: center; gap: 0.5rem; color: #374151; font-size: 0.9rem; font-weight: 600; }
.or-listing-sort select { padding: 0.5rem 2rem 0.5rem 0.75rem; border: 1px solid var(--or-line); border-radius: 0.6rem; background: #fff; font: inherit; font-weight: 500; }
.or-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; margin-top: 2rem; }
.or-pager a, .or-pager span { min-width: 2.5rem; padding: 0.5rem 0.75rem; border: 1px solid var(--or-line); border-radius: 0.6rem; background: #fff; color: #374151; font-weight: 600; text-align: center; text-decoration: none; }
.or-pager a:hover { border-color: var(--or-primary); color: var(--or-primary); }
.or-pager span[aria-current="page"] { border-color: var(--or-primary); background: var(--or-primary); color: #fff; }
.or-pager .or-pager-gap { border-color: transparent; background: none; }
.or-shop-search { display: flex; gap: 0.4rem; margin-left: auto; }
.or-shop-search input { width: 14rem; max-width: 50vw; padding: 0.45rem 0.75rem; border: 1px solid var(--or-line); border-radius: 0.6rem; font: inherit; font-size: 0.875rem; }
.or-shop-search button { padding: 0.45rem 0.9rem; border: 0; border-radius: 0.6rem; background: var(--or-primary); color: #fff; font-weight: 700; font-size: 0.875rem; cursor: pointer; }
.or-shop-search-lg { justify-content: center; margin: 0.5rem auto 2.5rem; }
.or-shop-search-lg input { width: min(28rem, 70vw); padding: 0.7rem 1rem; font-size: 1rem; }
.or-shop-search-lg button { padding: 0.7rem 1.2rem; font-size: 1rem; }
.or-cat-desc { max-width: 48rem; margin-top: 0.75rem; color: #dbeafe; font-size: 1rem; line-height: 1.6; }
.or-cat-desc a { color: #fff; text-decoration: underline; }
.or-subcats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0 0; }
.or-subcats a { padding: 0.35rem 0.8rem; border: 1px solid rgb(255 255 255 / 0.4); border-radius: 999px; color: #fff; font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.or-subcats a:hover { background: rgb(255 255 255 / 0.15); }
.or-specs { width: 100%; border-collapse: collapse; }
.or-specs th, .or-specs td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--or-line); text-align: left; vertical-align: top; }
.or-specs th { width: 35%; color: var(--or-ink); font-weight: 700; }
.or-docs { padding-left: 1.2rem; }
.or-var { display: grid; gap: 1rem; }
.or-var-fields { display: grid; gap: 0.85rem; }
.or-var-status { margin: 0; color: #4b5563; font-size: 0.9rem; }
@media (max-width: 640px) { .or-shop-search { width: 100%; margin-left: 0; } .or-shop-search input { flex: 1; width: auto; max-width: none; } }

/* ------------------------------------------------------------ native checkout */
.or-co { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .or-co { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.or-co[hidden], .or-co-empty[hidden] { display: none !important; }
.or-co-empty { padding: 5rem 1rem; text-align: center; }
.or-co-main { display: grid; gap: 1.5rem; }
.or-co-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .or-co-grid { grid-template-columns: 1fr 1fr; } }
.or-co-full { grid-column: 1 / -1; }
.or-co [aria-invalid="true"] { border-color: #f87171 !important; background: #fef2f2 !important; }
.or-co-methods { display: grid; gap: 0.6rem; margin: 0 0 1.25rem; padding: 0; border: 0; }
.or-co-method { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.85rem 1rem; border: 2px solid var(--or-line); border-radius: 0.9rem; cursor: pointer; }
.or-co-method:has(input:checked) { border-color: var(--or-primary); background: #f0f7fc; }
.or-co-method input { margin-top: 0.25rem; accent-color: var(--or-primary); }
.or-co-method > span { display: grid; flex: 1; gap: 0.15rem; }
.or-co-method strong { color: var(--or-ink); }
.or-co-method-price { color: var(--or-primary); font-size: 0.9rem; font-weight: 700; }
.or-co-method small { color: var(--or-muted); font-size: 0.82rem; line-height: 1.45; }
.or-co-terms { margin: 0; color: var(--or-muted); font-size: 0.85rem; }
.or-co-terms a { color: var(--or-primary); }
.or-co-side { position: relative; }
@media (min-width: 1024px) { .or-co-summary { position: sticky; top: 7rem; } }
.or-co-lines { display: grid; gap: 0.25rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.or-co-line { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 0.75rem; align-items: start; padding: 0.75rem 0; border-bottom: 1px solid #f3f4f6; }
.or-co-line img, .or-co-thumb { width: 48px; height: 48px; border-radius: 0.6rem; background: #f3f4f6; object-fit: cover; }
.or-co-line-body { display: grid; gap: 0.3rem; min-width: 0; }
.or-co-line-name { margin: 0; color: #1f2937; font-size: 0.9rem; font-weight: 600; line-height: 1.35; }
.or-co-qty { display: flex; align-items: center; gap: 0.35rem; color: #4b5563; font-size: 0.85rem; }
.or-co-qty button { width: 1.75rem; height: 1.75rem; border: 1px solid var(--or-line); border-radius: 0.45rem; background: #fff; font-weight: 700; cursor: pointer; }
.or-co-qty button:hover { border-color: var(--or-primary); color: var(--or-primary); }
.or-co-qty span[aria-label] { min-width: 1.5rem; text-align: center; font-weight: 700; color: var(--or-ink); }
.or-co-each { color: var(--or-muted); }
.or-co-remove { justify-self: start; padding: 0; border: 0; background: none; color: var(--or-muted); font-size: 0.8rem; text-decoration: underline; cursor: pointer; }
.or-co-problem { margin: 0; color: var(--or-bad); font-size: 0.85rem; font-weight: 600; }
.or-co-line.has-problem { grid-template-columns: 48px minmax(0, 1fr); }
.or-co-note { margin: 0.25rem 0 0; color: var(--or-muted); font-size: 0.8rem; }
.or-co-totals { display: grid; gap: 0.45rem; margin: 0; }
.or-co-totals div { display: flex; justify-content: space-between; gap: 1rem; color: #4b5563; font-size: 0.9rem; }
.or-co-totals dd { margin: 0; text-align: right; }
.or-co-totals .or-co-total { margin-top: 0.4rem; padding-top: 0.6rem; border-top: 1px solid var(--or-line); color: var(--or-ink); font-size: 1.15rem; font-weight: 900; }
.or-co-totals .or-co-total dd { color: var(--or-primary); }
.or-co-totals .or-co-gst { font-size: 0.8rem; }
.or-co-loading { color: var(--or-muted); }

.acc-forgot { margin: 0.25rem 0 0.75rem; font-size: 0.875rem; }
.acc-forgot a { color: var(--or-primary); font-weight: 600; }
.acc-success { margin: 0.75rem 0 0; padding: 0.75rem 1rem; border-radius: 0.75rem; background: var(--or-ok-bg); color: var(--or-ok); font-size: 0.9rem; }
.acc-success[hidden] { display: none; }
.acx-verify { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; border-color: #fcd34d; background: #fffdf5; }
.acx-verify p { margin: 0; }
