/**
 * Floating Bar Online — frontend bar only.
 * Pill buttons: đồng kích thước, bo góc, icon + chữ căn giữa (tham chiếu UI hiện đại).
 */

.fcb-widget {
	position: fixed;
	z-index: 99998;
	bottom: var(--fcb-bottom, 24px);
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	/* Khoảng cách dọc giữa các nút như margin-bottom: 18px của mẫu */
	gap: 18px;
	width: max-content;
	max-width: min(320px, calc(100vw - 5% - 24px));
	pointer-events: none;
	animation: fcb-widget-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fcb-widget-enter {
	from {
		opacity: 0;
		transform: translateY(18px) scale(0.94);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes fcb-attention-pulse {
	0% {
		box-shadow:
			0 0 0 0 rgba(255, 255, 255, 0.55),
			0 0 0 0 currentColor,
			0 1px 0 rgba(255, 255, 255, 0.32) inset,
			0 3px 0 rgba(0, 0, 0, 0.12),
			0 8px 20px rgba(0, 0, 0, 0.28),
			0 16px 40px rgba(0, 0, 0, 0.3);
		transform: scale(1);
	}
	55% {
		box-shadow:
			0 0 0 10px rgba(255, 255, 255, 0),
			0 0 0 18px rgba(0, 0, 0, 0),
			0 1px 0 rgba(255, 255, 255, 0.32) inset,
			0 3px 0 rgba(0, 0, 0, 0.12),
			0 8px 20px rgba(0, 0, 0, 0.28),
			0 16px 40px rgba(0, 0, 0, 0.3);
		transform: scale(1.04);
	}
	100% {
		box-shadow:
			0 0 0 0 rgba(255, 255, 255, 0),
			0 0 0 0 rgba(0, 0, 0, 0),
			0 1px 0 rgba(255, 255, 255, 0.32) inset,
			0 3px 0 rgba(0, 0, 0, 0.12),
			0 8px 20px rgba(0, 0, 0, 0.28),
			0 16px 40px rgba(0, 0, 0, 0.3);
		transform: scale(1);
	}
}

.fcb-btn--attention {
	z-index: 1;
	height: 56px;
	min-height: 56px;
	padding: 0 22px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}

.fcb-btn--attention:not(.fcb-btn--with-text) {
	width: 56px;
	min-width: 56px;
	max-width: 56px !important;
}

.fcb-btn--attention .fcb-btn__icon {
	transform: scale(1.08);
}

.fcb-btn--attention-pulse {
	animation: fcb-attention-pulse 1.6s ease-out 0.6s 5 both;
}

.fcb-btn--attention-forever {
	animation: fcb-attention-pulse 1.6s ease-out infinite;
}

.fcb-btn--attention-bounce {
	animation: fcb-attention-bounce 1s ease 0.5s 4 both;
}

.fcb-btn--attention-shake {
	animation: fcb-attention-shake 0.7s ease-in-out infinite;
}

.fcb-btn--attention-heartbeat {
	animation: fcb-attention-heartbeat 1.2s ease-in-out infinite;
}

.fcb-btn--attention-glow {
	animation: fcb-attention-glow 1.8s ease-in-out infinite;
}

.fcb-btn--attention-ring {
	animation: fcb-attention-ring 1.5s ease-out infinite;
}

.fcb-btn--attention-wiggle {
	animation: fcb-attention-wiggle 0.85s ease 0.5s 5 both;
}

@keyframes fcb-attention-bounce {
	0%, 100% { transform: translateY(0); }
	25% { transform: translateY(-10px); }
	50% { transform: translateY(0); }
	75% { transform: translateY(-5px); }
}

@keyframes fcb-attention-shake {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-5px) rotate(-2deg); }
	40% { transform: translateX(5px) rotate(2deg); }
	60% { transform: translateX(-4px); }
	80% { transform: translateX(4px); }
}

@keyframes fcb-attention-heartbeat {
	0%, 100% { transform: scale(1); }
	14% { transform: scale(1.12); }
	28% { transform: scale(1); }
	42% { transform: scale(1.08); }
	70% { transform: scale(1); }
}

@keyframes fcb-attention-glow {
	0%, 100% {
		filter: brightness(1);
		box-shadow:
			0 0 0 0 rgba(255, 255, 255, 0.35),
			0 1px 0 rgba(255, 255, 255, 0.32) inset,
			0 6px 18px rgba(0, 0, 0, 0.28),
			0 0 24px currentColor;
	}
	50% {
		filter: brightness(1.08);
		box-shadow:
			0 0 0 8px rgba(255, 255, 255, 0.12),
			0 1px 0 rgba(255, 255, 255, 0.32) inset,
			0 10px 28px rgba(0, 0, 0, 0.32),
			0 0 40px currentColor;
	}
}

@keyframes fcb-attention-ring {
	0% {
		box-shadow:
			0 0 0 0 rgba(255, 255, 255, 0.5),
			0 0 0 0 currentColor,
			0 6px 18px rgba(0, 0, 0, 0.28);
	}
	70% {
		box-shadow:
			0 0 0 12px rgba(255, 255, 255, 0),
			0 0 0 22px rgba(0, 0, 0, 0),
			0 6px 18px rgba(0, 0, 0, 0.28);
	}
	100% {
		box-shadow:
			0 0 0 0 rgba(255, 255, 255, 0),
			0 0 0 0 rgba(0, 0, 0, 0),
			0 6px 18px rgba(0, 0, 0, 0.28);
	}
}

@keyframes fcb-attention-wiggle {
	0%, 100% { transform: rotate(0deg); }
	20% { transform: rotate(-6deg); }
	40% { transform: rotate(6deg); }
	60% { transform: rotate(-4deg); }
	80% { transform: rotate(4deg); }
}

@media (prefers-reduced-motion: reduce) {
	.fcb-widget,
	.fcb-btn--attention,
	.fcb-btn[class*="fcb-btn--attention-"],
	.fcb-widget--icon-ripple .fcb-btn::before,
	.fcb-widget--icon-ripple .fcb-btn::after {
		animation: none !important;
	}
}

/* Chế độ chỉ icon + vòng rung (pulse rings) */
.fcb-widget--icon-ripple .fcb-btn {
	border-radius: 50%;
	overflow: visible;
	isolation: isolate;
}

.fcb-widget--icon-ripple .fcb-btn .fcb-btn__text {
	display: none !important;
}

.fcb-widget--icon-ripple .fcb-btn.fcb-btn--with-text {
	width: 50px;
	min-width: 50px;
	max-width: 50px !important;
	height: 50px;
	min-height: 50px;
	padding: 0;
	border-radius: 50%;
}

.fcb-widget--icon-ripple .fcb-btn::before,
.fcb-widget--icon-ripple .fcb-btn::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.72);
	opacity: 0;
	pointer-events: none;
	z-index: -1;
	animation: fcb-icon-ripple-ring 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.fcb-widget--icon-ripple .fcb-btn::after {
	animation-delay: 1.2s;
}

