/* The booking page and the old admin (app.html, the compiled bundle that is never edited) in the phone's mode:
   dark = mocha (the Mocha Mist palette), light = latte as the bundle draws it. html[data-mode] is set by the inline
   script at the top of app.html (the visitor's palette or theme choice, else the phone's mode, followed live).
   The bundle writes its colours as inline variables on <html> and <body> (cr() in the bundle), so these win with
   !important; they change colours only, never layout. js/booking-ux.js's own chips and bar are covered here too. */
html[data-mode="dark"] {
  --bg: #2a2320 !important; --text: #f3e9e2 !important;
  --accent-50: #2f2724 !important; --accent-100: #3a2f2a !important; --accent-200: #4b3d36 !important; --accent-300: #6e5a4e !important;
  --accent-400: #a3816f !important; --accent-500: #c9a28c !important; --accent-600: #e8b9a0 !important; --accent-700: #f0c8b2 !important;
  --accent-800: #f3e9e2 !important; --accent-900: #fbefe6 !important;
  --mocha-card: #352c28; --mocha-line: rgba(255, 244, 236, .12);
  color-scheme: dark; background: #2a2320;
}
html[data-mode="dark"] body { background: var(--bg) !important; color: var(--text) !important; }

/* the bundle's components */
html[data-mode="dark"] .card-accent, html[data-mode="dark"] .ig-btn, html[data-mode="dark"] .toggle-btn { background: var(--mocha-card); border-color: var(--mocha-line); box-shadow: 0 10px 30px -16px rgba(0, 0, 0, .5); }
html[data-mode="dark"] .btn-accent { background: #e8b9a0; color: #2a2320; }
html[data-mode="dark"] .btn-accent:hover:not(:disabled) { background: #f0c8b2; }
html[data-mode="dark"] .btn-outline-accent { border-color: var(--mocha-line); color: var(--text); }
html[data-mode="dark"] .toggle-btn.active { background: #e8b9a0; color: #2a2320; border-color: #e8b9a0; }
html[data-mode="dark"] .site-band { background: #302723; border-color: var(--mocha-line); }
html[data-mode="dark"] :is(input, textarea, select) { background: var(--mocha-card); color: var(--text); border-color: var(--mocha-line); }
html[data-mode="dark"] :is(input, textarea)::placeholder { color: rgba(243, 233, 226, .42); }
html[data-mode="dark"] label { color: rgba(243, 233, 226, .82); }
html[data-mode="dark"] .text-white { color: #fff; }
/* calendar days, slots and services: the bundle's buttons over a dark card */
html[data-mode="dark"] [data-testid^="day-"]:not(.btn-accent), html[data-mode="dark"] [data-testid^="slot-"], html[data-mode="dark"] [data-testid^="service-"] {
  background-color: var(--mocha-card); color: var(--text); border-color: var(--mocha-line); }
html[data-mode="dark"] [data-testid^="day-"].btn-accent { background: #e8b9a0; color: #2a2320; }
/* the season's note in the calendar (js/booking-season.js) */
html[data-mode="dark"] [data-testid="calendar"] + *, html[data-mode="dark"] .bs-note { color: var(--text); }

/* js/booking-ux.js */
html[data-mode="dark"] .bx-city { background: rgba(255, 244, 236, .07); }
html[data-mode="dark"] .bx-city button[aria-pressed="true"] { background: #e8b9a0; color: #2a2320; }
html[data-mode="dark"] .bx-quick button, html[data-mode="dark"] .bx-tags button { background: var(--mocha-card); border-color: var(--mocha-line); color: var(--text); }
html[data-mode="dark"] .bx-quick button.on { background: #e8b9a0; color: #2a2320; }
html[data-mode="dark"] .bx-bar { background: rgba(42, 35, 32, .88); border-top-color: var(--mocha-line); }
html[data-mode="dark"] .bx-go { background: #e8b9a0; color: #2a2320; }
html[data-mode="dark"] .bx-go.send { background: #2fb36a; color: #fff; }
html[data-mode="dark"] .bx-steps i { background: rgba(255, 244, 236, .14); }
html[data-mode="dark"] .bx-steps i.on { background: #e8b9a0; }
/* the bundle's inline status colours, made for a light card: lighter on mocha (React writes them as rgb()) */
html[data-mode="dark"] [style*="185, 28, 28"] { color: #ff9a90 !important; }
html[data-mode="dark"] [style*="21, 128, 61"] { color: #7ddc9f !important; }
html[data-mode="dark"] [style*="177, 74, 74"] { color: #ffa196 !important; }
html[data-mode="dark"] [style*="47, 107, 58"] { color: #86d69a !important; }
html[data-mode="dark"] svg circle[fill="#dcfce7"] { fill: rgba(125, 220, 159, .16); }
html[data-mode="dark"] svg circle[fill="#fee2e2"] { fill: rgba(255, 154, 144, .16); }
/* booking-ux.js: the prices under the dates, the best day and the suggestion card */
html[data-mode="dark"] .bx-dp.promo i:first-child { color: #f6b27a; }
html[data-mode="dark"] .bx-pick { background: linear-gradient(135deg, rgba(224, 164, 88, .18), rgba(224, 164, 88, .06)); border-color: rgba(224, 164, 88, .4); }
html[data-mode="dark"] .bx-free i { border-color: rgba(120, 214, 160, .85); background: rgba(120, 214, 160, .07); box-shadow: 0 0 0 3px rgba(120, 214, 160, .14), 0 0 18px 2px rgba(120, 214, 160, .35); }
