/* Isolamento do botão e caixa de diálogo do WhatsApp */
.whatsapp-container {
  position: fixed;
  right: 20px;
  bottom: 80px;
  display: flex;
  align-items: center;
  z-index: 1000;
}

.whatsapp-btn {
  background-color: #25D366;
  /* Verde do WhatsApp */
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.whatsapp-icon {
  width: 36px;
  /* Tamanho elegante para o ícone */
  height: 36px;
}

.whatsapp-text {
  background-color: rgba(255, 255, 255, 0.8);
  color: #13457ab4;
  /* Azul escuro do site */
  padding: 10px 14px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 16px;
  /* Fonte maior na versão desktop */
  font-weight: bold;
  margin-right: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  /* Sombra maior */
}

.whatsapp-text:hover {
  color: #0e325e;
  /* Tom mais escuro do azul ao passar o mouse */
}

.whatsapp-dialog-box {
  position: fixed;
  bottom: 0;
  /* Topada no final da página */
  right: 20px;
  width: 300px;
  background-color: white;
  border-radius: 10px;
  /* Bordas arredondadas em cima e embaixo */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  overflow: hidden;
}

.dialog-header {
  background-color: #13457ab4;
  /* Azul do site */
  color: white;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.dialog-header .logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.dialog-header div {
  flex-grow: 1;
}

.dialog-header .online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #34C759;
  /* Verde de online */
  border-radius: 50%;
  margin-right: 5px;
}

.dialog-header .close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0 10px;
}

.dialog-body {
  padding: 15px;
  background-color: #f9f9f9;
  /* Fundo atual mantido */
}

/* Estilo dos balões de mensagem */
.message-balloon {
  position: relative;
  background-color: #DCF8C6;
  /* Verde claro do WhatsApp */
  color: #333;
  padding: 10px 15px;
  margin: 0 0 10px;
  border-radius: 10px;
  max-width: 85%;
  font-size: 14px;
  font-family: Arial, sans-serif;
  line-height: 1.4;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Cauda à esquerda */
.message-balloon::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-right-color: #DCF8C6;
  left: -8px;
  top: 10px;
}

/* Parte em negrito */
.message-balloon .bold {
  font-weight: bold;
}

/* Indicador de digitação */
.typing-indicator {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  animation: blink 1s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.dialog-body input {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.dialog-body .btn-success {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  background-color: #25D366;
  border-color: #25D366;
}

.dialog-body .btn-success:hover {
  background-color: #1ebe56;
  border-color: #1ebe56;
}

.dialog-body .text-danger {
  margin-top: 10px;
  font-size: 12px;
}

/* Responsividade */
@media (max-width: 576px) {
  .whatsapp-dialog-box {
    width: 90%;
    right: 5%;
    bottom: 0;
    /* Mantido no final */
  }

  .whatsapp-container {
    bottom: 60px;
    /* Ajustado para mobile */
    right: 10px;
  }

  .whatsapp-btn {
    width: 50px;
    height: 50px;
  }

  .whatsapp-icon {
    width: 30px;
    height: 30px;
  }

  .whatsapp-text {
    font-size: 15px;
    /* Aumentado de 12px para 15px em mobile */
    padding: 8px 12px;
  }
}