/* FlyNode live chat bubble. Everything is scoped to .fnlc so the site and panels are untouched. */
.fnlc { --fnlc-brand: #00704f; --fnlc-bg: #fff; --fnlc-bg-2: #f3f7f5; --fnlc-ink: #0b1f17; --fnlc-muted: #5b6b63; --fnlc-line: #e2e9e5;
  --fnlc-them: #f0f4f2; --fnlc-shadow: 0 24px 60px -20px rgba(4,38,26,.45), 0 2px 8px rgba(4,38,26,.08);
  position: fixed; bottom: 20px; z-index: 2147483000; font: 15px/1.45 "Geist", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fnlc-ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fnlc { --fnlc-bg: #0d1c17; --fnlc-bg-2: #11251e; --fnlc-ink: #e5f0eb; --fnlc-muted: #9bb2a9; --fnlc-line: #1e342b; --fnlc-them: #15302a; }
}
:root[data-theme="dark"] .fnlc { --fnlc-bg: #0d1c17; --fnlc-bg-2: #11251e; --fnlc-ink: #e5f0eb; --fnlc-muted: #9bb2a9; --fnlc-line: #1e342b; --fnlc-them: #15302a; }
.fnlc--right { right: 20px; } .fnlc--left { left: 20px; }
.fnlc *, .fnlc *::before, .fnlc *::after { box-sizing: border-box; }
.fnlc [hidden] { display: none !important; }

.fnlc__btn { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--fnlc-brand); color: #fff; box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--fnlc-brand) 75%, #000); transition: transform .18s ease; }
.fnlc__btn:hover { transform: translateY(-2px) scale(1.03); }
.fnlc__btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--fnlc-brand) 45%, transparent); outline-offset: 3px; }
.fnlc__btn svg { width: 28px; height: 28px; }
.fnlc--left .fnlc__btn { margin-right: auto; }
.fnlc__badge { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #e8402f; color: #fff;
  font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }

.fnlc__peek { position: absolute; bottom: 74px; width: 260px; text-align: left; border: 1px solid var(--fnlc-line); background: var(--fnlc-bg); color: var(--fnlc-ink);
  border-radius: 14px; padding: 12px 14px; box-shadow: var(--fnlc-shadow); cursor: pointer; font: inherit; font-size: 14px; animation: fnlc-in .25s ease; }
.fnlc--right .fnlc__peek { right: 0; } .fnlc--left .fnlc__peek { left: 0; }
.fnlc__peek b { display: block; font-size: 12px; color: var(--fnlc-muted); margin-bottom: 2px; }

.fnlc__panel { position: absolute; bottom: 76px; width: 370px; height: min(600px, calc(100vh - 110px)); display: flex; flex-direction: column;
  background: var(--fnlc-bg); border: 1px solid var(--fnlc-line); border-radius: 18px; overflow: hidden; box-shadow: var(--fnlc-shadow); animation: fnlc-in .2s ease; }
