/* 8 Oct 2026, David: the chat bubble has a white ring (was a thin black one) so it stands out on the dark site */
/* Website chat (6 Oct 2026): a lime button bottom right opens a dark chat card. Replies come from David in Lark. */
.flc-btn{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:48;width:56px;height:56px;border:0;border-radius:50%;background:#CDFF71;color:#0A0A0A;display:grid;place-items:center;cursor:pointer;box-shadow:0 0 0 3px #FFFFFF,0 0 14px rgba(0,0,0,.35);transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.flc-btn:hover{transform:scale(1.06)}
.flc-btn svg{width:26px;height:26px;display:block}
.flc-btn .dot{position:absolute;top:6px;right:6px;width:12px;height:12px;border-radius:50%;background:#0A0A0A;box-shadow:0 0 0 2px #CDFF71;display:none}
.flc-btn.new .dot{display:block}
.flc{position:fixed;right:16px;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:48;width:min(370px,calc(100vw - 32px));height:min(540px,calc(100svh - 120px));display:flex;flex-direction:column;border-radius:20px;background:#141414;color:#fff;box-shadow:0 20px 60px rgba(0,0,0,.45),inset 0 0 0 1px rgba(255,255,255,.1);font-family:inherit;opacity:0;transform:translateY(12px) scale(.98);transform-origin:bottom right;pointer-events:none;visibility:hidden;transition:opacity .25s,transform .25s cubic-bezier(.2,.8,.2,1),visibility 0s .25s}
.flc.open{opacity:1;transform:none;pointer-events:auto;visibility:visible;transition:opacity .25s,transform .25s cubic-bezier(.2,.8,.2,1)}
.flc-head{display:flex;align-items:center;gap:12px;padding:16px 16px 14px;box-shadow:inset 0 -1px 0 rgba(255,255,255,.08)}
.flc-head svg.mark{width:30px;height:30px;fill:#CDFF71;flex:none}
.flc-head b{display:block;font-size:15px;letter-spacing:-.01em}
.flc-head small{display:block;font-size:12.5px;color:rgba(255,255,255,.6);margin-top:2px}
.flc-x{margin-left:auto;flex:none;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.08);color:#fff;display:grid;place-items:center;cursor:pointer}
.flc-x svg{width:18px;height:18px;display:block}
.flc-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:8px;overscroll-behavior:contain}
.flc-m{max-width:82%;padding:10px 13px;border-radius:16px;font-size:14.5px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.flc-m.us{align-self:flex-start;background:rgba(255,255,255,.08);border-bottom-left-radius:6px}
.flc-m.visitor{align-self:flex-end;background:#CDFF71;color:#0A0A0A;border-bottom-right-radius:6px}
.flc-m.note{align-self:center;max-width:100%;background:none;color:rgba(255,255,255,.55);font-size:12.5px;text-align:center;padding:4px 8px}
.flc-form{display:flex;gap:8px;padding:12px;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.flc input,.flc textarea{font:inherit;font-size:16px;color:#fff;background:rgba(255,255,255,.06);border:0;border-radius:12px;padding:11px 13px;outline:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}
.flc textarea{flex:1;resize:none;height:46px;max-height:120px}
.flc input:focus,.flc textarea:focus{box-shadow:inset 0 0 0 2px #CDFF71}
.flc-send{flex:none;border:0;border-radius:12px;background:#CDFF71;color:#0A0A0A;font:inherit;font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.02em;padding:0 16px;cursor:pointer}
.flc-send:disabled{opacity:.5;cursor:default}
@media (max-width:520px){.flc{right:12px;left:12px;width:auto;bottom:calc(80px + env(safe-area-inset-bottom,0px));height:min(560px,calc(100svh - 150px))}}
@media (prefers-reduced-motion:reduce){.flc,.flc-btn{transition:none}}
/* start step: name, work email and the optional tips box come before the first message */
.flc-start{display:grid;gap:8px;padding:12px 16px 14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.flc-start p{margin:0 0 2px;font-size:13px;color:rgba(255,255,255,.75)}
.flc-start small{font-size:11.5px;color:rgba(255,255,255,.5)}
.flc-start small a{color:inherit}
.flc-start input[aria-invalid="true"]{box-shadow:inset 0 0 0 2px #FF8A8A}
.flc-tick{display:flex;gap:10px;align-items:flex-start;font-size:12.5px;line-height:1.4;color:rgba(255,255,255,.75);cursor:pointer}
.flc-tick input{appearance:none;-webkit-appearance:none;flex:none;width:20px;height:20px;margin:0;padding:0;border-radius:6px;cursor:pointer}
.flc-tick input:checked{background:#CDFF71 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230A0A0A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;box-shadow:none}
.flc-go{height:44px}
.flc .flc-form{display:none}
.flc.ready .flc-form{display:flex}
.flc.ready .flc-start{display:none}


/* Button animation (7 Oct 2026): opening swaps the bubble for an X with a turn, and a second bubble
   pops up behind it, so it reads as "chat open". A chat already going gets a slow lime pulse. */
.flc-btn svg{transition:transform .35s cubic-bezier(.2,.8,.2,1),opacity .2s}
.flc-btn .x{position:absolute;width:22px;height:22px;opacity:0;transform:rotate(-90deg) scale(.5)}
.flc-btn[aria-expanded="true"] svg:not(.x){opacity:0;transform:rotate(90deg) scale(.5)}
.flc-btn[aria-expanded="true"] .x{opacity:1;transform:none}
.flc-back{position:fixed;z-index:47;right:46px;bottom:calc(46px + env(safe-area-inset-bottom,0px));width:34px;height:34px;border-radius:50% 50% 50% 8px;background:#CDFF71;box-shadow:0 0 0 2.5px #FFFFFF,0 0 12px rgba(0,0,0,.3);opacity:0;transform:translate(14px,14px) scale(.3);transition:transform .4s cubic-bezier(.2,.8,.2,1),opacity .25s;pointer-events:none}
.flc-back.on{opacity:1;transform:none}
.flc-btn.live:not([aria-expanded="true"])::after{content:"";position:absolute;inset:-7px;border-radius:50%;border:2px solid #CDFF71;animation:flc-pulse 2.4s ease-out infinite;pointer-events:none}
@keyframes flc-pulse{0%{opacity:.7;transform:scale(.92)}80%,100%{opacity:0;transform:scale(1.25)}}
@media (prefers-reduced-motion:reduce){.flc-btn svg,.flc-back{transition:none}.flc-btn.live::after{animation:none}}

/* Ticks, "Seen" and typing dots (7 Oct 2026) */
.flc-m.visitor{position:relative;padding-right:34px}
.flc-m .tk{position:absolute;right:9px;bottom:7px;width:16px;height:11px;line-height:0}
.flc-m .tk svg{width:16px;height:11px;fill:none;stroke:rgba(10,10,10,.45);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.flc-m .tk .t2{opacity:0;transition:opacity .3s}
.flc-m.visitor.seen .tk svg{stroke:#0A0A0A}
.flc-m.visitor.seen .tk .t2{opacity:1}
.flc-m.visitor.seen-last{margin-bottom:14px}
.flc-m.visitor.seen-last::after{content:"Seen";position:absolute;right:2px;bottom:-17px;font-size:11px;color:rgba(255,255,255,.5)}
.flc-typing{display:flex;gap:4px;align-items:center;padding:12px 14px}
.flc-typing i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.6);animation:flc-dot 1.2s infinite ease-in-out}
.flc-typing i:nth-child(2){animation-delay:.15s}.flc-typing i:nth-child(3){animation-delay:.3s}
@keyframes flc-dot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}
@media (prefers-reduced-motion:reduce){.flc-typing i{animation:none}}
