/* Layout: phone-first booking flow; on wide screens the steps sit left and a sticky booking summary sits right.
   Single light theme on purpose: it matches the Ramas shop (white, black, logo red). */
:root {
  --ink: #111111;
  --paper: #ffffff;
  --red: #d42f11;
  --red-bright: #ff0000;
  --slate: #7f8c8d;
  --mist: #f5f3f2;
  --line: #e4dfdd;
  --gold: #b8913a;
  --ok: #1d7a46;
  --font-display: "Saira", "Arial Narrow", Arial, sans-serif;
  --font-body: "Arimo", Arial, Helvetica, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.proto { display: none; } .proto-unused { background: var(--ink); color: #fff; font-size: 13px; text-align: center; padding: 6px 16px; letter-spacing: .02em; }
.proto b { color: #ffb3a6; }
.topbar { background: var(--slate); color: #fff; font-size: 13px; padding: 6px 16px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
header.brand { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 16px 10px; border-bottom: 3px solid var(--red); }
header.brand img { height: 64px; width: auto; }
header.brand p { margin: 0; font-family: var(--font-display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }

.steps { display: flex; gap: 4px; max-width: 1120px; margin: 0 auto; padding: 14px 16px 0; list-style: none; overflow-x: auto; }
.steps li { flex: 1 1 0; min-width: 92px; font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--slate); border-top: 4px solid var(--line); padding-top: 6px; white-space: nowrap; }
.steps li.done { color: var(--ink); border-color: var(--ink); }
.steps li.now { color: var(--red); border-color: var(--red); }
.steps li span { display: inline-block; width: 1.5em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 900px) { .wrap { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; line-height: 1.15; margin: 0; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
.lead { color: #555; margin: 4px 0 0; max-width: 62ch; }
.panel { display: grid; gap: 18px; }
.back { justify-self: start; background: none; border: 0; padding: 4px 0; color: var(--ink); cursor: pointer; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.back:hover { color: var(--red); }

.search { position: relative; }
.search input { width: 100%; padding: 14px 16px 14px 44px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-weight: 500; font-size: 14px; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip small { color: inherit; opacity: .65; margin-left: 4px; font-variant-numeric: tabular-nums; }

.cat-title { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.cat-title h2::after { content: ""; display: block; width: 36px; height: 3px; background: var(--red); margin-top: 4px; }
.cat-title span { color: var(--slate); font-size: 14px; }
.list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; text-align: left; width: 100%; background: var(--paper); border: 0; border-bottom: 1px solid var(--line); padding: 14px 4px; cursor: pointer; }
.row:hover { background: var(--mist); }
.row .nm { font-weight: 700; }
.row .meta { color: #666; font-size: 14px; grid-column: 1; }
.row .price { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-family: var(--font-display); font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; }
.row .price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--slate); }
.empty { padding: 20px; background: var(--mist); border-radius: 8px; }

.choice-group { display: grid; gap: 10px; }
.choice-group > p { margin: 0; font-weight: 700; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.opt { border: 2px solid var(--line); border-radius: 10px; background: var(--paper); padding: 12px; text-align: left; cursor: pointer; display: grid; gap: 2px; }
.opt:hover { border-color: var(--ink); }
.opt[aria-pressed="true"] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.opt[disabled] { opacity: .4; cursor: not-allowed; }
.opt .t { font-weight: 700; }
.opt .s { font-size: 13px; color: #666; font-variant-numeric: tabular-nums; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: var(--ink); margin-bottom: 4px; }
.opt[aria-pressed="true"] .avatar { background: var(--red); }
.extras { display: grid; gap: 8px; }
.extra { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.extra input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); }
.extra span small { display: block; color: #666; font-size: 13px; }

.days { display: grid; grid-auto-flow: column; grid-auto-columns: 74px; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.day { border: 2px solid var(--line); border-radius: 10px; background: var(--paper); padding: 8px 4px; cursor: pointer; text-align: center; display: grid; }
.day b { font-family: var(--font-display); font-size: 22px; line-height: 1.1; }
.day small { font-size: 12px; color: #666; }
.day[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.day[aria-pressed="true"] small { color: #ddd; }
.day[disabled] { opacity: .35; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.slot { border: 1.5px solid var(--ink); background: var(--paper); border-radius: 8px; padding: 10px 0; cursor: pointer; font-weight: 700; font-variant-numeric: tabular-nums; }
.slot:hover { background: var(--mist); }
.slot[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.slot-part { font-size: 13px; color: var(--slate); text-transform: uppercase; letter-spacing: .08em; margin: 6px 0 -2px; }
.note { font-size: 13px; color: #666; }

form.details { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
form.details .full { grid-column: 1 / -1; }
@media (max-width: 520px) { form.details { grid-template-columns: 1fr; } }
label.f { display: grid; gap: 4px; font-weight: 700; font-size: 14px; }
label.f input, label.f textarea { border: 1.5px solid #bbb; border-radius: 8px; padding: 11px 12px; font-weight: 400; background: var(--paper); }
label.f input:focus, label.f textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px #f3c9c0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--red); margin-top: 1px; }
.err { color: var(--red); font-size: 14px; font-weight: 700; }

.policy { border-left: 4px solid var(--red); background: var(--mist); padding: 14px 16px; border-radius: 0 10px 10px 0; display: grid; gap: 8px; }
.policy h3 { font-size: 15px; }
.policy ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }

.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 15px 22px; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .03em; cursor: pointer; background: var(--ink); color: #fff; width: 100%; }
.btn:hover { background: #333; }
.btn.red { background: var(--red); }
.btn.red:hover { background: #b0240a; }
.btn[disabled] { background: #bbb; cursor: not-allowed; }

aside.summary { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; position: sticky; top: 12px; }
aside.summary .head { background: var(--ink); color: #fff; padding: 12px 16px; font-family: var(--font-display); font-weight: 600; letter-spacing: .04em; display: flex; justify-content: space-between; }
aside.summary .body { padding: 16px; display: grid; gap: 12px; }
.sum-line { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 14px; }
.sum-line svg { margin-top: 2px; }
.sum-line .muted { color: var(--slate); }
.money { border-top: 1px dashed var(--line); padding-top: 12px; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.money div { display: flex; justify-content: space-between; font-size: 14px; }
.money .pay { font-size: 17px; font-weight: 700; color: var(--red); }
.split { display: flex; height: 10px; border-radius: 99px; overflow: hidden; margin: 2px 0 4px; }
.split i { flex: 1; background: var(--red); }
.split i + i { background: var(--line); }

.confirm { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 18px 0; }
.tick { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; }
.ref { font-family: var(--font-display); font-size: 15px; letter-spacing: .12em; background: var(--mist); padding: 6px 14px; border-radius: 999px; }
.confirm .card { text-align: left; width: 100%; max-width: 460px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 8px; }
.confirm .card div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.confirm .card div span:last-child { font-weight: 700; text-align: right; }
.gold-rule { width: 60px; height: 2px; background: var(--gold); }

.link { background: none; border: 0; padding: 0; color: var(--red); font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: underline; }
.tag { display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 1px 8px; border-radius: 99px; }
.sum-line.adding { background: var(--mist); margin: 0 -8px; padding: 8px; border-radius: 8px; }
.btn.ghost { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); }
.btn.ghost:hover { background: var(--mist); }
.timeline { display: grid; gap: 0; border-left: 3px solid var(--red); margin-left: 52px; }
.tl-item { position: relative; padding: 4px 0 16px 18px; }
.tl-time { position: absolute; left: -58px; top: 4px; width: 46px; text-align: right; font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.tl-dot { position: absolute; left: -8px; top: 9px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 3px solid var(--red); }
.tl-body { font-size: 15px; }
.muted { color: var(--slate); }
.after { display: grid; gap: 8px; }
.after-slot { text-align: left; padding: 12px 14px; border-color: var(--red); }
.after-slot span { font-weight: 400; font-size: 14px; margin-left: 6px; }
.after-slot[aria-pressed="true"] span { color: #fff; }
footer { border-top: 1px solid var(--line); margin-top: 28px; padding: 18px 16px 28px; text-align: center; color: #666; font-size: 13px; display: grid; gap: 4px; }
footer a { color: var(--ink); }
.banner { max-width: 1120px; margin: 12px auto 0; padding: 12px 16px; border-radius: 10px; background: #fff4f1; border: 1px solid #f3c9c0; font-size: 14px; }
.banner.ok { background: #eef8f1; border-color: #bfe3cb; }
.loading { padding: 40px 0; text-align: center; color: var(--slate); }
.confirm-box { border: 2px solid var(--red); border-radius: 12px; padding: 16px; display: grid; gap: 12px; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.row-actions .btn { width: auto; }
.status { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.status.confirmed { background: #e3f4e9; color: var(--ok); }
.status.cancelled, .status.expired { background: #f3e3e0; color: var(--red); }
.status.pending_payment { background: #fdf3dc; color: #8a6200; }
.wrap.single { grid-template-columns: minmax(0, 720px); justify-content: center; }
