.wplfai-widget{position:fixed;right:20px;bottom:20px;z-index:99999;font-family:Arial,sans-serif}.wplfai-toggle{width:58px;height:58px;border-radius:999px;border:none;background:#2271b1;color:#fff;font-size:22px;cursor:pointer;box-shadow:0 12px 30px rgba(34,113,177,.35)}.wplfai-panel{width:360px;max-width:calc(100vw - 24px);margin-top:12px;background:#fff;border:1px solid #dbe5ef;border-radius:18px;box-shadow:0 20px 60px rgba(15,23,42,.15);overflow:hidden}.wplfai-header{padding:16px 18px;background:linear-gradient(135deg,#0f172a,#1d4f91);color:#fff}.wplfai-header strong{display:block;font-size:16px}.wplfai-header span{display:block;margin-top:4px;font-size:12px;opacity:.9}.wplfai-messages{padding:14px;max-height:280px;overflow:auto;background:#f8fbff}.wplfai-msg{padding:10px 12px;border-radius:14px;margin-bottom:10px;line-height:1.45}.wplfai-user{background:#dbeafe;margin-left:30px}.wplfai-assistant{background:#fff;border:1px solid #e2e8f0;margin-right:30px}.wplfai-fields,.wplfai-compose{padding:12px}.wplfai-fields input,.wplfai-compose textarea{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #cbd5e1;border-radius:12px;margin-bottom:8px}.wplfai-consent{font-size:12px;color:#475569;display:block}.wplfai-send{width:100%;border:none;border-radius:12px;background:#2271b1;color:#fff;padding:11px 14px;font-weight:600;cursor:pointer}.wplfai-input{min-height:80px;resize:vertical}

/* v0.7.0 — Markdown rendering in assistant bubbles */
.wplfai-assistant p { margin: 0 0 6px; line-height: 1.55; }
.wplfai-assistant p:last-child { margin-bottom: 0; }
.wplfai-assistant strong { font-weight: 700; }
.wplfai-assistant em { font-style: italic; }
.wplfai-assistant ul { margin: 4px 0 6px 16px; padding: 0; list-style: disc; }
.wplfai-assistant ol { margin: 4px 0 6px 16px; padding: 0; list-style: decimal; }
.wplfai-assistant li { margin-bottom: 3px; line-height: 1.45; }
.wplfai-assistant code { background: rgba(0,0,0,.07); padding: 1px 5px; border-radius: 4px; font-size: .88em; font-family: monospace; }
.wplfai-assistant pre { background: rgba(0,0,0,.06); padding: 8px 10px; border-radius: 8px; overflow-x: auto; font-size: .85em; margin: 6px 0; }
.wplfai-assistant pre code { background: none; padding: 0; }
.wplfai-assistant blockquote { border-left: 3px solid rgba(255,255,255,.4); margin: 4px 0 6px 4px; padding-left: 10px; opacity: .85; }
.wplfai-assistant a { color: inherit; text-decoration: underline; }
.wplfai-assistant a:hover { opacity: .8; }

/* v0.9.0 — Source chips */
.wplfai-sources { padding: 6px 12px 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wplfai-sources-label { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.6); margin-right: 2px; flex-basis: 100%; }
.wplfai-source-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; text-decoration: none; background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.25); transition: background .15s; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wplfai-source-chip:hover { background: rgba(255,255,255,.28); color: #fff; }
.wplfai-source-chip::before { content: '↗'; margin-right: 4px; font-size: 10px; }
.wplfai-source-internal::before { content: '→'; }

/* v1.1.1 — Animated typing indicator */
@keyframes wplfai-dot-pulse {
  0%, 60%, 100% { opacity: .25; transform: scale(.8); }
  30%            { opacity: 1;   transform: scale(1.1); }
}
.wplfai-typing-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px !important;
  min-height: 38px;
}
.wplfai-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  animation: wplfai-dot-pulse 1.2s ease-in-out infinite;
}
.wplfai-dot:nth-child(1) { animation-delay: 0s;    }
.wplfai-dot:nth-child(2) { animation-delay: 0.2s;  }
.wplfai-dot:nth-child(3) { animation-delay: 0.4s;  }
