/* Site-wide floating WhatsApp button */

.suzuka-whatsapp-float {
	position: fixed;
	right: calc(1.25rem + env(safe-area-inset-right, 0px));
	bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background-color: #25d366;
	color: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18), 0 2px 4px rgba(0, 0, 0, 0.12);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.suzuka-whatsapp-float:hover,
.suzuka-whatsapp-float:focus-visible {
	background-color: #20bd5a;
	color: #fff;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22), 0 3px 6px rgba(0, 0, 0, 0.14);
	transform: translateY(-2px);
}

.suzuka-whatsapp-float:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.suzuka-whatsapp-float__icon {
	width: 1.75rem;
	height: 1.75rem;
	display: block;
}

@media (max-width: 900px) {
	.suzuka-whatsapp-float {
		box-sizing: border-box;
		top: auto;
		right: calc(1rem + env(safe-area-inset-right, 0px));
		width: 3.25rem;
		height: 3.25rem;
		max-width: calc(100vw - 2rem);
	}

	/* Bottom offset when mobile app bar is present — suzuka-header.css sets precise value. */
	body:not(.suzuka-has-mobile-bottom-nav) .suzuka-whatsapp-float {
		bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
	}

	.suzuka-whatsapp-float__icon {
		width: 1.625rem;
		height: 1.625rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.suzuka-whatsapp-float {
		transition: none;
	}

	.suzuka-whatsapp-float:hover,
	.suzuka-whatsapp-float:focus-visible {
		transform: none;
	}
}
