/* Floating CTA — tròn icon: on top (trên) → phone → zalo (dưới) */
.ttvn-floating {
	position: fixed;
	right: max(16px, env(safe-area-inset-right));
	bottom: max(20px, env(safe-area-inset-bottom));
	z-index: 99999;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	pointer-events: none;
}

.ttvn-floating__btn {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	min-width: 52px;
	min-height: 52px;
	padding: 0;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	text-decoration: none;
	color: #fff;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.22);
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.ttvn-floating__btn svg {
	display: block;
	width: 26px;
	height: 26px;
	flex-shrink: 0;
}

.ttvn-floating__btn:hover,
.ttvn-floating__btn:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.28);
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.ttvn-floating__btn--zalo {
	background: #0068ff;
}

.ttvn-floating__btn--zalo svg {
	width: 28px;
	height: 28px;
}

.ttvn-floating__btn--phone {
	background: #0c4a6e;
}

/* Nút lên đầu — luôn hiển thị, nằm trên phone & zalo */
.ttvn-floating__btn--top {
	background: #ffffff;
	color: #0c4a6e;
	border: 1px solid #cbd5e1;
}

.ttvn-floating__btn--top:hover,
.ttvn-floating__btn--top:focus-visible {
	background: #0068ff;
	color: #ffffff;
	border-color: #0068ff;
}

@media (max-width: 480px) {
	.ttvn-floating__btn {
		width: 48px;
		height: 48px;
		min-width: 48px;
		min-height: 48px;
	}

	.ttvn-floating__btn svg {
		width: 24px;
		height: 24px;
	}
}
