/* ── Botão flutuante ── */
.evo-whatsapp-float {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 10001;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45);
	transition: transform 0.2s, box-shadow 0.2s;
	overflow: visible;
	animation: evaWaPulse 2.6s ease infinite;
}

@keyframes evaWaPulse {
	0%,100% { box-shadow: 0 6px 16px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.55); }
	60%     { box-shadow: 0 6px 16px rgba(37,211,102,.45), 0 0 0 14px rgba(37,211,102,0); }
}

.evo-whatsapp-float:hover {
	transform: scale(1.08);
	color: #fff;
}

/* tooltip */
.evo-whatsapp-float__tooltip {
	position: absolute;
	right: 64px;
	bottom: 50%;
	transform: translateY(50%);
	background: #0f172a;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
	padding: 0.375rem 0.75rem;
	border-radius: 8px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
}

.evo-whatsapp-float:hover .evo-whatsapp-float__tooltip {
	opacity: 1;
}

/* ── Popup de engajamento ── */
.evo-wa-popup {
	position: fixed;
	right: 1.25rem;
	bottom: 5.25rem;
	z-index: 10002;
	width: 290px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(0,0,0,.18);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	opacity: 0;
	transform: translateY(12px) scale(.97);
	transition: opacity .28s ease, transform .28s ease;
	pointer-events: none;
}

.evo-wa-popup.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

/* Header verde: avatar + nome/online + fechar */
.evo-wa-popup__header {
	display: flex;
	align-items: center;
	gap: .75rem;
	background: #25d366;
	color: #fff;
	padding: .625rem .875rem;
}

.evo-wa-popup__avatar {
	position: relative;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255,255,255,.15);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
	border: 2px solid rgba(255,255,255,.3);
}
.evo-wa-popup__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.evo-wa-popup__online {
	position: absolute;
	bottom: 1px;
	right: 1px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #4ade80;
	border: 2px solid #25d366;
	animation: evaOnlinePulse 1.8s ease-in-out infinite;
}
@keyframes evaOnlinePulse {
	0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
	50%       { opacity: .85; box-shadow: 0 0 0 4px rgba(74,222,128,0); }
}

.evo-wa-popup__header-info {
	flex: 1;
	min-width: 0;
}
.evo-wa-popup__header-info strong {
	display: block;
	font-size: .875rem;
	font-weight: 700;
	line-height: 1.2;
}
.evo-wa-popup__header-info span {
	font-size: .75rem;
	opacity: .8;
}

.evo-wa-popup__close {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(255,255,255,.15);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transition: background .15s;
	padding: 0;
	flex-shrink: 0;
}
.evo-wa-popup__close:hover { background: rgba(255,255,255,.3); }

/* Body: fundo bege WA */
.evo-wa-popup__body {
	background: #eae1da;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: .875rem;
}

/* Bubble estilo WhatsApp */
.evo-wa-popup__bubble {
	background: #fff;
	border-radius: 0 10px 10px 10px;
	padding: .625rem .75rem 1.375rem .75rem;
	position: relative;
	max-width: 92%;
	box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.evo-wa-popup__bubble::before {
	content: '';
	position: absolute;
	left: -10px;
	top: 0;
	width: 0;
	height: 0;
	border: 10px solid transparent;
	border-right-color: #fff;
	border-left: 0;
	border-top: 0;
}
.evo-wa-popup__bubble p {
	margin: 0;
	font-size: .875rem;
	color: #1a1a1a;
	line-height: 1.5;
}
.evo-wa-popup__bubble span {
	position: absolute;
	bottom: .3rem;
	right: .625rem;
	font-size: .6875rem;
	color: #94a3b8;
}

.evo-wa-popup__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	width: 100%;
	padding: .65rem 1rem;
	border-radius: 10px;
	background: #25d366;
	color: #fff;
	font-size: .875rem;
	font-weight: 700;
	text-decoration: none;
	transition: background .15s;
	box-shadow: 0 2px 8px rgba(37,211,102,.3);
}
.evo-wa-popup__btn:hover { background: #1db954; color: #fff; }

/* ── Mobile ── */
@media (max-width: 640px) {
	.evo-whatsapp-float {
		right: 1rem;
		bottom: 6rem;
		width: 50px;
		height: 50px;
	}
	.evo-whatsapp-float__tooltip { display: none; }
	.evo-wa-popup {
		right: 1rem;
		bottom: 10rem;
		width: calc(100vw - 2rem);
		max-width: 290px;
	}
}
