/* KitchenLibrary returns page: the storefront's own look (black header, Abel headings, Helvetica, pill buttons). */
:root {
  --ink: #000; --soft: rgba(0, 0, 0, 0.62); --mute: rgba(0, 0, 0, 0.45); --line: rgba(0, 0, 0, 0.1); --field: rgba(0, 0, 0, 0.3);
  --bg: #fff; --alt: #f4f4f2; --head: #111; --btn: #1c1c1c; --ok: #1f6b45; --ok-bg: #e8f3ec; --warn: #8a5a00; --warn-bg: #fbf3e2; --err: #a32a1c; --err-bg: #fbeae7;
  --radius-btn: 30px; --radius-field: 6px; --radius-card: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
h1, h2, h3 { font-family: Abel, Helvetica, Arial, sans-serif; font-weight: 400; letter-spacing: 0; margin: 0 0 8px; }
h1 { font-size: 34px; line-height: 1.1; }
h2 { font-size: 24px; line-height: 1.2; }
h3 { font-size: 19px; margin-top: 22px; }
a { color: inherit; }
p { margin: 0 0 12px; }
.top { background: var(--head); color: #fff; }
.top .in { max-width: 640px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.top img { height: 30px; width: auto; display: block; }
.top a.shop { font-size: 13px; color: #fff; text-decoration: none; opacity: 0.85; }
main { max-width: 640px; margin: 0 auto; padding: 28px 16px 64px; }
.steps { font-size: 13px; color: var(--mute); margin-bottom: 6px; letter-spacing: 0.02em; }
.bar { height: 3px; background: var(--line); border-radius: 2px; margin-bottom: 22px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); transition: width 0.25s; }
.lede { color: var(--soft); }
label.f { display: block; margin: 16px 0 6px; font-weight: 600; font-size: 15px; }
.hint { color: var(--mute); font-size: 13.5px; margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px; border: 1px solid var(--field); border-radius: var(--radius-field); background: #fff; color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, button:focus-visible, .choice:focus-within, .slot:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
input.code { font-size: 26px; letter-spacing: 0.35em; text-align: center; font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: var(--radius-btn);
  background: var(--btn); color: #fff; border: 1px solid var(--btn); font: inherit; font-size: 15px; cursor: pointer; text-decoration: none; }
.btn[disabled] { opacity: 0.45; cursor: default; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--field); }
.btn.wide { width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--soft); text-decoration: underline; cursor: pointer; }
.err { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--radius-field); background: var(--err-bg); color: var(--err); font-size: 14.5px; }
.note { margin: 14px 0; padding: 12px 14px; border-radius: var(--radius-card); background: var(--alt); color: var(--soft); font-size: 14.5px; }
.note.warn { background: var(--warn-bg); color: var(--warn); }
.note.ok { background: var(--ok-bg); color: var(--ok); }
.small { font-size: 13px; color: var(--mute); }
.items { list-style: none; margin: 14px 0 0; padding: 0; }
.item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.item:last-child { border-bottom: 1px solid var(--line); }
.item img, .item .ph { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--alt); flex-shrink: 0; }
.item .t { flex: 1; min-width: 0; }
.item .t b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.item .t span { font-size: 13px; color: var(--mute); }
.item.off { opacity: 0.45; }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--field); background: #fff; font-size: 18px; cursor: pointer; color: var(--ink); }
.qty output { width: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.choices { display: grid; gap: 10px; margin-top: 12px; }
.choice { position: relative; display: block; border: 1px solid var(--field); border-radius: var(--radius-card); padding: 14px 16px 14px 46px; cursor: pointer; background: #fff; }
.choice input { position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; accent-color: #000; margin: 0; }
.choice b { display: block; font-weight: 600; }
.choice span { display: block; font-size: 14px; color: var(--soft); }
.choice.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pill { min-height: 42px; padding: 0 16px; border-radius: var(--radius-btn); border: 1px solid var(--field); background: #fff; font: inherit; font-size: 15px; cursor: pointer; color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.slot { position: relative; border: 1.5px dashed var(--field); border-radius: var(--radius-card); min-height: 168px; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; overflow: hidden; background: var(--alt); }
.slot b { font-weight: 600; font-size: 14.5px; position: relative; z-index: 1; }
.slot span { font-size: 12.5px; color: var(--soft); position: relative; z-index: 1; }
.slot .req { position: absolute; top: 10px; left: 12px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); z-index: 1; }
.slot .plus { position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%); font-size: 28px; line-height: 1; color: var(--mute); }
.slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.slot.has { border-style: solid; border-color: var(--ink); background: #000; }
.slot.has img, .slot.has .vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.slot.has .vid { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; }
.slot.has b, .slot.has span { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); }
.slot.has::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); }
.slot.bad { border-color: var(--err); }
.tick { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--field); border-radius: var(--radius-card); cursor: pointer; }
.tick input { width: 20px; height: 20px; margin-top: 2px; accent-color: #000; flex-shrink: 0; }
.terms { margin: 16px 0 0; padding: 12px 14px 12px 32px; background: var(--alt); border-radius: var(--radius-card); font-size: 14.5px; color: var(--soft); }
.terms li { margin: 3px 0; }
.sum { margin-top: 14px; border-top: 1px solid var(--line); }
.sum div { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sum dt { width: 120px; flex-shrink: 0; color: var(--mute); }
.sum dd { margin: 0; flex: 1; min-width: 0; }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.thumbs img, .thumbs .v { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; background: var(--alt); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--mute); }
.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 14px; }
.progress i { display: block; height: 100%; width: 0; background: var(--ink); transition: width 0.2s; }
.timeline { list-style: none; padding: 0; margin: 18px 0; }
.timeline li { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; color: var(--mute); }
.timeline li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--field); flex-shrink: 0; transform: translateY(1px); }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--ink); border-color: var(--ink); }
.timeline li time { margin-left: auto; font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.ref { font-family: Abel, Helvetica, sans-serif; font-size: 20px; letter-spacing: 0.04em; }
.foot { max-width: 640px; margin: 0 auto; padding: 0 16px 40px; font-size: 13px; color: var(--mute); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot a { color: var(--mute); }
.check { margin-top: 18px; padding: 16px; border: 1px solid var(--ink); border-radius: var(--radius-card); }
.check .row { margin-top: 12px; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; animation: s 0.8s linear infinite; }
.btn.ghost .spin { border-color: var(--line); border-top-color: var(--ink); }
@keyframes s { to { transform: rotate(360deg); } }
@media (max-width: 480px) { h1 { font-size: 29px; } .sum dt { width: 96px; } .row .btn { flex: 1; } }
