/* Order Page: plain and calm. Black, white, greys and one quiet accent. */
:root {
  --ink: #1a1a1a; --muted: #5c5c5c; --line: #dcdcdc; --soft: #f5f5f4; --bg: #fff;
  --accent: #1f3d2b; --err: #9b1c1c;
  --r: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 18px; }
main { max-width: 640px; margin: 0 auto; padding: 24px 18px 40px; }
main.wide { max-width: 1100px; }
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 4px; }
h2 { font-size: 1.25rem; margin: 28px 0 8px; }
h3 { font-size: 1.05rem; margin: 0; }
a { color: var(--accent); }
.sub { color: var(--muted); margin: 0 0 16px; font-size: 1.1rem; }
.small, small { font-size: .875rem; color: var(--muted); }
.big { font-size: 1.2rem; }

.deadline { background: var(--soft); border-radius: var(--r); padding: 12px 14px; }
.msg { background: var(--soft); border-radius: var(--r); padding: 12px 14px; margin: 16px 0; }
.msg.ok { border-left: 4px solid var(--accent); }
.msg.err { border-left: 4px solid var(--err); color: var(--err); }
.msg ul { margin: 0; padding-left: 20px; }

fieldset { border: 0; padding: 0; margin: 28px 0 0; }
legend { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; padding: 0; }
label { display: block; margin: 0 0 14px; font-weight: 600; }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; color: var(--ink);
  border: 1px solid #b9b9b9; border-radius: 8px; padding: 12px; background: #fff; min-height: 48px;
}
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
label.check input { width: 24px; min-height: 24px; height: 24px; margin: 0; }

