/* garlicoin.org: till, pay, accept, get, embed (badges and widgets), r receipts.
   Loaded after /assets/site.css by the pages that need it (their <head> links it). Split out of site.css on
   2026-10-21: keep a rule here only if just these pages use it; anything shared goes in site.css. */

/* badges */
.badge-step { margin-top: 26px; }
.badge-picks { display: grid; gap: 10px; }
.badge-pick {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; cursor: pointer;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
}
.badge-pick:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.badge-pick input { grid-row: span 2; accent-color: var(--gold-deep); margin: 0; }
.badge-swatch img { display: block; height: auto; max-width: 100%; }
.live-badges { display: grid; gap: 10px; margin-top: 14px; }
.live-badge { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.live-badge:first-child { border-top: 0; padding-top: 0; }
.live-badge code { font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .live-badge { grid-template-columns: 1fr auto; }
  .live-badge img { grid-column: 1 / -1; }
}
/* ---------- /get/ ---------- */
.get-h { margin: 22px 4px 10px; font-size: 1.15rem; }
.get-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.get-card { display: grid; gap: 6px; text-decoration: none; color: var(--ink); transition: transform .15s; margin: 0; }
.get-card:hover { transform: translateY(-2px); }
.get-card strong { font-size: 1.1rem; color: var(--gold-text); }
.get-card span { color: var(--muted); font-size: .92rem; }
.get-market-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.get-market-head .card-title { margin: 0; }
.get-market-head .btn { text-decoration: none; }
.get-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.get-stats div { background: var(--gold-soft); border-radius: 10px; padding: 8px 12px; }
.get-stats dt { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.get-stats dd { margin: 2px 0 0; font-weight: 800; color: var(--ink); }
.get-steps { display: grid; gap: 8px; padding-left: 1.2rem; }
.get-warn { border: 2px solid #e07b12; }
.get-warn .card-title { color: #b45a00; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .get-warn .card-title { color: #ffb15c; }
}
:root[data-theme="dark"] .get-warn .card-title { color: #ffb15c; }
/* ---------- /pay/ checkout and /merchant/ ---------- */
.checkout { max-width: 640px; margin: 0 auto; width: 100%; box-sizing: border-box; border: 2px solid var(--gold); }
.checkout.paid { background: linear-gradient(180deg, var(--gold-soft), var(--card) 70%); }
.checkout.expired { border-color: var(--line); }
.checkout-shop { margin: 2px 0 4px; font-size: clamp(1.5rem, 5vw, 2.1rem); overflow-wrap: anywhere; }
.checkout-memo { margin: 0 0 12px; color: var(--muted); overflow-wrap: anywhere; }
.checkout-grid { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; margin: 12px 0; }
.checkout-amount { margin: 2px 0 6px; font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; color: var(--ink); }
.checkout-amount .unit { font-size: 1rem; color: var(--muted); }
.checkout-amount .btn-copy { font-size: .8rem; vertical-align: middle; }
.checkout.paid .checkout-grid, .checkout.expired .checkout-grid { opacity: .55; }
.checkout-note { font-size: 1.05rem; }
.checkout .btn[hidden] { display: none; }
.merchant-link-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
@media (max-width: 600px) {
  .checkout-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .checkout-grid > div { width: 100%; }
}
.checkout.test { border-style: dashed; }
.checkout-in { font: inherit; font-size: 1.4rem; font-weight: 800; width: 9em; max-width: 100%; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }
.checkout-delivery { margin: 14px 0; padding: 14px 16px; border-radius: 14px; border: 2px solid #3c9a4a; background: rgba(60, 154, 74, .08); }
.checkout-delivery.wait { border-color: var(--line); background: var(--gold-soft); }
.checkout-goods { font-size: 1.05rem; font-weight: 700; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.checkout-goods a { color: var(--gold-text); }
.merchant-products { display: grid; gap: 10px; margin-top: 12px; }
.merchant-product { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; }
.merchant-product .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.merchant-product.off { opacity: .6; }
/* ---------- /embed/ ---------- */
.embed-preview { display: flex; justify-content: center; align-items: center; min-height: 160px; padding: 20px; border-radius: 12px; border: 2px dashed var(--line);
  background: repeating-conic-gradient(var(--line) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.embed-preview iframe { border: 0; border-radius: 12px; max-width: 100%; }
/* ---------- /till/ payment screen ---------- */
body.till-mode .topbar, body.till-mode .site-footer { display: none; }
body.till-mode .wrap { max-width: none; padding-top: 12px; padding-bottom: 12px; }
.till { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; min-height: calc(100vh - 24px); min-height: calc(100dvh - 24px); }
.till-pay, .till-feed { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; min-width: 0; }
.till-pay { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; }
.till-name { margin: 0; font-size: clamp(1.4rem, 4vw, 2.4rem); font-weight: 800; overflow-wrap: anywhere; }
.till-qr { width: min(100%, 360px, 55vh); border-radius: 14px; overflow: hidden; }
.till-qr svg { display: block; width: 100%; height: auto; }
.till-hint { margin: 0; font-weight: 700; font-size: 1.1rem; }
.till-addr { margin: 0; font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.till-feed { display: flex; flex-direction: column; gap: 14px; }
.till-status { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.till-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); flex: none; }
.till-dot.ok { background: var(--ok); animation: till-pulse 2s infinite; }
.till-dot.bad { background: var(--bad); }
@keyframes till-pulse { 50% { opacity: .35; } }
.till-latest { display: grid; gap: 4px; padding: 22px; border-radius: 16px; background: var(--gold-soft); border: 3px solid var(--gold); text-align: center; }
.till-big { font-size: clamp(2.4rem, 9vw, 5rem); font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.till-check { font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 800; color: var(--gold-text); }
.till-check.done { color: var(--ok); }
.till.flash .till-latest { animation: till-flash 1.2s ease-out; }
@keyframes till-flash { 0% { transform: scale(.9); background: var(--gold); } 100% { transform: none; } }
.till-total { margin: 0; font-weight: 700; }
.till-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; overflow: auto; }
.till-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.till-amt { font-weight: 800; overflow-wrap: anywhere; }
.till-tools { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.till-start { position: absolute; inset: 0; z-index: 5; border: 0; border-radius: 20px; font: inherit; font-size: 1.6rem; font-weight: 800; color: var(--ink);
  background: color-mix(in srgb, var(--bg, #fff) 82%, transparent); backdrop-filter: blur(4px); cursor: pointer; }
.till-start small { font-size: 1rem; font-weight: 600; color: var(--muted); }
@media (max-width: 760px) {
  .till { grid-template-columns: minmax(0, 1fr); min-height: 0; }
}
.till-ok.done { color: var(--ok); font-weight: 700; }
.receipt-check { width: 64px; height: 64px; margin: 0 auto 6px; display: grid; place-items: center; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2rem; font-weight: 900; }
.receipt-kicker { margin: 0; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.receipt-amount { margin: 4px 0; font-size: clamp(2.2rem, 9vw, 3.6rem); overflow-wrap: anywhere; }
.receipt-to { margin: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.receipt-when { color: var(--muted); }
.receipt-actions { justify-content: center; }
/* ---- /accept/ (Get paid in GRLC) ---- */
.accept-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.accept-card { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.accept-card .card-title { margin: 0; font-size: 1.15rem; }
.accept-card > .muted { margin: 0 0 4px; font-size: .92rem; }
.accept-tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.accept-tools li { padding-top: 10px; border-top: 1px dashed var(--line); font-size: .95rem; overflow-wrap: anywhere; }
.accept-tools a { display: block; font-weight: 800; color: var(--gold-text); }
.accept-step { margin-top: 22px; }
.accept-step .btn { text-decoration: none; }
/* /embed/ (Badges and widgets): the jump links and each part's one-line intro under its .get-h heading */
.embed-jump { margin-top: 10px; }
.embed-jump a { font-weight: 800; }
.embed-intro { margin: -4px 4px 14px; }
