.ai-chatbot-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
}

/* Floating Button */
.ai-chatbot-toggle {
  background: #0074bd;
  color: #fff;
  border: none;
  border-radius: 50px;

  padding: 14px 22px;

  font-size: 16px;
  font-weight: 600;

  cursor: pointer;

  box-shadow: 0 4px 15px rgba(0,0,0,0.2);

  transition: all 0.3s ease;
}

.ai-chatbot-toggle:hover {
  background: #005fa3;
  transform: translateY(-2px);
}

/* Chat Popup */
.ai-chatbot-panel {
  display: none;

  flex-direction: column;

  position: fixed;

  right: 20px;
  bottom: 80px;

  width: 360px;
  height: 520px;

  background: #fff;

  border-radius: 14px;

  overflow: hidden;

  box-shadow: 0 10px 35px rgba(0,0,0,0.25);

  border: 1px solid #ddd;

  z-index: 99999;
}

/* Header */
.ai-chatbot-header {
  background: #0074bd;

  color: #fff;

  padding: 15px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chatbot-header h2 {
  margin: 0;
  font-size: 18px;
}

/* Close button */
.ai-chatbot-close {
  background: transparent;
  border: none;

  color: #fff;

  font-size: 26px;

  cursor: pointer;
}

/* History */
.ai-chatbot-history {
  flex: 1;

  overflow-y: auto;

  padding: 15px;

  background: #f8f9fa;
}

/* Messages */
.ai-chatbot-message-item {
  margin-bottom: 12px;

  padding: 10px 14px;

  border-radius: 10px;

  max-width: 85%;

  line-height: 1.5;
}

.ai-chatbot-user {
  background: #0074bd;
  color: #fff;

  margin-left: auto;
}

.ai-chatbot-assistant {
  background: #e9ecef;
  color: #222;
}

/* Input Area */
.ai-chatbot-input-row {
  display: flex;

  gap: 10px;

  padding: 12px;

  border-top: 1px solid #ddd;

  background: #fff;
}

/* Textarea */
.ai-chatbot-message {
  flex: 1;

  height: 60px;

  resize: none;

  padding: 10px;

  border: 1px solid #ccc;

  border-radius: 8px;
}

/* Send Button */
.ai-chatbot-send {
  background: #0074bd;

  color: #fff;

  border: none;

  padding: 10px 16px;

  border-radius: 8px;

  cursor: pointer;
}

.ai-chatbot-send:hover {
  background: #005fa3;
}

.ai-chatbot-panel.ai-chatbot-visible {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}