/* ================================================================
   Icebox Rentals — Customer Booking Design System
   Self-contained; loaded instead of styles.css on customer pages.
   ================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400&display=swap");

/* ── Reset ──────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    "Inter",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  font-size: 14px;
  line-height: 1.5;
  /*background: var(--bg);*/
  background: var(--surface);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: var(--info);
}
a:hover {
  text-decoration: underline;
}
img {
  display: block;
}

/* ── Tokens ─────────────────────────────────────────────────── */

:root {
  /* Neutrals */
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --surface-sunk: #f1f3f6;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --text: #101828;
  --text-2: #344054;
  --muted: #667085;
  --muted-2: #98a2b3;

  /* Brand — swappable per tenant */
  --brand: #101828;
  --brand-fg: #ffffff;
  --brand-soft: #f1f3f6;
  --brand-hover: #1d2939;

  /* Status */
  --ok: #067647;
  --ok-bg: #ecfdf3;
  --ok-border: #abefc6;
  --warn: #b54708;
  --warn-bg: #fffaeb;
  --warn-border: #fedf89;
  --bad: #b42318;
  --bad-bg: #fef3f2;
  --bad-border: #fecdca;
  --info: #175cd3;
  --info-bg: #eff8ff;
  --info-border: #b2ddff;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, 0.06), 0 2px 4px -2px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 12px 24px -8px rgba(16, 24, 40, 0.1), 0 4px 8px -2px rgba(16, 24, 40, 0.04);
}

/* ── Typography ─────────────────────────────────────────────── */

.t-display {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.t-h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.018em;
  font-weight: 600;
}
.t-h2 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.014em;
  font-weight: 600;
}
.t-h3 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.t-h4 {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
}
.t-body {
  font-size: 14px;
  line-height: 1.5;
}
.t-body-lg {
  font-size: 16px;
  line-height: 1.5;
}
.t-small {
  font-size: 13px;
  line-height: 1.45;
}
.t-xs {
  font-size: 12px;
  line-height: 1.4;
}
.t-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--muted);
}
.t-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-feature-settings: normal;
}
.t-muted {
  color: var(--muted);
}
.t-text-2 {
  color: var(--text-2);
}
.tabular {
  font-variant-numeric: tabular-nums;
}

/* ── Layout helpers ─────────────────────────────────────────── */

