.tb-assistant-launcher,
.tb-assistant-search-open,
.tb-assistant button { cursor: pointer; font: inherit; }
.tb-assistant-launcher { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 900; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 18px; border: 0; border-radius: 28px; color: var(--tb-color-white); background: var(--tb-color-navy); box-shadow: 0 6px 22px #00123629; font-weight: 650; font-size: 1rem; }
.tb-assistant-launcher:hover { background: var(--tb-color-deep-navy); }
body:has(.tb-cookie-banner:not([hidden])) .tb-assistant-launcher { visibility: hidden; }
.tb-assistant-search-open { display: block; min-height: 44px; padding: 8px 0; margin: 12px auto 0; border: 0; color: var(--tb-color-navy); background: transparent; text-decoration: underline; text-underline-offset: 4px; font-size: 1rem; }
.tb-assistant-load-error { position: fixed; right: 20px; bottom: 82px; z-index: 901; max-width: min(300px, calc(100vw - 40px)); padding: 12px; color: var(--tb-color-navy); background: var(--tb-color-white); border: 1px solid var(--tb-color-border); font-size: 1rem; }
.tb-assistant { --chat-surface: var(--tb-color-white, #fff); --chat-ink: var(--tb-color-navy, #13274b); position: fixed; inset: auto max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) auto; z-index: 1100; width: 440px; max-width: calc(100vw - 40px); height: min(740px, calc(100dvh - 40px)); max-height: calc(100dvh - 40px); padding: 0; margin: 0; border: 0; border-radius: 16px; color: var(--tb-color-text); background: var(--chat-surface); box-shadow: 0 18px 64px #00123638; font-family: var(--tb-font-body); font-size: 1.0625rem; line-height: 1.5; overflow: hidden; }
.tb-assistant:not([open]), .tb-assistant [hidden] { display: none !important; }
.tb-assistant { container: travelbay-chat / size; z-index: 100000; }
.tb-assistant::backdrop { background: #00123638; }
.tb-assistant::selection, .tb-assistant *::selection { color: var(--tb-color-white); background: var(--chat-ink); }
.tb-assistant button, .tb-assistant a { min-height: 44px; }
.tb-assistant :is(button, a, textarea, input, select):focus-visible, .tb-assistant-launcher:focus-visible, .tb-assistant-search-open:focus-visible { outline: 3px solid var(--tb-color-active); outline-offset: 3px; }
.tb-assistant button:disabled { cursor: wait; opacity: .55; }
.tb-assistant__shell { display: flex; flex-direction: column; height: 100%; min-height: 0; position: relative; }
.tb-assistant__header { display: flex; align-items: center; flex: 0 0 auto; gap: 10px; padding: 16px 14px 14px 20px; background: var(--chat-ink); color: var(--tb-color-white); }
.tb-assistant__brand { position: relative; display: block; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: var(--tb-color-white); color: var(--chat-ink); overflow: hidden; }
/* Crop only the existing central symbol in chat; the full site wordmark is unchanged. */
.tb-assistant__brand img, .tb-chat-message__avatar img { position: absolute; display: block; width: 444.263%; height: 148.566%; max-width: none; left: -213.935%; top: -26.23%; object-fit: fill; }
.tb-assistant__heading { min-width: 0; flex: 1 1 auto; }
.tb-assistant__heading h2 { margin: 0; color: inherit; font-family: var(--tb-font-heading); font-size: 1rem; line-height: 1.3; font-weight: 650; }
.tb-assistant__heading p { margin: 3px 0 0; color: #d7e2f4; font-size: .8125rem; line-height: 1.4; }
.tb-assistant__icon { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; }
.tb-assistant__icon:hover { background: #ffffff1f; }
.tb-assistant__toolbar { display: flex; align-items: center; flex: 0 0 auto; justify-content: space-between; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--tb-color-border-subtle); }
.tb-assistant__toolbar button { border: 0; background: transparent; color: var(--chat-ink); padding: 8px 3px; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; }
.tb-assistant__history { position: absolute; z-index: 3; inset: 117px 0 0; background: var(--chat-surface); overflow: auto; padding: 18px 20px; }
.tb-assistant__history h3 { font-size: 1.1rem; margin: 0 0 16px; }
.tb-assistant__history button { width: 100%; padding: 12px 0; text-align: left; color: var(--chat-ink); border: 0; border-bottom: 1px solid var(--tb-color-border-subtle); background: transparent; overflow-wrap: anywhere; }
.tb-assistant__history button small { display: block; color: var(--tb-color-muted); }
.tb-assistant__notice { flex: 0 0 auto; padding: 10px 20px; background: var(--tb-color-info-surface); color: var(--chat-ink); font-size: .9375rem; }
.tb-assistant__notice[data-tone="error"] { background: var(--tb-color-error-surface); }
.tb-assistant__notice a { display: inline-flex; align-items: center; color: var(--chat-ink); font-weight: 650; text-underline-offset: 3px; }
.tb-assistant__notice button { display: block; width: 100%; padding: 9px 12px; margin-top: 10px; border: 0; border-radius: 6px; color: var(--tb-color-white); background: var(--chat-ink); font-weight: 650; }
.tb-assistant__log { position: relative; flex: 1 1 auto; min-height: 80px; padding: 20px 20px 10px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scroll-behavior: auto; background: #f5f7fb; scrollbar-width: thin; scrollbar-color: #b8c5d9 transparent; }
.tb-assistant__log { min-width: 0; container: travelbay-chat-log / inline-size; scroll-padding-block: 16px 84px; }
.tb-assistant__welcome { padding: 4px 0 0; }
.tb-assistant__welcome h3 { margin: 0 0 8px; color: var(--chat-ink); font-family: var(--tb-font-heading); font-size: clamp(1.25rem, 3vw, 1.5rem); line-height: 1.2; font-weight: 650; letter-spacing: -.02em; }
.tb-assistant__welcome p { margin: 0 0 12px; max-width: 35ch; color: var(--tb-color-muted); font-size: .875rem; line-height: 1.45; }
.tb-assistant__starters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tb-assistant__starters button { width: 100%; min-width: 0; min-height: 64px; padding: 10px 12px; text-align: left; color: var(--chat-ink); background: var(--chat-surface); border: 1px solid var(--tb-color-border); border-radius: 8px; font-size: .9375rem; line-height: 1.35; overflow-wrap: anywhere; }
.tb-assistant__starters button:hover { background: var(--tb-color-info-surface); }
.tb-chat-message { margin: 0 0 14px; overflow-wrap: anywhere; }
.tb-chat-message:last-child { margin-bottom: 0; }
.tb-chat-message__label { display: block; margin-bottom: 6px; color: var(--tb-color-muted); font-size: .8125rem; font-weight: 600; }
.tb-chat-message__text { margin: 0; white-space: pre-wrap; font-size: 1.0625rem; line-height: 1.55; }
.tb-chat-message__sources { display: flex; flex-wrap: wrap; gap: 0 14px; margin: -4px 2px 8px; }
.tb-chat-message__sources a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; padding-block: 6px; color: var(--tb-color-muted); font-size: .8125rem; line-height: 1.45; text-underline-offset: 3px; overflow-wrap: anywhere; }
.tb-chat-message--user { margin-left: 32px; }
.tb-chat-message--user .tb-chat-message__label { text-align: right; }
.tb-chat-message--user .tb-chat-message__text { padding: 12px 15px; border-radius: 16px 16px 4px 16px; color: var(--tb-color-white); background: var(--chat-ink); }
.tb-chat-message--assistant { position: relative; padding-left: 38px; margin-right: 0; }
.tb-chat-message--assistant .tb-chat-message__label { display: flex; align-items: center; min-height: 28px; color: var(--chat-ink); }
.tb-chat-message__avatar { position: absolute; display: block; top: 0; left: 0; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: var(--chat-surface); }
.tb-chat-message--assistant > .tb-chat-message__text { padding: 12px 14px; margin-bottom: 8px; border: 1px solid #dce3ee; border-radius: 4px 16px 16px 16px; background: var(--chat-surface); }
.tb-chat-message--assistant > :last-child { margin-bottom: 0; }
.tb-chat-message[data-delivery="failed"] .tb-chat-message__label { color: var(--tb-color-coral-text); }
.tb-assistant__latest { position: absolute; z-index: 2; align-self: center; bottom: 230px; padding: 8px 14px; border: 1px solid var(--tb-color-border); border-radius: 22px; background: var(--chat-surface); color: var(--chat-ink); font-size: .875rem; box-shadow: 0 4px 14px #0012361a; }
.tb-assistant__progress { display: flex; align-items: center; flex: 0 0 auto; gap: 10px; padding: 9px 16px; color: var(--chat-ink); background: #f5f7fb; border-top: 1px solid var(--tb-color-border-subtle); font-size: .9375rem; line-height: 1.4; }
.tb-assistant__progress [data-chat-status] { flex: 1; min-width: 0; }
.tb-chat-status-wave { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; height: 24px; gap: 3px; color: var(--chat-ink); }
.tb-chat-status-wave i { display: block; width: 3px; height: 10px; border-radius: 3px; background: currentColor; transform-origin: center; }
.tb-chat-status-wave i:nth-child(2), .tb-chat-status-wave i:nth-child(4) { height: 16px; }
.tb-chat-status-wave i:nth-child(3) { height: 20px; }
.tb-assistant__progress[data-phase="typing"] .tb-chat-status-wave i { width: 5px; height: 5px; }
.tb-assistant__progress[data-phase="readback"] .tb-chat-status-wave { color: var(--tb-color-coral-text); }
.tb-assistant__progress button { color: var(--tb-color-coral-text); border: 0; background: transparent; padding: 7px 0 7px 12px; font-weight: 600; }
.tb-assistant__composer { flex: 0 0 auto; margin: 0 16px; padding: 4px 0 0; border-top: 1px solid var(--tb-color-border-subtle); }
.tb-assistant__compose-bar { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: end; gap: 6px; padding: 4px; border: 1px solid #b5c3d8; border-radius: 18px; background: var(--chat-surface); }
.tb-assistant__compose-bar:focus-within { border-color: var(--chat-ink); }
.tb-assistant__compose-bar:has(textarea:focus-visible) { box-shadow: 0 0 0 1px var(--chat-ink); }
.tb-assistant__composer textarea { display: block; resize: none; width: 100%; min-width: 0; height: 44px; min-height: 44px; max-height: 140px; padding: 10px 4px; margin: 0; border: 0; border-radius: 8px; background: transparent; color: var(--chat-ink); caret-color: var(--tb-color-coral-text); font: inherit; font-size: 1rem; line-height: 1.45; }
.tb-assistant__composer textarea:focus-visible { outline: none; box-shadow: none; }
.tb-assistant__composer textarea::placeholder { color: var(--tb-color-muted); opacity: 1; }
.tb-assistant__attach, .tb-assistant__send { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; padding: 0; border: 0; border-radius: 50%; }
.tb-assistant__attach { color: var(--chat-ink); background: transparent; }
.tb-assistant__attach:hover { background: #edf2f9; }
.tb-assistant__send { color: var(--tb-color-white); background: var(--tb-color-coral-text); }
.tb-assistant__send:hover { background: #a82f28; }
.tb-assistant__file-help { flex: 1 1 auto; min-width: 0; margin: 0; color: var(--tb-color-muted); font-size: .75rem; line-height: inherit; text-align: left; }
.tb-assistant__attachments { display: flex; flex-direction: column; gap: 5px; }
.tb-assistant__attachment { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .875rem; color: var(--chat-ink); }
.tb-assistant__attachment span { min-width: 0; overflow-wrap: anywhere; }
.tb-assistant__attachment button { flex: 0 0 auto; border: 0; padding: 4px 0 4px 10px; color: var(--tb-color-coral-text); background: transparent; }
.tb-assistant__footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; column-gap: 10px; flex: 0 0 auto; padding: 0 20px env(safe-area-inset-bottom, 0px); color: var(--tb-color-muted); font-size: .75rem; line-height: 1.4; }
.tb-assistant__ai-note { font-weight: 400; }
.tb-assistant__footer a, .tb-assistant__ai-note { flex: 0 0 auto; white-space: nowrap; }
.tb-assistant__footer a, .tb-assistant__footer button { display: inline-flex; align-items: center; padding: 5px 0; color: var(--tb-color-muted); border: 0; background: transparent; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tb-assistant__retry { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; margin-top: 8px; color: var(--chat-ink); background: var(--tb-color-info-surface); border: 0; border-radius: 6px; }
.tb-chat-offer { display: grid; min-width: 0; padding: 0; margin-top: 16px; border: 1px solid #ccd7e7; border-radius: 14px; overflow: hidden; background: var(--chat-surface); }
.tb-chat-offer__media { min-width: 0; overflow: hidden; background: #f5f7fb; }
.tb-chat-offer__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 176px; object-fit: cover; margin: 0; }
.tb-chat-offer__body { min-width: 0; padding: 16px; }
.tb-chat-offer p { margin: 0; font-size: .9375rem; overflow-wrap: anywhere; }
.tb-chat-offer .tb-chat-offer__destination { margin-bottom: 6px; color: #52617a; font-size: .8125rem; line-height: 1.45; }
.tb-chat-offer .tb-chat-offer__kind { margin-bottom: 6px; color: #52617a; font-size: .75rem; line-height: 1.4; font-weight: 650; }
.tb-chat-offer h4 { margin: 0; color: var(--chat-ink); font-family: var(--tb-font-heading); font-size: 1.125rem; line-height: 1.35; font-weight: 650; overflow-wrap: anywhere; text-wrap: pretty; }
.tb-chat-offer .tb-chat-offer__source { margin-top: 8px; color: #52617a; font-size: .8125rem; line-height: 1.5; }
.tb-chat-offer__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; min-width: 0; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--tb-color-border-subtle); }
.tb-chat-offer__facts > div { min-width: 0; }
.tb-chat-offer__facts dt { margin: 0 0 3px; color: #52617a; font-size: .75rem; line-height: 1.4; }
.tb-chat-offer__facts dd { margin: 0; color: var(--chat-ink); font-size: .9375rem; line-height: 1.45; overflow-wrap: anywhere; }
.tb-chat-offer__party { grid-column: 1 / -1; }
.tb-chat-offer__preferences { min-width: 0; margin-top: 14px; overflow-wrap: anywhere; }
.tb-chat-offer__preferences p { margin-top: 6px; color: #52617a; font-size: .8125rem; line-height: 1.5; }
.tb-chat-offer__footer { display: grid; min-width: 0; gap: 12px; padding: 16px; border-top: 1px solid #e3e7ec; background: #fafbfc; }
.tb-chat-offer__pricing { min-width: 0; margin: 0; border: 1px solid #dce3ee; border-radius: 8px; overflow: hidden; background: var(--chat-surface); }
.tb-chat-offer__pricing > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); align-items: baseline; gap: 10px; padding: 8px 10px; }
.tb-chat-offer__pricing > div + div { border-top: 1px solid #e5ebf3; }
.tb-chat-offer__pricing dt, .tb-chat-offer__pricing dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.tb-chat-offer__pricing dt { color: #52617a; font-size: .8125rem; line-height: 1.45; }
.tb-chat-offer__pricing dd { text-align: right; color: var(--chat-ink); font-size: 1rem; line-height: 1.4; font-weight: 600; font-variant-numeric: tabular-nums; }
.tb-chat-offer .tb-chat-offer__basis { color: #52617a; font-size: .8125rem; line-height: 1.4; }
.tb-chat-offer .tb-chat-offer__price { color: var(--chat-ink); font-family: var(--tb-font-heading); font-size: 1rem; line-height: 1.4; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tb-chat-offer__pricing--unknown .tb-chat-offer__price { font-family: inherit; font-size: .9375rem; font-weight: 500; color: #52617a; }
.tb-chat-offer .tb-chat-offer__status { color: #52617a; font-size: .8125rem; line-height: 1.5; }
.tb-chat-offer__actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; }
.tb-chat-offer__actions .tb-chat-offer__action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 46px; max-width: 100%; margin: 0; padding: 10px 14px; border: 1px solid var(--chat-ink); border-radius: 8px; font: inherit; font-size: .9375rem; line-height: 1.35; font-weight: 650; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.tb-chat-offer__actions .tb-chat-offer__action--primary { color: var(--tb-color-white); background: var(--chat-ink); }
.tb-chat-offer__actions .tb-chat-offer__action--secondary { color: var(--chat-ink); background: var(--chat-surface); }
.tb-chat-offer[data-quote-state="expired"] .tb-chat-offer__price { color: #52617a; }
@container travelbay-chat-log (min-width: 560px) {
  .tb-chat-offer:has(> .tb-chat-offer__media) { grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); }
  .tb-chat-offer__media img { height: 100%; max-height: none; min-height: 180px; aspect-ratio: auto; }
  .tb-chat-offer__footer { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px 20px; align-items: center; }
  .tb-chat-offer__pricing { grid-column: 1; grid-row: 1; }
  .tb-chat-offer__actions { grid-column: 2; grid-row: 1; }
  .tb-chat-offer__status { grid-column: 1 / -1; grid-row: 2; }
}
@container travelbay-chat (max-height: 560px) {
  .tb-chat-offer:has(> .tb-chat-offer__media) { grid-template-columns: minmax(0, 1fr); }
  .tb-chat-offer__media img { height: 112px; max-height: 112px; min-height: 0; aspect-ratio: auto; }
  .tb-chat-offer__body, .tb-chat-offer__footer { padding: 12px 14px; }
}
/* Media and title share one row; source and price always get their own full row. */
@container travelbay-chat-log (max-width: 559px) {
  .tb-chat-offer { grid-template-columns: minmax(0, 1fr); column-gap: 10px; padding: 12px 12px 0; }
  .tb-chat-offer:has(> .tb-chat-offer__media) { grid-template-columns: 76px minmax(0, 1fr); }
  .tb-chat-offer__media { grid-column: 1; grid-row: 1; width: 76px; height: 76px; border-radius: 8px; }
  .tb-chat-offer__media img { height: 100%; max-height: none; min-height: 0; aspect-ratio: 1; }
  .tb-chat-offer__body { display: contents; }
  .tb-chat-offer__heading { grid-column: 1 / -1; grid-row: 1; min-width: 0; }
  .tb-chat-offer:has(> .tb-chat-offer__media) .tb-chat-offer__heading { grid-column: 2; }
  .tb-chat-offer .tb-chat-offer__kind, .tb-chat-offer .tb-chat-offer__destination { margin-bottom: 4px; }
  .tb-chat-offer .tb-chat-offer__source { grid-column: 1 / -1; margin-top: 8px; }
  .tb-chat-offer__facts { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; padding-top: 8px; }
  .tb-chat-offer__facts:has(> div:nth-child(3)) { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr) minmax(0, 1.3fr); }
  .tb-chat-offer__facts dt { margin-bottom: 2px; }
  .tb-chat-offer__party { grid-column: auto; }
  .tb-chat-offer__preferences { grid-column: 1 / -1; margin-top: 8px; }
  .tb-chat-offer__footer { grid-column: 1 / -1; gap: 8px; padding: 10px 12px; margin: 10px -12px 0; }
  .tb-chat-offer .tb-chat-offer__price { max-width: 100%; white-space: normal; overflow-wrap: anywhere; word-break: normal; }
  .tb-chat-offer__actions { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px; }
  .tb-chat-offer__actions:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
  .tb-chat-offer__actions .tb-chat-offer__action { min-height: 44px; padding: 8px 10px; }
}
@media (hover: hover) {
  .tb-chat-offer__action--primary:hover { background: var(--tb-color-deep-navy); }
  .tb-chat-offer__action--secondary:hover { background: var(--tb-color-info-surface); }
}
.tb-chat-offer__action:focus-visible { outline: 3px solid var(--tb-color-coral-text, #c63f36); outline-offset: 3px; }

.tb-chat-intake { margin-top: 12px; padding: 14px; background: var(--chat-surface); border: 1px solid #ccd7e7; border-radius: 14px; }
.tb-chat-intake__hint { margin: 0 0 18px; color: var(--tb-color-muted); font-size: .875rem; line-height: 1.45; }
.tb-chat-intake__question { min-width: 0; padding: 0; margin: 0 0 22px; border: 0; }
.tb-chat-intake__question:disabled .tb-chat-intake__option { cursor: default; }
.tb-chat-intake__question legend { width: 100%; padding: 0; margin: 0 0 12px; color: var(--chat-ink); font-family: var(--tb-font-heading); font-size: 1rem; font-weight: 650; line-height: 1.4; }
.tb-chat-intake__options { display: grid; gap: 8px; margin-bottom: 14px; }
.tb-chat-intake__option { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 9px 11px; border: 1px solid #c6d2e3; border-radius: 9px; color: var(--chat-ink); cursor: pointer; line-height: 1.35; font-size: .9375rem; }
.tb-chat-intake__option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tb-chat-intake__letter { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 6px; background: #edf2f9; font-family: var(--tb-font-heading); font-size: .8125rem; font-weight: 700; }
.tb-chat-intake__option:has(input:checked) { border-color: var(--chat-ink); background: #edf2f9; }
.tb-chat-intake__option:has(input:checked) .tb-chat-intake__letter { color: var(--tb-color-white); background: var(--chat-ink); }
.tb-chat-intake__option:has(input:focus-visible) { outline: 3px solid var(--tb-color-active); outline-offset: 3px; }
.tb-chat-intake__option:hover { border-color: var(--chat-ink); }
.tb-chat-intake__option { display: grid; grid-template-columns: 27px minmax(0, 1fr) 18px; }
.tb-chat-intake__choice-check { width: 18px; height: 18px; color: var(--chat-ink); visibility: hidden; }
.tb-chat-intake__option:has(input:checked) .tb-chat-intake__choice-check { visibility: visible; }
.tb-chat-intake__controls, .tb-chat-intake__ages { display: grid; gap: 12px; }
.tb-chat-intake__field { display: block; min-width: 0; color: var(--chat-ink); font-size: .875rem; line-height: 1.4; font-weight: 600; }
.tb-chat-intake__field :is(input, select, textarea) { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 46px; margin-top: 5px; padding: 10px; border: 1px solid #b5c3d8; border-radius: 8px; background: var(--chat-surface); color: var(--chat-ink); font: inherit; font-size: 1rem; font-weight: 400; accent-color: var(--chat-ink); }
.tb-chat-intake__field :is(input, textarea):focus { border-color: var(--chat-ink); outline: none; box-shadow: none; }
.tb-chat-intake__field :is(input, textarea):focus-visible { box-shadow: 0 0 0 1px var(--chat-ink); }
.tb-chat-intake__field input::placeholder { color: #5b6b83; opacity: 1; }
.tb-chat-intake__submit { width: 100%; min-height: 46px; padding: 11px 13px; border: 0; border-radius: 9px; color: var(--tb-color-white); background: var(--chat-ink); font-weight: 650; }
.tb-chat-intake__step { margin: 0 0 14px; color: var(--tb-color-muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.tb-chat-intake__nav { display: flex; align-items: center; gap: 10px; }
[data-chat-refinements] { flex-wrap: wrap; }
[data-chat-refinements] button { min-height: 44px; }
.tb-chat-intake__destination-places { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-chat-intake__nav .tb-chat-intake__submit { flex: 1; width: auto; }
.tb-chat-intake__back { min-height: 46px; padding: 10px 12px; border: 1px solid #b5c3d8; border-radius: 9px; color: var(--chat-ink); background: var(--chat-surface); font-weight: 600; }
.tb-chat-intake__date-mode { display: block; color: var(--chat-ink); font-size: .875rem; font-weight: 600; }
.tb-chat-intake__date-mode select { width: 100%; min-height: 46px; padding: 9px 10px; margin-top: 5px; border: 1px solid #b5c3d8; border-radius: 8px; color: var(--chat-ink); background: var(--chat-surface); font: inherit; font-size: 1rem; }
.tb-chat-intake__question:is([data-input-kind="party"],[data-input-kind="budget"]) .tb-chat-intake__controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tb-chat-intake__ages, .tb-chat-intake__question[data-input-kind="budget"] .tb-chat-intake__field:last-child { grid-column: 1 / -1; }
.tb-chat-intake__question[data-input-kind="party"] .tb-chat-intake__controls { grid-template-columns: minmax(0, 1fr); }
.tb-chat-intake__custom { margin-top: 12px; }
.tb-chat-intake__option--custom { margin-top: 8px; }
.tb-chat-intake__options.tb-chat-intake__answer-mode { grid-template-columns: minmax(0, 1fr); }
.tb-chat-intake__answer-mode .tb-chat-intake__option { grid-template-columns: minmax(0, 1fr) 18px; min-height: 48px; }
.tb-chat-intake__custom textarea { min-height: 86px; resize: vertical; }
.tb-chat-intake__stepper { display: grid; grid-template-columns: 44px minmax(40px, 1fr) 44px; align-items: center; margin-top: 6px; border: 1px solid #b5c3d8; border-radius: 10px; overflow: hidden; }
.tb-chat-intake__stepper-control { min-height: 46px !important; margin: 0 !important; padding: 8px 4px !important; border: 0 !important; border-radius: 0 !important; text-align: center; font-variant-numeric: tabular-nums; appearance: textfield; }
.tb-chat-intake__stepper-control::-webkit-inner-spin-button, .tb-chat-intake__stepper-control::-webkit-outer-spin-button { appearance: none; margin: 0; }
.tb-chat-intake__minus, .tb-chat-intake__plus { display: flex; align-items: center; justify-content: center; width: 44px; min-height: 46px; padding: 0; border: 0; color: var(--chat-ink); background: #f0f4fa; }
.tb-chat-intake__stepper:focus-within { border-color: var(--chat-ink); outline: none; box-shadow: 0 0 0 1px var(--chat-ink); }
.tb-chat-intake__stepper-control:focus-visible { box-shadow: none; }
.tb-chat-intake__money, .tb-chat-intake__basis, .tb-chat-intake__date-mode { grid-column: 1 / -1; }
.tb-chat-intake__money { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 10px; }
.tb-chat-intake__basis, .tb-chat-intake__date-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tb-chat-intake__group-label { grid-column: 1 / -1; margin: 0 0 1px; color: var(--chat-ink); font-size: .875rem; font-weight: 600; }
.tb-chat-intake__segment { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 8px; border: 1px solid #b5c3d8; border-radius: 9px; color: var(--chat-ink); background: var(--chat-surface); text-align: center; font-size: .875rem; line-height: 1.35; cursor: pointer; }
.tb-chat-intake__segment input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tb-chat-intake__segment:has(input:checked) { border-color: var(--chat-ink); color: var(--tb-color-white); background: var(--chat-ink); font-weight: 600; }
.tb-chat-intake__segment:has(input:focus-visible) { outline: 3px solid var(--tb-color-active); outline-offset: 3px; }
.tb-chat-intake__progress { display: block; width: 100%; height: 4px; margin: -4px 0 18px; border: 0; border-radius: 4px; overflow: hidden; color: var(--chat-ink); background: #e5ebf4; appearance: none; }
.tb-chat-intake__progress::-webkit-progress-bar { background: #e5ebf4; }
.tb-chat-intake__progress::-webkit-progress-value { background: var(--chat-ink); }
.tb-chat-intake__progress::-moz-progress-bar { background: var(--chat-ink); }
.tb-chat-intake__nav { margin: 6px 0 0; padding: 12px 0 0; background: var(--chat-surface); }
.tb-chat-message--assistant:has(.tb-chat-intake), .tb-chat-message--assistant:has(.tb-chat-offer) { padding-left: 0; }
.tb-chat-message--assistant:has(.tb-chat-intake) > .tb-chat-message__label, .tb-chat-message--assistant:has(.tb-chat-offer) > .tb-chat-message__label { padding-left: 38px; }
@container travelbay-chat-log (min-width: 340px) {
  .tb-chat-intake__options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-chat-intake__option { min-height: 80px; gap: 8px; }
  .tb-chat-intake__question[data-input-kind="party"] .tb-chat-intake__controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-chat-intake__ages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container travelbay-chat (max-height: 560px) {
  .tb-assistant__header { padding: 8px 12px; }
  .tb-assistant__brand { flex-basis: 32px; width: 32px; height: 32px; }
  .tb-assistant__log { min-height: 56px; padding-block: 14px; }
  .tb-assistant__composer { padding-top: 6px; }
  .tb-assistant__composer textarea { height: 44px; min-height: 44px; max-height: 96px; padding-block: 8px; }
  .tb-assistant__history { inset-block-start: 104px; }
  .tb-assistant__progress { padding-block: 5px; }
  .tb-assistant__shell:has(> .tb-assistant__progress:not([hidden])) .tb-assistant__composer { display: none; }
  .tb-chat-intake { padding: 12px; }
}
.tb-chat-intake__error { color: var(--tb-color-coral-text); font-size: .9375rem; }
.tb-chat-intake[data-answered="true"] { background: #f8fafc; }
.tb-chat-intake[data-answered="true"] .tb-chat-intake__submit { color: var(--chat-ink); background: #e8edf5; cursor: default; opacity: 1; }
.tb-chat-action { margin-top: 16px; padding: 16px 0 0; border-top: 1px solid var(--tb-color-border-subtle); }
.tb-chat-action h4 { margin: 0 0 8px; font-size: 1rem; }
.tb-chat-action p { white-space: pre-wrap; margin: 8px 0; font-size: .9375rem; }
.tb-chat-action button { padding: 9px 14px; margin-top: 8px; border: 0; border-radius: 8px; background: var(--chat-ink); color: var(--tb-color-white); font-weight: 650; }
.tb-chat-action a { display: inline-flex; align-items: center; min-height: 44px; color: var(--chat-ink); text-underline-offset: 3px; }
.tb-chat-action__form { display: grid; gap: 14px; margin-top: 16px; }
.tb-chat-action__details summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--chat-ink); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.tb-chat-action__details summary:focus-visible { outline: 3px solid var(--tb-color-active); outline-offset: 3px; }
.tb-chat-action__form label { display: block; color: var(--chat-ink); font-size: .9375rem; font-weight: 600; }
.tb-chat-action__form :is(input:not([type="checkbox"]), textarea) { width: 100%; min-height: 44px; margin-top: 5px; padding: 9px 10px; border: 1px solid var(--tb-color-border); border-radius: 6px; background: var(--chat-surface); color: var(--chat-ink); font: inherit; font-weight: 400; font-size: 1rem; }
.tb-chat-action__form textarea { resize: vertical; }
.tb-chat-action__form .tb-chat-action__consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.tb-chat-action__consent input { flex: 0 0 22px; width: 22px; height: 22px; margin: 12px 0 0; accent-color: var(--chat-ink); }
.tb-chat-action__ages { display: grid; gap: 12px; }
.tb-chat-message--assistant:has(.tb-chat-choices), .tb-chat-message--assistant:has(.tb-chat-action--custom) { padding-left: 0; }
.tb-chat-message--assistant:has(.tb-chat-choices) > .tb-chat-message__label, .tb-chat-message--assistant:has(.tb-chat-action--custom) > .tb-chat-message__label { padding-left: 38px; }
.tb-chat-choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 14px; }
.tb-chat-choices__choice { display: block; width: 100%; min-width: 0; min-height: 76px; padding: 14px; border: 1px solid #c6d2e3; border-radius: 12px; color: var(--chat-ink); background: var(--chat-surface); text-align: left; line-height: 1.4; }
.tb-chat-choices__choice:hover:not(:disabled) { border-color: var(--chat-ink); background: #edf2f9; }
.tb-chat-choices__title { display: block; font-size: 1rem; font-weight: 650; }
.tb-chat-choices__detail { display: block; margin-top: 5px; color: #52617a; font-size: .875rem; font-weight: 400; }
.tb-chat-choices > .tb-chat-intake__error { grid-column: 1 / -1; margin: 0; }
.tb-chat-action--custom { min-width: 0; padding: 16px 14px; border: 1px solid #ccd7e7; border-radius: 14px; background: var(--chat-surface); }
.tb-chat-action--custom > h4 { color: var(--chat-ink); font-family: var(--tb-font-heading); font-size: 1.0625rem; line-height: 1.4; }
.tb-chat-custom-inquiry { min-width: 0; gap: 0; }
.tb-chat-custom-inquiry .tb-chat-intake__step { margin-bottom: 12px; font-weight: 400; }
.tb-chat-custom-inquiry__step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.tb-chat-custom-inquiry__step > legend { width: 100%; padding: 0; margin: 0 0 14px; color: var(--chat-ink); font-family: var(--tb-font-heading); font-size: 1rem; font-weight: 650; }
.tb-chat-custom-inquiry__step > legend:focus { outline: none; }
.tb-chat-custom-inquiry__step .tb-chat-intake__field { min-width: 0; margin: 0; }
.tb-chat-custom-inquiry__step .tb-chat-intake__field > span { display: block; }
.tb-chat-custom-inquiry__step .tb-chat-action__ages { grid-column: 1 / -1; min-width: 0; }
.tb-chat-custom-inquiry__step fieldset.tb-chat-intake__field { padding: 0; border: 0; }
.tb-chat-custom-inquiry__step fieldset.tb-chat-intake__field > legend { padding: 0; margin-bottom: 7px; font-weight: 600; font-size: .9375rem; }
.tb-chat-custom-inquiry .tb-chat-custom-inquiry__choice, .tb-chat-custom-inquiry .tb-chat-custom-inquiry__radio { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 48px; padding: 10px; border: 1px solid #c6d2e3; border-radius: 9px; font-weight: 400; line-height: 1.4; cursor: pointer; }
.tb-chat-custom-inquiry .tb-chat-custom-inquiry__choice { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 4px 10px; }
.tb-chat-custom-inquiry__choice:has(input:checked), .tb-chat-custom-inquiry__radio:has(input:checked) { border-color: var(--chat-ink); background: #edf2f9; }
.tb-chat-custom-inquiry .tb-chat-custom-inquiry__choice input, .tb-chat-custom-inquiry .tb-chat-custom-inquiry__radio input { flex: 0 0 20px; width: 20px; min-height: 20px; height: 20px; margin: 0; padding: 0; accent-color: var(--chat-ink); }
.tb-chat-custom-inquiry__choice span, .tb-chat-custom-inquiry__radio span { min-width: 0; overflow-wrap: anywhere; }
.tb-chat-custom-inquiry .tb-chat-custom-inquiry__choice > input { grid-row: 1 / span 2; margin-top: 2px; }
.tb-chat-custom-inquiry .tb-chat-custom-inquiry__choice > span { overflow-wrap: normal; word-break: normal; }
.tb-chat-custom-inquiry__radio + .tb-chat-custom-inquiry__radio { margin-top: 8px; }
.tb-chat-custom-inquiry .tb-chat-custom-inquiry__hint { display: block; margin: 7px 0 0; color: #52617a; font-size: .8125rem; font-weight: 400; line-height: 1.5; }
.tb-chat-custom-inquiry .tb-chat-custom-inquiry__choice > .tb-chat-custom-inquiry__hint { grid-column: 2; margin-top: 0; }
.tb-chat-custom-inquiry .tb-chat-intake__nav { margin-top: 18px; }
.tb-chat-custom-inquiry .tb-chat-intake__nav button { margin-top: 0; }
.tb-chat-custom-inquiry .tb-chat-intake__nav .tb-chat-intake__back { border: 1px solid #b5c3d8; color: var(--chat-ink); background: var(--chat-surface); }
.tb-chat-custom-inquiry .tb-chat-intake__error { margin-bottom: 0; }
.tb-chat-action__review-actions { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; }
.tb-chat-action__review-actions button { flex: 1 1 200px; margin-top: 0; }
.tb-chat-action .tb-chat-action__secondary { color: var(--chat-ink); background: #edf2f9; }
@container travelbay-chat-log (min-width: 340px) {
  .tb-chat-custom-inquiry__step[data-inquiry-step="party"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-chat-custom-inquiry__step[data-inquiry-step="trip"] > .tb-chat-intake__field, .tb-chat-custom-inquiry__step [data-inquiry-field="notes"] { grid-column: 1 / -1; }
  .tb-chat-custom-inquiry .tb-chat-action__ages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container travelbay-chat-log (min-width: 520px) {
  .tb-chat-custom-inquiry__step[data-inquiry-step="trip"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container travelbay-chat-log (min-width: 430px) {
  .tb-chat-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tb-assistant--expanded { inset: 5dvh max(24px, calc((100vw - 900px) / 2)) auto; width: min(900px, calc(100vw - 48px)); height: 90dvh; max-height: 90dvh; }
.tb-assistant--expanded .tb-assistant__log { padding-inline: max(24px, calc((100% - 660px) / 2)); }
.tb-assistant--expanded .tb-assistant__composer { margin-inline: max(24px, calc((100% - 660px) / 2)); }
body.tb-assistant-modal { overflow: hidden; }
@media (max-height: 600px) and (min-width: 600px) {
  .tb-assistant, .tb-assistant--expanded { inset-block: 8px; height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); }
}
@media (max-width: 599px) {
  .tb-assistant, .tb-assistant--expanded { inset: var(--chat-viewport-top, 0) 0 auto; width: 100%; max-width: 100%; height: var(--chat-viewport-height, 100dvh); max-height: var(--chat-viewport-height, 100dvh); border-radius: 0; }
  .tb-assistant__header { padding-top: max(12px, env(safe-area-inset-top)); padding-inline: 16px 8px; }
  .tb-assistant__expand { display: none; }
  .tb-assistant__log, .tb-assistant--expanded .tb-assistant__log { padding: 16px 16px 8px; }
  .tb-assistant__composer, .tb-assistant--expanded .tb-assistant__composer { margin-inline: 12px; }
  .tb-assistant__footer { padding-inline: 16px; }
  .tb-assistant__welcome { padding-top: 4px; }
  .tb-assistant-launcher { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); min-height: 48px; padding: 10px 15px; }
  .tb-assistant__history { inset-block-start: 113px; }
}
@media (prefers-reduced-motion: no-preference) {
  .tb-assistant[open] { animation: tb-chat-open 180ms cubic-bezier(.16,1,.3,1); }
  @keyframes tb-chat-open { from { opacity: .7; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .tb-chat-message[data-delivery="accepted"], .tb-chat-message[data-delivery="streaming"], .tb-chat-message[data-fresh="true"] { animation: tb-chat-message-in 200ms cubic-bezier(.16,1,.3,1); }
  .tb-assistant[open] .tb-assistant__progress:not([hidden]) .tb-chat-status-wave i { animation: tb-chat-wave 1.3s ease-in-out infinite; animation-delay: var(--chat-wave-delay, 0ms); }
  .tb-chat-status-wave i:nth-child(2) { --chat-wave-delay: 100ms; }
  .tb-chat-status-wave i:nth-child(3) { --chat-wave-delay: 200ms; }
  .tb-chat-status-wave i:nth-child(4) { --chat-wave-delay: 300ms; }
  .tb-chat-status-wave i:nth-child(5) { --chat-wave-delay: 400ms; }
  .tb-chat-intake__option { transition: background-color 140ms ease-out, border-color 140ms ease-out; }
  @keyframes tb-chat-message-in { from { opacity: .6; transform: translateY(5px); } to { opacity: 1; transform: none; } }
  @keyframes tb-chat-wave { 0%,60%,100% { transform: scaleY(.6); opacity: .6; } 30% { transform: scaleY(1); opacity: 1; } }
}
@media (forced-colors: active) { .tb-assistant, .tb-assistant-launcher { border: 1px solid CanvasText; } .tb-assistant__brand { border: 1px solid currentColor; } }
