/* css/help-chat.css — the floating help chat (js/help/helpChat.js).
   Bottom right on every page; lifted above bottom bars by --fthc-lift. */
.fthc {
  --fthc-brand: #ff5a5f; --fthc-brand-dark: #e14e50; --fthc-ink: #2c2c2e; --fthc-muted: #6b6b70;
  --fthc-line: #ececec; --fthc-bg: #ffffff; --fthc-soft: #fff1f1; --fthc-lift: 0px;
  position: fixed; right: 16px; bottom: calc(16px + var(--fthc-lift) + env(safe-area-inset-bottom, 0px));
  z-index: 1990; font-family: 'Quicksand', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  transition: bottom .2s ease;
}
.fthc *, .fthc *::before, .fthc *::after { box-sizing: border-box; }
.fthc-btn {
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  display: grid; place-items: center; background: var(--fthc-brand); color: #fff;
  box-shadow: 0 8px 22px rgba(255, 90, 95, .35), 0 2px 6px rgba(0, 0, 0, .12);
  transition: transform .15s ease, background .15s ease;
}
.fthc-btn:hover { background: var(--fthc-brand-dark); transform: translateY(-1px); }
.fthc-btn:focus-visible { outline: 3px solid rgba(255, 90, 95, .4); outline-offset: 3px; }
.fthc.is-open .fthc-btn { display: none; }
/* Open: above bottom bars such as the tour page's "Check availability" (z-index 2001),
   still below full-screen pop-ups (10000). */
.fthc.is-open { z-index: 2002; }

.fthc-panel {
  position: absolute; right: 0; bottom: 0; width: 370px; height: min(580px, calc(100vh - 120px - var(--fthc-lift)));
  display: flex; flex-direction: column; background: var(--fthc-bg); color: var(--fthc-ink);
  border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .22), 0 2px 8px rgba(0, 0, 0, .08);
}
.fthc-panel[hidden] { display: none; }
.fthc-head { display: flex; align-items: center; gap: 6px; padding: 14px 10px 12px 16px; background: var(--fthc-brand); color: #fff; }
.fthc-head > div { flex: 1 1 auto; min-width: 0; }
.fthc-head strong { display: block; font-size: 1rem; }
.fthc-head small { display: block; font-size: .76rem; opacity: .92; }
.fthc-icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.fthc-icon:hover, .fthc-icon:focus-visible { background: rgba(255, 255, 255, .2); outline: none; }

.fthc-log { flex: 1 1 auto; overflow-y: auto; padding: 14px 12px 6px; background: #f7f7f8; overscroll-behavior: contain; }
.fthc-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; margin: 0 0 8px; font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }
.fthc-msg--bot { background: #fff; border: 1px solid var(--fthc-line); border-bottom-left-radius: 4px; }
.fthc-msg--me { margin-left: auto; background: var(--fthc-brand); color: #fff; border-bottom-right-radius: 4px; }
.fthc-msg a { color: var(--fthc-brand-dark); font-weight: 700; }
.fthc-msg strong { font-weight: 700; }
.fthc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.fthc-chip {
  font: inherit; font-size: .82rem; font-weight: 700; line-height: 1.3; text-align: left; text-decoration: none;
  padding: 7px 11px; border-radius: 999px; cursor: pointer; background: #fff; color: var(--fthc-brand-dark);
  border: 1px solid rgba(255, 90, 95, .35);
}
.fthc-chip:hover, .fthc-chip:focus-visible { background: var(--fthc-soft); outline: none; }
.fthc-chip--primary { background: var(--fthc-brand); color: #fff; border-color: var(--fthc-brand); }
.fthc-chip--primary:hover { background: var(--fthc-brand-dark); }
.fthc-chip--mail { background: var(--fthc-ink); color: #fff; border-color: var(--fthc-ink); }
.fthc-chip--mail:hover { background: #000; color: #fff; }

.fthc-ask { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--fthc-line); background: #fff; }
.fthc-input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #d7d7db; border-radius: 12px; color: var(--fthc-ink); background: #fff; }
.fthc-input:focus { outline: none; border-color: var(--fthc-brand); box-shadow: 0 0 0 3px rgba(255, 90, 95, .15); }
.fthc-send { flex: 0 0 auto; width: 44px; border: 0; border-radius: 12px; background: var(--fthc-brand); color: #fff; cursor: pointer; display: grid; place-items: center; }
.fthc-send:hover { background: var(--fthc-brand-dark); }

/* Phones: the chat opens as a sheet across the bottom of the screen. */
@media (max-width: 640px) {
  .fthc { right: 14px; bottom: calc(14px + var(--fthc-lift) + env(safe-area-inset-bottom, 0px)); }
  .fthc-btn { width: 52px; height: 52px; }
  .fthc.is-open { left: 0; right: 0; bottom: 0; }
  .fthc-panel { position: fixed; left: 0; right: 0; bottom: 0; width: auto; height: 82vh; height: 82dvh; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
}
@media (prefers-reduced-motion: reduce) { .fthc, .fthc-btn { transition: none; } }
@media print { .fthc { display: none !important; } }
