/* WP WhatsApp Leads – botão flutuante frontend */

/* Container fixo no canto */
.wpwa-floating-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

/* Quando for esquerda, sobrescreve */
.wpwa-floating-wrap.wpwa-pos-left {
  left: 24px;
  right: auto;
}

/* Botão */
.wpwa-floating-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* Hover simples */
.wpwa-floating-button:hover {
  filter: brightness(1.08);
}

/* Área do ícone */
.wpwa-floating-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

/* Força o tamanho do SVG */
.wpwa-floating-icon svg {
  width: 18px !important;
  height: 18px !important;
  display: block;
}

/* Texto */
.wpwa-floating-label {
  line-height: 1;
}

/* Pulse opcional */
.wpwa-floating-button.wpwa-floating-pulse::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid rgba(37, 211, 102, 0.7);
  opacity: 0;
  animation: wpwa-pulse 1.8s infinite;
  pointer-events: none;
}

@keyframes wpwa-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.2);
    opacity: 0;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Ajuste se tiver barra admin */
body.admin-bar .wpwa-floating-wrap {
  bottom: 32px;
}

/* Mobile */
@media (max-width: 782px) {
  .wpwa-floating-wrap {
    bottom: 16px;
  }
  .wpwa-floating-wrap.wpwa-pos-right {
    right: 16px;
  }
  .wpwa-floating-wrap.wpwa-pos-left {
    left: 16px;
  }
}
