/* Faraz Chat Widget v1 — embeddable lead-capture chatbot. Configure via window.FARAZ_CHAT_CONFIG in chat-widget.js */
:root { --fc-primary: #2563eb; --fc-dark: #1e293b; }
#fc-launcher {
  position: fixed; right: 20px; bottom: 76px; width: 60px; height: 60px;
  border-radius: 50%; background: var(--fc-primary); border: none; cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,.25); z-index: 999998;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff; transition: transform .15s;
}
#fc-launcher:hover { transform: scale(1.06); }
#fc-launcher .fc-dot {
  position: absolute; top: 2px; right: 2px; width: 14px; height: 14px;
  background: #22c55e; border: 2px solid #fff; border-radius: 50%;
}
#fc-panel {
  position: fixed; right: 20px; bottom: 148px; width: 370px; max-width: calc(100vw - 40px);
  height: 520px; max-height: calc(100dvh - 130px);
  background: #fff; border-radius: 18px; box-shadow: 0 12px 48px rgba(0,0,0,.28);
  z-index: 999999; display: none; flex-direction: column; overflow: hidden;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
#fc-panel.fc-open { display: flex; }
#fc-header {
  background: var(--fc-primary); color: #fff; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
#fc-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
#fc-header .fc-title { font-weight: 700; font-size: 15px; }
#fc-header .fc-sub { font-size: 12px; opacity: .85; }
#fc-close { margin-left: auto; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }
#fc-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f8fafc; }
.fc-msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; white-space: pre-line; }
.fc-bot { background: #fff; color: var(--fc-dark); border: 1px solid #e2e8f0; border-bottom-left-radius: 4px; align-self: flex-start; }
.fc-user { background: var(--fc-primary); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.fc-typing { display: inline-flex; gap: 4px; padding: 12px 16px; }
.fc-typing span { width: 7px; height: 7px; background: #94a3b8; border-radius: 50%; animation: fc-blink 1.2s infinite; }
.fc-typing span:nth-child(2) { animation-delay: .2s; } .fc-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes fc-blink { 0%,80%,100% { opacity: .3; } 40% { opacity: 1; } }
#fc-chips { display: flex; gap: 8px; padding: 8px 14px; flex-wrap: wrap; background: #f8fafc; }
.fc-chip {
  border: 1px solid var(--fc-primary); color: var(--fc-primary); background: #fff;
  border-radius: 20px; padding: 6px 14px; font-size: 13px; cursor: pointer;
}
.fc-chip:hover { background: var(--fc-primary); color: #fff; }
#fc-inputbar { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid #e2e8f0; background: #fff; }
#fc-input { flex: 1; border: 1px solid #cbd5e1; border-radius: 24px; padding: 10px 16px; font-size: 14px; outline: none; }
#fc-input:focus { border-color: var(--fc-primary); }
#fc-send {
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--fc-primary); color: #fff; font-size: 18px; flex-shrink: 0;
}
.fc-linkbtn {
  display: inline-block; margin-top: 8px; background: #22c55e; color: #fff !important;
  padding: 9px 18px; border-radius: 24px; text-decoration: none; font-weight: 600; font-size: 13px;
}
@media (max-width: 480px) {
  #fc-panel { right: 10px; bottom: 142px; width: calc(100vw - 20px); }
  #fc-launcher { right: 14px; bottom: 70px; }
}
