/* Intent and rules: docs/features/bookings-from-texts.md ("Approve first", "The cleaners choice") and docs/features/home.md ("Book it") (read before changing). */
/*
 * Book it (book-it.js; 2026-11-22, design B; the owner: "Yes, build B"): the Approve and Held rows pinned first on
 * Home, with a red left edge (book.md 3.1), and the Cleaners 1 · 2 · 3 control (seg.js). Styled through the
 * modifier .approval.book-row only: .approval stays as it is for any other row that uses it (team.css). Linked after
 * team.css, whose .segmented, .btn and .approval it builds on.
 */

.book-it { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
/* The heading: small grey words, no count. Book it is in no band of Needs you (2026-12-01, home.md) and keeps this look. */
.book-it > h2 { margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
/* Never wider than the page: with very large phone text the rows wrap instead (2026-10-22, at 200% text, 320 px). */
.book-it > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.book-it .approval { min-width: 0; }

.approval.book-row { border: 1px solid var(--line); border-left: 4px solid var(--danger); background: var(--you-wash); align-items: center; }
.approval.book-row[data-done] { border-color: var(--line); background: var(--paper); }
/* B's row, one design at every width (book.md 3.2): the reading takes the whole first line(s), and the Start, the
   Cleaners control, Approve, or the price, Book and Open go under it. */
.approval.book-row > .approval-text { flex: 1 0 100%; }
/* The service under the words ("Deep Clean"); no price and no time of the yes in this build. */
.book-what { flex: 1 0 100%; font-size: 13px; }

/* Cleaners 1 · 2 · 3: the word, then one 44 px button per choice; the picked one gold (.segmented). The label and
   the buttons stay on one line when they fit, and wrap whole when they do not. */
.crew-seg { flex-wrap: wrap; align-items: center; padding: 3px; gap: 3px; max-width: 100%; }
.crew-seg .seg-label { padding: 0 6px 0 6px; font-size: 13px; color: var(--muted); }
.crew-seg button { min-width: 44px; min-height: 44px; padding: 0 10px; font-size: 15px; }
.crew-seg button[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Approve, Approve anyway: the whole width, on its own line, 48 px, gold. */
.approval.book-row > button.btn { flex: 1 1 100%; min-height: 48px; background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 600; }
.approval.book-row > button.btn[disabled] { background: var(--paper); border-color: var(--gold-edge); color: var(--ink); }
