/* HV Floating WhatsApp Button — front-end styles */

.hvfw-wrap {
	position: fixed;
	bottom: var(--hvfw-bottom, 24px);
	z-index: var(--hvfw-z, 99999);
	display: flex;
	align-items: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.hvfw-pos-right { right: var(--hvfw-side, 24px); }
.hvfw-pos-left  { left:  var(--hvfw-side, 24px); }

.hvfw-button {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	box-shadow: none;
}

/* Label sits on the inner side of the icon */
.hvfw-pos-left .hvfw-button { flex-direction: row-reverse; }

.hvfw-icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--hvfw-size, 56px);
	height: var(--hvfw-size, 56px);
	border-radius: 50%;
	background: var(--hvfw-bg, #25d366);
	color: var(--hvfw-icon-color, #ffffff);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hvfw-icon svg {
	width: 58%;
	height: 58%;
	display: block;
}

.hvfw-button:hover .hvfw-icon,
.hvfw-button:focus-visible .hvfw-icon {
	transform: scale(1.07);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.hvfw-button:focus-visible {
	outline: 3px solid var(--hvfw-bg, #25d366);
	outline-offset: 3px;
	border-radius: 999px;
}

.hvfw-label {
	background: #ffffff;
	color: #1d2327;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	padding: 10px 14px;
	border-radius: 999px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
	white-space: nowrap;
}

/* Pulse ring */
.hvfw-pulse .hvfw-icon::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--hvfw-bg, #25d366);
	opacity: 0.45;
	z-index: -1;
	animation: hvfw-pulse 2.2s ease-out infinite;
}

@keyframes hvfw-pulse {
	0%   { transform: scale(1);    opacity: 0.45; }
	70%  { transform: scale(1.55); opacity: 0; }
	100% { transform: scale(1.55); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.hvfw-pulse .hvfw-icon::before { animation: none; display: none; }
	.hvfw-icon { transition: none; }
}

/* Device visibility (cache-safe: media queries, no server-side UA sniffing) */
@media (max-width: 767px) {
	.hvfw-hide-mobile { display: none !important; }
	.hvfw-label { font-size: 13px; padding: 9px 12px; }
}

@media (min-width: 768px) {
	.hvfw-hide-desktop { display: none !important; }
}

@media print {
	.hvfw-wrap { display: none !important; }
}
