/* Orders page · needs tokens.css + ui.css + ui/order.css + shop.css first. Tokens only (light + dark), mobile first. */
.ords { padding-bottom: calc(var(--s8) + env(safe-area-inset-bottom)); }
.ords > div { display: flex; flex-direction: column; gap: var(--s4); }

/* the switch card */
.ords__bot { display: flex; flex-direction: column; gap: 12px; }
.ords__bottext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.45; }
.ords__bottext b { font-size: 16px; font-weight: 600; }
.ords__state { font: 500 13px/1.5 var(--font); color: var(--ink-2); }
.ords__state.is-on { color: var(--leaf-ink); }
.ords__state.is-wait { color: var(--ember-ink); }
.ords__need { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: var(--r-m); background: var(--ember-tint); color: var(--ember-ink); }
.ords__needrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ords__needrow .chip { text-decoration: none; }
.ords__how { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.switch[aria-busy="true"] { opacity: .6; }
.switch:disabled { opacity: .5; cursor: default; }

/* test-orders switch */
.ords__test { display: flex; align-items: center; gap: 12px; padding: 4px 4px 0; }

/* rows */
.ords__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ords__item { display: flex; gap: 12px; align-items: flex-start; min-height: var(--tap); background: var(--card); border-radius: 22px; padding: 14px; text-decoration: none; color: var(--ink); transition: transform var(--t-press) var(--ease-out); }
.ords__item:active { transform: scale(.98); }
.ords__ch { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--card-2); color: var(--ink); display: grid; place-items: center; }
.ords__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ords__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ords__top b { font-size: 16px; font-weight: 600; }
.ords__when { flex: none; font-size: 12px; color: var(--ink-3); }
.ords__who { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ords__foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ords__total { display: inline-flex; align-items: baseline; gap: 4px; margin-inline-end: auto; }
.ords__total .amt { font-size: 16px; }
.ords__total small { font: 500 12px/1 var(--font); color: var(--ink-2); }
.ords__list > .alert { margin-bottom: 2px; }

/* one order */
.ords__detail { display: flex; flex-direction: column; gap: var(--s4); }
.ords__detail > .alert a { flex: none; font-weight: 600; }

@media (prefers-reduced-motion: reduce) { .ords__item { transition: none; } }
