/* The chat assistant (chat.js): a mascot button in the corner and a light chat window in the event's colours. */
.hfc { color-scheme: light; --c-ink: #071a3a; --c-plum: #123a6b; --c-sun: #f5b335; --c-coral: #f58a3c; --c-aqua: #45c6c0; --c-text: #14283c; --c-soft: #4b5d70; --c-line: #d8e0e8;
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 60;
  font: 400 15px/1.5 "Hanken Grotesk", "Segoe UI", system-ui, sans-serif; color: var(--c-text); }
.hfc *, .hfc *::before { box-sizing: border-box; }
.hfc h2, .hfc h3, .hfc p { letter-spacing: normal; text-transform: none; }
.hfc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hfc-fab { position: relative; display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 20px 0 8px; border: 0; border-radius: 99px; cursor: pointer;
  background: linear-gradient(135deg, var(--c-sun), var(--c-coral)); color: var(--c-ink); font: 800 16px "Montserrat", system-ui, sans-serif;
  box-shadow: 0 10px 28px rgba(7, 26, 58, .45), inset 0 0 0 2px rgba(255, 255, 255, .35); transition: transform .2s, box-shadow .2s; }
.hfc-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(7, 26, 58, .55), inset 0 0 0 2px rgba(255, 255, 255, .5); }
.hfc-fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hfc-fab img { width: 46px; height: 46px; object-fit: cover; object-position: 50% 8%; border-radius: 50%; background: var(--c-ink); border: 2px solid #fff; }
.hfc-dot { position: absolute; top: 6px; left: 44px; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.hfc.on .hfc-fab { display: none; }
.hfc.nudge .hfc-fab { animation: hfc-bounce 1.4s ease 2; }
.hfc.nudge .hfc-fab-t::after { content: " anything"; }
@keyframes hfc-bounce { 0%, 100% { transform: none; } 30% { transform: translateY(-8px); } 55% { transform: none; } 75% { transform: translateY(-3px); } }

.hfc-panel { position: absolute; right: 0; bottom: 0; width: min(390px, calc(100vw - 32px)); height: min(640px, calc(100vh - 32px)); height: min(640px, calc(100dvh - 32px));
  display: flex; flex-direction: column; background: #f6f8fb; border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(4, 14, 34, .55), 0 0 0 1px rgba(255, 255, 255, .12); animation: hfc-in .22s ease-out; }
.hfc-panel[hidden] { display: none; }
@keyframes hfc-in { from { transform: translateY(14px) scale(.98); } }
.hfc-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; color: #fff;
  background: linear-gradient(120deg, var(--c-ink), var(--c-plum) 70%, #1d5590); border-bottom: 3px solid var(--c-sun); }
.hfc-head img { width: 40px; height: 40px; border-radius: 12px; background: #fff; padding: 4px; object-fit: contain; }
.hfc-head div { flex: 1; min-width: 0; }
.hfc-head h2 { margin: 0; font: 800 16px/1.2 "Montserrat", system-ui, sans-serif; color: #fff; }
.hfc-head p { margin: 2px 0 0; font-size: 12.5px; color: #c4d3e4; }
.hfc-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.hfc-x:hover, .hfc-x:focus-visible { background: rgba(255, 255, 255, .25); outline: none; }

.hfc-log { position: relative; flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.hfc-msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; overflow-wrap: anywhere; }
.hfc-msg p { margin: 0; } .hfc-msg p + p, .hfc-msg ul + p, .hfc-msg p + ul { margin-top: 6px; }
.hfc-msg ul { margin: 0; padding-left: 18px; }
.hfc-msg a { color: #0b5f8a; font-weight: 600; }
.hfc-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--c-line); border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(7, 26, 58, .06); }
.hfc-msg.me { align-self: flex-end; background: linear-gradient(135deg, var(--c-plum), var(--c-ink)); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.hfc-msg.note { align-self: center; font-size: 13px; color: var(--c-soft); background: none; padding: 2px 8px; }
.hfc-msg.new { animation: hfc-pop .25s ease-out; }
@keyframes hfc-pop { from { transform: translateY(6px); } }
.hfc-msg.typing { display: flex; gap: 5px; padding: 14px 16px; }
.hfc-msg.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-aqua); animation: hfc-dot 1s infinite ease-in-out; }
.hfc-msg.typing i:nth-child(2) { animation-delay: .15s; } .hfc-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hfc-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-5px); opacity: 1; } }

.hfc-chips { display: flex; gap: 8px; padding: 4px 14px 10px; overflow-x: auto; scrollbar-width: none; }
.hfc-chips[hidden] { display: none; }
.hfc-chip { flex: none; padding: 7px 13px; border-radius: 99px; border: 1.5px solid var(--c-plum); background: #fff; color: var(--c-plum); font: 600 13.5px inherit; font-family: inherit; cursor: pointer; white-space: nowrap; }
.hfc-chip:hover, .hfc-chip:focus-visible { background: var(--c-plum); color: #fff; outline: none; }

.hfc-send { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; background: #fff; border-top: 1px solid var(--c-line); }
.hfc-send textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 11px 14px; border-radius: 22px; border: 1.5px solid #9fb1c3; font: inherit; font-size: 16px; color: var(--c-text); background: #f6f8fb; }
.hfc-send textarea:focus { outline: none; border-color: var(--c-plum); background: #fff; box-shadow: 0 0 0 3px rgba(18, 58, 107, .15); }
.hfc-send button { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; color: var(--c-ink); background: linear-gradient(135deg, var(--c-sun), var(--c-coral)); }
.hfc-send button:focus-visible { outline: 3px solid var(--c-plum); outline-offset: 2px; }

.hfc-foot { padding: 8px 12px 12px; background: #fff; }
.hfc-people { display: flex; gap: 6px; flex-wrap: wrap; }
.hfc-people a, .hfc-person { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font: 700 13px inherit; font-family: inherit; text-decoration: none; cursor: pointer; }
.hfc-wa { background: #1f9d55; color: #fff; border: 0; }
.hfc-call { background: #fff; color: var(--c-plum); border: 1.5px solid var(--c-plum); }
.hfc-person { background: #fff; color: var(--c-plum); border: 1.5px solid var(--c-line); margin-left: auto; }
.hfc-people a:focus-visible, .hfc-person:focus-visible { outline: 3px solid var(--c-sun); outline-offset: 2px; }
.hfc-foot p { margin: 8px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--c-soft); }
.hfc-foot p a { color: var(--c-soft); }

.hfc-form { align-self: stretch; background: #fff; border: 1px solid var(--c-line); border-top: 4px solid var(--c-aqua); border-radius: 16px; padding: 14px; display: grid; gap: 4px; }
.hfc-form h3 { margin: 0 0 6px; font: 800 15px "Montserrat", system-ui, sans-serif; color: var(--c-ink); }
.hfc-form label { font-size: 13px; font-weight: 600; color: var(--c-soft); margin-top: 4px; }
.hfc-form input, .hfc-form select, .hfc-form textarea { width: 100%; padding: 9px 11px; border-radius: 10px; border: 1.5px solid #9fb1c3; font: inherit; font-size: 16px; color: var(--c-text); background: #fff; }
.hfc-form input:focus, .hfc-form select:focus, .hfc-form textarea:focus { outline: none; border-color: var(--c-plum); box-shadow: 0 0 0 3px rgba(18, 58, 107, .15); }
.hfc-form .hfc-ok { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 12.5px; margin-top: 8px; }
.hfc-form .hfc-ok input { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.hfc-err { margin: 4px 0 0; color: #b42318; font-size: 13.5px; font-weight: 600; }
.hfc-err:empty { display: none; }
.hfc-go { margin-top: 8px; padding: 11px; border: 0; border-radius: 12px; cursor: pointer; font: 800 15px "Montserrat", system-ui, sans-serif; color: var(--c-ink); background: linear-gradient(135deg, var(--c-sun), var(--c-coral)); }
.hfc-go:disabled { opacity: .6; cursor: progress; }

@media (max-width: 520px) {
  .hfc.on { inset: 0; }
  .hfc-panel { position: fixed; inset: 0; width: 100%; height: 100%; border-radius: 0; }
  .hfc-head { padding-top: max(14px, env(safe-area-inset-top, 0px)); }
  .hfc-foot { padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
  .hfc-fab { height: 54px; padding-right: 16px; } .hfc-fab img { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { .hfc-fab, .hfc-panel, .hfc-msg.new, .hfc.nudge .hfc-fab, .hfc-msg.typing i { animation: none; transition: none; } }
@media print { .hfc { display: none; } }
