/* app/css/match-bag.css — the bag matched to the AppBag board (rebuild stream w3). Linked once by w2 (index.html); w3 fills it. */
/* The board (AppBag): "ONE BAG / Hair, care and your braider." with the item count in a gold-edged pill, one row card per
   line (photo or icon, two lines, a stepper or an action on the right), the summary and the main action under them. On the
   desk the same content sits in two columns in the board's cream language; on the phone the ground is the board's ink and
   the summary with "Order on WhatsApp" is held at the foot of the screen, above the tab bar. Headings in the board's sans. */
.bag[data-bag] { font-family: var(--ny-sans), system-ui, sans-serif; }
.bag .bag-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bag .bag-head .eyebrow { margin: 0 0 6px; color: var(--ny-gold-ink-text); letter-spacing: .2em; }
:root:root:root:root .bag .bag-head h1 { margin: 0; font: 800 clamp(30px, 4vw, 48px)/1.04 var(--ny-sans), system-ui, sans-serif; letter-spacing: -.03em; color: var(--ny-ink); }
:root:root:root:root .bag[data-bag] :is(h2, .t-3) { font-family: var(--ny-sans), system-ui, sans-serif; font-weight: 800; letter-spacing: -.01em; }
.bag .bag-count { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ny-gold); color: var(--ny-gold-ink-text); font: 800 13px/1 var(--ny-sans), system-ui, sans-serif; white-space: nowrap; }
.bag .bag-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; border: 1px solid rgba(var(--ny-gold2-rgb),.45); background: #FFFFFF; box-shadow: none; }
.bag .bag-row .bag-pic, .bag .bag-row > img { flex: 0 0 76px; width: 76px; height: 82px; object-fit: cover; object-position: 50% 12%; border-radius: 14px; }
.bag .bag-row .bag-ic { display: grid; place-items: center; background: var(--ny-paper); color: var(--ny-gold-deep); }
.bag .bag-row .grow { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bag .bag-row b { font: 800 16px/1.25 var(--ny-sans), system-ui, sans-serif; }
.bag .bag-row .small { color: rgba(var(--ny-ink-rgb),.66); }
.bag .bag-braider .bag-edit { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--ny-gold); color: var(--ny-gold-ink-text); font: 800 13px/1 var(--ny-sans), system-ui, sans-serif; text-decoration: none; white-space: nowrap; }
.bag .nyod-fold { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1px dashed rgba(var(--ny-ink-rgb),.25);
  background: transparent; color: var(--ny-ink); font: 700 14px/1.2 var(--ny-sans), system-ui, sans-serif; text-align: left; cursor: pointer; }
.bag .nyod-fold:focus-visible, .bag .bag-edit:focus-visible { outline: 2px solid var(--ny-gold-ink); outline-offset: 2px; }
.bag .nyod-foldmark { font-size: 20px; line-height: 1; }
.bag .bag-sum .card { border-radius: 22px; border: 1px solid rgba(var(--ny-gold2-rgb),.45); }
:root:root:root:root .bag .bag-sum .total-row b { font-family: var(--ny-sans), system-ui, sans-serif; font-weight: 800; letter-spacing: -.02em; }
.bag .bag-note { margin: 0; }