.fcb-widget--icon-ripple .fcb-btn .fcb-btn__inner {
	animation: fcb-icon-ripple-shake 2.4s ease-in-out infinite;
}

@keyframes fcb-icon-ripple-ring {
	0% {
		transform: scale(1);
		opacity: 0.65;
	}
	70% {
		opacity: 0.12;
	}
	100% {
		transform: scale(1.9);
		opacity: 0;
	}
}

@keyframes fcb-icon-ripple-shake {
	0%, 100% {
		transform: rotate(0deg);
	}
	4% {
		transform: rotate(-3deg);
	}
	8% {
		transform: rotate(3deg);
	}
	12% {
		transform: rotate(-2deg);
	}
	16% {
		transform: rotate(2deg);
	}
	20%, 100% {
		transform: rotate(0deg);
	}
}

.fcb-widget > a,
.fcb-widget > .fcb-phones-wrap {
	pointer-events: auto;
	align-self: center;
}

.fcb-widget--right {
	right: calc(5% + env(safe-area-inset-right, 0px));
	left: auto;
	align-items: flex-end;
}

.fcb-widget--left {
	left: calc(5% + env(safe-area-inset-left, 0px));
	right: auto;
	align-items: flex-start;
}

.fcb-btn {
	position: relative;
	display: flex;
	box-sizing: border-box;
	width: unset;
	min-width: fit-content;
	max-width: none !important;
	height: 50px;
	min-height: 50px;
	margin: 0;
	margin-left: 0;
	margin-right: 0;
	padding: 0 20px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-align: center;
	text-decoration: none;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	outline: none !important;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
	-webkit-user-select: none;
	visibility: visible;
	background-size: cover;
	background-image: none;
	background-repeat: no-repeat;
	background-position: center center;
	/* Trạng thái thường: nổi khối (highlight + bóng đậm) */
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.32) inset,
		0 3px 0 rgba(0, 0, 0, 0.12),
		0 6px 14px rgba(0, 0, 0, 0.22),
		0 14px 36px rgba(0, 0, 0, 0.28);
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background-color 0.18s ease;
}

