/* CoverTree Rewards — the cart page and the checkout (agent.html only; the kit is css/shop.css, the picture ground and the
   − / + are css/shop-store.css's). One column on a phone; from 56em the cart's summary sits beside its items. Every word
   at 0.9rem or more, everything pressed at least var(--tap) tall, colours from the kit's tokens only (light and dark). */

/* ───────── the cart: the items, then (or beside them) the summary ───────── */
.sh-cart .page-head { margin-bottom: 1rem; }
.sh-cart__notes:empty { display: none; }
.sh-cart__notes { margin-bottom: 1.25rem; }
.sh-buy-cols { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 56em) {
  .sh-buy-cols { grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem); gap: 2.5rem; }
  .sh-sum { position: sticky; top: calc(var(--sv-h) + 1rem); }
}
/* the summary keeps clear of the header only where the header itself stays at the top (one row, normal text: shop.css) */
@media (min-width: 75em) {
  html:not([data-text]) .sh-sum { top: calc(var(--head-h) + var(--sv-h) + 1rem); }
}
/* Large or Larger text in a short window: the summary would be taller than the room (its last buttons below the edge
   while the items scroll), so it scrolls with the page */
@media (min-width: 56em) and (max-height: 50em) {
  html[data-text] .sh-sum { position: static; }
}
/* the list follows its own width, not the screen's: a container query in rem moves with the agent's text size (a media
   query in em does not), so the − / + never runs past a phone's edge or over the points at Large or Larger text */
.sh-buy-cols__main { container-type: inline-size; min-width: 0; }
.sh-lines { display: flex; flex-direction: column; }
.sh-line { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 0.75rem 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.sh-line:first-child { padding-top: 0; }
.sh-line__pic { display: block; width: 5rem; height: 5rem; border-radius: var(--r); overflow: hidden; }
.sh-line__body { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
/* a link on its own: as tall as anything pressed (var(--tap)), only as wide as its words */
.sh-line__name { display: inline-flex; align-items: center; align-self: flex-start; min-height: var(--tap); font-size: 1.1rem; font-weight: 600; color: var(--ink); text-decoration-color: var(--edge); }
.sh-line__name:hover { color: var(--brand-ink-2); }
.sh-line__what { color: var(--ink-2); }
.sh-line__out { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; color: var(--ink-2); }
/* the line's points under the words; how many and Remove on a row of their own, the line's full width */
.sh-line__pts { grid-column: 2; display: flex; flex-direction: column; gap: 0.1rem; }
.sh-line__pts b { font-size: 1.1rem; font-weight: 700; }
.sh-line__each { color: var(--ink-2); font-size: 0.95rem; }
.sh-line__ctl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
/* room for three columns: the points at the right, how many and Remove under the words */
@container (min-width: 34rem) {
  .sh-line { grid-template-columns: 6.5rem minmax(0, 1fr) auto; }
  .sh-line__pic { grid-row: 1 / span 2; width: 6.5rem; height: 6.5rem; }
  .sh-line__pts { grid-column: 3; grid-row: 1; align-items: flex-end; text-align: right; white-space: nowrap; }
  .sh-line__ctl { grid-column: 2 / -1; grid-row: 2; }
}
.sh-sum { display: flex; flex-direction: column; gap: 1rem; }
.sh-sum .panel__title { margin: 0; }
.sh-sum__kv { font-size: 1.05rem; }
.sh-sum__short { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.9rem 1rem; border: 1px solid var(--warn-edge); border-radius: var(--r); background: var(--warn-soft); }
.sh-sum__short b { font-size: 1.1rem; }

/* ───────── checkout: one readable column ───────── */
.sh-co { max-width: 46rem; }
.sh-co > h1 { margin-bottom: 1.25rem; }
.sh-co__kicker { margin-bottom: 0.75rem; color: var(--ink-2); font-weight: 600; }
.sh-co__col { display: flex; flex-direction: column; gap: 1.25rem; }
.sh-co__col > :empty { display: none; }
.sh-co__us { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 1rem; }
.sh-co__us .icon { margin-top: 0.1em; color: var(--info); }
.sh-co__acts { margin-top: 0.25rem; }
/* a button waiting for a call stays focusable (aria-disabled, not disabled): the quiet ones keep no ground, as when off */
.sh-co .btn--ghost[aria-disabled="true"], .sh-co .btn--quiet[aria-disabled="true"] { background: transparent; }

/* the saved addresses: one big round choice each, its Edit and Delete beside it (not inside the choice) */
.sh-addrs { display: flex; flex-direction: column; gap: 0.75rem; }
.sh-addrs > legend { margin-bottom: 0.75rem; }
.sh-addr { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem 0.9rem; padding: 1rem 1.1rem; border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.sh-addr.is-on { border-color: var(--brand); background: var(--brand-soft); }
/* the teal of words is under 4.5:1 on the chosen card's teal wash (light): its Edit and Delete take the deeper teal, and
   under the pointer a thicker line on the page's own ground */
.sh-addr.is-on .btn--quiet { color: var(--brand-ink-2); }
.sh-addr.is-on .btn--quiet:hover { background: var(--bg); text-decoration-thickness: 0.16em; }
.sh-addr__radio { width: 1.6rem; height: 1.6rem; margin: 0.15rem 0 0; accent-color: var(--brand); cursor: pointer; }
.sh-addr__body { display: flex; flex-direction: column; gap: 0.15rem; min-height: var(--tap); cursor: pointer; line-height: 1.4; }
.sh-addr__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.3rem; }
.sh-addr__acts { grid-column: 2; display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; margin-left: -1.1rem; }
.sh-addr--edit { display: block; border-color: var(--brand); }
.sh-addr-skel { height: 6rem; border-radius: var(--r-lg); }

/* the address form: labels above, every field from the start */
.sh-addr-form { --gap: 1.1rem; }
/* City, State and ZIP side by side only while each has 11rem (in rem: it follows the text size), else one under another */
.sh-addr-form__row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); align-items: start; }
/* side by side, the boxes line up under their labels: the ZIP code's hint goes under its box */
.sh-addr-form__row .hint { order: 1; }
.sh-addr-form__labels { display: flex; flex-direction: column; gap: 0.25rem; }
.sh-addr-form__choices { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }

/* the review */
.sh-co__box { display: flex; flex-direction: column; gap: 0.9rem; }
.sh-co__box > h2 { margin: 0; }
.sh-co__items { display: flex; flex-direction: column; gap: 0.9rem; }
.sh-co__item { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 0.4rem 0.9rem; align-items: center; }
.sh-co__pic { display: block; width: 4rem; height: 4rem; border-radius: var(--r-sm); overflow: hidden; }
.sh-co__what { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.sh-co__pts { grid-column: 2; font-weight: 600; }
@media (min-width: 40em) { .sh-co__item { grid-template-columns: 4rem minmax(0, 1fr) auto; } .sh-co__pts { grid-column: 3; text-align: right; white-space: nowrap; } }
.sh-co__addr { display: flex; flex-direction: column; line-height: 1.45; }
.sh-co__gift { overflow-wrap: anywhere; }
.sh-co__when, .sh-co__next, .sh-co__rule { display: flex; align-items: flex-start; gap: 0.6rem; }
.sh-co__when .icon, .sh-co__next .icon, .sh-co__rule .icon { margin-top: 0.1em; color: var(--brand-ink); }
.sh-co__next { font-size: 1.05rem; }
.sh-co__kv { font-size: 1.05rem; }
.sh-co__sum { text-align: right; font-size: 1.05rem; }

/* the code: one big field, the numbers spaced so each can be read back */
.sh-code { max-width: 22rem; }
.sh-code__input { max-width: 14rem; min-height: 3.6rem; font-size: 1.7rem; font-weight: 700; letter-spacing: 0.35em; text-align: center; font-variant-numeric: tabular-nums; }
/* while the code is out the field keeps the keyboard but cannot be changed (readonly): it looks off */
.sh-code__input[aria-disabled="true"] { background: var(--sunk); color: var(--ink-2); cursor: not-allowed; }
.sh-code__busy { display: flex; align-items: center; gap: 0.5rem; color: var(--ink-2); }
.sh-code__go { align-self: flex-start; }
.sh-code__again { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.sh-code__again p:empty { display: none; }
.sh-co__stop .notice { max-width: 34rem; }

/* the order placed, and the pages that end or pause a checkout */
.sh-co--end { max-width: 40rem; }
.sh-co__end p { max-width: 30rem; }
.sh-done { display: flex; flex-direction: column; gap: 1rem; padding: 2rem 1.25rem; border-radius: var(--r-lg); background: var(--soft); }
@media (min-width: 40em) { .sh-done { padding: 2.5rem 2.25rem; } }
.sh-done__mark { display: inline-flex; align-items: center; justify-content: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.sh-done__mark .icon { width: 2rem; height: 2rem; stroke-width: 2.6; }
.sh-done__num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; font-size: 1.1rem; }
.sh-done__num b { font-size: 1.5rem; font-weight: 700; -webkit-user-select: all; user-select: all; }
