/**
 * Nút nổi gọi điện + Zalo — dữ liệu từ Cài đặt → Thông tin liên hệ.
 */

.hello-float-contact {
	position: fixed;
	right: 16px;
	bottom: max(24px, env(safe-area-inset-bottom, 0px));
	z-index: 99990;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-end;
	pointer-events: none;
}

.hello-float-contact__link {
	position: relative;
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	box-shadow: 0 4px 18px rgba(24, 24, 25, 0.22);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	-webkit-tap-highlight-color: transparent;
	overflow: visible;
}

.hello-float-contact__link:hover,
.hello-float-contact__link:focus-visible {
	transform: scale(1.06);
	box-shadow: 0 6px 22px rgba(24, 24, 25, 0.28);
	outline: none;
}

.hello-float-contact__link:focus-visible {
	box-shadow: 0 0 0 2px var(--color-white, #fff), 0 0 0 4px var(--color-primary-3, #a87439);
}

.hello-float-contact__link--phone,
.hello-float-contact__link--zalo {
	background: var(--color-primary-3, #a87439);
	color: var(--color-white, #ffffff);
}

.hello-float-contact__link svg {
	position: relative;
	z-index: 1;
	display: block;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.hello-float-contact__link--zalo svg path {
	fill: #ffffff;
}

.hello-float-contact__link--phone svg {
	width: 28px;
	height: 28px;
}

/* Sóng trắng tỏa ra — 3 đợt lệch pha */
.hello-float-contact__wave-ring {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 100%;
	height: 100%;
	margin-left: -50%;
	margin-top: -50%;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.55);
	box-sizing: border-box;
	pointer-events: none;
	z-index: 0;
	animation: hello-float-contact-wave 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.hello-float-contact__wave-ring:nth-child(1) {
	animation-delay: 0s;
}

.hello-float-contact__wave-ring:nth-child(2) {
	animation-delay: 0.8s;
}

.hello-float-contact__wave-ring:nth-child(3) {
	animation-delay: 1.6s;
}

@keyframes hello-float-contact-wave {
	0% {
		transform: scale(1);
		opacity: 0.65;
	}

	100% {
		transform: scale(2.15);
		opacity: 0;
	}
}

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

	.hello-float-contact__wave-ring {
		animation: none;
		opacity: 0;
	}
}