.fcb-btn:link,
.fcb-btn:visited,
.fcb-btn:hover,
.fcb-btn:active,
.fcb-btn:focus {
	color: #fff;
	text-decoration: none;
	outline: none !important;
}

.fcb-btn__inner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto;
	max-width: 100%;
	min-height: 100%;
	pointer-events: none;
}

.fcb-btn:hover,
.fcb-btn:focus-visible {
	transform: translateY(-2px) scale(1.02);
	filter: brightness(1.03);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.38) inset,
		0 4px 0 rgba(0, 0, 0, 0.1),
		0 10px 22px rgba(0, 0, 0, 0.28),
		0 22px 48px rgba(0, 0, 0, 0.32);
	outline: none !important;
}

.fcb-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	line-height: 0;
	pointer-events: none;
}

.fcb-btn__icon svg {
	display: block;
}

/* Channel icons: local SVG images + inline SVG glyphs */
.fcb-btn__icon .fcb-channel-icon--zalo,
.fcb-btn__icon .fcb-channel-icon--messenger,
.fcb-btn__icon .fcb-channel-icon--svg {
	display: block;
	width: 20px;
	height: 20px;
	object-fit: contain;
	flex-shrink: 0;
	color: inherit;
}

.fcb-btn--facebook .fcb-channel-icon--messenger {
	/* Logo đã có màu riêng — không invert. */
	filter: none;
}

.fcb-btn--zalo .fcb-channel-icon--zalo {
	filter: none;
	border-radius: 0;
	/* Logo bubble trắng sẵn — giữ nguyên màu trong SVG local */
	overflow: visible;
}

.fcb-channel-icon--svg {
	display: inline-block;
	vertical-align: middle;
	overflow: visible;
}

.fcb-btn--zalo {
	background: #0068ff;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.28) inset,
		0 3px 0 rgba(0, 0, 0, 0.14),
		0 6px 14px rgba(0, 0, 0, 0.22),
		0 14px 36px rgba(0, 0, 0, 0.28),
		0 10px 32px rgba(0, 104, 255, 0.42);
}

.fcb-btn--zalo:hover,
.fcb-btn--zalo:focus-visible {
	background: #0057d9;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.34) inset,
		0 4px 0 rgba(0, 0, 0, 0.12),
		0 10px 22px rgba(0, 0, 0, 0.28),
		0 22px 48px rgba(0, 0, 0, 0.32),
		0 14px 40px rgba(0, 104, 255, 0.52);
}

.fcb-btn--phone {
	background: #3a7d8c;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.28) inset,
		0 3px 0 rgba(0, 0, 0, 0.12),
		0 6px 14px rgba(0, 0, 0, 0.22),
		0 14px 36px rgba(0, 0, 0, 0.28),
		0 10px 32px rgba(58, 125, 140, 0.45);
}

.fcb-btn--phone:hover,
.fcb-btn--phone:focus-visible {
	background: #2f6a76;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.35) inset,
		0 4px 0 rgba(0, 0, 0, 0.1),
		0 10px 22px rgba(0, 0, 0, 0.28),
		0 22px 48px rgba(0, 0, 0, 0.32),
		0 14px 40px rgba(58, 125, 140, 0.52);
}

