/* The launcher sits above the mobile booking bar (20); the dialog uses the native top layer. */
.fabio-chat-launcher {
  position: fixed;
  z-index: 40;
  right: 28px;
  bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 14px 21px;
  border: 1px solid var(--gold, #e8c783);
  border-radius: 30px;
  background: var(--ink, #19372e);
  color: var(--white, #fffefa);
  box-shadow: 0 6px 24px rgb(25 55 46 / 18%);
  font-family: var(--sans, sans-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.fabio-chat-launcher svg { width: 21px; height: 21px; color: var(--gold, #e8c783); }
.fabio-chat-dialog {
  position: fixed;
  inset: auto 24px 24px auto;
  width: min(420px, calc(100vw - 32px));
  max-width: none;
  height: min(660px, calc(100vh - 48px));
  height: min(660px, calc(100dvh - 48px));
  max-height: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line, #d8d9ce);
  border-radius: 20px 20px 8px 20px;
  background: var(--paper, #f6f2e9);
  color: var(--ink, #19372e);
  box-shadow: 0 24px 90px rgb(13 24 20 / 28%);
  font-family: var(--sans, sans-serif);
  font-size: 14px;
  line-height: 1.6;
}
.fabio-chat-dialog[open] { display: flex; flex-direction: column; }
.fabio-chat-dialog::backdrop { background: rgb(13 24 20 / 24%); }
.fabio-chat-dialog button, .fabio-chat-dialog textarea { font-family: inherit; }
.fabio-chat-dialog button { border-radius: 0; }
.fabio-chat-dialog :focus-visible { outline: 2px solid var(--clay, #a54b32); outline-offset: 3px; }
.fabio-chat-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 23px;
  background: var(--ink, #19372e);
  color: var(--white, #fffefa);
}
.fabio-chat-heading { min-width: 0; }
.fabio-chat-eyebrow { margin: 0 0 7px; color: var(--gold, #e8c783); font-size: 9px; font-weight: 600; letter-spacing: .13em; }
.fabio-chat-heading h2 { margin: 0; font-family: var(--serif, Georgia, serif); font-size: 31px; font-weight: 400; line-height: 1.15; letter-spacing: -.035em; }
.fabio-chat-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; border: 1px solid rgb(246 242 233 / 28%); background: transparent; color: var(--paper, #f6f2e9); }
.fabio-chat-close svg { width: 20px; height: 20px; }
.fabio-chat-close:focus-visible { outline-color: var(--gold, #e8c783); }
.fabio-chat-scroll { flex: 1 1 auto; min-height: 60px; overflow-y: auto; overscroll-behavior: contain; padding: 22px; scrollbar-width: thin; scrollbar-color: #aab5a6 transparent; }
.fabio-chat-introduction { margin-bottom: 15px; color: var(--muted, #5d695f); font-size: 13px; line-height: 1.75; }
.fabio-chat-introduction p { margin: 0; }
.fabio-chat-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.fabio-chat-choice { min-height: 44px; max-width: 100%; padding: 10px 13px; border: 1px solid #bdc7b8; background: transparent; color: var(--ink, #19372e); font-size: 12px; line-height: 1.5; text-align: left; overflow-wrap: anywhere; }
.fabio-chat-messages { display: flex; flex-direction: column; gap: 22px; margin-top: 24px; }
.fabio-chat-messages:empty { margin-top: 0; }
.fabio-chat-message { max-width: 92%; min-width: 0; }
.fabio-chat-message-user { align-self: flex-end; }
.fabio-chat-message-assistant { align-self: flex-start; }
.fabio-chat-author { display: block; margin-bottom: 5px; color: var(--muted, #5d695f); font-size: 10px; }
.fabio-chat-message-user .fabio-chat-author { text-align: right; }
.fabio-chat-bubble { margin: 0; padding: 12px 15px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.75; }
.fabio-chat-message-user .fabio-chat-bubble { border-radius: 12px 12px 2px 12px; background: var(--ink, #19372e); color: var(--white, #fffefa); }
.fabio-chat-message-assistant .fabio-chat-bubble { border: 1px solid #e1dfd4; border-radius: 2px 12px 12px 12px; background: var(--white, #fffefa); }
.fabio-chat-message.has-error .fabio-chat-bubble { border: 1px dashed var(--clay, #a54b32); background: var(--sand, #eae5d9); color: var(--ink, #19372e); }
.fabio-chat-message .fabio-chat-choices { margin-top: 11px; }
.fabio-chat-booking-action { display: block; width: 100%; min-height: 46px; padding: 12px 16px; margin-top: 11px; border: 1px solid var(--ink, #19372e); background: var(--ink, #19372e); color: var(--white, #fffefa); font-size: 12px; font-weight: 600; }
.fabio-chat-composer { flex-shrink: 0; padding: 0 22px 17px; border-top: 1px solid var(--line, #d8d9ce); background: var(--white, #fffefa); }
.fabio-chat-status { min-height: 24px; padding-top: 5px; margin: 0; color: var(--muted, #5d695f); font-size: 11px; line-height: 1.6; }
.fabio-chat-error { padding: 10px 12px; margin-bottom: 12px; border-left: 2px solid var(--clay, #a54b32); background: #f3eee4; font-size: 12px; line-height: 1.65; }
.fabio-chat-error p { margin: 0; }
.fabio-chat-error .fabio-chat-inline-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; }
.fabio-chat-input-label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 600; }
.fabio-chat-input-row { display: flex; align-items: flex-end; gap: 9px; }
.fabio-chat-input { display: block; width: 100%; min-width: 0; min-height: 62px; max-height: 120px; padding: 10px 12px; resize: vertical; border: 1px solid #bdc7b8; border-radius: 0; background: var(--white, #fffefa); color: var(--ink, #19372e); font-size: 16px; line-height: 1.5; }
.fabio-chat-input::placeholder { color: #788177; opacity: 1; }
.fabio-chat-input:read-only { background: #f3f3ec; }
.fabio-chat-send { display: flex; flex: 0 0 46px; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 12px; margin-bottom: 1px; border: 1px solid var(--ink, #19372e); background: var(--ink, #19372e); color: var(--white, #fffefa); }
.fabio-chat-send svg { width: 22px; height: 22px; }
.fabio-chat-dialog button:disabled { opacity: .48; cursor: not-allowed; }
.fabio-chat-send.is-loading svg { visibility: hidden; }
.fabio-chat-send.is-loading::after { position: absolute; width: 16px; height: 16px; content: ''; border: 2px solid rgb(255 254 250 / 35%); border-top-color: var(--white, #fffefa); border-radius: 50%; animation: fabio-chat-spin .8s linear infinite; }
.fabio-chat-input-hint { margin: 7px 0 0; color: var(--muted, #5d695f); font-size: 9px; line-height: 1.6; }
.fabio-chat-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 10px; margin-top: 5px; font-size: 10px; }
.fabio-chat-footer > span { color: var(--muted, #5d695f); }
.fabio-chat-inline-link { color: var(--ink, #19372e); text-decoration: underline; text-underline-offset: 3px; }
.fabio-chat-footer .fabio-chat-inline-link { display: inline-flex; align-items: center; min-height: 44px; }
@keyframes fabio-chat-spin { to { transform: rotate(360deg); } }
@media (hover: hover) {
  .fabio-chat-launcher:hover, .fabio-chat-booking-action:not(:disabled):hover, .fabio-chat-send:not(:disabled):hover { background: #2d5142; }
  .fabio-chat-close:hover { background: rgb(255 254 250 / 10%); }
  .fabio-chat-choice:not(:disabled):hover { background: #e8ecdf; border-color: var(--ink, #19372e); }
  .fabio-chat-inline-link:hover { color: var(--clay, #a54b32); }
}
@media (max-width: 600px) {
  .fabio-chat-launcher { right: 16px; bottom: calc(91px + env(safe-area-inset-bottom, 0px)); min-height: 48px; padding: 12px 17px; font-size: 12px; }
  .fabio-chat-dialog { inset: auto 8px max(8px, env(safe-area-inset-bottom, 0px)) 8px; width: auto; height: min(690px, calc(100vh - 24px - env(safe-area-inset-bottom, 0px))); height: min(690px, calc(100dvh - 24px - env(safe-area-inset-bottom, 0px))); border-radius: 17px; }
  .fabio-chat-header { padding: 17px 18px 18px; }
  .fabio-chat-heading h2 { font-size: 29px; }
  .fabio-chat-eyebrow { font-size: 8px; }
  .fabio-chat-scroll { padding: 18px; }
  .fabio-chat-composer { padding-inline: 18px; padding-bottom: 10px; }
  .fabio-chat-message { max-width: 96%; }
}
@media (max-height: 520px) {
  .fabio-chat-dialog { inset-block: 6px; height: calc(100dvh - 12px); }
  .fabio-chat-header { padding-block: 10px; }
  .fabio-chat-heading h2 { font-size: 25px; }
  .fabio-chat-eyebrow { margin-bottom: 3px; }
  .fabio-chat-composer { max-height: 65%; overflow-y: auto; padding-bottom: 5px; }
  .fabio-chat-input { min-height: 48px; }
  .fabio-chat-input-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fabio-chat-send.is-loading::after { animation: none; }
}
