/* Botón flotante */
.orkeia-chatbot-button {
  position: fixed;
  bottom: 20px;
  z-index: 9999;
  background-color: #2563eb;
  color: #fff;
  border-radius: 9999px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 14px;
}

.orkeia-chatbot-button:hover {
  background-color: #1d4ed8;
}

/* Posición izquierda/derecha compartida por botón y ventana */
.orkeia-chatbot--left {
  left: 20px;
}

.orkeia-chatbot--right {
  right: 20px;
}

/* Ventana del chat */
.orkeia-chatbot-window {
  position: fixed;
  bottom: 80px;
  width: 320px;
  max-width: 100%;
  height: 420px;
  max-height: 70vh;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.orkeia-chatbot-window.open {
  display: flex;
}

/* Header */
.orkeia-chatbot-header {
  background: #2563eb;
  color: #fff;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.orkeia-chatbot-header-title {
  font-size: 14px;
  font-weight: 600;
}

.orkeia-chatbot-header-close {
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

/* Área de mensajes */
.orkeia-chatbot-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f3f4f6;
}

.orkeia-chatbot-message {
  max-width: 85%;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.orkeia-chatbot-message.user {
  margin-left: auto;
  background: #2563eb;
  color: #fff;
  border-bottom-right-radius: 2px;
}

.orkeia-chatbot-message.bot {
  margin-right: auto;
  background: #ffffff;
  color: #111827;
  border-bottom-left-radius: 2px;
}

/* Footer */
.orkeia-chatbot-footer {
  padding: 8px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  gap: 6px;
}

.orkeia-chatbot-input {
  flex: 1;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  padding: 6px 10px;
  font-size: 13px;
}

.orkeia-chatbot-send {
  border-radius: 9999px;
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
}

.orkeia-chatbot-send:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Indicador de typing */
.orkeia-chatbot-typing {
  font-size: 11px;
  color: #6b7280;
  padding: 0 10px 6px;
}
