/**
 * Nút liên hệ nổi — TriTin Cyprus.
 *
 * Màu lấy từ hai biến CSS đặt inline trên thẻ <a> (do PHP ghi ra),
 * nên file này không cần sinh động theo cấu hình.
 */

.ttc-contact-button {
	position: fixed;
	bottom: 18px;
	z-index: 9998;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: var(--ttc-cb-bg, #F98E30);
	color: var(--ttc-cb-icon, #FFFFFF);
	box-shadow: 0 2px 10px rgba(15, 30, 51, 0.25);
	text-decoration: none;
	transition: transform 0.18s ease;
}

.ttc-contact-button.is-right {
	right: 20px;
}

.ttc-contact-button.is-left {
	left: 20px;
}

.ttc-contact-button:hover,
.ttc-contact-button:focus {
	color: var(--ttc-cb-icon, #FFFFFF);
	transform: scale(1.06);
}

.ttc-contact-button:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 3px;
}

.ttc-contact-button svg {
	display: block;
	width: 26px;
	height: 26px;
	fill: currentColor;
}

/* Nhãn cạnh nút */
.ttc-contact-button__label {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	padding: 8px 12px;
	border-radius: 2px;
	background-color: #0F1E33;
	color: #D7DEE8;
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
	pointer-events: none;
}

.is-right > .ttc-contact-button__label {
	right: calc(100% + 10px);
}

.is-left > .ttc-contact-button__label {
	left: calc(100% + 10px);
}

/* Vòng sóng */
.ttc-contact-button.has-pulse::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	border-radius: 50%;
	background-color: var(--ttc-cb-bg, #F98E30);
	opacity: 0.45;
	animation: ttc-cb-pulse 1.8s ease-out infinite;
}

@keyframes ttc-cb-pulse {
	0% {
		transform: scale(1);
		opacity: 0.45;
	}

	70%,
	100% {
		transform: scale(1.75);
		opacity: 0;
	}
}

/* Chỉ hiện trên mobile/tablet — 850px là breakpoint của Flatsome */
@media (min-width: 850px) {
	.ttc-contact-button.is-mobile-only {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ttc-contact-button {
		transition: none;
	}

	.ttc-contact-button.has-pulse::before {
		animation: none;
	}
}

@media print {
	.ttc-contact-button {
		display: none;
	}
}
