/* Chat window: shared by the demo page and the website widget (/embed). */
.chat { display: flex; flex-direction: column; height: 640px; max-height: 82vh; background: #fff; border-radius: .5rem; overflow: hidden; }
.chat-head { background: var(--chat-color, #1F2937); color: #fff; padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.chat-dot { width: 10px; height: 10px; border-radius: 50%; background: #10B981; flex: none; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.chat .msg { max-width: 84%; padding: 10px 14px; border-radius: 14px; font-size: .95rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat .msg.bot { background: #F3F4F6; border-bottom-left-radius: 4px; }
.chat .msg.team { background: #FEF3C7; border-bottom-left-radius: 4px; }
.chat .msg.user { align-self: flex-end; background: var(--chat-color, #1F2937); color: #fff; border-bottom-right-radius: 4px; }
.chat .msg small.who { display: block; font-weight: 600; font-size: .72rem; opacity: .75; }
.chat .msg.typing { color: #6B7280; font-style: italic; }
.quote-cards { display: flex; flex-direction: column; gap: 8px; max-width: 92%; }
.quote-card { display: flex; align-items: center; gap: 10px; border: 1px solid #E5E7EB; border-radius: 10px; padding: 8px; cursor: pointer; background: #fff; }
.quote-card:hover { border-color: #1F2937; }
.quote-card img, .quote-noimg { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; flex: none; background: #E5E7EB; }
.quote-noimg { display: flex; align-items: center; justify-content: center; font-weight: 600; color: #6B7280; }
.quote-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.quote-info small { color: #6B7280; }
.quote-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 18px; border-top: 1px solid #E5E7EB; }
.chat-suggest button { border: 1px solid #1F2937; background: #fff; color: #1F2937; border-radius: 99px; padding: 6px 12px; font-size: .85rem; min-height: 36px; }
.chat-suggest button:hover { background: #1F2937; color: #fff; }
.chat-form { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid #E5E7EB; }
.chat-error { color: #E11D48; font-size: .85rem; padding: 0 18px 8px; }
.quote-note { color: #6B7280; font-size: .78rem; margin-top: -4px; }
.route-map { margin: 0; max-width: 92%; border: 1px solid #E5E7EB; border-radius: 10px; overflow: hidden; background: #F3F4F6; }
.route-map img { display: block; width: 100%; height: auto; aspect-ratio: 640 / 300; object-fit: cover; }
.route-map figcaption { font-size: .78rem; color: #4B5563; padding: 6px 10px; }
.booking-card { max-width: 92%; border: 1px solid #10B981; border-radius: 12px; background: #fff; overflow: hidden; }
.booking-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; background: #ECFDF5; padding: 10px 14px; }
.booking-status { font-size: .8rem; color: #065F46; }
.booking-card dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 0; padding: 10px 14px; font-size: .9rem; }
.booking-card dt { color: #6B7280; font-weight: 400; }
.booking-card dd { margin: 0; overflow-wrap: anywhere; }
.booking-total { display: flex; justify-content: space-between; padding: 10px 14px; border-top: 1px solid #E5E7EB; font-variant-numeric: tabular-nums; }
.chat-choices { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; max-width: 100%; }
.chat-choices button { border: 1px solid #1F2937; background: #fff; color: #1F2937; border-radius: 99px; padding: 8px 14px; font-size: .9rem; min-height: 40px; cursor: pointer; }
.chat-choices button:hover, .chat-choices button:focus-visible { background: #1F2937; color: #fff; outline: none; }
.chat-date { align-items: center; }
.chat-date input[type=date] { border: 1px solid #1F2937; border-radius: 99px; padding: 7px 14px; font: inherit; font-size: .9rem; min-height: 40px; background: #fff; color: #1F2937; }
.chat-date .chat-date-ok { background: #1F2937; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* tap-forms: address box, passengers/bags, contact details (self-contained: works without Bootstrap) */
.chat-card { align-self: stretch; max-width: 100%; border: 1px solid #E5E7EB; border-radius: 12px; background: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 2px 8px rgba(17,24,39,.06); }
.chat-card-title { font-weight: 600; font-size: .92rem; }
.chat-field { position: relative; display: flex; flex-direction: column; gap: 4px; }
.chat-field label { font-size: .8rem; color: #4B5563; font-weight: 500; }
.chat-field input { width: 100%; box-sizing: border-box; border: 1px solid #D1D5DB; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 16px; background: #fff; color: #111827; }
.chat-field input:focus { outline: 2px solid var(--chat-color, #1F2937); outline-offset: -1px; border-color: transparent; }
.chat-field input.bad { border-color: #E11D48; }
.chat-suggest-list { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid #D1D5DB; border-radius: 10px; box-shadow: 0 10px 24px rgba(17,24,39,.15); max-height: 230px; overflow-y: auto; }
.chat-suggest-list li { padding: 8px 10px; border-radius: 6px; cursor: pointer; display: flex; flex-direction: column; line-height: 1.3; }
.chat-suggest-list li small { color: #6B7280; font-size: .8rem; }
.chat-suggest-list li:hover, .chat-suggest-list li[aria-selected="true"] { background: #F3F4F6; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-chips button, .chat-count-btns button { border: 1px solid #D1D5DB; background: #fff; color: #1F2937; border-radius: 99px; padding: 6px 12px; font: inherit; font-size: .85rem; min-height: 36px; cursor: pointer; }
.chat-chips button:hover { border-color: var(--chat-color, #1F2937); }
.chat-chips button:disabled { opacity: .7; cursor: default; }
.chat-count { display: flex; flex-direction: column; gap: 6px; }
.chat-count-label { font-size: .8rem; color: #4B5563; font-weight: 500; }
.chat-count-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-count-btns button { min-width: 44px; min-height: 40px; font-weight: 600; }
.chat-count-btns button[aria-pressed="true"] { background: var(--chat-color, #1F2937); border-color: var(--chat-color, #1F2937); color: #fff; }
.chat-card-go { align-self: flex-start; background: var(--chat-color, #1F2937); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.chat-card-go:disabled { opacity: .45; cursor: default; }
.chat-card-or { font-size: .8rem; color: #6B7280; }
.quote-card.picked { border-color: var(--chat-color, #1F2937); box-shadow: 0 0 0 2px var(--chat-color, #1F2937); }
.quote-card:focus-visible { outline: 2px solid var(--chat-color, #1F2937); outline-offset: 2px; }
/* time picker */
.chat-card-note { font-size: .82rem; color: #92400E; background: #FFFBEB; border-radius: 6px; padding: 6px 10px; }
.chat-tabs { display: flex; gap: 4px; background: #F3F4F6; border-radius: 10px; padding: 3px; }
.chat-tabs button { flex: 1; border: 0; background: transparent; border-radius: 8px; padding: 7px 4px; font: inherit; font-size: .85rem; color: #374151; cursor: pointer; min-height: 36px; }
.chat-tabs button[aria-selected="true"] { background: #fff; color: #111827; font-weight: 600; box-shadow: 0 1px 3px rgba(17,24,39,.12); }
.chat-tabs button:disabled { opacity: .4; cursor: default; }
.chat-time-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; align-items: center; }
@media (max-width: 420px) { .chat-time-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chat-time-grid button { border: 1px solid #D1D5DB; background: #fff; color: #1F2937; border-radius: 8px; padding: 8px 0; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; min-height: 40px; font-variant-numeric: tabular-nums; }
.chat-time-grid button:hover:not(:disabled) { background: var(--chat-color, #1F2937); border-color: var(--chat-color, #1F2937); color: #fff; }
.chat-time-grid button:disabled { color: #C4C8CE; background: #F9FAFB; text-decoration: line-through; cursor: default; }
.chat-time-ampm { grid-column: 1 / -1; font-size: .75rem; color: #6B7280; text-align: right; margin-top: -2px; }
.chat-time-exact { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid #F3F4F6; padding-top: 10px; }
.chat-time-exact label { font-size: .82rem; color: #4B5563; }
.chat-time-exact input { border: 1px solid #D1D5DB; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 16px; }
.chat-time-exact input.bad { border-color: #E11D48; }
/* address preview map */
.chat-pinmap { margin: 0; border: 1px solid #E5E7EB; border-radius: 10px; overflow: hidden; background: #F3F4F6; }
.chat-pinmap img { display: block; width: 100%; height: auto; aspect-ratio: 600 / 220; object-fit: cover; }
.chat-pinmap figcaption { font-size: .78rem; color: #4B5563; padding: 6px 10px; display: flex; align-items: center; gap: 4px; white-space: pre; }
.chat-pinmap .pin-a, .chat-pinmap .pin-b { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .7rem; align-items: center; justify-content: center; }
.chat-pinmap .pin-a { background: #10B981; }
.chat-pinmap .pin-b { background: #E11D48; }
/* tour add-ons (tick boxes) */
.chat-addons { display: flex; flex-direction: column; gap: 6px; }
.chat-addon { display: flex; align-items: center; gap: 10px; border: 1px solid #E5E7EB; border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.chat-addon:hover { border-color: var(--chat-color, #1F2937); }
.chat-addon input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--chat-color, #1F2937); }
.chat-addon-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.chat-addon-text small { color: #6B7280; font-size: .8rem; }
.chat-addon-price { font-size: .85rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chat-addon:has(input:checked) { border-color: var(--chat-color, #1F2937); background: #F9FAFB; }
.chat-chips .chat-card-go { background: var(--chat-color, #1F2937); border-color: var(--chat-color, #1F2937); color: #fff; font-weight: 600; }
.chat-chips .chat-card-go:disabled { opacity: .45; }
.booking-card.preview { border-color: #F59E0B; }
.booking-card.preview .booking-head { background: #FFFBEB; }
.booking-card.preview .booking-status { color: #92400E; }
.chat-body > * { flex-shrink: 0; }          /* cards keep their full height; the chat scrolls instead */
/* meet & greet card + address warning */
.chat-mg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chat-mg-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.chat-mg-badge { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; border-radius: 99px; padding: 2px 10px; font-size: .75rem; font-weight: 600; }
.chat-mg-text { margin: 0; font-size: .88rem; line-height: 1.4; }
.chat-mg-text.muted { color: #6B7280; }
.chat-card-warn { color: #B91C1C; background: #FEF2F2; border-radius: 6px; padding: 6px 10px; font-size: .85rem; }
/* address box: a field already filled in (e.g. the airport) */
.chat-field input.fixed { background: #F3F4F6; color: #111827; font-weight: 600; }
.chat-field label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-field-change { border: 0; background: none; color: var(--chat-color, #1F2937); text-decoration: underline; font: inherit; font-size: .8rem; cursor: pointer; padding: 0; }
.chat .msg strong { font-weight: 600; }
.quote-fixed { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.quote-fixed small { font-size: .7rem; color: #047857; font-weight: 600; }
.quote-fixed small + b + small { color: #6B7280; font-weight: 400; }
.quote-fixed small.quote-tolls { color: #6B7280; font-weight: 400; }
