/* Widget gọi/Zalo nổi + thanh 3 nút mobile — SRS C mục 6. */

.hs-float {
	position: fixed;
	isolation: isolate;
	right: 16px;
	bottom: 84px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hs-float__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--hs-float);
	height: var(--hs-float);
	border-radius: 50%;
	color: var(--hs-white);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	box-shadow: var(--hs-shadow);
}

.hs-float__btn:hover,
.hs-float__btn:focus-visible {
	color: var(--hs-white);
}

/* Vòng sóng hotline: pseudo-element chỉ animate transform/opacity (compositor) — không repaint box-shadow mỗi frame. */
.hs-float__btn--goi {
	position: relative;
	background: var(--hs-primary);
}

.hs-float__btn--goi::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: 50%;
	background: var(--hs-primary);
	animation: hs-ring 1.8s var(--hs-ease-out, ease-out) infinite;
	pointer-events: none;
}

.hs-float__btn--zalo {
	background: var(--hs-zalo);
}

@keyframes hs-ring {

	from {
		opacity: 0.55;
		transform: scale(1);
	}

	to {
		opacity: 0;
		transform: scale(1.65);
	}
}

@media (prefers-reduced-motion: reduce) {

	.hs-float__btn--goi::before {
		animation: none;
		opacity: 0;
	}
}

.hs-bar {
	display: none;
}

@media (max-width: 767px) {

	.hs-float {
		display: none;
	}

	.hs-bar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 9998;
		display: flex;
		background: var(--hs-white);
		border-top: 1px solid var(--hs-surface);
		box-shadow: 0 -2px 12px color-mix(in srgb, var(--hs-navy) 8%, transparent);
		padding-bottom: env(safe-area-inset-bottom);
	}

	.hs-bar__item {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		min-height: 56px;
		color: var(--hs-navy);
		font-family: var(--hs-font-heading);
		font-size: 13px;
		font-weight: 600;
		text-decoration: none;
	}

	.hs-bar__item--primary {
		background: var(--hs-primary);
		color: var(--hs-white);
	}

	.hs-bar__item--primary:hover,
	.hs-bar__item--primary:focus-visible {
		color: var(--hs-white);
	}

	.hs-bar__zalo {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 22px;
		height: 22px;
		border-radius: 6px;
		background: var(--hs-zalo);
		color: var(--hs-white);
		font-size: 13px;
		font-weight: 700;
	}

	body {
		padding-bottom: 56px;
	}
}
