/* ============================================================
   VOLT CONCIERGE — launchable chatbot widget (DEMO / PROTOTYPE)
   Fully client-side. No network, no model, no data leaves the page.
   Instrument-style chrome to match the VOLT site.
   ============================================================ */

.vc-root{ --vc-w:384px; font-family:var(--font-sans); }
.vc-root *{ box-sizing:border-box; }

/* ---------- launcher ---------- */
.vc-launcher{
  position:fixed; right:22px; bottom:22px; z-index:99990;
  display:flex; align-items:center; gap:0;
  background:var(--ink); color:var(--volt);
  border:1.5px solid var(--ink); border-radius:999px;
  height:56px; padding:0 6px 0 6px; cursor:pointer;
  box-shadow:0 8px 30px rgba(1,2,4,0.28);
  transition:transform var(--dur-fast,140ms) var(--ease-spring,cubic-bezier(.34,1.56,.64,1)), gap var(--dur-base,220ms) ease, padding var(--dur-base,220ms) ease;
}
.vc-launcher:hover{ transform:translateY(-2px); }
.vc-launcher .vc-l-ico{ width:44px; height:44px; border-radius:999px; background:var(--volt); color:var(--ink); display:flex; align-items:center; justify-content:center; flex:none; }
.vc-launcher .vc-l-ico svg{ width:24px; height:24px; }
.vc-launcher .vc-l-txt{ display:flex; flex-direction:column; line-height:1; max-width:0; overflow:hidden; white-space:nowrap; opacity:0; transition:max-width var(--dur-base,220ms) ease, opacity var(--dur-base,220ms) ease, padding var(--dur-base,220ms) ease; }
.vc-launcher:hover .vc-l-txt{ max-width:160px; opacity:1; padding:0 14px 0 10px; }
.vc-launcher .vc-l-k{ font-family:var(--font-mono); font-size:9px; letter-spacing:0.14em; text-transform:uppercase; opacity:0.7; margin-bottom:3px; }
.vc-launcher .vc-l-h{ font-weight:700; font-size:14px; }
.vc-launcher .vc-l-dot{ position:absolute; top:4px; right:8px; width:11px; height:11px; border-radius:999px; background:#2fd47a; border:2px solid var(--ink); }
.vc-launcher.vc-hide{ transform:scale(0.4); opacity:0; pointer-events:none; }

/* teaser bubble */
.vc-teaser{
  position:fixed; right:24px; bottom:88px; z-index:99989;
  max-width:236px; background:var(--paper); color:var(--ink);
  border:1.5px solid var(--ink); border-radius:6px; padding:12px 14px;
  font-size:13.5px; line-height:1.4; box-shadow:0 10px 30px rgba(1,2,4,0.22);
  transform:translateY(8px) scale(0.96); opacity:0; pointer-events:none;
  transition:opacity var(--dur-base,220ms) ease, transform var(--dur-base,220ms) var(--ease-out,cubic-bezier(.16,1,.3,1));
}
.vc-teaser.vc-show{ opacity:1; transform:none; pointer-events:auto; cursor:pointer; }
.vc-teaser::after{ content:""; position:absolute; right:26px; bottom:-7px; width:12px; height:12px; background:var(--paper); border-right:1.5px solid var(--ink); border-bottom:1.5px solid var(--ink); transform:rotate(45deg); }
.vc-teaser b{ font-weight:700; }
.vc-teaser .vc-tclose{ position:absolute; top:5px; right:7px; font-family:var(--font-mono); font-size:13px; color:var(--n-400,#8a8f98); border:none; background:none; cursor:pointer; line-height:1; }

/* ---------- panel ---------- */
.vc-panel{
  position:fixed; right:22px; bottom:22px; z-index:99991;
  width:var(--vc-w); height:min(606px, calc(100vh - 44px));
  display:flex; flex-direction:column;
  background:var(--paper); color:var(--ink);
  border:1.5px solid var(--ink); border-radius:8px; overflow:hidden;
  box-shadow:0 24px 70px rgba(1,2,4,0.34);
  transform:translateY(16px) scale(0.97); opacity:0; pointer-events:none;
  transform-origin:bottom right;
  transition:opacity var(--dur-base,220ms) ease, transform var(--dur-base,220ms) var(--ease-out,cubic-bezier(.16,1,.3,1));
}
.vc-panel.vc-open{ opacity:1; transform:none; pointer-events:auto; }

/* header */
.vc-head{ flex:none; background:var(--ink); color:#fff; padding:13px 14px; display:flex; align-items:center; gap:11px; }
.vc-head .vc-av{ width:38px; height:38px; flex:none; background:var(--volt); color:var(--ink); border-radius:8px; display:flex; align-items:center; justify-content:center; }
.vc-head .vc-av svg{ width:21px; height:21px; }
.vc-head .vc-hmeta{ flex:1; min-width:0; }
.vc-head .vc-hrow{ display:flex; align-items:center; gap:8px; }
.vc-head .vc-htitle{ font-weight:700; font-size:15px; letter-spacing:-0.01em; }
.vc-head .vc-demo{ font-family:var(--font-mono); font-size:8.5px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--ink); background:var(--volt); padding:2px 6px; border-radius:3px; }
.vc-head .vc-hsub{ display:flex; align-items:center; gap:6px; font-family:var(--font-mono); font-size:10px; letter-spacing:0.06em; text-transform:uppercase; color:var(--volt); margin-top:3px; }
.vc-head .vc-hsub .vc-on{ width:7px; height:7px; border-radius:999px; background:#2fd47a; }
.vc-head .vc-hsub .vc-spark{ display:inline-flex; }
.vc-head .vc-hsub .vc-spark svg{ width:12px; height:12px; }
.vc-head .vc-x{ flex:none; width:30px; height:30px; border:none; background:rgba(255,255,255,0.08); color:#fff; border-radius:6px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background var(--dur-fast,140ms) ease; }
.vc-head .vc-x:hover{ background:rgba(255,255,255,0.18); }
.vc-head .vc-x svg{ width:16px; height:16px; }

/* disclosure strip */
.vc-note{ flex:none; background:var(--n-050,#f4f5f3); border-bottom:1.5px solid var(--ink); padding:7px 14px; font-family:var(--font-mono); font-size:10px; letter-spacing:0.02em; color:var(--n-600,#444); display:flex; align-items:center; gap:7px; }
.vc-note svg{ width:13px; height:13px; flex:none; color:var(--ink); }

/* message list */
.vc-log{ flex:1; overflow-y:auto; padding:18px 14px 6px; display:flex; flex-direction:column; gap:12px; scroll-behavior:smooth; }
.vc-log::-webkit-scrollbar{ width:8px; }
.vc-log::-webkit-scrollbar-thumb{ background:var(--n-200,#d6d8d3); border-radius:99px; border:2px solid var(--paper); }

.vc-msg{ display:flex; gap:9px; max-width:90%; align-items:flex-end; animation:vcIn .26s var(--ease-out,cubic-bezier(.16,1,.3,1)) both; }
@keyframes vcIn{ from{ opacity:0; transform:translateY(7px); } to{ opacity:1; transform:none; } }
.vc-msg .vc-mav{ width:26px; height:26px; flex:none; background:var(--ink); color:var(--volt); border-radius:6px; display:flex; align-items:center; justify-content:center; }
.vc-msg .vc-mav svg{ width:15px; height:15px; }
.vc-bubble{ padding:10px 13px; border-radius:13px; font-size:14px; line-height:1.45; text-wrap:pretty; }

.vc-msg.bot{ align-self:flex-start; }
.vc-msg.bot .vc-bubble{ background:#fff; border:1.5px solid var(--ink); border-bottom-left-radius:4px; }
.vc-msg.user{ align-self:flex-end; flex-direction:row-reverse; }
.vc-msg.user .vc-bubble{ background:var(--ink); color:#fff; border-bottom-right-radius:4px; }
.vc-bubble b{ font-weight:700; }
.vc-bubble .vc-spec{ display:block; font-family:var(--font-mono); font-size:12px; letter-spacing:0.01em; margin-top:7px; padding-top:8px; border-top:1px dashed var(--n-300,#bbb); }

/* recommendation card inside a bot bubble */
.vc-reco{ margin-top:9px; border:1.5px solid var(--ink); border-radius:8px; overflow:hidden; }
.vc-reco .vc-r-top{ background:var(--volt); color:var(--ink); padding:8px 11px; font-family:var(--font-mono); font-size:10px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; display:flex; justify-content:space-between; }
.vc-reco .vc-r-body{ padding:10px 11px; display:flex; flex-direction:column; gap:6px; background:#fff; }
.vc-reco .vc-r-line{ display:flex; align-items:center; gap:8px; font-size:13px; }
.vc-reco .vc-r-line svg{ width:14px; height:14px; flex:none; color:var(--ink); }
.vc-reco .vc-r-stat{ display:flex; gap:14px; margin-top:3px; padding-top:8px; border-top:1px solid var(--n-200,#e2e4df); }
.vc-reco .vc-r-stat div{ font-family:var(--font-mono); }
.vc-reco .vc-r-stat .v{ font-weight:700; font-size:15px; }
.vc-reco .vc-r-stat .k{ font-size:9px; letter-spacing:0.08em; text-transform:uppercase; color:var(--n-500,#777); }

/* typing indicator */
.vc-typing{ display:flex; gap:4px; padding:13px 14px; }
.vc-typing span{ width:7px; height:7px; border-radius:999px; background:var(--n-400,#9aa0a6); animation:vcBlink 1.1s infinite ease-in-out; }
.vc-typing span:nth-child(2){ animation-delay:.16s; }
.vc-typing span:nth-child(3){ animation-delay:.32s; }
@keyframes vcBlink{ 0%,80%,100%{ opacity:0.3; transform:translateY(0); } 40%{ opacity:1; transform:translateY(-3px); } }

/* quick replies */
.vc-chips{ flex:none; display:flex; flex-wrap:wrap; gap:7px; padding:4px 14px 12px; }
.vc-chip{ font-family:var(--font-sans); font-weight:600; font-size:12.5px; color:var(--ink); background:var(--paper); border:1.5px solid var(--ink); border-radius:999px; padding:8px 13px; cursor:pointer; transition:background var(--dur-fast,140ms) ease, color var(--dur-fast,140ms) ease, transform var(--dur-fast,140ms) ease; }
.vc-chip:hover{ background:var(--volt); transform:translateY(-1px); }
.vc-chip.vc-primary{ background:var(--ink); color:var(--volt); }
.vc-chip.vc-primary:hover{ background:var(--volt); color:var(--ink); }

/* input bar */
.vc-input{ flex:none; border-top:1.5px solid var(--ink); display:flex; align-items:center; gap:8px; padding:10px 10px; background:#fff; }
.vc-input input{ flex:1; min-width:0; border:none; outline:none; background:none; font-family:var(--font-sans); font-size:14px; color:var(--ink); }
.vc-input input::placeholder{ color:var(--n-400,#9aa0a6); }
.vc-input .vc-send{ flex:none; width:38px; height:38px; border:none; border-radius:7px; background:var(--volt); color:var(--ink); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform var(--dur-fast,140ms) ease, opacity var(--dur-fast,140ms) ease; }
.vc-input .vc-send:hover{ transform:translateX(1px); }
.vc-input .vc-send:disabled{ opacity:0.4; cursor:default; transform:none; }
.vc-input .vc-send svg{ width:18px; height:18px; }
.vc-foot{ flex:none; text-align:center; font-family:var(--font-mono); font-size:9px; letter-spacing:0.06em; color:var(--n-400,#9aa0a6); padding:0 0 8px; background:#fff; }

/* ---------- mobile ---------- */
@media (max-width:480px){
  .vc-panel{ right:0; bottom:0; width:100vw; height:100dvh; border-radius:0; border:none; }
  .vc-launcher{ right:16px; bottom:16px; }
  .vc-teaser{ right:18px; bottom:82px; }
}

@media (prefers-reduced-motion: reduce){
  .vc-msg, .vc-panel, .vc-teaser{ animation:none !important; transition:opacity .12s linear !important; }
  .vc-typing span{ animation:none; }
}
