/* =========================================================
   Veris Labs - Vee, the site assistant
   Loaded on every page. Markup is injected by js/chat.js.
   ========================================================= */

.vee-launcher {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 400;
  display: flex; align-items: center; gap: 12px;
  background: var(--grad-ink);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: 9px 20px 9px 9px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(8, 14, 28, .4);
  font-family: var(--font);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), opacity .2s ease;
}
.vee-launcher:hover { transform: translateY(-3px); box-shadow: 0 20px 46px rgba(8, 14, 28, .5); }
.vee-launcher img { width: 46px; height: 46px; flex: 0 0 auto; }
.vee-launcher .vl-text { text-align: left; line-height: 1.25; }
.vee-launcher .vl-text b {
  display: block; color: #fff; font-family: var(--font-display);
  font-size: .95rem; letter-spacing: -.01em;
}
.vee-launcher .vl-text span { display: block; font-size: .78rem; color: rgba(233, 242, 250, .7); }
.vee-launcher .vl-dot {
  position: absolute; top: 8px; right: 14px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #7dffb4;
  box-shadow: 0 0 0 0 rgba(125, 255, 180, .5);
  animation: veePulse 2.6s ease-in-out infinite;
}
@keyframes veePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(125, 255, 180, .5); }
  50% { box-shadow: 0 0 0 7px rgba(125, 255, 180, 0); }
}
.vee-launcher[hidden] { display: none; }

.vee-panel {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 401;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 44px);
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(8, 14, 28, .35);
  font-family: var(--font);
  opacity: 0; visibility: hidden;
  transform: translateY(14px) scale(.98);
  transition: opacity .22s ease, transform .22s var(--ease-out), visibility .22s;
}
.vee-panel.on { opacity: 1; visibility: visible; transform: none; }

.vee-head {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px;
  background: var(--grad-ink);
  color: #fff;
  flex: 0 0 auto;
}
.vee-head img { width: 42px; height: 42px; flex: 0 0 auto; }
.vee-head .vh-text b {
  display: block; font-family: var(--font-display); font-size: 1rem; letter-spacing: -.01em;
}
.vee-head .vh-text span { font-size: .78rem; color: rgba(233, 242, 250, .72); display: flex; align-items: center; gap: 6px; }
.vee-head .vh-text span i { width: 7px; height: 7px; border-radius: 50%; background: #7dffb4; display: block; }
.vee-close {
  margin-left: auto;
  background: rgba(255, 255, 255, .12);
  border: 0; border-radius: 10px;
  width: 38px; height: 38px;
  color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s ease;
}
.vee-close:hover { background: rgba(255, 255, 255, .22); }
.vee-close svg { width: 15px; height: 15px; }

.vee-log {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 16px 8px;
  background: var(--mist);
  display: flex; flex-direction: column; gap: 12px;
}
.vee-msg { display: flex; gap: 9px; align-items: flex-end; max-width: 92%; }
.vee-msg img { width: 28px; height: 28px; flex: 0 0 auto; }
.vee-msg .bubble {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  padding: 11px 14px;
  font-size: .91rem;
  line-height: 1.55;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.vee-msg .bubble p { margin: 0 0 .6rem; font-size: .91rem; color: var(--ink); }
.vee-msg .bubble p:last-child { margin-bottom: 0; }
.vee-msg .bubble a { font-weight: 600; border-bottom: 1px solid rgba(47,118,168,.35); }
.vee-msg.me { align-self: flex-end; flex-direction: row-reverse; }
.vee-msg.me .bubble {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  border-radius: 14px 14px 4px 14px;
}
.vee-msg.me .bubble p { color: #fff; }

.vee-typing { display: flex; gap: 4px; padding: 4px 2px; }
.vee-typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--slate-light);
  animation: veeBlink 1.2s infinite;
}
.vee-typing i:nth-child(2) { animation-delay: .2s; }
.vee-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes veeBlink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.vee-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 16px 0; background: var(--mist); flex: 0 0 auto; }
.vee-chips button {
  font-family: var(--font);
  min-height: 40px;
  font-size: .8rem; font-weight: 600;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--navy-700);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, transform .18s var(--ease-out);
}
.vee-chips button:hover { border-color: var(--teal-500); color: var(--teal-600); transform: translateY(-1px); }

.vee-form {
  display: flex; gap: 8px;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid var(--line);
  flex: 0 0 auto;
}
.vee-form input {
  flex: 1 1 auto;
  font-family: var(--font); font-size: 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--navy-800);
  background: var(--mist);
  transition: border-color .18s ease, background .18s ease;
}
.vee-form input:focus { outline: none; border-color: var(--teal-500); background: #fff; }
.vee-form button {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border: 0; border-radius: 50%;
  background: var(--grad-brand);
  color: #fff; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(47, 118, 168, .32);
  transition: transform .2s var(--ease-out);
}
.vee-form button:hover { transform: translateY(-2px); }
.vee-form button svg { width: 17px; height: 17px; }

.vee-foot {
  font-size: .7rem; color: var(--slate-light);
  text-align: center; padding: 0 14px 11px;
  background: #fff;
}

@media (max-width: 520px) {
  .vee-panel {
    right: 0; bottom: 0; left: 0;
    width: 100%; max-width: none;
    height: 82vh; max-height: 82vh;
    border-radius: 20px 20px 0 0;
  }
  .vee-launcher { right: 16px; bottom: 16px; padding: 8px 17px 8px 8px; }
  .vee-launcher img { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .vee-launcher, .vee-panel, .vee-chips button, .vee-form button { transition-duration: .01ms; }
  .vee-launcher .vl-dot, .vee-typing i { animation: none; }
}

@media print { .vee-launcher, .vee-panel { display: none !important; } }

/* Keep the lightbox video inside the overlay's padding on narrow screens. */
.video-lightbox video { max-width: 100%; }
@media (max-width: 560px) {
  .video-lightbox { padding: 16px; }
}
