/* =========================
   WHATSAPP FLUTUANTE - WIDGET
========================= */

.wa-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

/* Botão flutuante do WhatsApp */
.wa-button {
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
  transition: transform 0.3s ease;
}

.wa-button:hover {
  transform: scale(1.1);
}

/* Ícone do WhatsApp */
.wa-button::before {
  content: "";
  width: 32px;
  height: 32px;
  background: url("https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/whatsapp.svg") no-repeat center;
  background-size: contain;
  filter: invert(1);
}

/* Animação de pulso */
@keyframes pulse {
  0% { 
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); 
  }
  70% { 
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); 
  }
  100% { 
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); 
  }
}

/* Caixa de chat */
.wa-chat {
  width: 300px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: none;
  margin-bottom: 10px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Cabeçalho do chat */
.wa-header {
  background: #25d366;
  color: white;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.wa-header button {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.wa-header button:hover {
  transform: scale(1.2);
}

/* Corpo do chat */
.wa-body {
  padding: 15px;
}

.wa-message {
  background: #f1f1f1;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

/* Botão de abrir chat */
.wa-open {
  display: block;
  text-align: center;
  background: #25d366;
  color: white;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s ease, transform 0.2s ease;
}

.wa-open:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

/* Responsivo */
@media (max-width: 480px) {
  .wa-container {
    bottom: 15px;
    right: 15px;
  }

  .wa-chat {
    width: 280px;
  }
}
