/* =========================================================
   account.css: the My account page (direction A, Counter card), 29 Oct 2026.
   Loaded after testmodel.css, which supplies the Testing Mode banner, the page head, the glass tokens (--tm-glass-line)
   and the print-quality badge classes (.q-badge.is-great / is-ok / is-low). Nothing here changes a shared rule.
   One column on the bright radial blue ground (shop.css). Glass cards, white text, ONE red pill per order row.
   Colour only from the 3@1 tokens plus the three status fills below (each checked at 4.5:1 or better by work/r6a-checks.js).
   Motion is hover colour only, and only without prefers-reduced-motion.
   ========================================================= */
.ac {
  --ac-fill: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04)), rgba(0,25,70,.66);
  --ac-line: var(--tm-glass-line, rgba(255,255,255,.2));
  --ac-soft: #D6ECFA;                 /* secondary text on the glass */
  --ac-yellow: var(--yellow, #FFC510);
  max-width: 980px; margin: 0 auto; display: grid; gap: 1.7rem; color: #fff;
}
.ac-sec .pd-head { max-width: 980px; margin-left: auto; margin-right: auto; }

/* ---------- the glass ---------- */
.ac-card, .ac-row, .ac-tile {
  background: var(--ac-fill); border: 1px solid var(--ac-line); border-radius: 22px; color: #fff;
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 22px 44px -28px rgba(0,10,32,.85);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ac-card, .ac-row, .ac-tile { background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04)), #0A3F7F; }
}
.ac-h { margin: 0; font-family: var(--font-d); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #fff; font-size: 1.7rem; line-height: 1.05; }
.ac-h--sm { font-size: 1.4rem; }
.ac-block { min-width: 0; }
/* the section head is a glass bar, so the heading and the count are white on glass and never straight on the bright ground */
.ac-block__head { display: flex; align-items: center; justify-content: space-between; gap: .4rem 1rem; flex-wrap: wrap; margin: 0 0 .8rem; padding: .5rem 1rem; min-height: 52px; border-radius: 16px; background: var(--ac-fill); border: 1px solid var(--ac-line); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 14px 28px -22px rgba(0,10,32,.85); }
/* text that sits on the bright ground rather than on a card gets its own glass strip, so it passes 4.5:1 */
.ac-count { margin: 0; color: #fff; font-size: .9375rem; font-weight: 700; }
.ac-sample { display: flex; align-items: flex-start; gap: .5rem; margin: 0 0 .9rem; padding: .6rem .9rem; border-radius: 16px; background: var(--ac-fill); border: 1px solid var(--ac-line); color: #fff; font-size: .9375rem; font-weight: 600; line-height: 1.4; }
.ac-sample .ico { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--ac-yellow); }
.ac-quiet, .ac-fine { margin: 0; color: var(--ac-soft); font-size: .875rem; line-height: 1.4; }
.ac .ico { width: 20px; height: 20px; flex: none; }

/* ---------- links ---------- */
.ac-link {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .2rem .5rem; margin: 0 -.5rem; border: 0; background: none; border-radius: 12px;
  color: var(--ac-yellow); font: 800 .9375rem/1.2 var(--font-b); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.ac-link:hover { color: #fff; }
.ac-link--quiet { color: var(--ac-soft); font-weight: 700; }
.ac a:focus-visible, .ac button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #003179; }

/* ---------- identity card ---------- */
.ac-id {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "av main facts" "fine fine fine"; align-items: center; gap: .6rem 1.2rem; padding: 1.2rem 1.4rem;
}
.ac-id__av { grid-area: av; display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--cyan); color: var(--navy); font-family: var(--font-d); font-weight: 700; font-size: 1.9rem; line-height: 1; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.ac-id__main { grid-area: main; min-width: 0; }
.ac-id__name { margin: 0; font-family: var(--font-d); font-weight: 700; color: #fff; font-size: clamp(2.1rem, 4.4vw, 3rem); line-height: 1; overflow-wrap: anywhere; }
.ac-id__line { display: flex; align-items: center; gap: .45rem; margin: .4rem 0 0; color: var(--ac-soft); font-weight: 700; font-size: 1rem; }
.ac-id__facts { grid-area: facts; list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; justify-items: end; }
.ac-id__facts li { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.ac-id__fine { grid-area: fine; margin: 0; padding-top: .6rem; border-top: 1px solid rgba(255,255,255,.18); color: var(--ac-soft); font-size: .875rem; }
.ac-chip {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; padding: .25rem .9rem .25rem .7rem; border-radius: 999px;
  background: rgba(0,49,121,.9); border: 1px solid var(--ac-line); color: #fff; font-weight: 800; font-size: .9375rem; line-height: 1.2;
}

/* ---------- orders: a vertical timeline ---------- */
.ac-tl { --g: 30px; list-style: none; margin: 0; padding: 0 0 0 var(--g); position: relative; display: grid; gap: .9rem; }
.ac-tl::before { content: ""; position: absolute; left: calc(var(--g) / 2 - 1px); top: 22px; bottom: 22px; width: 2px; border-radius: 2px; background: rgba(255,255,255,.5); }
.ac-tl > li { position: relative; min-width: 0; }
.ac-tl > li::before {
  content: ""; position: absolute; left: calc(var(--g) / -2 - 7px); top: 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--dot, #fff); box-shadow: 0 0 0 3px #0A55A3; z-index: 1;
}
.ac-tl > li.is-ready { --dot: #3DD68C; }
.ac-tl > li.is-printing { --dot: #FF9523; }
.ac-tl > li.is-collected { --dot: #AEBBCB; }
.ac-row {
  display: grid; grid-template-columns: 10.5rem minmax(0, 1fr) auto auto auto; grid-template-areas: "st id ths total pill"; align-items: center; gap: .8rem 1.2rem; padding: .95rem 1.1rem;
}
.ac-st {
  grid-area: st; justify-self: start; display: inline-flex; align-items: center; gap: .4rem; min-height: 34px; padding: .2rem .8rem .2rem .6rem; border-radius: 999px;
  font-weight: 800; font-size: .9375rem; line-height: 1.15; white-space: nowrap;
}
.ac-st .ico { width: 18px; height: 18px; }
.ac-st.is-ready { background: #3DD68C; color: #0a1530; }
.ac-st.is-printing { background: #FF9523; color: #0a1530; }
.ac-st.is-collected { background: #55616F; color: #fff; }
.ac-id2 { grid-area: id; min-width: 0; display: grid; gap: .1rem; }
.ac-id2__no { font-family: var(--font-d); font-weight: 700; font-size: 1.6rem; line-height: 1.05; letter-spacing: .02em; color: #fff; overflow-wrap: anywhere; }
.ac-id2__date { color: var(--ac-soft); font-size: .9375rem; font-weight: 600; }
.ac-id2__lines { color: var(--ac-soft); font-size: .875rem; line-height: 1.35; overflow-wrap: anywhere; }
.ac-id2__pay { color: var(--ac-soft); font-size: .875rem; font-weight: 600; line-height: 1.35; }   /* r9: the chosen payment method */
.ac-ths { grid-area: ths; display: flex; align-items: flex-start; gap: .6rem; min-width: 236px; }   /* three thumbs wide, so the total and the pill line up on every row */
.ac-th { display: grid; justify-items: center; gap: .3rem; width: 72px; }
.ac-th__img, .ac-th__ph { display: block; width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); }
.ac-th__ph { display: grid; place-items: center; color: #fff; }
.ac-th__ph .ico { width: 28px; height: 28px; }
.ac-more { align-self: center; color: var(--ac-soft); font-weight: 800; font-size: .9375rem; white-space: nowrap; }
.ac .q-badge.ac-q { position: static; font-size: .75rem; padding: .05rem .55rem; line-height: 1.4; }
.ac-total { grid-area: total; font-family: var(--font-d); font-weight: 700; font-size: 1.6rem; line-height: 1; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; color: #fff; min-width: 5.6rem; }
/* the shared .btn--primary ends in #ff4d59 (3.25:1 with white text); on this page the pill stays in the Red family at 4.5:1 or better */
.ac .ac-reorder { background: linear-gradient(120deg, #C21F2A, #D5232F); }
.ac-reorder { grid-area: pill; justify-self: end; min-height: 44px; white-space: nowrap; }
.ac-reorder .ico { width: 18px; height: 18px; }

/* ---------- saved files: a 4-up grid of glass tiles ---------- */
.ac-files { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.ac-tile { position: relative; display: grid; align-content: start; gap: .3rem; padding: .6rem .6rem .35rem; min-width: 0; }
.ac-tile__th { position: relative; display: block; }
.ac-tile__img, .ac-tile__ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); }
.ac-tile__ph { display: grid; place-items: center; color: #fff; }
.ac-tile__th .q-badge.ac-q { position: absolute; left: 6px; bottom: 6px; }
.ac-tile__name { margin: .15rem 0 0; font-weight: 800; font-size: .875rem; line-height: 1.25; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-tile__sub { margin: 0; color: var(--ac-soft); font-size: .8125rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-tile .ac-link { margin: 0 -.35rem; padding: .2rem .35rem; font-size: .875rem; }

/* ---------- saved details and notices ---------- */
.ac-twin { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.ac-details, .ac-notices { padding: 1.1rem 1.3rem 1rem; min-width: 0; }
.ac-card__head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: 0 0 .7rem; min-height: 44px; }
.ac-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.4rem; margin: 0 0 .6rem; }
.ac-dl > div { min-width: 0; }
.ac-dl > .is-wide { grid-column: 1 / -1; }
.ac-dl dt { color: var(--ac-soft); font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ac-dl dd { margin: .1rem 0 0; color: #fff; font-weight: 700; font-size: 1rem; line-height: 1.35; overflow-wrap: anywhere; }
.ac-nlist { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .55rem; }
.ac-nlist li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: .15rem .6rem; align-items: start; padding-bottom: .55rem; border-bottom: 1px solid rgba(255,255,255,.18); }
.ac-nlist li:last-child { border-bottom: 0; padding-bottom: 0; }
.ac-nlist .ico { margin-top: 2px; color: var(--ac-soft); }
.ac-nlist b { color: #fff; font-weight: 700; font-size: .9375rem; line-height: 1.35; }
.ac-nlist time { grid-column: 2; color: var(--ac-soft); font-size: .8125rem; font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .ac-tile, .ac-link { transition: background-color .15s ease, color .15s ease; }
  .ac-tile:hover { background-color: rgba(255,255,255,.06); }
}

/* ---------- phone ---------- */
@media (max-width: 860px) {
  .ac { gap: 1.4rem; }
  .ac-id { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "av main" "facts facts" "fine fine"; padding: 1rem 1.05rem; }
  .ac-id__facts { justify-items: start; grid-auto-flow: column; justify-content: start; gap: .5rem 1rem; flex-wrap: wrap; }
  .ac-tl { --g: 22px; }
  .ac-tl > li::before { top: 22px; }
  .ac-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "st total" "id id" "ths ths" "pill pill"; gap: .65rem .8rem; padding: .85rem .9rem; }
  .ac-ths { min-width: 0; }
  .ac-total { font-size: 1.5rem; min-width: 0; }
  .ac-reorder { justify-self: stretch; width: 100%; }
  .ac-twin { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ac-files { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
  .ac-tile { padding: .45rem .45rem .25rem; border-radius: 18px; }
  .ac-tile__img, .ac-tile__ph { border-radius: 11px; }
  .ac-tile__th .q-badge.ac-q { left: 4px; bottom: 4px; padding: .02rem .4rem; font-size: .6875rem; }
  .ac-details, .ac-notices { padding: 1rem 1rem .9rem; }
  .ac-dl { gap: .7rem 1rem; }
  .ac-h { font-size: 1.55rem; }
}