.row {
  display: flex;
  gap: 16px;
}
.col {
  display: flex;
  flex-direction: column;
}
.gap-1 {
  gap: 4px;
}
.gap-2 {
  gap: 8px;
}
.gap-3 {
  gap: 12px;
}
.gap-4 {
  gap: 16px;
}
.gap-6 {
  gap: 24px;
}
.gap-8 {
  gap: 32px;
}
.flex-1 {
  flex: 1;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.justify-between {
  justify-content: space-between;
}
.justify-end {
  justify-content: flex-end;
}
.text-right {
  text-align: right;
}
.hr {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 16px 0;
}

/* ── Buttons ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.12s,
    border-color 0.12s,
    box-shadow 0.12s,
    transform 0.06s;
  box-shadow: var(--shadow-xs);
  line-height: 1;
}
.btn:hover {
  background: var(--surface-2);
  border-color: var(--text-2);
  text-decoration: none;
}
.btn:active {
  transform: translateY(0.5px);
}
.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--primary {
  background: var(--brand);
  color: var(--brand-fg);
  border-color: var(--brand);
}
.btn--primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}
.btn--ghost {
  border-color: transparent;
  box-shadow: none;
  background: transparent;
}
.btn--ghost:hover {
  background: var(--surface-sunk);
  border-color: transparent;
}
.btn--danger {
  color: var(--bad);
  border-color: var(--bad-border);
  background: var(--surface);
}
.btn--danger:hover {
  background: var(--bad-bg);
}
.btn--lg {
  padding: 11px 18px;
  font-size: 15px;
  border-radius: var(--r-md);
}
.btn--sm {
  padding: 5px 10px;
  font-size: 13px;
}
.btn--icon {
  padding: 7px;
}
.btn--block {
  width: 100%;
  justify-content: center;
}

/* ── Inputs ─────────────────────────────────────────────────── */

.input,
.select,
.textarea {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  transition:
    border-color 0.12s,
    box-shadow 0.12s;
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(16, 24, 40, 0.08);
}
.input::placeholder {
  color: var(--muted-2);
}
.label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 6px;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.field {
  margin-bottom: 14px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}
.input-group .input {
  padding-right: 38px;
}
.input-suffix {
  position: absolute;
  right: 12px;
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .field--full {
  grid-column: 1 / -1;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  margin-bottom: 14px;
}
.checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  width: auto;
  flex-shrink: 0;
}
.checkbox-row label {
  cursor: pointer;
}

/* ── Cards ──────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  padding: 0;
  margin: 0;
}
.card-pad {
  padding: 20px;
}
.card-pad-lg {
  padding: 28px;
}
.card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* ── Badges ─────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  white-space: nowrap;
}
.badge--ok {
  background: var(--ok-bg);
  border-color: var(--ok-border);
  color: var(--ok);
}
.badge--warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn);
}
.badge--bad {
  background: var(--bad-bg);
  border-color: var(--bad-border);
  color: var(--bad);
}
.badge--info {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info);
}
.badge--solid {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  flex-shrink: 0;
}

/* ── Stepper ────────────────────────────────────────────────── */

.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.stepper-step {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.1s;
}
.stepper-step .num {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--surface-sunk);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.stepper-step.is-active {
  color: var(--text);
  font-weight: 500;
}
.stepper-step.is-active .num {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.stepper-step.is-pending {
  color: #d97706;
  font-weight: 500;
}
.stepper-step.is-pending .num {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
}
.stepper-step.is-done .num {
  background: var(--ok);
  color: #fff;
  border-color: var(--ok);
}
.stepper-step.is-done {
  color: var(--text-2);
}
a.stepper-step.is-done:hover {
  color: var(--text);
}
.stepper-divider {
  width: 18px;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Topbar ─────────────────────────────────────────────────── */

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-brand {
  text-decoration: none;
  color: inherit;
}
.topbar-brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark span {
  display: block;
  width: 14px;
  height: 14px;
  background: var(--brand-fg);
  border-radius: 3px;
  transform: rotate(45deg);
}
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-nav a {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
}
.topbar-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.topbar-stepper {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.topbar-stepper-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
}

/* ── Agent banner ───────────────────────────────────────────── */

.agent-banner {
  background: linear-gradient(180deg, #f7f9ff, #f1f4fb);
  border-bottom: 1px solid var(--info-border);
}
.agent-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.agent-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.agent-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: var(--info);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.agent-banner-inner a {
  color: var(--info);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.agent-banner-inner a:hover {
  text-decoration: underline;
}

/* ── Page container ─────────────────────────────────────────── */

main {
  background: var(--bg);
}
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}

/* ── Search bar ─────────────────────────────────────────────── */

.searchbar {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 6px 6px 6px 0;
  gap: 0;
  margin-bottom: 20px;
}
.searchbar-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 16px;
  flex: 1;
  min-width: 0;
}
.searchbar-field--dates {
  flex: 2;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0;
}
.searchbar-date-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 16px;
  flex: 1;
  min-width: 0;
}
.searchbar-divider {
  width: 1px;
  background: var(--border);
  margin: 8px 0;
  flex-shrink: 0;
}
.searchbar-naked {
  border: none;
  padding: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  width: 100%;
  max-width: none;
  outline: none;
}
.searchbar-naked::-webkit-calendar-picker-indicator {
  opacity: 0.5;
}
.searchbar-btn {
  align-self: stretch;
  margin: 0 0 0 6px;
  flex-shrink: 0;
}

/* ── Product grid / cards ───────────────────────────────────── */

.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.prod-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.12s,
    box-shadow 0.12s,
    transform 0.08s;
  text-decoration: none;
  color: inherit;
}
.prod-card:hover {
  border-color: var(--text-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  text-decoration: none;
}
.prod-card-thumb {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: linear-gradient(135deg, #eef0f3 0%, #e0e4ea 100%);
}
.prod-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prod-card-stock {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--surface);
  border: 1px solid var(--warn-border);
  color: var(--warn);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.prod-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.prod-card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
}

/* ── Product detail ─────────────────────────────────────────── */

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}
.pd-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.pd-hero {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: linear-gradient(135deg, #eef0f3 0%, #e0e4ea 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-side {
  position: sticky;
  top: 90px;
}
.photo-disclaimer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -12px auto 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted-2);
}
.photo-disclaimer-icon {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  color: var(--muted-2);
}

