/* Website chat box (chat.js). Uses the site tokens from styles.css. */
.chat-fab { position: fixed; z-index: 40; right: 20px; bottom: calc(24px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 18px; background: var(--choco); color: #fff; font: 600 14px var(--sans); cursor: pointer;
  box-shadow: 0 10px 30px rgba(20, 20, 20, .25); }
.chat-fab:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.chat-panel { position: fixed; z-index: 45; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); width: min(380px, calc(100vw - 32px)); height: min(580px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: var(--card); border-radius: 22px; box-shadow: 0 24px 60px rgba(20, 20, 20, .25); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-panel header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--gold-bar); color: var(--ink); }
.chat-panel header b { display: block; font-family: var(--serif); font-size: 20px; }
.chat-panel header span { display: block; font-size: 12px; color: #3b2a1c; }
.chat-close { border: 0; background: none; font-size: 18px; width: 40px; height: 40px; margin: -6px -8px 0 0; cursor: pointer; color: var(--ink); }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--ivory); }
.chat-msg { max-width: 86%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.chat-msg.me { align-self: flex-end; background: var(--choco); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-link { display: inline-block; margin: 6px 0 2px; padding: 7px 12px; border-radius: 10px; background: var(--choco); color: #fff; font-weight: 600; font-size: 13px; }
.typing i { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--muted); animation: chat-dot 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 50% { transform: translateY(-4px); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px; background: var(--ivory); }
.chat-suggest:not(:empty) { padding-bottom: 10px; }
.chat-suggest .chip { font-size: 13px; padding: 7px 12px; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--card); }
.chat-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 16px; }
.chat-note { margin: 0; padding: 0 12px 10px; font-size: 11px; color: var(--muted); background: var(--card); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Phones: sit above the tab bar or the booking bar, and open full screen. */
@media (max-width: 820px) {
  .chat-fab { bottom: calc(96px + env(safe-area-inset-bottom)); right: 16px; padding: 11px 15px; }
  .chat-panel { inset: 0; width: auto; height: auto; border-radius: 0; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
}
