/* Estilos gerais do chatbot flutuante */
.chatbot-float {
  position: fixed;
  bottom: 160px; /* acima do botão WhatsApp */
  right: 15px;
  z-index: 1000;
}

.chatbot-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #004aad;
  color: #fff;
  border: none;
  font-size: 26px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.chatbot-btn:hover {
  transform: scale(1.1);
  background: #002a6b;
}

/* Janela do chat */
.chatbot-window {
  position: fixed;
  bottom: 230px;
  right: 15px;
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 1001;
}

.chatbot-header {
  background: #004aad;
  color: #fff;
  padding: 12px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-messages {
  height: 300px;
  overflow-y: auto;
  padding: 10px;
  background: #f8f9fa;
}

.chatbot-input {
  display: flex;
  border-top: 1px solid #ddd;
}

.chatbot-input input {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 14px;
  outline: none;
}

.chatbot-input button {
  border: none;
  background: #004aad;
  color: white;
  padding: 0 15px;
  cursor: pointer;
}

.chatbot-input button:hover {
  background: #002a6b;
}

.message-container {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

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

.avatar {
  width: 32px;
  height: 32px;
  background: #e9ecef;
  color: #004aad;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: 18px;
}

.message-container.user .avatar {
  order: 2;
  margin-left: 8px;
  margin-right: 0;
  background: #004aad;
  color: white;
}

.message {
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 70%;
  word-wrap: break-word;
  line-height: 1.4;
}

.user-message {
  background: #004aad;
  color: white;
}

.bot-message {
  background: #f1f3f6;
  color: #000;
}

/* ===== LINKS NAS MENSAGENS DO BOT ===== */
.bot-message a {
  color: #25D366;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  margin-top: 6px;
}

.bot-message a:hover {
  color: #128C7E;
  text-decoration: underline;
}

/* Estilo de botão WhatsApp (para mensagens específicas) */
.bot-message a[href*="wa.me"] {
  background-color: #25D366;
  color: white !important;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  margin-top: 6px;
}

.bot-message a[href*="wa.me"]:hover {
  background-color: #128C7E;
}

/* 🔹 Impede cursor pointer em mensagens comuns (user e bot) */
.message-container {
    cursor: default !important;
}

/* 🔹 Mensagens internas também não devem ter cursor pointer */
.message {
    cursor: default !important;
}

/* 🔹 Somente links ficam clicáveis */
.message a,
.bot-message a {
    cursor: pointer !important;
}

