/* Sigzen Lead Chatbot (Free) — widget styles */
#slcf-root {
  --slcf-accent: #2563EB;
  --slcf-navy: #0B1B3A;
  --slcf-bg: #ffffff;
  --slcf-muted: #5b6577;
  --slcf-line: #e7ebf2;
  --slcf-user: #eef3ff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#slcf-root *, #slcf-root *::before, #slcf-root *::after { box-sizing: border-box; }

.slcf-launcher {
  position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px;
  border-radius: 50%; border: none; background: var(--slcf-accent); color: #fff;
  cursor: pointer; box-shadow: 0 10px 30px rgba(11,27,58,.28);
  display: flex; align-items: center; justify-content: center; z-index: 2147483000;
  transition: transform .18s ease;
}
.slcf-launcher:hover { transform: translateY(-2px) scale(1.04); }
.slcf-launcher:focus-visible { outline: 3px solid var(--slcf-navy); outline-offset: 3px; }
.slcf-launcher svg { width: 28px; height: 28px; }

.slcf-panel {
  position: fixed; bottom: 96px; right: 24px; width: 380px;
  max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 120px);
  background: var(--slcf-bg); border-radius: 18px; box-shadow: 0 24px 60px rgba(11,27,58,.28);
  display: flex; flex-direction: column; overflow: hidden; z-index: 2147483000;
  opacity: 0; transform: translateY(12px) scale(.98); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.slcf-panel.slcf-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.slcf-header { background: var(--slcf-navy); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.slcf-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--slcf-accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: none; }
.slcf-header-name { font-weight: 600; font-size: 15px; }
.slcf-header-sub { font-size: 12px; opacity: .7; }
.slcf-header-sub .slcf-dot { color: #34d399; }
.slcf-close { margin-left: auto; background: transparent; border: none; color: #fff; cursor: pointer; opacity: .8; padding: 4px; border-radius: 6px; }
.slcf-close:hover { opacity: 1; background: rgba(255,255,255,.12); }
.slcf-close svg { width: 20px; height: 20px; display: block; }

.slcf-messages { flex: 1; overflow-y: auto; padding: 18px; background: #fafbfd; display: flex; flex-direction: column; gap: 12px; }
.slcf-msg { max-width: 84%; font-size: 14px; line-height: 1.5; padding: 10px 13px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; }
.slcf-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--slcf-line); color: #1a2236; border-bottom-left-radius: 5px; }
.slcf-msg.user { align-self: flex-end; background: var(--slcf-user); color: var(--slcf-navy); border-bottom-right-radius: 5px; }

/* FAQ chips */
.slcf-chips { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.slcf-chip {
  background: #fff; border: 1px solid var(--slcf-accent); color: var(--slcf-accent);
  padding: 9px 14px; border-radius: 999px; font-size: 13.5px; font-family: inherit;
  cursor: pointer; text-align: left; line-height: 1.35; transition: background .15s ease, color .15s ease;
}
.slcf-chip:hover { background: var(--slcf-accent); color: #fff; }
.slcf-chip.talk { border-style: dashed; }

.slcf-lead { align-self: stretch; background: #fff; border: 1px solid var(--slcf-line); border-radius: 14px; padding: 14px; }
.slcf-lead-title { font-size: 13.5px; color: var(--slcf-navy); margin-bottom: 10px; line-height: 1.45; }
.slcf-lead input { width: 100%; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--slcf-line); border-radius: 9px; font-size: 14px; font-family: inherit; color: #1a2236; }
.slcf-lead input:focus { outline: none; border-color: var(--slcf-accent); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.slcf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.slcf-lead button { width: 100%; padding: 11px; border: none; border-radius: 9px; background: var(--slcf-accent); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; font-family: inherit; }
.slcf-lead button:hover { filter: brightness(1.06); }
.slcf-lead button:disabled { opacity: .6; cursor: default; }
.slcf-lead .slcf-err { color: #d6334a; font-size: 12.5px; margin-top: 4px; min-height: 16px; }

.slcf-inputbar { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--slcf-line); background: #fff; }
.slcf-inputbar textarea { flex: 1; resize: none; border: 1px solid var(--slcf-line); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-family: inherit; line-height: 1.4; max-height: 120px; color: #1a2236; }
.slcf-inputbar textarea:focus { outline: none; border-color: var(--slcf-accent); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.slcf-send { flex: none; width: 40px; height: 40px; border: none; border-radius: 11px; background: var(--slcf-accent); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.slcf-send:hover { filter: brightness(1.06); }
.slcf-send svg { width: 19px; height: 19px; }

.slcf-footer { text-align: center; font-size: 11px; color: var(--slcf-muted); padding: 6px 0 10px; background: #fff; }

@media (max-width: 480px) {
  .slcf-panel { right: 12px; bottom: 84px; width: calc(100vw - 24px); height: calc(100vh - 100px); }
  .slcf-launcher { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { .slcf-launcher, .slcf-panel { transition: none; } }
