/* Customer order page (/order). Builds on styles.css tokens. */
.order-page { background: var(--page) var(--pattern); color: var(--on-dark); }
.order-wrap { max-width: 760px; padding-top: 32px; padding-bottom: 64px; }
.back { display: inline-block; margin-bottom: 20px; color: var(--on-dark-muted); text-decoration: none; font-size: 15px; }
.back:hover { color: var(--on-dark); }

.order-head { margin-bottom: 24px; }
.paid-banner {
  margin-bottom: 20px; padding: 12px 16px; font-weight: 500;
  background: var(--gold-soft); color: var(--navy-3); border-radius: var(--radius);
}
.order-title {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font: 600 clamp(32px, 5vw, 42px)/1.1 var(--head); margin: 0 0 8px; max-width: none;
}
.order-meta { color: var(--on-dark-muted); font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.order-lead { color: var(--on-dark-muted); margin: -12px 0 24px; }

.status {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px;
  font: 600 13px/1 var(--sans); letter-spacing: 0.02em; border-radius: var(--radius);
}
.status-preparing { background: #f3e9d2; color: var(--gold-ink); border: 1px solid #e2cfa4; }
.status-shipped { background: var(--gold-soft); color: var(--navy-3); }
.status-donation { background: var(--navy); color: var(--gold-soft); }

.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat-label { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.stat-value { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.25; }

.panel { color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.panel-head h2 { font: 600 17px var(--sans); }

.steps { list-style: none; margin: 0; padding: 0; }
.step { position: relative; display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; padding-bottom: 22px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before {
  content: ""; position: absolute; inset-inline-start: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--line);
}
.step-done:not(:last-child)::before { background: var(--navy); }
.step-dot {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--line); background: var(--card); color: var(--on-dark);
}
.step-dot svg { width: 16px; height: 16px; }
.step-done .step-dot { background: var(--navy); border-color: var(--navy); }
.step-current .step-dot { border-color: var(--gold-ink); }
.step-current .step-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-ink); }
.step-title { font-weight: 600; margin-top: 3px; }
.step-todo .step-title { color: var(--muted); }
.step-text { color: var(--muted); font-size: 15px; margin-top: 2px; }
.step-text a { color: var(--navy); }
.step-side { color: var(--muted); font-size: 14px; margin-top: 4px; text-align: end; white-space: nowrap; }

.order-lines { list-style: none; margin: 0; padding: 0; }
.order-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.order-lines .order-total { border-bottom: 0; font-weight: 600; font-size: 17px; }
.order-address { margin-top: 14px; color: var(--muted); font-size: 15px; }
.order-address strong { color: var(--ink); }
.donation-text { font: italic 500 20px/1.45 var(--head); }
.order-help { color: var(--on-dark-muted); font-size: 14px; margin-top: 8px; }
.panel .order-help { color: var(--muted); }
.order-help a { color: var(--gold-soft); }
.panel .order-help a { color: var(--navy); }

.lookup { display: grid; gap: 14px; max-width: 440px; }
.lookup label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
.lookup input {
  height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); font-size: 16px;
}
.lookup input:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.lookup-error { color: var(--danger); font-size: 14px; }
.lookup .btn { justify-self: start; }

@media (max-width: 600px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid .stat:nth-child(3) { grid-column: span 2; }
  .step { grid-template-columns: 28px 1fr; }
  .step-side { grid-column: 2; text-align: start; margin-top: -14px; }
  .panel { padding: 18px 16px; }
}
