/*
 * Pinned to the BOTTOM-LEFT corner: the bottom-right corner belongs to
 * iubenda (the cookie banner and, after consent, its floating preferences
 * button), so the two would otherwise sit on top of each other.
 *
 * The markup is label-then-button, which reads correctly on the right; on
 * the left the row is reversed so the button stays nearest the edge and the
 * label opens inward.
 */
.linfasy-wa-float {
	position: fixed;
	left: 1.25rem;
	bottom: 1.25rem;
	z-index: 9999;
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
	animation: linfasy-wa-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.linfasy-wa-float__label {
	background: var(--card, #fff);
	color: var(--foreground, #1a1a1a);
	font-size: 0.8rem;
	font-weight: 500;
	padding: 0.5rem 0.9rem;
	border-radius: 9999px;
	box-shadow: var(--shadow-soft, 0 8px 24px rgba(0, 0, 0, 0.12));
	white-space: nowrap;
	opacity: 0;
	transform: translateX(-8px);
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
	animation: linfasy-wa-tip 6s ease 1.4s 1;
}

.linfasy-wa-float:hover .linfasy-wa-float__label,
.linfasy-wa-float:focus-visible .linfasy-wa-float__label {
	opacity: 1;
	transform: translateX(0);
	animation: none;
}

.linfasy-wa-float__btn {
	position: relative;
	display: grid;
	place-items: center;
	height: 3.5rem;
	width: 3.5rem;
	flex-shrink: 0;
	border-radius: 9999px;
	background: #25d366;
	color: #fff;
	box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
}

.linfasy-wa-float__btn svg {
	height: 1.9rem;
	width: 1.9rem;
	position: relative;
}

.linfasy-wa-float__ring {
	position: absolute;
	inset: 0;
	border-radius: 9999px;
	background: #25d366;
	animation: linfasy-wa-pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes linfasy-wa-in {
	from {
		opacity: 0;
		transform: translateY(24px) scale(0.85);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes linfasy-wa-pulse {
	0% {
		transform: scale(1);
		opacity: 0.55;
	}
	100% {
		transform: scale(1.9);
		opacity: 0;
	}
}

@keyframes linfasy-wa-tip {
	0%, 100% {
		opacity: 0;
		transform: translateX(-8px);
	}
	8%, 75% {
		opacity: 1;
		transform: translateX(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.linfasy-wa-float,
	.linfasy-wa-float__label,
	.linfasy-wa-float__ring {
		animation: none !important;
	}
}

@media (max-width: 640px) {
	.linfasy-wa-float {
		left: 1rem;
		bottom: 1rem;
	}
	.linfasy-wa-float__btn {
		height: 3.25rem;
		width: 3.25rem;
	}
	.linfasy-wa-float__label {
		display: none;
	}
}
