/* The live chat on quicklanding.nl and previews (widget.js). Uses the site's colours where they exist (site.css), with
   fallbacks for pages that don't have them (previews). */
.qlc{--qlc-surface:var(--surface,#fff);--qlc-soft:var(--soft,#f3f4fa);--qlc-line:var(--line,#e6e8f0);--qlc-text:var(--text,#1d2338);
  --qlc-muted:var(--muted,#5d6682);--qlc-head:var(--heading,#0b0f1f);--qlc-brand:#5b5bf6;--qlc-grad:var(--grad,linear-gradient(135deg,#7b6bff 0%,#4f7bff 50%,#22d3ee 100%));
  --qlc-field:var(--field,#fff);
  position:fixed;right:20px;bottom:20px;z-index:2147483000;font:15px/1.45 "QL Jakarta","Plus Jakarta Sans",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--qlc-text)}
.qlc *{box-sizing:border-box}
.qlc-launch{display:flex;align-items:center;gap:10px;border:0;cursor:pointer;color:#fff;background:var(--qlc-grad);border-radius:999px;
  padding:12px 18px 12px 14px;font:inherit;font-weight:700;box-shadow:0 18px 40px -16px rgba(40,40,140,.55);transition:transform .2s,box-shadow .2s;position:relative}
.qlc-launch:hover{transform:translateY(-2px);box-shadow:0 22px 46px -16px rgba(40,40,140,.65)}
.qlc-launch:focus-visible,.qlc button:focus-visible{outline:3px solid #22d3ee;outline-offset:2px}
.qlc textarea:focus,.qlc input:focus{outline:none;border-color:var(--qlc-brand);box-shadow:0 0 0 3px rgba(91,91,246,.18)}
.qlc-launch svg{width:22px;height:22px;flex:none}
.qlc-dot{position:absolute;top:-3px;right:-3px;min-width:20px;height:20px;border-radius:999px;background:#ef4444;color:#fff;font-size:12px;
  display:grid;place-items:center;padding:0 5px;border:2px solid #fff}
.qlc.open .qlc-launch{display:none}
.qlc.qlc-nolaunch:not(.open):not(.has-chat){display:none}  /* (a preview: its own card opens the chat) */
.qlc-panel{display:none;flex-direction:column;width:380px;height:min(600px,calc(100vh - 40px));background:var(--qlc-surface);border:1px solid var(--qlc-line);
  border-radius:22px;box-shadow:0 40px 90px -30px rgba(20,25,60,.5);overflow:hidden}
.qlc.open .qlc-panel{display:flex}
.qlc-head{display:flex;align-items:center;gap:12px;padding:14px 14px 14px 16px;background:var(--qlc-grad);color:#fff}
.qlc-av{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.22);display:grid;place-items:center;font-weight:800;font-size:17px;flex:none}
.qlc-title{flex:1;min-width:0}
.qlc-title strong{display:block;font-size:16px;line-height:1.2}
.qlc-title small{display:block;font-size:12.5px;opacity:.9}
.qlc-x{border:0;background:rgba(255,255,255,.18);color:#fff;width:34px;height:34px;border-radius:50%;cursor:pointer;display:grid;place-items:center}
.qlc-x svg{width:18px;height:18px}
.qlc-body{flex:1;overflow-y:auto;padding:16px 14px 8px;display:flex;flex-direction:column;gap:8px;background:var(--qlc-soft)}
.qlc-msg{max-width:85%;padding:9px 13px;border-radius:16px;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere}
.qlc-msg a{color:inherit;text-decoration:underline}
.qlc-them{align-self:flex-start;background:var(--qlc-surface);border:1px solid var(--qlc-line);border-bottom-left-radius:6px;color:var(--qlc-text)}
.qlc-me{align-self:flex-end;background:var(--qlc-brand);color:#fff;border-bottom-right-radius:6px}
.qlc-sys{align-self:center;max-width:92%;background:transparent;color:var(--qlc-muted);font-size:13px;text-align:center;padding:2px 8px}
.qlc-who{display:block;font-size:11.5px;font-weight:700;color:var(--qlc-muted);margin:0 0 2px 4px}
.qlc-who.me{align-self:flex-end;margin:0 4px 2px 0}
.qlc-typing{align-self:flex-start;color:var(--qlc-muted);font-size:13px;padding:2px 6px}
.qlc-form{border-top:1px solid var(--qlc-line);padding:10px 12px 8px;background:var(--qlc-surface)}
.qlc-row{display:flex;gap:8px;align-items:flex-end}
.qlc-form textarea{flex:1;resize:none;border:1px solid var(--qlc-line);border-radius:14px;padding:10px 12px;font:inherit;max-height:120px;min-height:44px;
  background:var(--qlc-field);color:var(--qlc-text)}
.qlc-send{border:0;width:44px;height:44px;border-radius:14px;background:var(--qlc-brand);color:#fff;cursor:pointer;display:grid;place-items:center;flex:none}
.qlc-send svg{width:20px;height:20px}
.qlc-send:disabled{opacity:.5;cursor:default}
.qlc-meta{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-top:6px;font-size:12px;color:var(--qlc-muted)}
.qlc-meta>*{white-space:nowrap}
.qlc-meta a,.qlc-link{color:var(--qlc-muted);text-decoration:underline;background:none;border:0;padding:0;font:inherit;cursor:pointer}
.qlc-mail{display:flex;gap:6px;margin:6px 0 2px}
.qlc-mail input{flex:1;border:1px solid var(--qlc-line);border-radius:10px;padding:8px 10px;font:inherit;font-size:14px;background:var(--qlc-field);color:var(--qlc-text)}
.qlc-mail button{border:0;border-radius:10px;background:var(--qlc-brand);color:#fff;font:inherit;font-size:14px;font-weight:700;padding:0 12px;cursor:pointer}
.qlc-err{color:#dc2626;font-size:13px;margin-top:4px}
@media (max-width:520px){
  .qlc{right:12px;bottom:12px}
  .qlc.open{inset:0}
  .qlc-panel{width:100%;height:100%;border-radius:0;border:0}
  .qlc-launch span{display:none}
  .qlc-launch{padding:14px}
}
@media (prefers-reduced-motion:reduce){.qlc-launch{transition:none}.qlc-launch:hover{transform:none}}
