/* FARVELLA Digital — Vexa voice-call widget (Graphite system, 2026-11-29)
   Bottom-right float stack, bottom → top: AI text assistant (bottom:20),
   Vexa launcher, WhatsApp float. Owner swap 2026-11-29: Vexa takes the
   lower, more prominent slot (WhatsApp's old bottom:88); WhatsApp moved
   up to Vexa's old slot (bottom:158). The panel keeps its bottom:158
   anchor, same as the assistant panel. Assistant fully unchanged.
   All colours come from the site's graphite variables (--g0…--g6). */

/* ---------- launcher ---------- */
.fvx-launcher{
  position:fixed;right:20px;bottom:88px;z-index:490;
  display:flex;align-items:center;gap:10px;
  height:54px;padding:0 18px 0 6px;border-radius:999px;
  background:var(--gold-grad);color:var(--g0);
  border:1px solid rgba(201,201,210,.55);
  box-shadow:0 14px 34px rgba(0,0,0,.45),0 0 22px rgba(201,201,210,.14);
  font-family:'Space Grotesk',system-ui,sans-serif;font-weight:700;font-size:.86rem;letter-spacing:.02em;
  cursor:pointer;transition:transform .25s ease,box-shadow .25s ease,opacity .2s ease;
}
@media (hover:hover){.fvx-launcher:hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(0,0,0,.5),0 0 30px rgba(201,201,210,.22)}}
.fvx-launcher:focus-visible{outline:2px solid var(--g6);outline-offset:3px}
.fvx-launcher.fvx-hidden{opacity:0;pointer-events:none}
.fvx-launcher img{
  width:42px;height:42px;border-radius:50%;flex:0 0 42px;object-fit:cover;
  border:1px solid rgba(14,14,16,.35);background:var(--g1);
}
.fvx-launcher .fvx-name{display:flex;flex-direction:column;align-items:flex-start;line-height:1.12}
.fvx-launcher .fvx-name small{font-family:Inter,system-ui,sans-serif;font-weight:600;font-size:.62rem;letter-spacing:.14em;text-transform:uppercase;opacity:.72}
.fvx-launcher .fvx-dot{width:8px;height:8px;border-radius:50%;background:var(--g0);box-shadow:0 0 0 3px rgba(14,14,16,.16)}
html[data-theme="light"] .fvx-launcher{background:var(--g0);color:var(--g6);border-color:var(--g0)}
html[data-theme="light"] .fvx-launcher img{border-color:rgba(242,242,245,.4)}
html[data-theme="light"] .fvx-launcher .fvx-dot{background:var(--g6);box-shadow:0 0 0 3px rgba(242,242,245,.22)}

