/* Horse simulator — shared styles for /shop/simulator/ and /shop/account/lessons/
   (docs/SIMULATOR_BOOKING.md §11). Uses the shop tokens from tacd.css. */
:root {
  --sim-busy: #d9d4cb;
  --sim-busy-ink: #8a8276;
  --sim-line: rgba(26,22,16,.08);
  --sim-line2: rgba(26,22,16,.04);
  --sim-mine: #1A1610;
  --sim-hold: #b8860b;
}

/* ── sheet (modal on desktop, bottom sheet on phones) ── */
.sim-veil { position: fixed; inset: 0; background: rgba(26,22,16,.45); z-index: 400; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .2s; }
.sim-veil.show { opacity: 1; }
.sim-sheet { background: var(--white); width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 6px; padding: 1.6rem 1.5rem 1.4rem; box-shadow: var(--shadow-lg); position: relative; transform: translateY(8px); transition: transform .2s; }
.sim-veil.show .sim-sheet { transform: none; }
.sim-sheet h3 { font-size: 1.5rem; margin-bottom: .2rem; padding-right: 2rem; }
.sim-sheet .sub { font-size: .8rem; color: rgba(0,0,0,.5); margin-bottom: 1.1rem; }
.sim-x { position: absolute; top: .8rem; right: .8rem; width: 32px; height: 32px; border-radius: 50%; font-size: 1.1rem; color: rgba(0,0,0,.45); }
.sim-x:hover { background: var(--sand); color: var(--dark); }
@media (max-width: 560px) {
  .sim-veil { align-items: flex-end; padding: 0; }
  .sim-sheet { max-width: none; border-radius: 12px 12px 0 0; max-height: 88vh; padding: 1.4rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom)); transform: translateY(40px); }
}
.sim-lbl { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold2); font-weight: 500; margin: 1rem 0 .45rem; }
.sim-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.sim-chip { border: 1px solid rgba(0,0,0,.14); background: var(--white); color: var(--dark); padding: .5rem .85rem; border-radius: 999px; font-size: .8rem; display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; }
.sim-chip small { color: rgba(0,0,0,.45); font-size: .7rem; }
.sim-chip:hover { border-color: var(--gold); }
.sim-chip.on { border-color: var(--dark); background: var(--dark); color: var(--white); }
.sim-chip.on small { color: rgba(255,255,255,.6); }
.sim-chip.add { border-style: dashed; color: var(--mid); }
.sim-note { font-size: .78rem; line-height: 1.55; color: var(--mid); background: var(--light); border-radius: 4px; padding: .7rem .85rem; margin-top: .9rem; }
.sim-note.warn { background: #fbf3e2; color: #6b4d12; }
.sim-note.ok { background: #eef5ef; color: #245b35; }
.sim-opts { display: flex; flex-direction: column; gap: .45rem; }
.sim-opt { display: flex; align-items: center; gap: .7rem; border: 1px solid rgba(0,0,0,.12); border-radius: 4px; padding: .65rem .8rem; cursor: pointer; font-size: .82rem; }
.sim-opt input { accent-color: var(--gold2); }
.sim-opt.on { border-color: var(--gold); background: rgba(200,169,110,.06); }
.sim-opt .nm { flex: 1; color: var(--dark); }
.sim-opt .nm small { display: block; color: rgba(0,0,0,.45); font-size: .7rem; }
.sim-opt .pr { font-weight: 500; color: var(--dark); white-space: nowrap; }
.sim-actions { display: flex; gap: .6rem; margin-top: 1.2rem; }
.sim-actions .btn { flex: 1; min-height: 46px; }
.sim-waiver { max-height: 38vh; overflow-y: auto; white-space: pre-wrap; font-size: .78rem; line-height: 1.6; color: var(--mid); background: var(--light); border-radius: 4px; padding: .8rem .9rem; border: .5px solid rgba(0,0,0,.08); }
.sim-sheet.wide { max-width: 640px; }
.sw-limits { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .8rem; }
.sw-limits div { border: .5px solid rgba(200,169,110,.6); background: #FFFCF5; border-radius: 4px; padding: .5rem .4rem; text-align: center; }
.sw-limits b { display: block; font-weight: 500; color: var(--dark); font-size: .9rem; }
.sw-limits span { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(0,0,0,.45); }
.sim-waiver.sw-terms { white-space: normal; margin: 0; padding-left: 2rem; max-height: 30vh; }
.sw-terms li { margin-bottom: .45rem; }
.sw-terms li b { color: var(--dark); font-weight: 500; }
.sw-terms li.plain { list-style: none; }
.sw-h { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dark); font-weight: 500; margin: 1.3rem 0 .6rem; padding-bottom: .35rem; border-bottom: .5px solid rgba(0,0,0,.1); }
.sw-h small { text-transform: none; letter-spacing: 0; font-weight: 400; color: rgba(0,0,0,.45); margin-left: .3rem; font-size: .72rem; }
.sim-check.sw-tight { margin: .5rem 0 0; }
.sw-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.sw-box { display: flex; gap: .5rem; align-items: flex-start; font-size: .78rem; color: var(--dark); border: .5px solid rgba(0,0,0,.12); border-radius: 4px; padding: .55rem .6rem; cursor: pointer; line-height: 1.35; }
.sw-box input { margin-top: 2px; accent-color: var(--gold2); width: 15px; height: 15px; flex: none; }
.sw-box:has(input:checked) { border-color: var(--gold2); background: #FFFCF5; }
.sw-box.none { grid-column: 1 / -1; }
.sw-fine { font-size: .7rem; color: rgba(0,0,0,.45); margin-top: .2rem; }
@media (max-width: 480px) { .sw-boxes { grid-template-columns: 1fr; } .sw-limits b { font-size: .8rem; } }
.sim-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .8rem; color: var(--dark); margin: .9rem 0 .2rem; cursor: pointer; }
.sim-check input { margin-top: 3px; accent-color: var(--gold2); width: 16px; height: 16px; flex: none; }
.sim-step { display: flex; align-items: center; gap: .8rem; }
.sim-step button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); font-size: 1.1rem; color: var(--dark); }
.sim-step b { min-width: 2ch; text-align: center; font-weight: 500; color: var(--dark); }
.sim-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 380px) { .sim-row2 { grid-template-columns: 1fr; } }
.sim-ok-mark { width: 52px; height: 52px; border-radius: 50%; background: #eef5ef; color: #245b35; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: .8rem; }
