/* Support's chat panel (0.48.0): the round button on every page, and the
   panel docked to the right it opens (the whole screen on a phone). Its own
   classes (mfc-), the site's colours where the page has them. No AI: every
   answer is typed by a person. */
.mfc { --o: var(--orange, #FF5A1F); --ink: var(--black, #111); --i2: var(--ink-2, #5B5B6E); --i3: var(--ink-3, #8A8A9C); --ln: var(--line, #ECE7DE);
  --pg: var(--page, #FBFAF6); --pe: var(--peach-wash, #FFEDE3); --li: var(--lilac-wash, #E9E9FF);
  --fh: var(--h, "Gotham Rounded", system-ui, sans-serif); --ft: var(--t, "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif);
  font: 400 15px/1.45 var(--ft); color: var(--ink); -webkit-font-smoothing: antialiased; }
.mfc *, .mfc *::before, .mfc *::after { box-sizing: border-box; }
/* Zero weight (:where), so each part's own colour wins over these. */
:where(.mfc) button, :where(.mfc) input, :where(.mfc) textarea { font: inherit; color: inherit; }
:where(.mfc) button { cursor: pointer; }

/* The button: bottom right, above the app's phone tab bar when there is one. */
.mfc-launch { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 900; width: 56px; height: 56px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--o); color: #fff; box-shadow: 0 10px 28px rgba(22,37,74,.18); transition: background-color .15s; }
.mfc-launch:hover { background: var(--orange-dark, #E84A12); }
.mfc-launch:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.mfc-launch svg { width: 26px; height: 26px; }
.mfc.on .mfc-launch { visibility: hidden; }
@media (max-width: 899px) { body:has(.app.has-tabs) .mfc-launch { bottom: calc(80px + env(safe-area-inset-bottom)); } }
@media (max-width: 640px) { .mfc-launch { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); } }

/* The panel: docked right, one thread and one box. */
.mfc-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 901; width: 400px; max-width: 100vw; display: none; flex-direction: column;
  background: var(--card, #fff); border-left: 1px solid var(--ln); box-shadow: -18px 0 50px rgba(22,37,74,.10); }
.mfc.on .mfc-panel { display: flex; }
@media (max-width: 640px) { .mfc-panel { width: 100vw; height: 100dvh; bottom: auto; border-left: 0; box-shadow: none; } html.mfc-lock, html.mfc-lock body { overflow: hidden; } }

.mfc-head { flex: 0 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; height: 76px; padding: 0 12px 0 24px; border-bottom: 1px solid var(--ln); background: var(--pg); }
.mfc .mfc-title { margin: 0; font: 700 20px/1.1 var(--fh); letter-spacing: -0.03em; }
.mfc-who { display: flex; align-items: center; gap: 7px; height: 20px; margin-top: 4px; font-size: 13px; color: var(--i2); white-space: nowrap; overflow: hidden; }
.mfc-who span:last-child { overflow: hidden; text-overflow: ellipsis; }
.mfc-light { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--i3); }
.mfc-who.live .mfc-light { background: #1F9D55; }
.mfc-x { width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; display: grid; place-items: center; color: var(--ink); transition: background-color .15s; }
.mfc-x:hover { background: var(--ln); }
.mfc-x svg { width: 20px; height: 20px; }

.mfc-bar { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 0 24px; border-bottom: 1px solid var(--ln); font-size: 13px; color: var(--i2); }
.mfc-bar[hidden] { display: none; }
.mfc-link { border: 0; padding: 0; background: none; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--o); text-underline-offset: 3px; }
.mfc-link:hover { color: var(--o); }

.mfc-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 20px 24px 8px; }
.mfc .mfc-intro h3 { margin: 0; font: 700 24px/1.1 var(--fh); letter-spacing: -0.035em; }
.mfc .mfc-intro p { margin: 10px 0 0; color: var(--i2); font-size: 15.5px; }

.mfc-msg { display: flex; flex-direction: column; align-items: flex-start; margin: 0 0 10px; }
.mfc-msg.me { align-items: flex-end; }
.mfc-name { margin: 6px 0 4px 2px; font-size: 12.5px; font-weight: 700; color: var(--i2); }
.mfc-bub { max-width: 85%; padding: 10px 14px; border-radius: 16px; background: var(--li); white-space: pre-wrap; overflow-wrap: anywhere; }
.mfc-msg.me .mfc-bub { background: var(--pe); }
.mfc-file { display: inline-flex; align-items: center; gap: 8px; max-width: 85%; height: 44px; padding: 0 14px; border: 1px solid var(--ln); border-radius: 12px; background: var(--card, #fff); color: var(--ink); text-decoration: none; font-weight: 600; }
.mfc-file:hover { border-color: var(--o); }
.mfc-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mfc-file small { flex: 0 0 auto; color: var(--i3); font-weight: 400; }
.mfc-file svg { flex: 0 0 16px; width: 16px; height: 16px; }
.mfc-at { margin: 4px 2px 0; font-size: 11.5px; color: var(--i3); }
/* Someone on staff typing (0.62.0): their bubble, the height of a one-line message, three dots that hop in turn
   (transform only, so nothing around them moves). Reduced motion: they pulse in place. */
.mfc-dots { display: inline-flex; align-items: center; gap: 5px; height: 42px; padding: 0 16px; border-radius: 16px; background: var(--li); }
.mfc-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--i2); opacity: .45; animation: mfc-hop 1.2s ease-in-out infinite; }
.mfc-dots i:nth-child(2) { animation-delay: .15s; }
.mfc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes mfc-hop { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes mfc-pulse { 0%, 60%, 100% { opacity: .45; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mfc-dots i { animation-name: mfc-pulse; } }
.mfc-note { margin: 6px 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--pg); color: var(--i2); font-size: 13.5px; }

.mfc-list { margin: 0; padding: 0; list-style: none; }
.mfc-list li + li { border-top: 1px solid var(--ln); }
.mfc-row { width: 100%; display: grid; gap: 4px; padding: 14px 0; border: 0; background: none; text-align: left; }
.mfc-row b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mfc-row small { color: var(--i3); font-size: 12.5px; }
.mfc-row:hover b { color: var(--o); }

/* The box: who they are (a visitor's first message), then what they say. */
.mfc-foot { flex: 0 0 auto; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ln); background: var(--card, #fff); }
.mfc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.mfc-pair[hidden] { display: none; }
.mfc-in { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--ln); border-radius: 12px; background: var(--card, #fff); font-size: 15px; }
.mfc-in:focus, .mfc-text:focus { outline: none; border-color: var(--o); }
.mfc-row2 { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.mfc-row2:has(.mfc-clip[hidden]) { grid-template-columns: minmax(0, 1fr) auto; }
.mfc-text { display: block; width: 100%; min-height: 44px; max-height: 160px; padding: 11px 14px; border: 1px solid var(--ln); border-radius: 12px; background: var(--card, #fff); font-size: 15px; line-height: 1.4; resize: none; }
.mfc-clip, .mfc-send { height: 44px; border: 0; border-radius: 12px; display: grid; place-items: center; transition: background-color .15s, color .15s; }
.mfc-clip { width: 44px; background: transparent; color: var(--i2); }
.mfc-clip:hover { background: var(--ln); color: var(--ink); }
.mfc-clip[hidden] { display: none; }
.mfc-clip svg { width: 20px; height: 20px; }
.mfc-send { padding: 0 18px; background: var(--o); color: #fff; font-weight: 700; }
.mfc-send:hover { background: var(--orange-dark, #E84A12); }
.mfc-send[disabled] { background: var(--ln); color: var(--i3); cursor: default; }
.mfc-err { min-height: 0; margin: 8px 2px 0; font-size: 13px; color: var(--err, #C0352B); }
.mfc-err:empty { display: none; }
.mfc-ts { margin-top: 8px; }
.mfc-ts:empty { display: none; }
.mfc-small { margin: 8px 2px 0; font-size: 12px; color: var(--i3); }
