/* Hallmark · shape: app screen · genre: modern-minimal · theme: Dose · signature: live order receipt · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R5 V4 · weakest: S, show the item and verified QRIS amount on the same receipt */
:root {
  color-scheme: light;
  --paper: oklch(97.6% .011 88); --sheet: oklch(99% .007 100); --mint: oklch(94% .035 160);
  --ink: oklch(21% .025 170); --muted: oklch(43% .025 165); --rule: oklch(85% .026 150);
  --accent: oklch(44% .11 160); --deep: oklch(36% .09 160); --on-accent: oklch(99% .006 160);
  --focus: oklch(42% .13 240); --clear: transparent;
  --body: system-ui, sans-serif; --mono: ui-monospace, monospace;
  --xs: .5rem; --sm: .75rem; --md: 1rem; --lg: 1.5rem; --xl: 2.5rem; --radius: 1rem; --control: .56rem;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body { background: var(--sheet); color: var(--ink); font: 400 1rem/1.5 var(--body); }
[hidden] { display: none !important; }
::selection { background: var(--mint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
p, h1, h2, h3, ul, ol, dl, dd, figure, pre { margin: 0; }
h1, h2, h3 { min-width: 0; overflow-wrap: break-word; line-height: 1.2; }
h2 { font-size: 1.25rem; letter-spacing: -.02em; }
h3 { font-size: 1.05rem; }
h1, h2 { text-wrap: balance; }
a { color: var(--deep); }
button, select { font: inherit; color: inherit; }
.sr-only { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: clip; white-space: nowrap; }
.shell { width: min(100% - 2rem, 64rem); margin-inline: auto; }
.mast, .row, .section-head, .actions { display: flex; align-items: center; gap: var(--xs); }
.mast, .row, .section-head { justify-content: space-between; flex-wrap: wrap; }
.mast, .foot { padding-block: var(--sm); border-block-end: 1px solid var(--rule); }
.wordmark { display: flex; align-items: center; gap: var(--xs); color: var(--ink); font-weight: 750; text-decoration: none; }
.wordmark img { object-fit: contain; }
.intro { padding-block: var(--lg); color: var(--muted); }
.layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: var(--lg); }
.section-head { margin-block-end: var(--sm); }
.small { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
select { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--control); min-height: 44px; max-width: min(16rem, 62vw); }
.catalog { list-style: none; padding: 0; display: grid; gap: var(--xs); }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sm); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--sm); }
.item.is-selected { background: var(--mint); border-color: var(--accent); }
.item h3 { margin-block-end: .25rem; }
.item .prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--xs); margin-block-start: var(--xs); }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.button { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; min-width: 44px; padding: var(--xs) var(--sm); border: 1px solid var(--accent); border-radius: var(--control); background: var(--clear); color: var(--deep); font-size: .875rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.primary { background: var(--accent); color: var(--on-accent); }
.button:disabled { opacity: .6; cursor: not-allowed; }
.button:not(:disabled):active { transform: translateY(1px); }
@media (hover: hover) {
  .button:not(:disabled):hover { background: var(--mint); }
  .primary:not(:disabled):hover { background: var(--deep); }
}
.full { width: 100%; }
.receipt { min-width: 0; padding: var(--md); border-radius: var(--radius); background: var(--paper); }
.steps { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: var(--xs); margin-block-end: var(--md); }
.steps li { padding-block-end: .25rem; border-bottom: 2px solid var(--rule); }
.steps [aria-current="step"] { color: var(--deep); border-color: var(--accent); font-weight: 750; }
.selected { font-weight: 750; overflow-wrap: anywhere; }
#review-fields, .stage { display: grid; gap: var(--sm); }
#review-fields { margin-block-start: var(--xs); }
#qty { min-width: 1.2rem; text-align: center; font-weight: 700; }
#challenge { max-width: 100%; }
.amounts { display: grid; gap: .25rem; padding-block-start: var(--sm); border-top: 1px dashed var(--rule); }
.total { color: var(--ink); font-size: 1.08rem; font-weight: 750; }
.notice { padding: var(--xs); background: var(--mint); border-radius: var(--control); margin-block-end: var(--sm); }
.qr { display: grid; justify-items: center; gap: var(--xs); text-align: center; }
.qr img { display: block; width: min(100%, 15.5rem); height: auto; aspect-ratio: 1; }
.code { padding: var(--xs); border: 1px solid var(--rule); border-radius: var(--control); background: var(--sheet); font: .9rem/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.reference { user-select: all; }
.history { margin-block: var(--xl) var(--lg); }
.history h2 { margin-block-end: var(--sm); }
.foot { margin-block-start: var(--lg); border-block: 1px solid var(--rule) 0; }
@media (max-width: 42rem) { .layout { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .button:not(:disabled):active { transform: none; }
}
