/* ═══════════════════════════════════════════════════════════════
   WP WhatsApp Analytics — Estilos do front-end
   ═══════════════════════════════════════════════════════════════ */

/* ── Botão flutuante ──────────────────────────────────────────── */
.wwa-float {
	position: fixed;
	bottom: 24px;
	z-index: 9999;
	line-height: 0; /* evita espaço extra abaixo do link */
}

.wwa-float.wwa-right { right: 24px; }
.wwa-float.wwa-left  { left:  24px; }

.wwa-float a {
	display:     inline-flex;
	align-items: center;
	gap:         10px;
	background:  var(--wwa-color, #25D366);
	color:       #fff;
	text-decoration: none;
	border-radius: 50px;
	padding:     13px 22px;
	box-shadow:  0 4px 16px rgba(0, 0, 0, 0.25);
	transition:  transform 0.2s ease, box-shadow 0.2s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size:   15px;
	font-weight: 600;
	line-height: 1;
}

.wwa-float a:hover,
.wwa-float a:focus {
	transform:  translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	color:      #fff;
	outline:    none;
}

.wwa-float svg {
	flex-shrink: 0;
}

/* Pulsação sutil de atenção */
@keyframes wwa-pulse {
	0%   { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(37, 211, 102, 0.55); }
	70%  { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 0 0 14px rgba(37, 211, 102, 0); }
	100% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 0 0 0   rgba(37, 211, 102, 0); }
}

.wwa-float a {
	animation: wwa-pulse 2.4s ease-out infinite;
}

/* ── Shortcode ───────────────────────────────────────────────── */
.wwa-shortcode-btn {
	display:         inline-flex;
	align-items:     center;
	gap:             8px;
	background:      #25D366;
	color:           #fff;
	text-decoration: none;
	border-radius:   6px;
	padding:         10px 20px;
	font-size:       15px;
	font-weight:     600;
	line-height:     1.4;
	transition:      opacity 0.2s, transform 0.15s;
	border:          none;
	cursor:          pointer;
}

.wwa-shortcode-btn:hover,
.wwa-shortcode-btn:focus {
	opacity:   0.88;
	transform: translateY(-1px);
	color:     #fff;
	outline:   none;
}

/* ── Responsividade ─────────────────────────────────────────── */
@media (max-width: 480px) {
	.wwa-float a {
		padding: 13px 15px;
	}

	/* Esconde o texto no mobile, deixa só o ícone */
	.wwa-float .wwa-label {
		display: none;
	}
}
