/* Botão flutuante WhatsApp — z-index abaixo do modal de busca (10050) e do banner de cookies */

.lubmix-wa-float {
	position: fixed;
	z-index: 10040;
	right: max(1rem, env(safe-area-inset-right, 0px));
	bottom: max(1rem, env(safe-area-inset-bottom, 0px));
	pointer-events: none;
	font-family: inherit;
}

.lubmix-wa-float__link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 9999px;
	background: #25d366;
	color: #fff;
	box-shadow:
		0 4px 14px rgba(15, 118, 110, 0.35),
		0 2px 6px rgba(0, 0, 0, 0.12);
	text-decoration: none;
	pointer-events: auto;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		background-color 0.2s ease;
	isolation: isolate;
}

.lubmix-wa-float__link:hover {
	background: #20bd5a;
	box-shadow:
		0 6px 20px rgba(15, 118, 110, 0.4),
		0 3px 8px rgba(0, 0, 0, 0.14);
	transform: translateY(-2px);
}

.lubmix-wa-float__link:focus {
	outline: none;
}

.lubmix-wa-float__link:focus-visible {
	outline: 3px solid var(--lubmix-secondary, #006bb4);
	outline-offset: 3px;
}

.lubmix-wa-float__pulse {
	position: absolute;
	inset: -3px;
	border-radius: inherit;
	pointer-events: none;
	z-index: -1;
	animation: lubmix-wa-pulse 2.5s ease-out infinite;
}

@keyframes lubmix-wa-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
	}

	70% {
		box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
	}
}

.lubmix-wa-float__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.lubmix-wa-float__img {
	display: block;
	width: 62%;
	height: auto;
	max-height: 62%;
	object-fit: contain;
}

.lubmix-wa-float__svg {
	display: block;
	flex-shrink: 0;
}

.lubmix-wa-float__tooltip {
	position: absolute;
	right: calc(100% + 0.75rem);
	top: 50%;
	transform: translateY(-50%) translateX(6px);
	padding: 0.45rem 0.75rem;
	border-radius: 9999px;
	background: #fff;
	color: var(--lubmix-text, #2f2f2f);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.2s ease,
		visibility 0.2s ease,
		transform 0.2s ease;
}

.lubmix-wa-float__tooltip::after {
	content: '';
	position: absolute;
	left: 100%;
	top: 50%;
	transform: translateY(-50%);
	border: 6px solid transparent;
	border-left-color: #fff;
}

@media (min-width: 1024px) {
	.lubmix-wa-float__link {
		width: 4.25rem;
		height: 4.25rem;
		box-shadow:
			0 6px 22px rgba(15, 118, 110, 0.38),
			0 3px 10px rgba(0, 0, 0, 0.1);
	}

	.lubmix-wa-float__img {
		width: 58%;
		max-height: 58%;
	}

	.lubmix-wa-float__svg {
		width: 34px;
		height: 34px;
	}
}

@media (min-width: 1024px) and (hover: hover) {
	.lubmix-wa-float__link:hover .lubmix-wa-float__tooltip,
	.lubmix-wa-float__link:focus-visible .lubmix-wa-float__tooltip {
		opacity: 1;
		visibility: visible;
		transform: translateY(-50%) translateX(0);
	}
}

@media (max-width: 1023px) {
	.lubmix-wa-float {
		right: max(0.75rem, env(safe-area-inset-right, 0px));
		bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
	}

	.lubmix-wa-float__link {
		width: 2.875rem;
		height: 2.875rem;
		box-shadow:
			0 3px 10px rgba(15, 118, 110, 0.28),
			0 1px 4px rgba(0, 0, 0, 0.08);
	}

	.lubmix-wa-float__pulse {
		animation-duration: 3s;
	}

	@keyframes lubmix-wa-pulse {
		0% {
			box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.35);
		}

		70% {
			box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
		}

		100% {
			box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
		}
	}
}

@media print {
	.lubmix-wa-float {
		display: none !important;
	}
}
