/* CoverTree Rewards — My orders and one order's page (agent.html only; the kit is css/shop.css, the picture ground is
   css/shop-store.css). Cards that stack and one readable column: words for everything, nothing that scrolls sideways,
   nothing that hides behind a hover. Colours come from the kit's tokens only, so light and dark both read. */

/* ───────── My orders: one card an order, newest first ───────── */
.sh-ords__list { display: flex; flex-direction: column; gap: 1.25rem; max-width: 52rem; }
.sh-ords__cap { max-width: 52rem; margin-top: 1.5rem; color: var(--ink-2); }
.sh-ord { display: flex; flex-direction: column; gap: 0.9rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.sh-ord__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.5rem 1.5rem; }
.sh-ord__ref { font-size: 1.25rem; letter-spacing: 0; }
.sh-ord__date { margin-top: 0.15rem; color: var(--ink-2); }
/* a status in the server's words can be a short sentence ("We're checking this order"): it wraps instead of running off */
.sh-ord__pill { white-space: normal; border-radius: var(--r); }
.sh-ord__say { font-size: 1.05rem; }
.sh-ord__items { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.sh-ord__item { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.sh-ord__pic { flex: none; width: 3.5rem; height: 3.5rem; border-radius: var(--r-sm); overflow: hidden; }
.sh-ord__what { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; line-height: 1.35; }
.sh-ord__gone { color: var(--bad); font-weight: 600; }
.sh-ord__pts { padding-top: 0.9rem; border-top: 1px solid var(--line); }
.sh-ord__pts b { font-size: 1.15rem; font-weight: 700; }
.sh-ord__back { color: var(--ink-2); }
.sh-ord__note { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--ink-2); }
.sh-ord__note .icon { margin-top: 0.1em; }
@media (min-width: 40em) { .sh-ord { padding: 1.5rem 1.75rem; } .sh-ord__pic { width: 4rem; height: 4rem; } }

/* ───────── one order: a single column of panels ───────── */
.sh-order__col { display: flex; flex-direction: column; gap: 1.25rem; max-width: 48rem; }
.sh-order__col > :empty { display: none; }
.sh-order .page-head__sub:empty { display: none; }
.sh-order__box { display: flex; flex-direction: column; gap: 0.9rem; }
/* the order number and a tracking number: one tap picks the whole of it, to copy or to read out on a call */
.sh-order__num { font-weight: 700; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.sh-order__now { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.85rem; font-size: 1.1rem; }
.sh-order__more { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--ink-2); }
.sh-order__more .icon { margin-top: 0.1em; }
.sh-order__result:focus-visible { outline-offset: 4px; }

/* the steps down one line: a tick for each one done, a filled dot and the word "Now" where the order is, a ring for what
   is still to come */
.sh-order__steps { display: flex; flex-direction: column; }
.sh-order__step { position: relative; display: flex; align-items: center; gap: 0.85rem; min-height: 3rem; color: var(--ink-2); }
.sh-order__step + .sh-order__step::before { content: ""; position: absolute; left: calc(0.875rem - 1px); top: calc(-50% + 0.875rem); height: calc(100% - 1.75rem); border-left: 2px solid var(--line); }
.sh-order__step.is-done + .sh-order__step::before { border-color: var(--ok); }
.sh-order__dot { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border: 2px solid var(--edge); border-radius: 50%; background: var(--bg); }
.sh-order__dot .icon { width: 1.05rem; height: 1.05rem; stroke-width: 2.8; }
.sh-order__step.is-done { color: var(--ink); }
.sh-order__step.is-done .sh-order__dot { border-color: var(--ok); background: var(--ok); color: var(--bg); }
.sh-order__step.is-now { color: var(--ink); font-weight: 700; }
.sh-order__step.is-now:not(.is-done) .sh-order__dot { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 0.3rem var(--bg); }
.sh-order__here { padding: 0.1rem 0.6rem; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--ink); font-size: 0.9rem; font-weight: 600; }

/* tracking: each package on its own line, its button beside it (under it on a phone) */
.sh-order__pkgs > * + * { border-top: 1px solid var(--line); }
.sh-order__pkg { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding: 0.75rem 0; }
.sh-order__pkg-what { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.sh-order__rep { display: flex; flex-direction: column; gap: 0.25rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.sh-order__rep h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; }
@media (max-width: 39.99em) { .sh-order__pkg .btn { width: 100%; } }

/* the items: picture, words, points (the points sit under the words on a phone) */
.sh-order__lines > * + * { border-top: 1px solid var(--line); }
.sh-order__line { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); align-items: start; gap: 0.35rem 0.9rem; padding: 0.9rem 0; }
.sh-order__line:first-child { padding-top: 0; }
.sh-order__pic { grid-row: 1 / span 2; width: 3.5rem; height: 3.5rem; border-radius: var(--r-sm); overflow: hidden; }
.sh-order__what { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; min-width: 0; line-height: 1.35; }
.sh-order__name { font-weight: 600; }
/* an item the store still has is a link to its page: tall enough to tap */
a.sh-order__name { display: inline-flex; align-items: center; min-height: var(--tap); }
.sh-order__gone { color: var(--bad); font-weight: 600; }
.sh-order__pts { grid-column: 2; }
.sh-order__sum { padding-top: 0.9rem; border-top: 1px solid var(--line); }
@media (min-width: 40em) {
  .sh-order__line { grid-template-columns: 4.5rem minmax(0, 1fr) auto; column-gap: 1.1rem; }
  .sh-order__pic { grid-row: auto; width: 4.5rem; height: 4.5rem; }
  .sh-order__pts { grid-column: 3; text-align: right; white-space: nowrap; }
}

/* where it goes, the cancel that is under way, and help at the foot */
.sh-order__addr { display: flex; flex-direction: column; line-height: 1.45; }
.sh-order__busy { display: flex; align-items: center; gap: 0.75rem; min-height: var(--tap); font-weight: 600; }
.sh-order__help { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.25rem; border-radius: var(--r-lg); background: var(--soft); }
@media (min-width: 40em) { .sh-order__help { padding: 1.5rem 1.75rem; } }