.fnlc--right .fnlc__panel { right: 0; } .fnlc--left .fnlc__panel { left: 0; }
@keyframes fnlc-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.fnlc__head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 16px 16px; color: #fff;
  background: linear-gradient(135deg, var(--fnlc-brand), color-mix(in srgb, var(--fnlc-brand) 62%, #021a11)); }
.fnlc__avatar { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 18px;
  background: rgba(255,255,255,.18); }
.fnlc__dot { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #9aa5a0; border: 2px solid color-mix(in srgb, var(--fnlc-brand) 80%, #000); }
.fnlc.is-online .fnlc__dot { background: #3fe08f; }
.fnlc__who { flex: 1; min-width: 0; display: grid; }
.fnlc__who strong { font-size: 16px; }
.fnlc__sub { font-size: 12.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fnlc__end { border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.fnlc__end:hover { background: rgba(255,255,255,.14); }
.fnlc__x { border: 0; background: transparent; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.fnlc__x:hover { background: rgba(255,255,255,.14); }
.fnlc__x svg { width: 20px; height: 20px; }

.fnlc__body { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 8px; background: var(--fnlc-bg-2); overscroll-behavior: contain; }
.fnlc__msg { max-width: 82%; display: flex; flex-direction: column; }
.fnlc__msg--me { align-self: flex-end; align-items: flex-end; }
.fnlc__msg--them { align-self: flex-start; }
.fnlc__text { padding: 9px 13px; border-radius: 16px; word-wrap: break-word; overflow-wrap: anywhere; white-space: normal; }
.fnlc__msg--me .fnlc__text { background: var(--fnlc-brand); color: #fff; border-bottom-right-radius: 5px; }
.fnlc__msg--them .fnlc__text { background: var(--fnlc-bg); border: 1px solid var(--fnlc-line); border-bottom-left-radius: 5px; }
.fnlc__msg--me .fnlc__text a { color: #fff; }
.fnlc__msg--them .fnlc__text a { color: var(--fnlc-brand); }
.fnlc__msg.is-sending { opacity: .6; }
.fnlc__name { font-size: 11.5px; color: var(--fnlc-muted); margin: 0 0 3px 4px; font-weight: 600; }
.fnlc__msg time { font-size: 11px; color: var(--fnlc-muted); margin: 3px 4px 0; }
.fnlc__sys { align-self: center; font-size: 12px; color: var(--fnlc-muted); background: var(--fnlc-bg); border: 1px solid var(--fnlc-line); padding: 4px 12px; border-radius: 99px; margin: 6px 0; text-align: center; }

.fnlc__typing { display: flex; gap: 4px; padding: 6px 18px 8px; background: var(--fnlc-bg-2); }
.fnlc__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--fnlc-muted); opacity: .4; animation: fnlc-dot 1.2s infinite; }
.fnlc__typing span:nth-child(2) { animation-delay: .15s; } .fnlc__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes fnlc-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.fnlc__foot { border-top: 1px solid var(--fnlc-line); background: var(--fnlc-bg); padding: 12px; }
.fnlc__foot input, .fnlc__foot textarea { width: 100%; font: inherit; font-size: 14.5px; color: var(--fnlc-ink); background: var(--fnlc-bg-2); border: 1px solid var(--fnlc-line);
  border-radius: 12px; padding: 10px 12px; resize: none; outline: none; min-height: 0; margin: 0; box-shadow: none; }
.fnlc__start textarea { min-height: 76px; }
.fnlc__foot input:focus, .fnlc__foot textarea:focus { border-color: var(--fnlc-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fnlc-brand) 18%, transparent); }
.fnlc__start { display: grid; gap: 8px; }
.fnlc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fnlc__hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.fnlc__note { margin: 0; font-size: 13px; color: var(--fnlc-muted); }
.fnlc__err { margin: 0; font-size: 13px; color: #d23a2a; grid-column: 1 / -1; }
.fnlc__compose { display: grid; gap: 6px; }
.fnlc__box { border: 1.5px solid var(--fnlc-line); border-radius: 18px; background: var(--fnlc-bg-2); transition: border-color .15s, box-shadow .15s, background .15s; }
.fnlc__box:focus-within { border-color: var(--fnlc-brand); background: var(--fnlc-bg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fnlc-brand) 14%, transparent); }
.fnlc__foot .fnlc__box textarea { display: block; border: 0; background: transparent; box-shadow: none; border-radius: 18px 18px 0 0; padding: 11px 14px 2px; min-height: 42px; max-height: 120px; line-height: 1.45; }
.fnlc__foot .fnlc__box textarea:focus { box-shadow: none; }
.fnlc__tools { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 6px 8px; }
.fnlc__emoji { display: flex; gap: 2px; }
.fnlc__emoji button { border: 0; background: transparent; font-size: 17px; line-height: 1; padding: 5px; border-radius: 8px; cursor: pointer; filter: grayscale(.2); }
.fnlc__emoji button:hover { background: color-mix(in srgb, var(--fnlc-brand) 10%, transparent); filter: none; }
.fnlc__compose .fnlc__send { width: 38px; height: 38px; border-radius: 50%; }
.fnlc__foot select { width: 100%; font: inherit; font-size: 14.5px; color: var(--fnlc-ink); background: var(--fnlc-bg-2); border: 1px solid var(--fnlc-line); border-radius: 12px; padding: 10px 12px; }
.fnlc__verify input[name="code"] { text-align: center; font-size: 24px; letter-spacing: .5em; font-weight: 700; }
.fnlc__link { border: 0; background: none; color: var(--fnlc-brand); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
.fnlc__rate { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; font-size: 13.5px; color: var(--fnlc-muted); }
.fnlc__rate button { border: 1px solid var(--fnlc-line); background: var(--fnlc-bg-2); border-radius: 99px; font-size: 18px; padding: 4px 12px; cursor: pointer; }
.fnlc__rate button:hover { border-color: var(--fnlc-brand); }
.fnlc__send { border: 0; cursor: pointer; background: var(--fnlc-brand); color: #fff; border-radius: 12px; width: 44px; height: 44px; display: grid; place-items: center; font: inherit; font-weight: 600; }
.fnlc__send svg { width: 20px; height: 20px; }
.fnlc__send:disabled { opacity: .6; cursor: default; }
.fnlc__send--wide { width: 100%; height: 44px; }
.fnlc__send:hover:not(:disabled) { filter: brightness(1.08); }
.fnlc__ended { text-align: center; }
.fnlc__ended p { margin: 0 0 8px; color: var(--fnlc-muted); font-size: 13.5px; }

@media (max-width: 480px) {
  .fnlc { bottom: 14px; } .fnlc--right { right: 14px; } .fnlc--left { left: 14px; }
  .fnlc.is-open { inset: 0; bottom: 0; }
  .fnlc.is-open .fnlc__panel { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .fnlc.is-open .fnlc__btn { display: none; }
  .fnlc__row { grid-template-columns: 1fr; }
  .fnlc__foot input, .fnlc__foot textarea { font-size: 16px; } /* no zoom on iOS */
}
@media print { .fnlc { display: none; } }
