.cm-chatbot-wrapper {
  position: relative;
  max-width: 420px;
  margin: 20px auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cm-chatbot-card {
  display: flex;
  flex-direction: column;
  height: 520px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0E1525 0%, #17233A 40%, #101827 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  color: #FFFFFF;
  overflow: hidden;
}

/* Header */

.cm-chatbot-header {
  display: flex;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at top left, rgba(58, 119, 255, 0.3), transparent 55%);
}

.cm-chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.cm-chatbot-avatar-initials {
  font-weight: 700;
  font-size: 15px;
}

.cm-chatbot-header-text h3 {
  margin: 0 0 2px 0;
  font-size: 19px;
  font-weight: 700;
}

.cm-chatbot-header-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.8);
}

/* Messages */

.cm-chatbot-messages {
  flex: 1;
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cm-message {
  display: flex;
  max-width: 90%;
}

.cm-message-bot {
  justify-content: flex-start;
}

.cm-message-user {
  justify-content: flex-end;
}

.cm-message-bubble {
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
}

.cm-message-bot .cm-message-bubble {
  background: rgba(15, 23, 42, 0.9);
  border-bottom-left-radius: 4px;
}

.cm-message-user .cm-message-bubble {
  background: #3B82F6;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

/* Input row */

.cm-chatbot-input-row {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 13, 26, 0.98);
}

.cm-chatbot-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: #E5E7EB;
  font-size: 14px;
  padding: 9px 12px;
  outline: none;
}

.cm-chatbot-input::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.cm-chatbot-input:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.55);
}

.cm-chatbot-send-btn {
  margin-left: 10px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cm-chatbot-send-btn:hover {
  filter: brightness(1.05);
}

.cm-send-icon {
  font-size: 16px;
  transform: translateX(1px);
}
