/* ESW WhatsApp — botão flutuante. Projeto gerado por Edu Santana (ES Soluções Web e MKT LTDA) | oedusantana.com */

.eswwa {
	position: fixed;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	z-index: 9990;
}

.eswwa--right { right: 24px; }
.eswwa--left { left: 24px; }

.eswwa__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 60px;
	padding: 0;
	border-radius: 999px;
	background: var(--eswwa-cor, #25d366);
	color: #fff;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.eswwa__link:hover,
.eswwa__link:focus-visible {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.eswwa__link:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--eswwa-cor, #25d366);
}

.eswwa__icone {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	flex: 0 0 60px;
}

/* Pulso discreto ao redor do ícone; desligado para quem pede menos movimento. */
.eswwa__icone::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--eswwa-cor, #25d366);
	opacity: 0.5;
	animation: eswwa-pulso 2.4s ease-out infinite;
	z-index: -1;
}

.eswwa__badge {
	position: absolute;
	top: 2px;
	right: 0;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #c50303;
	color: #fff;
	font: 700 12px/1 system-ui, sans-serif;
}

.eswwa__rotulo {
	padding-right: 22px;
	font: 600 15px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
	white-space: nowrap;
}

.eswwa--icon .eswwa__rotulo {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@keyframes eswwa-pulso {
	0% { transform: scale(1); opacity: 0.5; }
	100% { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.eswwa__icone::before { animation: none; opacity: 0; }
	.eswwa__link { transition: none; }
}

/* Celular: pílula vira só o ícone, para não cobrir conteúdo. */
@media (max-width: 480px) {
	.eswwa { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
	.eswwa--right { right: 18px; }
	.eswwa--left { left: 18px; }

	.eswwa--pill .eswwa__rotulo {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}
}