/* ── Size cards ─────────────────────────────────────────────── */

fieldset.size-grid {
  border: none;
  padding: 0;
  margin: 0;
}
.size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
/* hide the radio visually but keep it accessible */
.size-card input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.size-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.12s,
    box-shadow 0.12s,
    background 0.12s;
  font-size: 14px;
}
.size-card:hover:not(.is-out) {
  border-color: var(--text);
  box-shadow: var(--shadow-sm);
}
/* CSS-native selection feedback */
.size-card:has(input:checked),
.size-card.is-selected {
  border-color: var(--text);
  border-width: 2px;
  padding: 13px;
  background: var(--surface-2);
}
.size-card.is-out {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--surface-sunk);
}
.size-card-rec {
  position: absolute;
  top: -9px;
  left: 12px;
  background: var(--info);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.size-card-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  border-top: 1px dashed var(--border);
  padding-top: 8px;
  color: var(--text-2);
}

/* ── Quote / sidebar ────────────────────────────────────────── */

.quote {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quote-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: var(--text-2);
}
.quote-row strong {
  color: var(--text);
  font-weight: 500;
}
.quote-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.quote-total-label {
  font-size: 14px;
  color: var(--text-2);
}
.quote-total-amount {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.trust-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}

/* ── Availability / messages ─────────────────────────────────── */

.avail-ok,
.avail-bad {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  margin: 0 0 16px;
}
.avail-ok {
  border: 1px solid var(--ok-border);
  background: var(--ok-bg);
  color: var(--ok);
  font-weight: 500;
}
.avail-bad {
  border: 1px solid var(--bad-border);
  background: var(--bad-bg);
  color: var(--bad);
}

/* Shopify info box */
.msg-info {
  padding: 10px 14px;
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  margin: 16px 0 0;
}

/* Zod errors */
.errors {
  padding: 12px 16px;
  border: 1px solid var(--bad-border);
  border-radius: var(--r-md);
  background: var(--bad-bg);
  color: var(--bad);
  font-size: 14px;
  margin: 0 0 16px;
}
.errors ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.msg-ok {
  padding: 10px 14px;
  border: 1px solid var(--ok-border);
  border-radius: var(--r-md);
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 16px;
}

/* HTMX loading */
.htmx-request .htmx-indicator {
  opacity: 1;
}
.htmx-indicator {
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 13px;
  color: var(--muted);
}

/* ── Confirmation ────────────────────────────────────────────── */

.confirm-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px;
  background: linear-gradient(180deg, #f0fdf4, var(--surface));
  border: 1px solid var(--ok-border);
  border-radius: var(--r-lg);
  margin-bottom: 20px;
}
.confirm-hero.is-pending {
  background: linear-gradient(180deg, #fef3c7, var(--surface));
  border-color: #fcd34d;
}
.confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--ok);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.confirm-hero.is-pending .confirm-icon {
  background: #fef3c7;
  color: #f59e0b;
}
.confirm-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.confirm-list-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  gap: 16px;
}
.confirm-list-item .k {
  color: var(--muted);
  white-space: nowrap;
}
.confirm-list-item .v {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

/* ── V2 pending page ─────────────────────────────────────────── */

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Action hero */
.action-hero {
  background: linear-gradient(180deg, #fafbfc, var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 44px 48px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.action-hero.is-returning {
  background: linear-gradient(180deg, var(--info-bg), var(--surface));
  border-color: var(--info-border);
}
.action-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 18px;
}
.action-hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--info);
  animation: pulse-dot 1.4s ease-in-out infinite;
}
.action-hero-h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.018em;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--text);
}
.action-hero-lead {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0 auto 28px;
  max-width: 56ch;
}
.action-hero-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.action-hero-meta {
  font-size: 12px;
  color: var(--muted);
}
.action-hero-foot {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.spinner {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* Shopify-branded button */
.btn--shopify {
  background: #5a8e3a;
  border-color: #4f7d33;
  color: #fff;
  box-shadow: 0 2px 4px rgba(90, 142, 58, 0.25);
}
.btn--shopify:hover {
  background: #4f7d33;
  border-color: #4f7d33;
  color: #fff;
}
.btn--shopify .shopify-mark {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #fff;
  color: #5a8e3a;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-mono);
}
.btn--shopify.btn--sm .shopify-mark {
  width: 16px;
  height: 16px;
  font-size: 10px;
}

/* Step list */
.steplist {
  display: flex;
  flex-direction: column;
  position: relative;
}
.steplist-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.steplist-row:last-child {
  border-bottom: none;
}
.steplist-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.steplist-row.is-done .steplist-mark {
  background: var(--ok);
  color: #fff;
  border-color: var(--ok);
}
.steplist-row.is-active .steplist-mark {
  background: var(--info);
  color: #fff;
  border-color: var(--info);
}
.steplist-row.is-active .steplist-mark::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid var(--info);
  opacity: 0.3;
  animation: pulse 1.6s ease-out infinite;
}
.steplist-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.steplist-row.is-pending .steplist-title {
  color: var(--muted);
  font-weight: 500;
}
.steplist-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.5;
}
.steplist-row.is-active .steplist-sub {
  color: var(--info);
}

