/* Cụm nút liên hệ nổi bên phải (inc/class-lilac-floating-contact.php).
   Nút tròn xanh + vòng sóng lan ra liên tục; mobile thu nhỏ hơn. */
.lilac-floating-contact {
	--lilac-fc-size: 44px;
	--lilac-fc-color: #1877f2;

	position: fixed;
	right: 16px;
	bottom: 110px;
	z-index: 9990;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.lilac-floating-contact__item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--lilac-fc-size);
	height: var(--lilac-fc-size);
	border-radius: 50%;
	background: var(--lilac-fc-color);
	color: #fff !important;
	box-shadow: 0 0 0 5px rgba(24, 119, 242, 0.25);
	text-decoration: none !important;
	transition: transform 0.2s ease;
}

.lilac-floating-contact__item:hover {
	transform: scale(1.08);
}

/* Vòng sóng lan ra */
.lilac-floating-contact__item::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--lilac-fc-color);
	opacity: 0.4;
	z-index: -1;
	animation: lilac-fc-pulse 1.8s ease-out infinite;
}

.lilac-floating-contact__item--zalo {
	--lilac-fc-color: #0068ff;
}

.lilac-floating-contact__item--zalo::before {
	animation-delay: 0.3s;
}

.lilac-floating-contact__item--phone {
	--lilac-fc-color: #1e6fd9;
}

.lilac-floating-contact__item--phone::before {
	animation-delay: 0.6s;
}

.lilac-floating-contact__item svg {
	width: 55%;
	height: 55%;
}

.lilac-floating-contact__item--phone svg {
	width: 45%;
	height: 45%;
	animation: lilac-fc-ring 1.5s ease-in-out infinite;
}

/* Logo Zalo: chữ trắng trong ô bo góc */
.lilac-floating-contact__zalo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 62%;
	height: 50%;
	border: 2px solid #fff;
	border-radius: 6px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
}

@keyframes lilac-fc-pulse {
	0% {
		transform: scale(1);
		opacity: 0.45;
	}
	100% {
		transform: scale(1.6);
		opacity: 0;
	}
}

@keyframes lilac-fc-ring {
	0%, 50%, 100% { transform: rotate(0); }
	10%, 30% { transform: rotate(-15deg); }
	20%, 40% { transform: rotate(15deg); }
}

@media (max-width: 767px) {
	.lilac-floating-contact {
		--lilac-fc-size: 38px;

		right: 12px;
		bottom: 90px;
		gap: 14px;
	}

	.lilac-floating-contact__zalo {
		font-size: 8px;
		border-width: 1.5px;
		border-radius: 5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lilac-floating-contact__item::before,
	.lilac-floating-contact__item--phone svg {
		animation: none;
	}
}
