.chatbot-widget { position: fixed; right: 20px; bottom: 20px; z-index: 1050; font-family: inherit; }
.chatbot-toggle {
  width: 58px; height: 58px; border-radius: 50%; border: none;
  background: #1e40af; color: #fff; font-size: 1.5rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: pointer;
  position: relative;
}
.chatbot-toggle-badge {
  position: absolute; top: -4px; right: -4px; background: #dc2626;
  color: #fff; font-size: .7rem; border-radius: 50%;
  width: 18px; height: 18px; line-height: 18px; text-align: center;
}
.chatbot-panel {
  display: none; position: absolute; bottom: 72px; right: 0;
  width: 360px; max-height: 520px; background: #fff;
  border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,.25);
  overflow: hidden; flex-direction: column;
}
.chatbot-panel.aberto { display: flex; }
.chatbot-header {
  background: #1e40af; color: #fff; padding: .75rem 1rem;
  display: flex; justify-content: space-between; align-items: center;
}
.chatbot-close { background: transparent; border: none; color: #fff; font-size: 1.1rem; cursor: pointer; }
.chatbot-messages {
  flex: 1; overflow-y: auto; padding: 1rem;
  background: #f8fafc; display: flex; flex-direction: column; gap: .5rem;
}
.chatbot-msg { max-width: 85%; padding: .55rem .85rem; border-radius: 12px; font-size: .9rem; line-height: 1.35; white-space: pre-line; }
.chatbot-msg.user { align-self: flex-end; background: #1e40af; color: #fff; border-bottom-right-radius: 4px; }
.chatbot-msg.bot  { align-self: flex-start; background: #e2e8f0; color: #0f172a; border-bottom-left-radius: 4px; }
.chatbot-quick { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
.chatbot-quick button {
  border: 1px solid #cbd5e1; background: #fff; color: #1e40af;
  border-radius: 999px; padding: .35rem .7rem; font-size: .78rem; cursor: pointer;
}
.chatbot-quick button:hover { background: #eff6ff; }
.chatbot-form { display: flex; border-top: 1px solid #e2e8f0; }
.chatbot-form input { flex: 1; border: none; padding: .8rem 1rem; font-size: .9rem; outline: none; }
.chatbot-form button { background: #1e40af; border: none; color: #fff; padding: 0 1.1rem; cursor: pointer; }
.chatbot-typing { display: inline-block; animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:.3} 50%{opacity:1} }