.vg-chat-root {
  --vg-accent: #4ad76a;
  --vg-dark: #0d1b2a;
  --vg-muted: #667085;
  --vg-border: #e6e9ee;
  --vg-shadow: 0 18px 55px rgba(13, 27, 42, .22);
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999999;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--vg-dark);
  line-height: 1.4;
}
.vg-chat-root * { box-sizing: border-box; }
.vg-chat-launcher {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--vg-accent);
  color: var(--vg-dark);
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(13, 27, 42, .25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.vg-chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(13, 27, 42, .3); }
.vg-chat-launcher:focus-visible, .vg-chat-panel button:focus-visible, .vg-chat-panel input:focus-visible, .vg-chat-panel textarea:focus-visible, .vg-chat-panel select:focus-visible { outline: 3px solid rgba(74, 215, 106, .34); outline-offset: 2px; }
.vg-launcher-icon { position: absolute; display: grid; place-items: center; transition: opacity .18s ease, transform .18s ease; }
.vg-launcher-icon svg { width: 29px; height: 29px; fill: currentColor; }
.vg-icon-close { opacity: 0; transform: rotate(-80deg) scale(.75); }
.is-open .vg-icon-open { opacity: 0; transform: rotate(80deg) scale(.75); }
.is-open .vg-icon-close { opacity: 1; transform: rotate(0) scale(1); }
.vg-launcher-pulse { position: absolute; inset: -5px; border: 2px solid var(--vg-accent); border-radius: 50%; animation: vg-pulse 2.3s ease-out infinite; pointer-events: none; }
.is-open .vg-launcher-pulse { display: none; }
@keyframes vg-pulse { 0% { opacity: .65; transform: scale(.88); } 75%, 100% { opacity: 0; transform: scale(1.25); } }
.vg-chat-panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 28px));
  height: min(680px, calc(100vh - 118px));
  min-height: 510px;
  overflow: hidden;
  border: 1px solid rgba(13, 27, 42, .08);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--vg-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.97);
  transform-origin: bottom right;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.is-open .vg-chat-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.vg-chat-header { display: flex; align-items: center; gap: 11px; min-height: 76px; padding: 14px 14px 14px 16px; background: var(--vg-dark); color: #fff; }
.vg-chat-avatar { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; border-radius: 13px; background: var(--vg-accent); color: var(--vg-dark); font-weight: 900; font-size: 15px; letter-spacing: -.4px; }
.vg-chat-header strong { display: block; font-size: 15px; line-height: 1.25; }
.vg-chat-header span { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: #dce5ee; font-size: 12px; }
.vg-chat-header span i { width: 7px; height: 7px; border-radius: 50%; background: var(--vg-accent); }
.vg-header-close { display: grid; place-items: center; width: 36px; height: 36px; margin-left: auto; padding: 0; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.vg-header-close svg { width: 22px; height: 22px; fill: currentColor; }
.vg-chat-messages { flex: 1; overflow-y: auto; padding: 18px 15px 10px; background: linear-gradient(180deg, #f8fafb 0%, #fff 30%); overscroll-behavior: contain; }
.vg-message { display: flex; margin: 0 0 12px; animation: vg-message-in .2s ease both; }
@keyframes vg-message-in { from { opacity: 0; transform: translateY(6px); } }
.vg-message-user { justify-content: flex-end; }
.vg-bubble { max-width: 86%; padding: 11px 13px; border-radius: 15px 15px 15px 4px; background: #edf1f4; color: var(--vg-dark); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.vg-message-user .vg-bubble { border-radius: 15px 15px 4px 15px; background: var(--vg-dark); color: #fff; }
.vg-typing .vg-bubble { display: flex; gap: 4px; padding: 14px 16px; }
.vg-typing span { width: 6px; height: 6px; border-radius: 50%; background: #8693a0; animation: vg-dot 1s infinite ease-in-out; }
.vg-typing span:nth-child(2) { animation-delay: .14s; }
.vg-typing span:nth-child(3) { animation-delay: .28s; }
@keyframes vg-dot { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
.vg-chat-quick { display: flex; gap: 7px; padding: 7px 14px 11px; overflow-x: auto; background: #fff; scrollbar-width: none; }
.vg-chat-quick::-webkit-scrollbar { display: none; }
.vg-chat-quick:empty { display: none; }
.vg-chat-quick button { flex: 0 0 auto; padding: 8px 11px; border: 1px solid #cfd7df; border-radius: 999px; background: #fff; color: var(--vg-dark); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s; }
.vg-chat-quick button:hover { border-color: var(--vg-accent); background: #f2fff5; }
.vg-chat-compose { display: flex; align-items: flex-end; gap: 8px; padding: 11px 12px; border-top: 1px solid var(--vg-border); background: #fff; }
.vg-chat-compose textarea { flex: 1; min-height: 42px; max-height: 96px; resize: none; padding: 10px 11px; border: 1px solid #d7dde3; border-radius: 12px; background: #fff; color: var(--vg-dark); font: inherit; font-size: 14px; line-height: 1.45; }
.vg-chat-compose textarea::placeholder { color: #8a96a3; }
.vg-chat-compose button { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; padding: 0; border: 0; border-radius: 12px; background: var(--vg-accent); color: var(--vg-dark); cursor: pointer; }
.vg-chat-compose button svg { width: 19px; height: 19px; fill: currentColor; }
.vg-chat-footer { padding: 0 12px 9px; background: #fff; color: #8a96a3; font-size: 10px; text-align: center; }
.vg-lead-wrap { margin: 5px 0 14px; padding: 14px; border: 1px solid var(--vg-border); border-radius: 15px; background: #fff; box-shadow: 0 7px 22px rgba(13, 27, 42, .08); }
.vg-lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vg-lead-grid label { display: block; min-width: 0; }
.vg-lead-grid label > span { display: block; margin-bottom: 4px; color: #43505d; font-size: 11px; font-weight: 750; }
.vg-lead-grid input, .vg-lead-grid select { width: 100%; height: 39px; padding: 7px 9px; border: 1px solid #d7dde3; border-radius: 9px; background: #fff; color: var(--vg-dark); font: inherit; font-size: 12px; }
.vg-lead-grid .vg-full { grid-column: 1 / -1; }
.vg-honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; }
.vg-consent { display: flex; align-items: flex-start; gap: 7px; margin-top: 11px; color: #66727e; font-size: 10px; line-height: 1.35; }
.vg-consent input { margin-top: 2px; }
.vg-lead-note { margin: 9px 0; color: #7a8692; font-size: 10px; }
.vg-lead-note a { color: #365a42; }
.vg-lead-submit { width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--vg-accent); color: var(--vg-dark); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.vg-lead-submit:disabled { opacity: .65; cursor: wait; }
.vg-form-error { margin-top: 7px; color: #b42318; font-size: 11px; }
.vg-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
@media (max-width: 520px) {
  .vg-chat-root { right: 12px; bottom: 12px; }
  .vg-chat-launcher { width: 57px; height: 57px; }
  .vg-chat-panel { position: fixed; inset: 8px 8px 78px; width: auto; height: auto; min-height: 0; border-radius: 17px; transform-origin: bottom center; }
  .vg-lead-grid { grid-template-columns: 1fr; }
  .vg-lead-grid .vg-full { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .vg-chat-root *, .vg-chat-root *::before, .vg-chat-root *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

