/* Call desk track B (089): the booking side of the iPad call card (mounted inside track A's card, call-desk.css).
   shop.css tokens only; every class is cb- so nothing here restyles the card around it. */

.cb-page .pg-head { align-items: center; }
.cb-sim { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cb-pick { min-height: 34px; font-size: 14px; }
.cb-layout { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 18px; align-items: start; }
.cb-call, .cb-booking { background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); min-width: 0; }
.cb-call { display: flex; flex-direction: column; max-height: calc(100vh - 150px); overflow: hidden; }
.cb-booking { padding: 6px 0 14px; }

/* caller */
.cb-caller { display: flex; gap: 12px; align-items: center; padding: 16px 18px 12px; border-bottom: 1px solid var(--hair); }
.cb-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 19px; font-weight: 650; }
.cb-num { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.cb-state { margin-left: auto; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--fill); color: var(--ink-2); white-space: nowrap; }
.cb-state.is-ringing { background: var(--amber-soft); color: var(--amber); }
.cb-state.is-answered { background: var(--green-soft); color: var(--green); }
.cb-sub { font-size: 13px; color: var(--ink-2); margin: 2px 0 0; }
.cb-muted { color: var(--ink-3); }

/* what was heard */
.cb-heard { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px; border-bottom: 1px solid var(--hair); }
.cb-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 9px; border-radius: 999px; background: var(--fill); color: var(--ink); }
.cb-chip-k { font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .03em; }
.cb-chip.is-confirm { background: var(--amber-soft); }
.cb-notes { flex-basis: 100%; display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 10px; background: var(--fill); }
.cb-notes ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink); }
.cb-notes b { font-weight: 600; }
.cb-notes .cb-sub { margin: 0; }
.cb-confirm { font-size: 11px; font-weight: 700; color: var(--amber); }

/* transcript */
.cb-turns { list-style: none; margin: 0; padding: 10px 18px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.cb-turn { display: flex; flex-direction: column; gap: 2px; max-width: 92%; }
.cb-turn.is-staff { align-self: flex-end; text-align: right; }
.cb-who { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.cb-said { font-size: 14.5px; line-height: 1.35; padding: 7px 11px; border-radius: 14px; background: var(--fill); }
.cb-turn.is-staff .cb-said { background: var(--accent); color: var(--accent-ink); }

/* booking steps */
.cb-steps { list-style: none; margin: 0; padding: 0; }
.cb-step { display: flex; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--hair); transition: background .25s; }
.cb-step:last-child { border-bottom: 0; }
.cb-dot { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--hair-strong); color: transparent; margin-top: 1px; }
.cb-step.is-proposed .cb-dot { box-shadow: inset 0 0 0 2px var(--amber); color: var(--amber); }
.cb-step.is-applied .cb-dot { background: var(--green); box-shadow: none; color: #fff; }
.cb-step.is-declined .cb-dot { color: var(--ink-3); }
.cb-step.is-held .cb-dot { box-shadow: inset 0 0 0 2px var(--amber); color: var(--amber); }
.cb-step.is-failed .cb-dot { box-shadow: inset 0 0 0 2px var(--red); color: var(--red); }
.cb-step.is-declined .cb-step-text { text-decoration: line-through; color: var(--ink-3); }
.cb-step.is-waiting .cb-step-text { color: var(--ink-3); }
.cb-step-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cb-step-top { display: flex; align-items: baseline; gap: 8px; }
.cb-step-title { font-size: 12px; font-weight: 650; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.cb-by { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.cb-step.by-ai .cb-by { color: var(--accent); }
.cb-by.is-prop { color: var(--amber); }
.cb-step-text { font-size: 15.5px; font-weight: 550; line-height: 1.3; }
.cb-needs { display: flex; flex-wrap: wrap; gap: 5px; }
.cb-need { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--red-soft); color: var(--red); }
.cb-need.is-confirm { background: var(--amber-soft); color: var(--amber); }
.cb-acts { display: flex; gap: 8px; margin-top: 4px; }
.cb-apply { min-height: 32px; }
.cb-cands { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* estimate, stock */
.cb-est { margin-top: 4px; background: var(--surface-2); border-radius: var(--r-m); box-shadow: 0 0 0 .5px var(--hair); padding: 8px 12px; }
.cb-lines { list-style: none; margin: 0; padding: 0; }
.cb-lines li, .cb-tot { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 3px 0; }
.cb-tot { border-top: 1px solid var(--hair); margin-top: 4px; padding-top: 7px; font-size: 15px; }
.cb-stock { list-style: none; margin: 2px 0 0; padding: 0; }
.cb-stock li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 2px 0; }
.cb-stock-st { color: var(--green); white-space: nowrap; }
.cb-stock .is-short .cb-stock-st { color: var(--red); font-weight: 600; }
.cb-stock .is-check .cb-stock-st, .cb-stock .is-not_stocked .cb-stock-st, .cb-stock .is-options_in_stock .cb-stock-st { color: var(--amber); }

/* footer */
.cb-foot { padding: 14px 18px 2px; display: flex; flex-direction: column; gap: 6px; }
.cb-book { min-height: 48px; font-size: 17px; font-weight: 650; border-radius: 14px; }
.cb-done { margin: 14px 18px 0; padding: 12px 14px; border-radius: var(--r-m); background: var(--green-soft); color: var(--green); font-size: 15px; }
.cb-msg:empty { display: none; }
.cb-warn { color: var(--red); font-size: 13.5px; margin: 4px 0 0; }
.cb-note { color: var(--ink-2); font-size: 13.5px; margin: 4px 0 0; }

/* waiting */
.cb-idle { padding: 46px 22px; text-align: center; }
.cb-idle h2 { margin: 10px 0 2px; font-size: 20px; }
.cb-ring { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 30px; }
.cb-recent { list-style: none; padding: 0; margin: 18px 0 0; text-align: left; }
.cb-recent li { padding: 8px 0; border-top: 1px solid var(--hair); font-size: 14px; }

@media (max-width: 900px) {
  .cb-layout { grid-template-columns: 1fr; }
  .cb-call { max-height: none; }
}

/* 092: booked at call end, with Undo */
.cb-done { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cb-done .cb-undo { flex: none; min-height: 44px; }
.cb-done.is-undone { color: var(--ink-2); background: var(--fill); }
.cb-note-line { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.cb-chip.cb-type { background: var(--accent); color: #fff; font-weight: 600; }
.cb-chip.cb-type .cb-chip-k { color: rgba(255, 255, 255, 0.75); }
.cb-chip.cb-type.is-status, .cb-chip.cb-type.is-add_to_visit { background: var(--green, #2e9e4f); }
.cb-chip.cb-type.is-guess { background: var(--fill); color: var(--ink); }
.cb-chip.cb-type.is-guess .cb-chip-k { color: var(--ink-3); }

/* 146: the text's exact words and its checked link, on the Text step */
.cb-text-words { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.cb-text-words:empty { display: none; }
.cb-text-body { font-size: 13px; line-height: 1.4; color: var(--ink); background: var(--fill); border-radius: 10px; padding: 6px 9px; overflow-wrap: anywhere; }
.cb-text-open { font-size: 12.5px; }
