/**
 * Heritage Harvests - Floating WhatsApp button
 * Attention-seeking, on-brand styling; does not clash with back-to-top (left side).
 */

.hh-whatsapp-float {
	position: fixed;
	left: 20px;
	bottom: 24px;
	z-index: 9998;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hh-whatsapp-float a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	background: #25D366;
	color: #fff !important;
	border-radius: 50%;
	box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.4);
	text-decoration: none !important;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	animation: hhWhatsAppPulse 2s ease-in-out infinite;
}
.hh-whatsapp-float a:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55), 0 0 0 12px rgba(37, 211, 102, 0.1);
	color: #fff !important;
}
.hh-whatsapp-float a:focus {
	color: #fff !important;
	outline: none;
	box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5), 0 0 0 3px rgba(37, 211, 102, 0.4);
}

@keyframes hhWhatsAppPulse {
	0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.35); }
	50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.5), 0 0 0 10px rgba(37, 211, 102, 0); }
}

.hh-whatsapp-float svg {
	width: 32px;
	height: 32px;
	fill: currentColor;
}

/* Tooltip / label */
.hh-whatsapp-float .hh-whatsapp-label {
	position: absolute;
	left: 100%;
	margin-left: 14px;
	padding: 10px 14px;
	background: #1a1a1a;
	color: #fff;
	font-family: 'Outfit', -apple-system, sans-serif;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	border-radius: 10px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	opacity: 0;
	pointer-events: none;
	transform: translateX(-8px);
	transition: opacity 0.25s, transform 0.25s;
}
.hh-whatsapp-float .hh-whatsapp-label::before {
	content: '';
	position: absolute;
	right: 100%;
	top: 50%;
	margin-top: -6px;
	border: 6px solid transparent;
	border-right-color: #1a1a1a;
}
.hh-whatsapp-float a:hover + .hh-whatsapp-label,
.hh-whatsapp-float:hover .hh-whatsapp-label {
	opacity: 1;
	transform: translateX(0);
}

/* Mobile: above bottom nav if present */
@media (max-width: 782px) {
	.hh-whatsapp-float {
		left: 16px;
		bottom: 88px;
	}
	.hh-whatsapp-float .hh-whatsapp-label {
		display: none;
	}
}
