/* The chooser (14 Oct 2026, Rachel): the line at the top of the front door ("My website is for a [salon] called [name]", since 20 Oct 2026) and the list it opens, which
   the builder's What for step shows in place. See js/chooser.js. The pill and the name box stay white on dark looks, like the other
   boxes, so their words stay dark. */

/* ---------- the line ---------- */
/* one row; only on the narrowest phones (under 340 wide), with a long word, "is called" and the box go to a second row together */
.ch-line { display: flex; flex-wrap: wrap; align-items: center; column-gap: 7px; row-gap: 6px; margin: 4px 0 14px; font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.ch-w { flex: none; white-space: nowrap; }
.ch-pick, .ch-name {
  height: 38px; border-radius: var(--rbtn, 12px); border: 1.5px solid color-mix(in srgb, var(--ink) 30%, transparent);
  background: #fff; font: 600 15px/1 var(--sans); color: #13294B; box-shadow: 0 1px 2px rgba(19, 41, 75, .06);
}
.ch-pick { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px 0 14px; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
/* until she picks, the pill reads as a button to press, not a faded hint */
.ch-pick.is-empty { border-color: color-mix(in srgb, var(--ink) 62%, transparent); }
.ch-pick:hover { border-color: var(--ink); }
.ch-pick:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.ch-pick[aria-expanded="true"] { border-color: #13294B; box-shadow: 0 0 0 4px color-mix(in srgb, var(--cta) 18%, transparent); }
/* a phone, a long word (app.js adds is-long): two lines inside the pill, in smaller letters, so the name box keeps its room */
.ch-pick.is-long { gap: 5px; padding: 0 9px 0 11px; }
.ch-pick.is-long .ch-v { white-space: normal; max-width: 7.4em; font-size: 13px; line-height: 1.08; text-align: left; text-wrap: balance; }
.ch-chev { flex: none; width: 12px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.ch-pick[aria-expanded="true"] .ch-chev { transform: rotate(180deg); }
.ch-called { flex: 1 1 0; display: flex; align-items: center; gap: inherit; column-gap: 7px; min-width: 120px; }
.ch-name { flex: 1 1 auto; min-width: 0; max-width: 240px; width: 100%; padding: 0 14px; }
.ch-name::placeholder { color: #7A6A72; font-weight: 500; }
.ch-name:focus { outline: none; border-color: #13294B; box-shadow: 0 0 0 4px color-mix(in srgb, var(--cta) 22%, transparent); }
/* the line in her result: under the price, where the name box was */
.intro-result .ch-line, .sheet .ch-line { margin: 2px 0 16px; }
.sheet .ch-line { justify-content: center; }

@media (min-width: 1024px) and (max-width: 1280px) {
  .ch-line, .ch-called { font-size: 14.5px; column-gap: 6px; }
  .ch-pick, .ch-name { font-size: 14.5px; height: 36px; }
}
@media (max-width: 599px) {
  .ch-line { font-size: 14.5px; column-gap: 6px; margin: 4px 0 6px; }
  .ch-called { column-gap: 6px; min-width: 116px; }
  .ch-pick, .ch-name { height: 40px; font-size: 15px; }
  .ch-pick { padding: 0 10px 0 12px; gap: 6px; }
  .ch-name { max-width: none; padding: 0 12px; flex-basis: 0; flex-grow: 1; }
}
/* small phones: a little tighter, so the longest word still fits whole beside a usable name box */
@media (max-width: 380px) {
  .ch-line { column-gap: 5px; font-size: 14px; }
  .ch-called { column-gap: 5px; min-width: 108px; }
  .ch-pick, .ch-name { font-size: 14px; }
  .ch-pick { padding: 0 8px 0 10px; gap: 5px; }
  .ch-name { padding: 0 10px; }
}

/* phones 330 to 360 wide: there Rachel's second sentence was already hidden, so the line is a new row (42px with its margins). The line
   is a little tighter, and the example above the pictures gives up 18px, all the room its tightest look has to spare (phone-cutoff-check,
   14 Oct 2026), so the first row of pictures moves down 24px, not 50. Narrower phones keep their example as it is: it has no room to spare. */
@media (max-width: 360px) {
  .ch-line { margin: 2px 0 4px; }
  .ch-pick, .ch-name { height: 36px; }
}
@media (min-width: 330px) and (max-width: 360px) {
  :root { --pv: clamp(282px, calc(44 * var(--vh) - 18px), 382px); }
}
@media (min-width: 330px) and (max-width: 360px) and (max-height: 699px) {
  :root { --pv: clamp(182px, calc(100 * var(--vh) - var(--top) - 6px - 104px - var(--rowh) - 10px - 18px), 282px); }
}

/* ---------- the list ---------- */
.ch-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(35, 31, 39, .16); }
@media (min-width: 600px) { .ch-scrim { background: transparent; } }
.ch-pop {
  position: fixed; z-index: 80; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-card); background: var(--card); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-big);
}
.ch-pop .ch-box { flex: 1 1 auto; min-height: 0; }
.ch-box { display: flex; flex-direction: column; min-height: 0; }
.ch-head { display: none; }
.ch-pop.is-panel .ch-head, .ch-pop.is-ask .ch-head { display: flex; align-items: center; justify-content: space-between; flex: none; padding: 4px 4px 0 18px; height: 50px; }
.ch-title { margin: 0; font: 700 17px/1.2 var(--sans); outline: none; }
.ch-x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.ch-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ch-x:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.ch-search { position: relative; flex: none; display: flex; align-items: center; gap: 10px; margin: 12px 12px 0; height: 46px; padding: 0 14px; border-radius: 12px; background: #fff; border: 1.5px solid color-mix(in srgb, #13294B 34%, transparent); }
.ch-search:focus-within { border-color: #13294B; box-shadow: 0 0 0 4px color-mix(in srgb, var(--cta) 16%, transparent); }
.ch-pop.is-panel .ch-search, .ch-pop.is-ask .ch-search { margin-top: 2px; }
.ch-mag { flex: none; width: 18px; height: 18px; fill: none; stroke: #625B68; stroke-width: 1.8; stroke-linecap: round; }
.ch-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 500 16px/1 var(--sans); color: #13294B; padding: 0; }
.ch-search input::placeholder { color: #7A6A72; }
.ch-search input::-webkit-search-cancel-button { display: none; }
.ch-tabs { flex: none; display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 12px 2px; }
.ch-tab { flex: none; height: 30px; padding: 0 11px; border-radius: 10px; border: 1.5px solid var(--line); background: transparent; font: 600 13px/1 var(--sans); color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.ch-tab:hover { border-color: var(--ink-2); color: var(--ink); }
.ch-tab:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.ch-tab.is-on { background: var(--ink); border-color: var(--ink); color: var(--card); }
.ch-box.is-typed .ch-tabs { display: none; }
.ch-count { flex: none; margin: 10px 16px 0; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.ch-count:empty { display: none; }
.ch-list { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 8px 6px; scrollbar-width: thin; }
.ch-gname { position: sticky; top: 0; z-index: 1; padding: 10px 8px 4px; background: var(--card); font: 700 12px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ch-opts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4px; }
.ch-box.is-typed .ch-opts { grid-template-columns: 1fr; }
.ch-opt { display: flex; align-items: center; min-height: 38px; padding: 6px 10px; border-radius: 10px; font: 500 15px/1.2 var(--sans); color: var(--ink); cursor: pointer; user-select: none; }
.ch-opt b { font-weight: 800; }
/* while she searches, each result names its group, quietly, at the right (14 Oct 2026, review) */
.ch-og { flex: none; margin-left: auto; padding-left: 10px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.ch-opt.is-on .ch-og { color: inherit; opacity: .75; }
.ch-opt.is-on:has(.ch-og)::after { margin-left: 10px; }
.ch-opt.is-act { background: color-mix(in srgb, var(--ink) 9%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 40%, transparent); }
.ch-opt.is-on { background: var(--ink); color: var(--card); }
.ch-opt.is-on.is-act { box-shadow: inset 0 0 0 2px var(--card), 0 0 0 2px var(--ink); }
.ch-opt.is-on::after { content: ""; flex: none; width: 12px; height: 7px; margin-left: auto; border: solid currentColor; border-width: 0 0 2px 2px; transform: translateY(-2px) rotate(-45deg); }
.ch-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 12px; border-top: 1px solid var(--line); }
.ch-foot p { margin: 0; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.ch-skip { flex: none; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1.5px solid var(--ink); background: transparent; font: 700 14.5px/1 var(--sans); color: var(--ink); cursor: pointer; }
.ch-skip:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.ch-skip:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
:root.ch-open body { overflow: hidden; }
/* a phone: the panel takes the whole screen, and the bar with See my style steps down out of sight under it (14 Oct 2026, review A8) */
:root.ch-open .dock { transform: translateY(110%); }
@media (min-width: 600px) { :root.ch-open body { overflow: visible; } }

@media (max-width: 599px) {
  .ch-search { margin: 2px 10px 0; }
  /* a strip that scrolls sideways for a thumb, fading at the right edge so it is clear there is more */
  .ch-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 10px 10px 2px; gap: 6px; -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
  .ch-tabs::-webkit-scrollbar { display: none; }
  .ch-tab { height: 38px; padding: 0 14px; font-size: 14px; }
  .ch-list { padding: 2px 6px 6px; }
  .ch-opt { min-height: 44px; font-size: 14.5px; padding: 6px 9px; }
  .ch-foot { flex-wrap: wrap; padding: 8px 14px 10px; }
}
/* an iPad uses the computer layout but is tapped with a finger: thumb-sized targets */
@media (min-width: 600px) and (pointer: coarse) {
  .ch-tab { height: 38px; padding: 0 14px; font-size: 14px; }
  .ch-opt { min-height: 44px; }
  .ch-pick, .ch-name { height: 42px; }
}

/* ---------- the builder's What for step: the same list, in place ---------- */
.ch-inline { margin-top: 4px; }
.ch-now { margin: 0 0 8px; font-size: 14.5px; color: var(--ink-2); }
.ch-now b { color: var(--ink); }
.ch-inline-box { height: clamp(320px, calc(100 * var(--vh) - var(--top) - 210px), 620px); border-radius: var(--r-card); background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow); overflow: hidden; }
@media (max-width: 1023px) { .ch-inline-box { height: clamp(360px, 70vh, 620px); } }