/* ---------- panel ---------- */
.fvx-panel{
  position:fixed;right:20px;bottom:158px;z-index:502;padding:0;
  width:min(384px,calc(100vw - 32px));height:min(600px,calc(100dvh - 178px));
  display:none;flex-direction:column;overflow:hidden;
  background:linear-gradient(168deg,#232327 0%,#0E0E10 55%,#0B0B0D 100%);
  border:1px solid rgba(201,201,210,.28);border-radius:18px;
  box-shadow:0 30px 60px rgba(0,0,0,.55),0 0 44px rgba(201,201,210,.08);
  font-family:Inter,system-ui,sans-serif;color:var(--g6);
}
.fvx-panel.fvx-open{display:flex}
html[data-theme="light"] .fvx-panel{
  background:linear-gradient(168deg,#FFFFFF 0%,#F2F2F5 55%,#E7E7EC 100%);
  border-color:var(--g4);color:var(--g0);
}
.fvx-head{
  display:flex;align-items:center;gap:12px;padding:14px 16px;
  border-bottom:1px solid var(--line);background:rgba(14,14,16,.45);
}
html[data-theme="light"] .fvx-head{background:rgba(201,201,210,.35)}
.fvx-head img{width:44px;height:44px;border-radius:50%;flex:0 0 44px;object-fit:cover;border:1px solid rgba(201,201,210,.4);background:var(--g1)}
.fvx-head .fvx-who{flex:1;min-width:0}
.fvx-head h3{margin:0;font-family:'Space Grotesk',sans-serif;font-size:1.08rem;font-weight:700;letter-spacing:.01em;line-height:1.2;color:var(--g6)}
html[data-theme="light"] .fvx-head h3{color:var(--g0)}
.fvx-head p{margin:2px 0 0;font-size:.72rem;color:var(--g4);letter-spacing:.02em;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme="light"] .fvx-head p{color:var(--g2)}
.fvx-live{
  display:flex;align-items:center;gap:6px;flex:0 0 auto;
  font-size:.68rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
  color:var(--g5);border:1px solid var(--line);border-radius:999px;padding:5px 10px;
  background:rgba(201,201,210,.08);
}
html[data-theme="light"] .fvx-live{color:var(--g1)}
.fvx-live i{width:7px;height:7px;border-radius:50%;background:var(--g3);display:block}
.fvx-live.fvx-on i{background:var(--g6);box-shadow:0 0 8px rgba(242,242,245,.8);animation:fvx-pulse 1.6s infinite}
html[data-theme="light"] .fvx-live.fvx-on i{background:var(--g0);box-shadow:0 0 8px rgba(14,14,16,.5)}
@keyframes fvx-pulse{0%,100%{opacity:1}50%{opacity:.35}}
.fvx-close{
  margin-left:2px;flex:0 0 auto;width:36px;height:36px;border-radius:50%;
  background:transparent;border:1px solid var(--line);color:var(--g5);
  font-size:1rem;line-height:1;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.fvx-close:hover{background:rgba(201,201,210,.14)}
.fvx-close:focus-visible{outline:2px solid var(--g6);outline-offset:2px}
html[data-theme="light"] .fvx-close{color:var(--g1)}

.fvx-status{padding:14px 18px 4px;text-align:center;font-size:.94rem;font-weight:600;color:var(--g6);min-height:44px}
html[data-theme="light"] .fvx-status{color:var(--g0)}
.fvx-status small{display:block;margin-top:3px;font-size:.76rem;font-weight:400;color:var(--g4)}
html[data-theme="light"] .fvx-status small{color:var(--g2)}

.fvx-log{
  flex:1;overflow-y:auto;overscroll-behavior:contain;padding:12px 14px;display:flex;flex-direction:column;gap:9px;
}
.fvx-msg{
  max-width:84%;padding:9px 13px;border-radius:16px;font-size:.9rem;line-height:1.45;
  background:rgba(242,242,245,.07);border:1px solid var(--line);color:var(--g6);
  align-self:flex-start;border-bottom-left-radius:6px;overflow-wrap:break-word;
}
html[data-theme="light"] .fvx-msg{background:rgba(35,35,39,.06);color:var(--g0)}
.fvx-msg.fvx-me{align-self:flex-end;background:var(--g6);color:var(--g0);border-color:transparent;border-bottom-left-radius:16px;border-bottom-right-radius:6px}
html[data-theme="light"] .fvx-msg.fvx-me{background:var(--g0);color:var(--g6)}
.fvx-msg .fvx-tag{display:block;font-size:.62rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;opacity:.6;margin-bottom:2px}

.fvx-controls{display:flex;flex-direction:column;align-items:center;gap:9px;padding:10px 16px 16px}
.fvx-call{
  width:74px;height:74px;border-radius:50%;cursor:pointer;
  border:1px solid rgba(201,201,210,.5);
  background:var(--gold-grad);color:var(--g0);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 12px 30px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.35);
  transition:transform .2s ease,box-shadow .2s ease;
}
@media (hover:hover){.fvx-call:hover{transform:translateY(-2px)}}
.fvx-call:focus-visible{outline:2px solid var(--g6);outline-offset:3px}
.fvx-call svg{width:32px;height:32px;fill:currentColor}
.fvx-call.fvx-end{background:var(--g6);color:var(--g0);border-color:var(--g6)}
html[data-theme="light"] .fvx-call.fvx-end{background:var(--g0);color:var(--g6);border-color:var(--g0)}
.fvx-call:disabled{opacity:.55;cursor:wait;transform:none}
.fvx-hint{font-size:.74rem;color:var(--g4);text-align:center}
html[data-theme="light"] .fvx-hint{color:var(--g2)}

/* ---------- fallback (voice line unreachable) ---------- */
.fvx-fallback{display:none;padding:6px 18px 18px;text-align:center}
.fvx-fallback.fvx-show{display:block}
.fvx-fallback p{font-size:.9rem;line-height:1.55;color:var(--g5);margin:0 0 14px}
html[data-theme="light"] .fvx-fallback p{color:var(--g1)}
.fvx-fallback .fvx-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.fvx-fallback a,.fvx-fallback button{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 16px;border-radius:999px;cursor:pointer;text-decoration:none;
  font-family:Inter,system-ui,sans-serif;font-size:.82rem;font-weight:600;
  background:var(--gold-grad);color:var(--g0);border:1px solid rgba(201,201,210,.5);
}
.fvx-fallback .fvx-alt{background:transparent;color:var(--g6);border:1px solid var(--line)}
html[data-theme="light"] .fvx-fallback a,html[data-theme="light"] .fvx-fallback button{background:var(--g0);color:var(--g6);border-color:var(--g0)}
html[data-theme="light"] .fvx-fallback .fvx-alt{background:transparent;color:var(--g0);border-color:var(--g3)}
.fvx-fallback a:focus-visible,.fvx-fallback button:focus-visible{outline:2px solid var(--g6);outline-offset:2px}

@media (max-width:480px){
  .fvx-launcher{bottom:84px;padding:0 14px 0 5px;height:50px}
  .fvx-launcher img{width:38px;height:38px;flex-basis:38px}
  .fvx-launcher .fvx-name small{display:none}
  .fvx-panel{bottom:150px;height:min(600px,calc(100dvh - 166px))}
}
@media (prefers-reduced-motion: reduce){
  .fvx-live.fvx-on i{animation:none}
  .fvx-launcher,.fvx-call{transition:none}
}
