
/* WhatsApp Float Button */
.whatsapp-float-btn {
  position: fixed;
  bottom: 65px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: transform 0.3s ease;
}

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

.whatsapp-float-btn img {
  width: 35px;
  height: 35px;
}

/* WhatsApp Popup */
.whatsapp-popup {
  position: fixed;
  bottom: 128px;
  right: 20px;
  width: 420px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  overflow: hidden;
}

.whatsapp-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.whatsapp-popup-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.close-popup {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.form-whatsapp {
  padding: 10px;
}

.whatsapp-popup form {
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.whatsapp-popup label {
  margin-bottom: 5px;
  font-size: 13px;
  color: #333;
  font-weight: 500;
}

.politica-whatsapp {
  display: flex;
}

.politica-whatsapp input[type="checkbox"] {
  width: auto;
}

.aviso-whatsapp{
  text-align: center;
  margin-top: 6px;
  font-size: 12px;
}
.whatsapp-popup input[type="text"],
.whatsapp-popup input[type="email"],
.whatsapp-popup input[type="tel"] {
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.whatsapp-popup input[type="text"]:focus,
.whatsapp-popup input[type="email"]:focus,
.whatsapp-popup input[type="tel"]:focus {
  border-color: var(--primary-color);
  outline: none;
}

.whatsapp-popup input[type="checkbox"] {
  margin-right: 8px;
  accent-color: var(--primary-color);
}

.whatsapp-popup label[for="accept-terms"] {
  font-size: 11px;
  line-height: 1.4;
  color: #666;
}

.whatsapp-popup .start-conversation {
  background: var(--primary-color);
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
  transition: background 0.3s;
}

.whatsapp-popup .start-conversation:hover {
  background: #000;
}

.whatsapp-popup p {
  font-size: 13px;
  margin-bottom: 15px;
  color: #555;
}

/* Animação de entrada do balão */
@keyframes balloonIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Pulso do botão WhatsApp */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float-btn {
  animation: pulse 1.5s infinite;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.2s;
}

.whatsapp-float-btn img {
  width: 32px;
  height: 32px;
  display: block;
}

#whatsapp-discount-balloon {
  margin-right: 10px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  padding: 12px 18px 12px 12px;
  max-width: 320px;
  min-width: 220px;
  font-family: inherit;
  position: relative;
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.2s, transform 0.2s;
}

#whatsapp-discount-balloon.active {
  animation: balloonIn 0.6s cubic-bezier(.23, 1.01, .32, 1) forwards;
  opacity: 1;
  pointer-events: auto;
}

#whatsapp-discount-balloon {
  margin-right: 10px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  padding: 12px 18px 12px 12px;
  max-width: 320px;
  min-width: 220px;
  font-family: inherit;
  position: relative;
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
  align-items: flex-start;
}

#whatsapp-discount-balloon.active {
  animation: balloonIn 0.6s cubic-bezier(.23, 1.01, .32, 1) forwards;
  opacity: 1;
  pointer-events: auto;
}

/* Cauda do balão (lado direito, apontando para o botão) */
#whatsapp-discount-balloon::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 70px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.10));
  z-index: 2;
}

.wpp-balloon-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  border: 2px solid #eee;
  flex-shrink: 0;
}

.wpp-balloon-content {
  flex: 1;
  min-width: 0;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .whatsapp-popup {
    width: calc(100% - 40px);
    left: 20px;
    right: 20px;
  }

  .whatsapp-float-btn {
    width: 55px;
    height: 55px;
  }


  .boxs {
    max-width: 321px;
  }
}
