/* "Ask zeroconfig" chat widget. Everything is scoped under .zc-chat; fonts are inherited (Inter on the site). */
.zc-chat {
  --zc-brand: #5B21E6;
  --zc-brand-dark: #4716c4;
  --zc-panel: #FAF9F7;
  --zc-card: #FFFFFF;
  --zc-ink: #1B1B1F;
  --zc-muted: #6B6A70;
  --zc-line: #E6E3EE;
  --zc-user: #EFE9FF;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483000;
  font: inherit;
  color: var(--zc-ink);
  line-height: 1.45;
}
.zc-chat *, .zc-chat *::before, .zc-chat *::after { box-sizing: border-box; }
.zc-chat [hidden] { display: none !important; }
.zc-chat__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.zc-chat__launcher {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: auto;
  background: var(--zc-brand); color: #fff;
  border: 0; border-radius: 999px;
  padding: 12px 18px;
  font: inherit; font-weight: 600; font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(91, 33, 230, .35);
  transition: background .15s, transform .15s;
}
.zc-chat__launcher:hover { background: var(--zc-brand-dark); transform: translateY(-1px); }
.zc-chat__launcher:focus-visible, .zc-chat button:focus-visible, .zc-chat a:focus-visible, .zc-chat__log:focus-visible { outline: 3px solid #A78BFA; outline-offset: 2px; }
.zc-chat__launcher-icon {
  width: 18px; height: 18px; border-radius: 50% 50% 50% 4px;
  background: #fff; display: inline-block; opacity: .95;
}
.zc-chat--open .zc-chat__launcher { display: none; }

.zc-chat__panel {
  width: 380px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 40px);
  display: flex; flex-direction: column;
  background: var(--zc-panel);
  border: 1px solid var(--zc-line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(27, 27, 31, .22);
  overflow: hidden;
}
.zc-chat__head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 14px 14px 18px;
  background: var(--zc-brand); color: #fff;
}
.zc-chat__title { margin: 0; flex: 1; font: inherit; font-size: 16px; font-weight: 600; color: #fff; }
.zc-chat__icon-btn {
  background: rgba(255, 255, 255, .14); color: #fff; border: 0; border-radius: 8px;
  font: inherit; font-size: 13px; padding: 6px 10px; cursor: pointer;
}
.zc-chat__icon-btn:hover { background: rgba(255, 255, 255, .26); }
.zc-chat__close { font-size: 20px; line-height: 1; padding: 4px 10px; }

.zc-chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.zc-chat__msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 14px; overflow-wrap: anywhere; }
.zc-chat__msg p { margin: 0; white-space: pre-line; }
.zc-chat__msg p + p { margin-top: 8px; }
.zc-chat__msg--bot { align-self: flex-start; background: var(--zc-card); border: 1px solid var(--zc-line); border-bottom-left-radius: 4px; }
.zc-chat__msg--user { align-self: flex-end; background: var(--zc-user); border-bottom-right-radius: 4px; }
.zc-chat__msg a { color: var(--zc-brand); text-decoration: underline; }
.zc-chat__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.zc-chat__msg a.zc-chat__link {
  text-decoration: none; font-size: 13px; font-weight: 500;
  border: 1px solid var(--zc-brand); border-radius: 999px; padding: 3px 10px;
}
.zc-chat__msg a.zc-chat__link:hover { background: var(--zc-brand); color: #fff; }

.zc-chat__typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--zc-card); border: 1px solid var(--zc-line); border-radius: 14px; }
.zc-chat__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--zc-muted); animation: zc-chat-bounce 1.2s infinite ease-in-out; }
.zc-chat__dot:nth-child(3) { animation-delay: .15s; }
.zc-chat__dot:nth-child(4) { animation-delay: .3s; }
@keyframes zc-chat-bounce { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.zc-chat__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.zc-chat__chip {
  background: var(--zc-card); color: var(--zc-brand);
  border: 1px solid var(--zc-line); border-radius: 999px;
  padding: 6px 11px; font: inherit; font-size: 13px; cursor: pointer;
}
.zc-chat__chip:hover { border-color: var(--zc-brand); }

.zc-chat__form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--zc-line); background: var(--zc-card); }
.zc-chat__input {
  flex: 1; resize: none; min-height: 40px; max-height: 120px;
  font: inherit; font-size: 14px; color: var(--zc-ink);
  border: 1px solid var(--zc-line); border-radius: 10px; padding: 9px 11px;
  background: var(--zc-panel);
}
.zc-chat__input:focus { outline: 2px solid var(--zc-brand); outline-offset: 0; border-color: transparent; }
.zc-chat__send {
  background: var(--zc-brand); color: #fff; border: 0; border-radius: 10px;
  padding: 10px 16px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.zc-chat__send:hover { background: var(--zc-brand-dark); }
.zc-chat__send:disabled { opacity: .55; cursor: default; }
.zc-chat__foot { margin: 0; padding: 6px 14px 10px; font-size: 11.5px; color: var(--zc-muted); background: var(--zc-card); text-align: center; }

/* "Talk to sales": button under a sales answer, footer link, and the short form inside the chat. */
.zc-chat__cta {
  display: inline-flex; align-items: center; margin-top: 10px;
  background: var(--zc-brand); color: #fff; border: 0; border-radius: 999px;
  padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.zc-chat__cta:hover { background: var(--zc-brand-dark); }
.zc-chat__foot-link {
  background: none; border: 0; padding: 0; font: inherit; font-size: inherit; font-weight: 600;
  color: var(--zc-brand); text-decoration: underline; cursor: pointer;
}
.zc-chat__lead {
  align-self: stretch; display: grid; gap: 10px;
  background: var(--zc-card); border: 1px solid var(--zc-line); border-radius: 14px; padding: 14px;
  font-size: 14px; position: relative;
}
.zc-chat__lead-title { margin: 0; font: inherit; font-size: 15px; font-weight: 600; }
.zc-chat__lead-sub { margin: -4px 0 0; color: var(--zc-muted); font-size: 13px; }
.zc-chat__field { display: grid; gap: 4px; }
.zc-chat__field label { font-size: 13px; font-weight: 500; }
.zc-chat__field input, .zc-chat__field select, .zc-chat__field textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--zc-ink);
  border: 1px solid var(--zc-line); border-radius: 10px; padding: 8px 10px; background: var(--zc-panel);
}
.zc-chat__field textarea { resize: vertical; min-height: 68px; }
.zc-chat__field input:focus, .zc-chat__field select:focus, .zc-chat__field textarea:focus { outline: 2px solid var(--zc-brand); outline-offset: 0; border-color: transparent; }
.zc-chat__lead [aria-invalid="true"] { border-color: #B42318; }
.zc-chat__consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.zc-chat__consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--zc-brand); flex: none; }
.zc-chat__consent a { color: var(--zc-brand); }
.zc-chat__lead-status { margin: 0; color: #B42318; font-size: 13px; }
.zc-chat__lead-status:empty { display: none; }
.zc-chat__lead-actions { display: flex; gap: 8px; align-items: center; }
.zc-chat__lead-cancel { background: none; border: 0; padding: 8px 6px; font: inherit; font-size: 14px; color: var(--zc-muted); cursor: pointer; text-decoration: underline; }
/* Honeypot: off-screen, not focusable, hidden from assistive tech. */
.zc-chat__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Phones: full-screen sheet. */
@media (max-width: 640px) {
  .zc-chat { right: 16px; bottom: 16px; }
  .zc-chat--open { inset: 0; right: 0; bottom: 0; }
  .zc-chat--open .zc-chat__panel { width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; border: 0; }
  .zc-chat__input { font-size: 16px; } /* avoids iOS zoom on focus */
}
html.zc-chat-lock, html.zc-chat-lock body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .zc-chat__launcher, .zc-chat__dot { transition: none; animation: none; }
}