.fcb-btn--phone_2 {
	background: #0e7490;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.28) inset,
		0 3px 0 rgba(0, 0, 0, 0.12),
		0 6px 14px rgba(0, 0, 0, 0.22),
		0 14px 36px rgba(0, 0, 0, 0.28),
		0 10px 32px rgba(14, 116, 144, 0.45);
}

.fcb-btn--phone_2:hover,
.fcb-btn--phone_2:focus-visible {
	background: #0c4a6e;
}

.fcb-btn--phone_3 {
	background: #155e75;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.28) inset,
		0 3px 0 rgba(0, 0, 0, 0.12),
		0 6px 14px rgba(0, 0, 0, 0.22),
		0 14px 36px rgba(0, 0, 0, 0.28),
		0 10px 32px rgba(21, 94, 117, 0.45);
}

.fcb-btn--phone_3:hover,
.fcb-btn--phone_3:focus-visible {
	background: #164e63;
}

.fcb-btn--facebook {
	background: #0084ff;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.3) inset,
		0 3px 0 rgba(0, 0, 0, 0.12),
		0 6px 14px rgba(0, 0, 0, 0.22),
		0 14px 36px rgba(0, 0, 0, 0.28),
		0 10px 32px rgba(0, 132, 255, 0.4);
}

.fcb-btn--facebook:hover,
.fcb-btn--facebook:focus-visible {
	background: #0073e6;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.36) inset,
		0 4px 0 rgba(0, 0, 0, 0.1),
		0 10px 22px rgba(0, 0, 0, 0.28),
		0 22px 48px rgba(0, 0, 0, 0.32),
		0 14px 40px rgba(0, 132, 255, 0.48);
}

.fcb-btn--sms {
	background: #007bff;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.32) inset,
		0 3px 0 rgba(0, 0, 0, 0.12),
		0 6px 14px rgba(0, 0, 0, 0.22),
		0 14px 36px rgba(0, 0, 0, 0.28),
		0 10px 32px rgba(0, 123, 255, 0.42);
}

.fcb-btn--sms:hover,
.fcb-btn--sms:focus-visible {
	background: #0069d9;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.38) inset,
		0 4px 0 rgba(0, 0, 0, 0.1),
		0 10px 22px rgba(0, 0, 0, 0.28),
		0 22px 48px rgba(0, 0, 0, 0.32),
		0 14px 40px rgba(0, 123, 255, 0.5);
}

.fcb-btn--phones {
	background: #0f766e;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.28) inset,
		0 3px 0 rgba(0, 0, 0, 0.12),
		0 6px 14px rgba(0, 0, 0, 0.22),
		0 14px 36px rgba(0, 0, 0, 0.28),
		0 10px 32px rgba(15, 118, 110, 0.45);
	border: 0;
	cursor: pointer;
	font: inherit;
	color: #fff;
	appearance: none;
	-webkit-appearance: none;
}

.fcb-btn--phones:hover,
.fcb-btn--phones:focus-visible {
	background: #0d9488;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.35) inset,
		0 4px 0 rgba(0, 0, 0, 0.1),
		0 10px 22px rgba(0, 0, 0, 0.28),
		0 22px 48px rgba(0, 0, 0, 0.32),
		0 14px 40px rgba(15, 118, 110, 0.52);
}

