/* TECH VEDA Concierge — WhatsApp-style chat. Scoped under #tvc-root */
#tvc-root{--navy:#15153a;--wa-head:#008069;--wa-green:#25D366;--out:#d9fdd3;--in:#ffffff;
 --bg:#efeae2;--tick:#53bdeb;--meta:#667781;--txt:#111b21;--line:#e4e6ec;
 font-family:'Inter',system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
#tvc-root *{box-sizing:border-box}

/* launcher */
.tvc-launch{position:fixed;right:24px;bottom:24px;z-index:99998;display:flex;align-items:center;gap:11px;
 background:linear-gradient(135deg,#27e070,#0d9f5a);color:#fff;border:0;border-radius:999px;padding:8px 20px 8px 8px;cursor:pointer;
 box-shadow:0 14px 34px rgba(0,128,105,.40);font-weight:600;font-size:14.5px;transition:transform .15s;
 animation:tvclaunchpulse 2.6s ease-out infinite}
@keyframes tvclaunchpulse{
 0%{box-shadow:0 14px 34px rgba(0,128,105,.40),0 0 0 0 rgba(37,211,102,.55)}
 70%{box-shadow:0 14px 34px rgba(0,128,105,.40),0 0 0 18px rgba(37,211,102,0)}
 100%{box-shadow:0 14px 34px rgba(0,128,105,.40),0 0 0 0 rgba(37,211,102,0)}}
.tvc-launch:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(0,128,105,.5);animation:none}
@media(prefers-reduced-motion:reduce){.tvc-launch{animation:none}}
.tvc-launch .ic{position:relative;width:36px;height:36px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 2px 6px rgba(0,0,0,.18)}
.tvc-launch .ic svg{width:20px;height:20px;display:block}
.tvc-launch .ic::after{content:"";position:absolute;right:-1px;bottom:-1px;width:11px;height:11px;border-radius:50%;background:#37e070;box-shadow:0 0 0 2px #fff}
.tvc-launch .lab{white-space:nowrap;letter-spacing:.1px}
@media(max-width:560px){.tvc-launch .lab{display:none}.tvc-launch{padding:8px;bottom:18px;right:16px}}

/* panel */
.tvc-panel{position:fixed;right:24px;bottom:24px;z-index:99999;width:380px;max-width:calc(100vw - 32px);
 height:580px;max-height:calc(100vh - 120px);background:var(--bg);border-radius:18px;overflow:hidden;
 box-shadow:0 30px 80px rgba(11,20,26,.38),0 2px 8px rgba(11,20,26,.18);display:none;flex-direction:column;
 border:1px solid rgba(255,255,255,.6)}
.tvc-panel.open{display:flex;animation:tvcpop .22s cubic-bezier(.2,.8,.3,1)}
@keyframes tvcpop{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}

/* header */
.tvc-head{background:linear-gradient(135deg,#00937a 0%,#008069 55%,#00674f 100%);color:#fff;padding:12px 14px;display:flex;align-items:center;gap:11px;flex-shrink:0;box-shadow:0 2px 10px rgba(0,103,79,.25);position:relative;z-index:1}
.tvc-head .av{width:40px;height:40px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 3px 8px rgba(0,0,0,.18)}
.tvc-head .av svg{width:22px;height:22px;display:block}
.tvc-hmeta{min-width:0}
.tvc-head .t{font-weight:700;font-size:15.5px;line-height:1.25;letter-spacing:.1px}
.tvc-head .s{font-size:12px;color:#d6efe8;min-height:15px;display:flex;align-items:center}
.tvc-head .s .dot{width:7px;height:7px;border-radius:50%;background:#46e08a;margin-right:6px;box-shadow:0 0 0 2px rgba(255,255,255,.18)}
.tvc-head .s.typing{color:#c9f3d4;font-style:italic}
.tvc-head .s.typing .dot{display:none}
.tvc-head .x{margin-left:auto;background:rgba(255,255,255,.12);border:0;color:#eafaf5;font-size:20px;cursor:pointer;line-height:1;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background .15s}
.tvc-head .x:hover{background:rgba(255,255,255,.24)}

/* body */
.tvc-body{flex:1;overflow-y:auto;padding:14px 12px 6px;display:flex;flex-direction:column;gap:4px;
 background-color:var(--bg);
 background-image:radial-gradient(rgba(0,0,0,.018) 1px,transparent 1px);background-size:22px 22px}
.tvc-row{display:flex;width:100%}
.tvc-row.me{justify-content:flex-end}
.tvc-msg{position:relative;max-width:82%;padding:6px 9px 5px;border-radius:9px;font-size:14.2px;line-height:1.42;
 color:var(--txt);box-shadow:0 1px .5px rgba(11,20,26,.13);white-space:pre-wrap;word-wrap:break-word;margin-top:5px}
.tvc-msg.bot{background:var(--in);border-top-left-radius:2px}
.tvc-msg.me{background:var(--out);border-top-right-radius:2px}
.tvc-msg.bot::before,.tvc-msg.me::before{content:"";position:absolute;top:0;width:9px;height:11px}
.tvc-msg.bot::before{left:-7px;background:radial-gradient(circle at bottom right,transparent 11px,var(--in) 0)}
.tvc-msg.me::before{right:-7px;background:radial-gradient(circle at bottom left,transparent 11px,var(--out) 0)}
.tvc-msg a{color:#027eb5;text-decoration:underline}
.tvc-msg .meta{float:right;margin:6px 0 -2px 10px;font-size:10.5px;color:var(--meta);line-height:1;white-space:nowrap}
.tvc-msg .meta .tick{color:var(--tick);font-weight:700;letter-spacing:-2px;margin-left:2px}

/* typing bubble */
.tvc-typing{display:inline-flex;gap:4px;align-items:center;background:var(--in);border-radius:9px;border-top-left-radius:2px;
 padding:11px 12px;margin-top:5px;box-shadow:0 1px .5px rgba(11,20,26,.13);align-self:flex-start}
.tvc-typing span{width:7px;height:7px;border-radius:50%;background:#9aa6ad;animation:tvcblink 1.3s infinite both}
.tvc-typing span:nth-child(2){animation-delay:.2s}
.tvc-typing span:nth-child(3){animation-delay:.4s}
@keyframes tvcblink{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}

/* pre-chat contact form */
.tvc-pc{padding:16px 14px 6px;display:flex;flex-direction:column;gap:10px}
.tvc-pc-intro{margin:2px 2px 4px;font-size:14.5px;line-height:1.45;color:var(--txt)}
.tvc-pc-f{border:1px solid #d4d8dd;border-radius:10px;padding:12px 13px;font-size:14.5px;outline:none;background:#fff;color:var(--txt)}
.tvc-pc-f:focus{border-color:var(--wa-head);box-shadow:0 0 0 3px rgba(0,128,105,.12)}
.tvc-pc-err{min-height:16px;color:#b32d2e;font-size:12.5px;margin-top:-4px}
.tvc-pc-go{margin-top:2px;border:0;border-radius:10px;background:var(--wa-head);color:#fff;font-weight:600;font-size:15px;padding:12px 14px;cursor:pointer}
.tvc-pc-go:hover{filter:brightness(.97)}
.tvc-pc-note{margin:4px 2px 0;font-size:11px;color:var(--meta);line-height:1.4}

/* quick actions */
.tvc-actions{display:flex;flex-wrap:wrap;gap:7px;padding:6px 12px 4px;background:var(--bg)}
.tvc-actions a{font-size:12.5px;font-weight:600;text-decoration:none;border:1px solid #cfe9e2;background:#fff;color:var(--wa-head);border-radius:999px;padding:7px 13px}
.tvc-actions a.wa{background:var(--wa-green);border-color:var(--wa-green);color:#fff}
.tvc-actions a:hover{filter:brightness(.97)}

/* turnstile (only renders when configured) — kept compact + centered so it doesn't dominate */
.tvc-cf{background:var(--bg);padding:6px 12px 2px;display:flex;justify-content:center}
.tvc-cf:empty{display:none}
.tvc-cf iframe{border-radius:8px}
/* footer input */
.tvc-foot{display:flex;gap:8px;align-items:center;padding:9px 11px;background:#f0f2f5;flex-shrink:0;border-top:1px solid #e6e8ec}
.tvc-foot input{flex:1;border:1px solid #e2e5ea;border-radius:22px;padding:11px 15px;font-size:14px;outline:none;background:#fff;transition:border-color .15s,box-shadow .15s}
.tvc-foot input:focus{border-color:var(--wa-head);box-shadow:0 0 0 3px rgba(0,128,105,.12)}
.tvc-foot button{width:44px;height:44px;flex-shrink:0;border:0;border-radius:50%;background:linear-gradient(135deg,#00937a,#00674f);color:#fff;font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 10px rgba(0,103,79,.3);transition:transform .12s}
.tvc-foot button:hover:not(:disabled){transform:scale(1.06)}
.tvc-foot button:disabled{opacity:.45;cursor:default;box-shadow:none}
.tvc-disc{font-size:10px;color:var(--meta);text-align:center;padding:4px 8px 7px;background:#f0f2f5}
@media(max-width:560px){.tvc-panel{right:8px;left:8px;width:auto;bottom:16px;height:calc(100vh - 80px)}}
