/* BOTÃO FLUTUANTE */
#whg-floating-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99999;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#whg-floating-button img {
  width: 50px;   /* SVG 50x50 */
  height: 50px;
  display: block;
  filter: brightness(0) invert(1);
}

#whg-floating-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.6);
  background: #16a34a;
}

/* POPUP */
#whg-popup.whg-hidden {
  display: none;
}

#whg-popup {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#whg-popup .whg-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

#whg-popup .whg-popup-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 22px 20px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
  animation: whg-pop-in 0.18s ease-out;
}

#whg-popup h3 {
  margin-top: 0;
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

#whg-popup p {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 13px;
  color: #6b7280;
}

#whg-popup form label {
  display: block;
  font-size: 12px;
  color: #4b5563;
  margin-bottom: 8px;
}

/* CAMPOS DO FORM */
#whg-popup form input[type="text"],
#whg-popup form input[type="tel"] {
  width: 100%;
  padding: 0 10px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 13px;
  margin-top: 4px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#whg-popup form input[type="text"]:focus,
#whg-popup form input[type="tel"]:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.15);
}

/* BOTÃO */
.whg-submit-btn {
  width: 100%;
  margin-top: 10px;
  padding: 14px 12px;
  text-align: center;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.45);
}

.whg-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.6);
  opacity: 0.97;
}

.whg-submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

/* BOTÃO X */
.whg-close-btn {
  position: absolute;
  right: 10px;
  top: 8px;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: #9ca3af;
  padding: 4px;
  line-height: 1;
  transition: color 0.12s ease, transform 0.12s ease;
}

.whg-close-btn:hover {
  color: #4b5563;
  transform: rotate(5deg);
}

/* ANIMAÇÃO */
@keyframes whg-pop-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* RESPONSIVO */
@media (max-width: 480px) {
  #whg-popup .whg-popup-content {
    margin: 0 14px;
  }

  #whg-floating-button {
    right: 12px;
    bottom: 12px;
    width: 60px;
    height: 60px;
  }

  #whg-floating-button img {
    width: 50px;
    height: 50px;
  }
}