.fcb-phones-wrap {
	position: relative;
	pointer-events: auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.fcb-widget--left .fcb-phones-wrap {
	align-items: flex-start;
}

.fcb-phones-panel {
	position: absolute;
	bottom: calc(100% + 10px);
	right: 0;
	min-width: 200px;
	max-width: min(280px, calc(100vw - 24px));
	padding: 8px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fcb-widget--left .fcb-phones-panel {
	right: auto;
	left: 0;
}

.fcb-phones-panel[hidden] {
	display: none !important;
}

.fcb-phones-panel__item {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	text-decoration: none;
	color: #111827;
	background: #f3f4f6;
	pointer-events: auto;
	transition: background 0.15s ease;
}

.fcb-phones-panel__item:hover,
.fcb-phones-panel__item:focus-visible {
	background: #e5e7eb;
	outline: none;
}

.fcb-phones-panel__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.fcb-phones-panel__name {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.fcb-phones-panel__num {
	font-size: 12px;
	color: #6b7280;
	font-variant-numeric: tabular-nums;
}

.fcb-phones-panel__tel {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	background: #0f766e;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
}

.fcb-phones-panel__tel .fcb-channel-icon {
	color: #fff;
}

.fcb-phones-wrap.is-open .fcb-btn--phones {
	ring: none;
}

/* Chỉ icon (không chữ): nút vuông bo góc, cùng chiều cao */
.fcb-btn:not(.fcb-btn--with-text) {
	width: 50px;
	min-width: 50px;
	max-width: 50px !important;
	height: 50px;
	min-height: 50px;
	padding: 0;
	align-self: center;
}

.fcb-btn:not(.fcb-btn--with-text) .fcb-btn__inner {
	gap: 0;
	width: auto;
}

.fcb-btn:not(.fcb-btn--with-text) .fcb-btn__icon {
	width: 24px;
	height: 24px;
}

.fcb-btn:not(.fcb-btn--with-text) .fcb-btn__icon .fcb-channel-icon--zalo,
.fcb-btn:not(.fcb-btn--with-text) .fcb-btn__icon .fcb-channel-icon--messenger,
.fcb-btn:not(.fcb-btn--with-text) .fcb-btn__icon .fcb-channel-icon--svg {
	width: 22px;
	height: 22px;
}

/* Có chữ: rộng theo nội dung (mẫu: max-width none) */
.fcb-btn--with-text {
	width: max-content;
	max-width: none !important;
	min-width: 0;
}

.fcb-btn--with-text .fcb-btn__icon .fcb-channel-icon--zalo,
.fcb-btn--with-text .fcb-btn__icon .fcb-channel-icon--messenger,
.fcb-btn--with-text .fcb-btn__icon .fcb-channel-icon--svg {
	width: 20px;
	height: 20px;
}

.fcb-btn__icon img {
	pointer-events: none;
}

.fcb-btn__text {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: -0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: min(240px, calc(100vw - 5% - 140px));
	pointer-events: none;
	color: inherit;
	text-decoration: none;
	cursor: inherit;
	user-select: none;
	-webkit-user-select: none;
}

.fcb-btn--with-text .fcb-btn__icon svg {
	width: 18px;
	height: 18px;
}

.fcb-live-test {
	position: fixed;
	z-index: 99999;
	left: 12px;
	bottom: 12px;
	max-width: 280px;
	max-height: 160px;
	overflow-y: auto;
	padding: 8px 10px;
	font-size: 11px;
	line-height: 1.35;
	font-family: ui-monospace, monospace;
	color: #fff;
	background: rgba(17, 17, 17, 0.92);
	border-radius: 6px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

.fcb-live-test div {
	margin-top: 4px;
	word-break: break-word;
}

.fcb-live-test div:first-child {
	margin-top: 0;
}

/* Logged-in WP admin bar */
body.admin-bar .fcb-widget {
	bottom: calc(var(--fcb-bottom, 24px) + 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .fcb-widget {
		bottom: calc(var(--fcb-bottom, 24px) + 46px);
	}
}

@media (max-width: 480px) {
	.fcb-widget {
		max-width: min(300px, calc(100vw - 5% - 16px));
		gap: 16px;
	}

	.fcb-btn {
		min-height: 46px;
		height: 46px;
		font-size: 12px;
		border-radius: 10px;
		padding: 0 16px;
	}

	.fcb-btn:not(.fcb-btn--with-text) {
		width: 46px;
		min-width: 46px;
		max-width: 46px !important;
		height: 46px;
		min-height: 46px;
	}

	.fcb-btn__text {
		font-size: 12px;
		max-width: min(200px, calc(100vw - 5% - 100px));
	}
}

/* —— Kiểu thẻ ngang: desktop cạnh / mobile đáy (màu nền theo admin / channel) —— */
.fcb-widget--pill-cards {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: min(280px, calc(100vw - 24px));
	align-items: stretch;
	bottom: 0 !important;
	right: 15px;
	padding-bottom: 8px;
}

.fcb-widget--pill-cards.fcb-widget--left {
	left: 15px;
	right: auto;
	align-items: stretch;
}

.fcb-widget--pill-cards > a,
.fcb-widget--pill-cards > .fcb-phones-wrap {
	width: 100%;
	pointer-events: auto;
	position: relative;
}

.fcb-widget--pill-cards .fcb-btn.fcb-btn--pill-card,
.fcb-widget--pill-cards .fcb-btn.fcb-btn--with-text.fcb-btn--pill-card {
	display: flex;
	width: 100%;
	max-width: none !important;
	min-width: 0;
	height: auto;
	min-height: 58px;
	padding: 8px 14px 8px 8px;
	border-radius: 999px;
	justify-content: flex-start;
	gap: 10px;
	/* Không ghi đè màu — dùng .fcb-btn--* và màu admin */
	box-shadow:
		0 2px 0 rgba(0, 0, 0, 0.06),
		0 8px 22px rgba(0, 0, 0, 0.18);
}

.fcb-widget--pill-cards .fcb-btn__inner {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	width: 100%;
}

.fcb-widget--pill-cards .fcb-btn__icon {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/* Icon không inherit màu chữ nút (#fff) trên nền trắng */
	color: #0f172a;
	overflow: visible;
}

.fcb-widget--pill-cards .fcb-btn--phone .fcb-btn__icon,
.fcb-widget--pill-cards .fcb-btn--phone_2 .fcb-btn__icon,
.fcb-widget--pill-cards .fcb-btn--phone_3 .fcb-btn__icon,
.fcb-widget--pill-cards .fcb-btn--phones .fcb-btn__icon {
	color: #16a34a;
}

.fcb-widget--pill-cards .fcb-btn--sms .fcb-btn__icon {
	color: #007bff;
}

.fcb-widget--pill-cards .fcb-btn--zalo .fcb-btn__icon:has(.fcb-channel-icon--pill-zalo),
.fcb-widget--pill-cards .fcb-btn--phone .fcb-btn__icon:has(.fcb-channel-icon--pill-phone),
.fcb-widget--pill-cards .fcb-btn--phone_2 .fcb-btn__icon:has(.fcb-channel-icon--pill-phone),
.fcb-widget--pill-cards .fcb-btn--phone_3 .fcb-btn__icon:has(.fcb-channel-icon--pill-phone),
.fcb-widget--pill-cards .fcb-btn--phones .fcb-btn__icon:has(.fcb-channel-icon--pill-phone) {
	background: transparent;
	box-shadow: none;
}

.fcb-widget--pill-cards .fcb-btn__icon svg,
.fcb-widget--pill-cards .fcb-btn__icon img {
	width: 22px;
	height: 22px;
	object-fit: contain;
	display: block;
}

.fcb-widget--pill-cards .fcb-btn__icon .fcb-channel-icon--pill-phone,
.fcb-widget--pill-cards .fcb-btn__icon .fcb-channel-icon--pill-zalo {
	width: 42px;
	height: 42px;
}

.fcb-widget--pill-cards .fcb-btn__icon .fcb-channel-icon--sms {
	width: 24px;
	height: 24px;
}

.fcb-widget--pill-cards .fcb-btn__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 1px;
	min-width: 0;
	text-align: left;
}

.fcb-widget--pill-cards .fcb-btn__text {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	max-width: none;
	opacity: 0.92;
	color: inherit;
	letter-spacing: 0.02em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fcb-widget--pill-cards .fcb-btn__sub {
	display: block;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.15;
	color: inherit;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Mobile: HOTLINE + ZALO đáy; SMS = icon nổi trên hotline */
@media (max-width: 767px) {
	.fcb-widget--pill-cards {
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		width: 100%;
		max-width: none;
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto auto;
		align-items: end;
		column-gap: 12px;
		row-gap: 8px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
		border-radius: 0;
		animation: none;
		background: transparent;
		box-sizing: border-box;
	}

	body.admin-bar .fcb-widget--pill-cards {
		bottom: 0 !important;
	}

	.fcb-widget--pill-cards > a[data-fcb-pill="other"],
	.fcb-widget--pill-cards > a[data-fcb-pill="hotline"] ~ a[data-fcb-pill="hotline"],
	.fcb-widget--pill-cards > .fcb-phones-wrap[data-fcb-pill="hotline"] ~ a[data-fcb-pill="hotline"],
	.fcb-widget--pill-cards > a[data-fcb-pill="hotline"] ~ .fcb-phones-wrap[data-fcb-pill="hotline"],
	.fcb-widget--pill-cards > .fcb-phones-wrap[data-fcb-pill="hotline"] ~ .fcb-phones-wrap[data-fcb-pill="hotline"] {
		display: none !important;
	}

	.fcb-widget--pill-cards > a[data-fcb-pill="sms"] {
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
		align-self: end;
		width: auto;
		margin: 0;
		z-index: 2;
	}

	.fcb-widget--pill-cards > a[data-fcb-pill="hotline"],
	.fcb-widget--pill-cards > .fcb-phones-wrap[data-fcb-pill="hotline"] {
		grid-column: 1;
		grid-row: 2;
		width: 100%;
		min-width: 0;
	}

	.fcb-widget--pill-cards > a[data-fcb-pill="zalo"] {
		grid-column: 2;
		grid-row: 2;
		width: 100%;
		min-width: 0;
	}

	.fcb-widget--pill-cards .fcb-btn.fcb-btn--pill-card,
	.fcb-widget--pill-cards .fcb-btn.fcb-btn--with-text.fcb-btn--pill-card {
		width: 100%;
		min-height: 56px;
		height: auto;
		border-radius: 999px;
		padding: 4px 10px 4px 4px;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
		border-right: 0;
	}

	.fcb-widget--pill-cards .fcb-btn__icon {
		flex: 0 0 44px;
		width: 44px;
		height: 44px;
	}

	.fcb-widget--pill-cards .fcb-btn__icon svg,
	.fcb-widget--pill-cards .fcb-btn__icon img {
		width: 22px;
		height: 22px;
	}

	.fcb-widget--pill-cards .fcb-btn__icon .fcb-channel-icon--pill-phone,
	.fcb-widget--pill-cards .fcb-btn__icon .fcb-channel-icon--pill-zalo {
		width: 44px;
		height: 44px;
	}

	.fcb-widget--pill-cards .fcb-btn__inner {
		flex-direction: row;
		gap: 6px;
	}

	.fcb-widget--pill-cards .fcb-btn__copy {
		align-items: flex-start;
		text-align: left;
		width: auto;
	}

	.fcb-widget--pill-cards .fcb-btn__text {
		font-size: 10px;
		max-width: 100%;
	}

	.fcb-widget--pill-cards .fcb-btn__sub {
		display: block;
		font-size: 13px;
	}

	/* SMS mobile: chỉ icon tròn */
	.fcb-widget--pill-cards .fcb-btn--pill-sms {
		display: inline-flex !important;
		width: 48px !important;
		height: 48px !important;
		min-height: 48px !important;
		min-width: 48px !important;
		max-width: 48px !important;
		padding: 0 !important;
		border-radius: 50% !important;
		background: #fff !important;
		color: #007bff !important;
		box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
		justify-content: center;
		align-items: center;
	}

	.fcb-widget--pill-cards .fcb-btn--pill-sms:hover,
	.fcb-widget--pill-cards .fcb-btn--pill-sms:focus-visible {
		background: #f8fafc !important;
	}

	.fcb-widget--pill-cards .fcb-btn--pill-sms .fcb-btn__inner {
		justify-content: center;
		width: auto;
		gap: 0;
	}

	.fcb-widget--pill-cards .fcb-btn--pill-sms .fcb-btn__icon {
		flex: 0 0 32px;
		width: 32px;
		height: 32px;
		background: transparent;
		box-shadow: none;
	}

	.fcb-widget--pill-cards .fcb-btn--pill-sms .fcb-btn__icon img,
	.fcb-widget--pill-cards .fcb-btn--pill-sms .fcb-btn__icon svg {
		width: 28px;
		height: 28px;
	}

	.fcb-widget--pill-cards .fcb-btn--pill-sms .fcb-btn__copy {
		display: none !important;
	}

	.fcb-widget--pill-cards .fcb-phones-panel {
		bottom: calc(100% + 8px);
		left: 8px;
		right: 8px;
	}
}
