* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --ink: #132b46;
  --muted: #515d68;
  --paper: #f8f5ef;
  --line: #ddd8cf;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
body { margin: 0; }
a { color: var(--ink); text-underline-offset: 3px; }
header { background: #fff; border-bottom: 1px solid var(--line); }
.shell { width: min(100% - 32px, 1000px); margin-inline: auto; }
header .shell { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 18px; }
.brand { font-weight: 800; text-decoration: none; letter-spacing: .035em; }
nav { display: flex; gap: 16px; flex-wrap: wrap; }
main.shell { padding-block: clamp(28px, 6vw, 64px); }
main.customer { max-width: 760px; }
h1 { font: 700 clamp(32px, 7vw, 52px)/1.08 Georgia, serif; margin: 0 0 12px; }
h2 { font-size: 21px; margin: 0 0 12px; }
h3 { font-size: 17px; margin: 0 0 10px; }
p { line-height: 1.5; margin: 8px 0 16px; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.panel { background: white; border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 4vw, 32px); margin: 22px 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; }
label { font-weight: 650; }
input, button, .button { font: inherit; min-height: 44px; border-radius: 9px; }
input { width: 100%; border: 1px solid #979a9b; color: var(--ink); padding: 8px 12px; background: #fff; }
button, .button { background: var(--ink); color: white; border: 1px solid var(--ink); padding: 10px 16px; font-weight: 650; cursor: pointer; }
.button { display: inline-flex; align-items: center; text-decoration: none; }
.secondary { background: white; color: var(--ink); }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid #ad5d3d; outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.timeline { display: grid; gap: 12px; padding: 0; list-style: none; margin: 0 0 22px; }
.timeline li { border-left: 4px solid var(--line); padding: 5px 12px; color: var(--muted); }
.timeline li.completed { border-color: #497558; color: var(--ink); }
.timeline li[aria-current] { background: #edf4ee; border-color: #286342; font-weight: 700; color: var(--ink); }
.time { display: block; color: var(--muted); font-size: 14px; }
.items { padding-left: 22px; line-height: 1.6; }
.summary { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.order-card { margin: 15px 0; }
.order-card summary { cursor: pointer; font-weight: 650; padding-block: 8px; }
.order-card form { padding-top: 14px; }
.feedback { color: var(--muted); }
.feedback:empty { display: none; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; gap: 12px; }
  header .shell { align-items: flex-start; }
}

select, textarea { font: inherit; color: inherit; border: 1px solid var(--line); border-radius: 9px; padding: 10px; background: #fff; width: 100%; }
[hidden] { display: none !important; }
button:disabled { opacity: .55; cursor: not-allowed; }
button, .button { cursor: pointer; }
.shop-list { list-style: none; padding: 0; }
.shop-list li, .summary-row { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; border-bottom: 1px solid var(--line); }
.summary-total { font-size: 20px; font-weight: 750; }
.grid + button, .field + button, form > button, .actions { margin-top: 16px; }
.notice { background: #fff3df; padding: 12px 16px; border-radius: 10px; }
.stack { display: grid; gap: 12px; }
details { border-top: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 700; }
button.secondary { color: var(--ink); background: #fff; border: 1px solid var(--line); }

.checkout-totals { margin: 0; }
.checkout-totals dd { margin: 0; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.checkout-totals .summary-row { align-items: baseline; }
.checkout-totals .summary-total { border-bottom: 0; padding-top: 14px; }
.checkout-totals :is(.freight-original, .freight-savings) { background: #f1f6f2; border: 0; padding: 6px 12px; }
.freight-original { color: var(--muted); border-radius: 10px 10px 0 0; margin-top: 10px; }
.freight-savings { color: #245c3a; border-radius: 0 0 10px 10px; margin-bottom: 2px; }
