/** CSS Front-end Cho Bong Bóng Liên Hệ - Nhỏ gọn và Tinh tế */

.via-cb-wrapper {
	position: fixed;
	bottom: 30px;
	left: 30px;
	z-index: 99;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Nút bong bóng siêu cấp */
.via-cb-toggle {
	width: 130px;
	height: 44px;
	background: rgb(245, 166, 35);
	border-radius: 40px;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
	position: relative;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.3px;
}

.via-cb-toggle:hover {
	transform: scale(1.03) translateY(-2px);
	box-shadow: 0 6px 20px rgba(245, 166, 35, 0.5);
}

.via-cb-icon-pulse {
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 40px;
	background: rgba(245, 166, 35, 0.5);
	animation: cb-pulse 2s infinite;
	z-index: -1;
}

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

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

/* Khung Carousel */
.via-cb-carousel-container {
	position: absolute;
	bottom: 100%;
	left: 0;
	margin-bottom: 15px;
	background: #fff;
	border-radius: 12px;
	width: 270px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	pointer-events: none;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Bảng điều khiển chỉ hiện ra khi div wrapper có class is-open */
.via-cb-wrapper.is-open .via-cb-carousel-container {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.via-cb-carousel-header {
	background: #fdfdfd;
	padding: 10px 12px;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.via-cb-title {
	font-weight: 700;
	color: #333;
	font-size: 14px;
	flex-grow: 1;
	text-align: center;
}

.via-cb-nav {
	background: #f5f5f5;
	border: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	font-size: 18px;
	line-height: 0.8;
	color: #666;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	outline: none;
}

.via-cb-nav:hover {
	background: rgb(245, 166, 35);
	color: #fff;
}

.via-cb-carousel-track {
	position: relative;
	min-height: 105px;
}

.via-cb-item {
	display: none;
	padding: 15px;
	animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateX(15px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.via-cb-item.active {
	display: flex;
}

.via-cb-carousel-indicators {
	display: flex;
	justify-content: center;
	gap: 5px;
	padding: 0 0 12px 0;
}

.via-cb-dot-indicator {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #e0e0e0;
	cursor: pointer;
	transition: all 0.3s ease;
}

.via-cb-dot-indicator.active,
.via-cb-dot-indicator:hover {
	background: rgb(245, 166, 35);
	transform: scale(1.3);
}

.via-cb-avatar {
	width: 45px;
	height: 45px;
	background: rgba(245, 166, 35, 0.1);
	border: 1px solid rgba(245, 166, 35, 0.3);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 700;
	color: rgb(245, 166, 35);
	margin-right: 12px;
	position: relative;
	flex-shrink: 0;
	box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.5);
}

.via-cb-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	position: absolute;
	bottom: 0px;
	right: 0px;
	border: 2px solid #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Chấm Online / Offline */
.status-online .via-cb-dot {
	background: #10b981;
}

/* Xanh ngọc lục bảo tinh tế */
.status-offline .via-cb-dot {
	background: #9ca3af;
}

.via-cb-info {
	flex-grow: 1;
}

.via-cb-name {
	font-weight: 700;
	color: #1f2937;
	font-size: 15px;
	margin-bottom: 2px;
}

.via-cb-status-text {
	font-size: 12px;
	color: #6b7280;
	margin-bottom: 8px;
}

.status-online .via-cb-status-text {
	color: #10b981;
	font-weight: 500;
}

.via-cb-actions {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.via-cb-btn {
	text-decoration: none;
	font-size: 11px;
	font-weight: 600;
	padding: 5px 8px;
	border-radius: 4px;
	color: #fff !important;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.via-cb-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
	filter: brightness(1.1);
}

.via-cb-btn.phone {
	background: rgb(245, 166, 35);
	color: #fff !important;
}

.via-cb-btn.zalo {
	background: #0068ff;
}

.via-cb-btn.fb {
	background: #0866ff;
}

/* Làm mờ các mục Offline */
.status-offline {
	opacity: 0.75;
}

.status-offline .via-cb-btn {
	filter: grayscale(100%) opacity(0.8);
}

/* GIAO DIỆN RIÊNG CHO ĐIỆN THOẠI (MOBILE) */
@media screen and (max-width: 768px) {
	.via-cb-wrapper {
		bottom: 10px;
		left: 10px;
	}

	.via-cb-toggle {
		width: 48px;
		height: 48px;
		border-radius: 50%;
		padding: 0;
	}

	.via-cb-icon {
		font-size: 0;
	}

	.via-cb-icon::before {
		content: "💬";
		font-size: 24px;
	}

	.via-cb-carousel-container {
		width: calc(100vw - 20px);
		max-width: 300px;
		margin-bottom: 10px;
	}

	.via-cb-item {
		padding: 12px;
	}

	.via-cb-avatar {
		width: 40px;
		height: 40px;
		font-size: 18px;
		margin-right: 10px;
	}

	.via-cb-name {
		font-size: 14px;
	}

	.via-cb-btn {
		font-size: 10px;
		padding: 4px 6px;
	}
}

/* =========================================
   GIAO DIỆN SHORTCODE THẺ LIÊN HỆ [via_contact_list]
========================================= */
.via-cb-shortcode-card {
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 12px;
	margin-bottom: 25px;
	max-width: 320px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.via-cb-sc-header {
	background: rgb(245, 166, 35);
	color: #fff;
	padding: 12px 20px;
	font-weight: 700;
	font-size: 16px;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.via-cb-sc-body {
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #fafafa;
}

.via-cb-sc-phone-link {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	background: #fff;
	border: 1px solid #e5e7eb;
	color: #374151;
	text-decoration: none !important;
	padding: 10px 15px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 16px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.via-cb-icon-phone {
	font-size: 18px;
	margin-right: 12px;
	transition: transform 0.3s ease;
}

.via-cb-sc-phone-link:hover {
	background: rgb(245, 166, 35);
	border-color: rgb(245, 166, 35);
	color: #fff;
	box-shadow: 0 5px 15px rgba(245, 166, 35, 0.25);
	transform: translateY(-2px);
}

.via-cb-sc-phone-link:hover .via-cb-icon-phone {
	transform: scale(1.15) rotate(15deg);
}

.via-cb-sc-phone-link:hover .via-cb-number {
	color: #fff !important;
}