/* Status banner */
.status-banner {
  border-radius: var(--r-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.status-banner-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.status-banner.is-pending {
  background: var(--info-bg);
  border: 1px solid var(--info-border);
}
.status-banner.is-pending .status-banner-icon {
  background: var(--info);
  color: #fff;
}
.status-banner.is-warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
}
.status-banner.is-warn .status-banner-icon {
  background: var(--warn);
  color: #fff;
}
.status-banner.is-ok {
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
}
.status-banner.is-ok .status-banner-icon {
  background: var(--ok);
  color: #fff;
}

/* Hold pill */
.hold-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  color: var(--info);
  font-size: 13px;
  font-weight: 500;
}
.hold-pill.is-warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn);
}

/* Domain ribbon */
.domain-ribbon {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.domain-ribbon-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  color: var(--muted);
}
.domain-ribbon-step.is-current {
  background: var(--text);
  color: #fff;
}
.domain-ribbon-step.is-current .dot {
  background: #6ee7b7;
}
.domain-ribbon-step .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--muted-2);
}
.domain-ribbon-arrow {
  display: grid;
  place-items: center;
  padding: 0 6px;
  color: var(--muted-2);
}

/* Action options (delayed / escalation state) */
.action-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px;
}
.action-option {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  align-items: flex-start;
}
.action-option-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Order summary rail */
.summary-rail {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
}
.summary-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.summary-thumb {
  width: 64px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--surface-sunk);
}
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  color: var(--text-2);
}
.summary-line strong {
  color: var(--text);
  font-weight: 500;
}
.summary-line.is-total {
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 12px;
  font-size: 15px;
  font-weight: 600;
}
.summary-line.is-total strong {
  font-size: 18px;
}

/* Help cluster */
.help-cluster {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
}
.help-cluster a {
  color: var(--info);
  text-decoration: none;
  font-weight: 500;
}
.help-cluster a:hover {
  text-decoration: underline;
}

/* Receipt strip */
.receipt-strip {
  background: var(--surface-2);
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ── Footer ──────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-mark--xs {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}
.brand-mark--xs span {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}
.site-footer-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.site-footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-footer-nav a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.1s;
}
.site-footer-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 900px) {
  .pd-grid {
    grid-template-columns: 1fr;
  }
  .pd-side {
    position: static;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .searchbar {
    flex-wrap: wrap;
  }
  .searchbar-field--dates {
    flex: 1 1 100%;
    border-bottom: 1px solid var(--border);
  }
  .searchbar-divider:first-of-type {
    display: none;
  }
  .page {
    padding: 16px 16px 60px;
  }
  .topbar-inner {
    padding: 12px 16px;
  }
  .topbar-stepper-inner {
    padding: 8px 16px;
  }
  .site-footer-inner {
    padding: 14px 16px;
  }
}

@media (max-width: 600px) {
  .size-grid {
    grid-template-columns: 1fr 1fr;
  }
  .prod-grid {
    grid-template-columns: 1fr;
  }
  .searchbar-btn {
    width: 100%;
    margin: 4px 0 0;
  }
}

.print-header {
  display: none;
}

@media print {
  .topbar,
  .site-footer,
  .no-print {
    display: none !important;
  }

  .print-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 1px solid #ccc;
    font-size: 13px;
  }

  body {
    background: white;
  }

  .page {
    max-width: none;
    padding: 16px;
  }

  .pd-grid {
    display: block;
  }

  .summary-rail {
    margin-top: 16px;
  }

  .summary-card {
    break-inside: avoid;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
