.ai-chatbot-box {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
  max-width: 100%;
  min-height: 300px;
  font-family: "Segoe UI", Arial, sans-serif;
}
.ai-chatbot-box__header { padding: 6px 8px; font-weight: 600; border-bottom: 1px solid #f0f0f0; margin-bottom: 8px; }
.ai-chatbot-box__messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
  padding: 6px;
  background: #fafafa;
  border-radius: 8px;
}
.ai-chatbot-box__messages .user,
.ai-chatbot-box__messages .ai {
  margin: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  max-width: 80%;
  display: inline-block;
  animation: fadeIn 0.25s ease;
}
.ai-chatbot-box__messages .user {
  background: #e7f3ff;
  margin-left: auto;
  text-align: right;
}
.ai-chatbot-box__messages .ai {
  background: #f5f5f5;
  margin-right: auto;
  text-align: left;
}
.ai-chatbot-box__messages .ai.error {
  background: #ffeaea;
  color: #a00;
}
.ai-chatbot-box__messages .ai.typing {
  font-style: italic;
  opacity: 0.7;
}
.ai-chatbot-box__input {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.ai-chatbot-box__input textarea {
  flex: 1;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: none;
}
.ai-chatbot-box__input button, .ai-chatbot-box__send {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: #0073aa;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.ai-chatbot-box__input button:hover, .ai-chatbot-box__send:hover {
  background: #005f8d;
}
@keyframes fadeIn { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
