/**
 * WhatsApp flutuante.
 * Referência: popup de 100 × 100 px alinhado ao canto inferior direito.
 */

.vt-whatsapp {
	position: fixed;
	right: env(safe-area-inset-right, 0px);
	bottom: env(safe-area-inset-bottom, 0px);
	z-index: 900;
	width: 100px;
	height: 100px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	animation: vt-whatsapp-appear 300ms ease 2s forwards;
}

.vt-whatsapp__link {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	pointer-events: auto;
}

.vt-whatsapp__link:focus-visible {
	outline: 3px solid var(--vt-color-white);
	outline-offset: -5px;
}

.vt-whatsapp__player,
.vt-whatsapp__fallback {
	display: block;
	width: 100%;
	height: 100%;
}

.vt-whatsapp__player {
	display: none;
}

.vt-whatsapp__player svg {
	display: block;
	width: 100%;
	height: 100%;
}

.vt-whatsapp.is-lottie-ready .vt-whatsapp__player {
	display: block;
}

.vt-whatsapp.is-lottie-ready .vt-whatsapp__fallback {
	display: none;
}

@keyframes vt-whatsapp-appear {
	from {
		opacity: 0;
		visibility: visible;
	}

	to {
		opacity: 1;
		visibility: visible;
	}
}

@media (max-width: 767px) {
	.vt-whatsapp {
		width: 64px;
		height: 64px;
		right: calc(10px + env(safe-area-inset-right, 0px));
		bottom: calc(10px + env(safe-area-inset-bottom, 0px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.vt-whatsapp {
		animation-duration: 0.01ms;
	}
}
