.odoo-chatbot-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  font-family: Roboto, sans-serif;
}

.odoo-chatbot-toggle {
  width: 100px;
  height: 100px;
  text-indent: -99999px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('/themes/cd_sonla/images/chatbot_ai.gif') no-repeat;
  background-size: contain;
  color: #fff;
}

.odoo-chatbot-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 340px;
  max-height: min(480px, 80vh);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.odoo-chatbot-panel.is-open {
  display: flex;
}

.odoo-chatbot-header {
  padding: 12px 16px;
  background: linear-gradient(135deg, #1d4ed8, #6366f1);
  color: #fff;
}

.odoo-chatbot-title {
  font-size: 14px;
  font-weight: 600;
}

.odoo-chatbot-subtitle {
  font-size: 12px;
  opacity: 0.9;
}

.odoo-chatbot-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #f9fafb;
}

.odoo-chatbot-messages {
  flex: 1 1 auto;
  padding: 12px;
  overflow-y: auto;
  min-height: 0;
  width: 100%;
}

.odoo-chatbot-message.from-user {
  justify-content: flex-end;
  display:flex;
}

.odoo-chatbot-bubble {
  max-width: 80%;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.odoo-chatbot-message.from-user .odoo-chatbot-bubble {
  background: #2563eb;
  color: #fff;
  border-bottom-right-radius: 2px;
}

.odoo-chatbot-message.from-bot .odoo-chatbot-bubble {
  background: #e5e7eb;
  color: #111827;
  border-bottom-left-radius: 2px;
}

.odoo-chatbot-form-wrapper {
  border-top: 1px solid #e5e7eb;
  padding: 8px;
  background: #ffffff;
}

.odoo-chatbot-form {
  display: flex;
  gap: 6px;
}

.odoo-chatbot-form input[type="text"] {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 13px;
  padding: 6px 10px;
}

.odoo-chatbot-form button[type="submit"] {
  border-radius: 999px;
  border: none;
  padding: 6px 12px;
  font-size: 13px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}

.odoo-chatbot-form button[type="submit"]:hover {
  background: #1d4ed8;
}

.odoo-chatbot-loading .odoo-chatbot-toggle {
  opacity: 0.8;
}
