/* Khung bọc tổng cố định góc phải */
.fixed-contact-container {
	position: fixed;
	bottom: 20%;
	right: 15px;
	z-index: 999990;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

/* Mỗi cụm nút + popup */
.contact-widget-item {
	position: relative;
	z-index: 1;
}

/* Khi nút nào mở popup thì lập tức nổi lên cao nhất, tránh bị đè lớp */
.contact-widget-item.is-active {
	z-index: 999999 !important;
}

/* Nút tròn màu đỏ */
.contact-btn {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	margin-right: 0;
	margin-bottom: 0;
	background-color: var(--color-main);
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(214, 12, 12, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	outline: none;
	padding: 0;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-btn:hover {
	transform: scale(1.06);
	box-shadow: 0 6px 20px rgba(214, 12, 12, 0.6);
}

/* Cho phép click chuột xuyên thấu mọi phần tử con bên trong nút */
.contact-btn * {
	pointer-events: none;
}

/* Trạng thái bình thường */
.btn-state-normal {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

/* Khung ảnh nhỏ */
.single-icon-slider {
	position: relative;
	width: 40px;
	height: 40px;
}

.single-icon-slider img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transform: scale(0.8);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ẢNH ĐẦU TIÊN: KHÔNG BO TRÒN */
.single-icon-slider img:first-child {
	border-radius: 0;
	object-fit: contain;
}

/* CÁC ẢNH SAU: BO TRÒN 50% */
.single-icon-slider img:not(:first-child) {
	border-radius: 50%;
	object-fit: cover;
}

/* Ảnh đang hiển thị */
.single-icon-slider img.active {
	opacity: 1;
	transform: scale(1);
}

.btn-label-text {
	color: var(--color-white);
	font-size: 11px;
	font-weight: 700;
	margin-top: 3px;
	text-transform: capitalize;
	letter-spacing: -0.2px;
}

/* Trạng thái dấu X */
.btn-state-close {
	display: none;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.btn-state-close img {
	width: 22px;
	height: 22px;
	object-fit: contain;
}

/* POPUP MENU */
.contact-popup-menu {
	position: absolute;
	bottom: calc(100% + 15px);
	right: 0;
	width: 260px;
	background: var(--color-white);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(0, 0, 0, 0.08);
	padding: 12px 10px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(15px) scale(0.95);
	transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.contact-list li {
	margin-bottom: 8px;
}

.contact-list li:last-child {
	margin-bottom: 0;
}

.contact-list a {
	display: flex;
	align-items: center;
	text-decoration: none;
	padding: 6px 10px;
	border-radius: 8px;
	transition: background 0.2s;
}

.contact-list a:hover {
	background-color: #f7f7f7;
}

.contact-list .icon-box {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 12px;
	flex-shrink: 0;
}

.contact-list .icon-box img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.contact-list .label {
	font-size: 13px;
	font-weight: 600;
	color: var(--news-text);
	letter-spacing: 0.2px;
}

/* KHI NÚT ĐƯỢC BẬT (IS-ACTIVE) */
.contact-widget-item.is-active .contact-popup-menu {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	transform: translateY(0) scale(1) !important;
}

.contact-widget-item.is-active .btn-state-normal {
	display: none !important;
}

.contact-widget-item.is-active .btn-state-close {
	display: flex !important;
}

/* Tương thích điện thoại */
@media (max-width: 480px) {
	.fixed-contact-container {
		gap: 10px;
	}
	.contact-btn {
		width: 58px;
		height: 58px;
	}
	.contact-popup-menu {
		width: 240px;
		bottom: calc(100% + 10px);
	}
}