.item { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; }
.item-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.price { color: var(--muted); font-size: .95rem; }
.desc { margin: 6px 0 0; color: var(--muted); }
.tag { display: inline-block; margin: 8px 0 0; font-size: .875rem; font-weight: 600; }
.item.sold { opacity: .6; }
.opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.opt label { margin: 0; font-weight: 400; }
.opt input { width: 84px; margin: 0; text-align: center; flex: none; }
.stepper { display: flex; align-items: center; flex: none; }
.stepper input { width: 52px; border-radius: 0; border-left: 0; border-right: 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper button { width: 48px; height: 48px; border: 1px solid #b9b9b9; background: var(--soft); font-size: 1.4rem; line-height: 1; color: var(--ink); }
.stepper button:first-child { border-radius: 8px 0 0 8px; }
.stepper button:last-child { border-radius: 0 8px 8px 0; }

.demo-switch { display: flex; align-items: center; gap: 6px; padding: 8px 18px; background: var(--soft); border-bottom: 1px solid var(--line); font-size: .95rem; flex-wrap: wrap; }
.demo-switch span { color: var(--muted); margin-right: 4px; }
.demo-switch a { padding: 8px 14px; border-radius: 99px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: #fff; min-height: 40px; display: inline-flex; align-items: center; }
.demo-switch a[aria-current] { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
.card-big { border: 2px solid var(--ink); border-radius: 14px; padding: 18px; }
.change-box { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 6px; }
.card-big h1 { margin: 2px 0 10px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.btns .go { margin: 0; }
label.slot { display: flex; align-items: center; gap: 12px; font-weight: 400; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 8px; cursor: pointer; }
label.slot input { width: 22px; height: 22px; min-height: 22px; margin: 0; flex: none; accent-color: var(--accent); }
label.slot:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
label.slot.full { color: var(--muted); cursor: default; }

.terms { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
button { font: inherit; cursor: pointer; }
.go { display: block; width: 100%; margin-top: 18px; background: var(--accent); color: #fff; border: 0; border-radius: var(--r); padding: 16px; font-size: 1.1rem; font-weight: 700; min-height: 56px; }
.go:hover { filter: brightness(1.15); }
.go.busy { opacity: .6; cursor: progress; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
a.go { text-align: center; text-decoration: none; }
.go.alt { background: #fff; color: var(--accent); border: 2px solid var(--accent); }
.lead { font-size: 1.15rem; }
.ticks { padding-left: 0; list-style: none; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: "\2713"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.demo-note { border: 1px dashed var(--accent); border-radius: var(--r); padding: 12px 14px; margin: 0 0 18px; font-size: .95rem; }
.pay { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.pay legend { padding: 0 6px; }
.pay input { background: var(--soft); color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact { margin-top: 28px; color: var(--muted); font-size: .95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 20px; border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }

.basket { position: sticky; bottom: 0; margin: 20px -18px -40px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.06); padding: 12px 18px; }
.basket[hidden] { display: none; }
.basket button { background: var(--accent); color: #fff; border: 0; border-radius: var(--r); padding: 12px 18px; font-weight: 700; min-height: 48px; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; font-size: inherit; }

/* the shop's own pages */
.bar { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.bar nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.bar a { text-decoration: none; color: var(--ink); font-size: .95rem; }
.bar a:hover { text-decoration: underline; }
.admin .go { width: auto; padding: 12px 24px; min-height: 48px; }
.status { margin: 8px 0 12px; }
.pill { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; border: 1px solid currentColor; margin-right: 6px; }
.pill.on { color: var(--accent); }
.pill.off { color: var(--muted); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
td.num, th.num { text-align: right; }
tr.cancelled td { color: var(--muted); text-decoration: line-through; }
tr.cancelled td:last-child { text-decoration: none; }
.tick { border: 1px solid #b9b9b9; background: #fff; border-radius: 99px; padding: 6px 12px; font-size: .85rem; white-space: nowrap; }
.tick.on { background: var(--accent); border-color: var(--accent); color: #fff; }
table.edit input, table.edit select, table.edit textarea { margin: 0 0 4px; min-height: 40px; padding: 8px; font-size: .95rem; }
.menu li { margin-bottom: 10px; }
.copy { display: flex; gap: 8px; }
.copy input { margin: 0; }
.copy button { flex: none; border: 1px solid var(--accent); background: #fff; color: var(--accent); border-radius: 8px; padding: 0 16px; font-weight: 700; }
.share textarea { font-size: .95rem; }

/* posters */
.poster { text-align: center; border: 2px solid var(--ink); border-radius: 16px; padding: 32px 24px; max-width: 700px; margin: 20px auto; page-break-after: always; }
.poster h1 { font-size: 2.4rem; }
.poster .lead { font-size: 2rem; font-weight: 800; line-height: 1.15; margin: 16px 0 6px; }
.poster .qr svg { width: 340px; height: 340px; max-width: 100%; }
.poster .url { font-size: 1.1rem; font-weight: 700; word-break: break-all; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin: 20px auto; }
.card { border: 1.5px dashed #999; border-radius: 12px; padding: 18px; text-align: center; }
.card .lead { font-size: 1.3rem; font-weight: 800; line-height: 1.2; margin: 6px 0; }
.card .qr svg { width: 190px; height: 190px; }
.card .url { font-size: .8rem; word-break: break-all; }
.slip { border: 1px solid var(--ink); border-radius: 8px; padding: 12px 16px; margin: 0 0 12px; break-inside: avoid; }
.slip h2 { margin: 0 0 4px; }

@media (max-width: 700px) {
  body { font-size: 17px; }
  table.list thead { display: none; }
  table.list tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.list td { display: block; border: 0; padding: 3px 0; }
  table.list form { display: inline-block; margin-right: 6px; }
  table.edit, table.edit tbody, table.edit tr, table.edit td { display: block; }
  table.edit thead { display: none; }
  table.edit tr { border: 1px solid var(--line); border-radius: var(--r); padding: 8px; margin-bottom: 10px; }
  .cards { grid-template-columns: 1fr; }
}
@media print {
  body { font-size: 12pt; }
  .no-print, .bar, .foot { display: none !important; }
  main, main.wide { max-width: none; padding: 0; }
  .poster { border: 0; margin: 0; }
  a { color: inherit; text-decoration: none; }
}
