/* WhatsApp Support Widget Container */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.whatsapp-widget.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Botão de Fechar (Close Button) */
.whatsapp-close-btn {
  position: absolute;
  top: -10px; /* Ajuste para posicionar fora do badge principal */
  right: -10px;
  width: 24px;
  height: 24px;
  background-color: #9ca3af; /* Cinza claro para contraste */
  color: #1f2937; /* Cor do texto/ícone */
  border-radius: 50%;
  text-align: center;
  font-size: 14px;
  line-height: 24px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease;
  z-index: 1001; /* Acima do badge principal */
}

.whatsapp-close-btn:hover {
  background-color: #e5e7eb;
}

/* WhatsApp Support Badge - Floating Button */
.whatsapp-float {
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.6);
  transform: scale(1.05); /* Reduzi o scale para não interferir tanto com o botão de fechar */
  color: #FFF;
}

.whatsapp-float i {
  margin: 0;
  line-height: 60px;
}

/* Tooltip opcional */
.whatsapp-float::before {
  content: "Precisa de ajuda?";
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #1f2937;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:hover::before {
  opacity: 1;
}

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

.whatsapp-float.pulse {
  animation: pulse 2s infinite;
}

/* Responsivo - Mobile */
@media screen and (max-width: 768px) {
  .whatsapp-widget {
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 26px;
  }
  
  .whatsapp-float i {
    line-height: 55px;
  }
  
  .whatsapp-float::before {
    display: none; /* Esconde tooltip no mobile */
  }
  
  .whatsapp-close-btn {
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 20px;
    top: -5px;
    right: -5px;
  }
}