@media (max-width: 600px) {
  body:has(.bag[data-bag]) { background: var(--ny-ink); }
  main#main:has(> .bag[data-bag]) { background: var(--ny-ink); padding-bottom: 24px; }
  .bag[data-bag] { color: var(--ny-cream); }
  .bag .bag-head { align-items: flex-start; flex-wrap: nowrap; padding-top: 8px; }
  .bag .bag-head .eyebrow { color: var(--ny-gold); }
  :root:root:root:root .bag .bag-head h1 { font-size: 26px; color: var(--ny-cream); }
  .bag .bag-count { flex: none; min-height: 40px; color: var(--ny-gold); }
  .bag .bag-row { padding: 12px; gap: 12px; background: rgba(255,255,255,.04); border-color: rgba(var(--ny-gold2-rgb),.3); color: var(--ny-cream); }
  .bag .bag-row .bag-pic, .bag .bag-row > img { flex-basis: 64px; width: 64px; height: 76px; }
  .bag .bag-row .bag-ic { background: var(--ny-paper); }
  .bag .bag-row b { font-size: 15px; color: var(--ny-cream); }
  .bag .bag-row .small, .bag .bag-row .bag-band { color: rgba(var(--ny-cream-rgb),.7); }
  .bag .bag-band { display: none; }
  .bag .bag-row .icon-btn { color: var(--ny-cream); }
  .bag .bag-row .link-btn { color: var(--ny-gold); }
  :root:root:root .bag .bag-row .stepper { background: transparent; border-color: rgba(var(--ny-gold2-rgb),.5); }
  :root:root:root .bag .bag-row .stepper output { color: var(--ny-cream); }
  :root:root:root .bag .bag-row .step-btn { color: var(--ny-gold); background: transparent; border: 1px solid rgba(var(--ny-gold2-rgb),.6); border-radius: 6px; }
  .bag .bag-row [data-line-total] { color: var(--ny-cream); }
  .bag .bag-braider .bag-edit { color: var(--ny-gold); }
  /* the details on the dark ground: cream labels, the inputs stay light */
  .bag [data-order-details] :is(h2, label, legend, .field-hint, .small, p) { color: rgba(var(--ny-cream-rgb),.86); }
  .bag [data-order-details] h2 { color: var(--ny-cream); }
  .bag [data-order-details] .field-error { color: #FFB4A8; }
  .bag .nyod-fold { color: var(--ny-cream); border-color: rgba(var(--ny-cream-rgb),.3); }
  .bag section[aria-labelledby="b-del"] :is(h2, .tiny) { color: rgba(var(--ny-cream-rgb),.82); }
  .bag .bag-note { color: rgba(var(--ny-cream-rgb),.6); }
  .bag .bag-receipt { color: var(--ny-ink); }
  /* verify-w3 D2: every light part on the dark ground gets the dark ground's own colours (AA at 320 and 390) */
  :root:root:root .bag .delivery-chips .chip { background: transparent; border: 1px solid rgba(var(--ny-cream-rgb),.32); color: var(--ny-cream); box-shadow: none; }
  :root:root:root .bag .delivery-chips .chip small { color: rgba(var(--ny-cream-rgb),.8); }
  :root:root:root .bag .delivery-chips .chip[aria-checked="true"] { background: var(--ny-gold); border-color: var(--ny-gold); color: var(--ny-ink); }
  :root:root:root .bag .delivery-chips .chip[aria-checked="true"] small { color: var(--ny-ink); }
  :root:root:root .bag.nyp .kit-offer { background: rgba(255,255,255,.04); box-shadow: 0 0 0 1px rgba(var(--ny-gold2-rgb),.3); color: var(--ny-cream); }
  :root:root:root .bag.nyp .kit-offer :is(span, b) { color: var(--ny-cream); }
  :root:root:root .bag [data-order-details] .link-btn { color: var(--ny-gold); }
  :root:root:root .bag .bag-sum .ln span { color: rgba(var(--ny-cream-rgb),.78); }
  :root:root:root .bag .bag-sum [data-consent-box] span { color: rgba(var(--ny-cream-rgb),.86); }
  :root:root:root .bag .bag-sum [data-consent-box] a { color: var(--ny-gold); }
  :root:root:root .bag .bag-sum [data-consent-box] .field-error { color: #FFB4A8; }
  /* the summary and "Order on WhatsApp", held above the tab bar */
  .bag .two-col > .bag-sum.bag-sum--stick { position: sticky; bottom: calc(var(--tabbar, 64px) + env(safe-area-inset-bottom, 0px)); z-index: 20; margin: 0 -16px; }
  :root:root:root .bag .bag-sum .card { gap: 8px; padding: 14px 16px 12px; border-radius: 22px; border: 0; border-top: 1px solid rgba(var(--ny-gold2-rgb),.35); background: #15130F; color: var(--ny-cream); box-shadow: 0 -14px 30px -16px rgba(0,0,0,.7); }
  .bag .bag-sum .lines { display: flex; flex-direction: column; gap: 2px; }
  .bag .bag-sum .ln { font-size: 12px; color: rgba(var(--ny-cream-rgb),.72); }
  .bag .bag-sum .total-row { padding-top: 4px; }
  .bag .bag-sum .total-row .muted { color: rgba(var(--ny-cream-rgb),.72); }
  :root:root:root:root .bag .bag-sum .total-row b { font-size: 26px; color: var(--ny-cream); }
  .bag .bag-sum :is(.small, .tiny, .note) { color: rgba(var(--ny-cream-rgb),.75); }
  .bag .bag-sum .note.warn { color: var(--ny-ink); }
  .bag .bag-sum .btn-secondary { color: var(--ny-cream); border-color: rgba(var(--ny-cream-rgb),.4); background: transparent; }
}
@media (max-width: 600px) { :root:root:root .bag .bag-sum--stick .card { border-radius: 26px 26px 0 0; } }
