.fccta-wrapper {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 99999;
	font-family: inherit;
	--fccta-toggle-size: 68px;
	--fccta-brand: var(--theme-button-background-initial-color, var(--theme-palette-color-1, #0f766e));
	--fccta-brand-hover: var(--theme-button-background-hover-color, var(--theme-palette-color-2, #115e59));
	--fccta-brand-color: #ffffff;
	--fccta-surface: #ffffff;
	--fccta-surface-hover: #f8fafc;
	--fccta-item-color: #0f172a;
	--fccta-item-hover-color: #0f172a;
	--fccta-item-icon-color: currentColor;
	--fccta-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
	--fccta-mobile-bar-bg: #ff9d2e;
}

.fccta-wrapper *,
.fccta-wrapper *::before,
.fccta-wrapper *::after {
	box-sizing: border-box;
}

.fccta-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.fccta-bar {
	display: flex;
	align-items: center;
	gap: 12px;
}

.fccta-list {
	position: absolute;
	right: 0;
	bottom: calc(var(--fccta-toggle-size) + 16px);
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	opacity: 0;
	transform: translateY(8px);
	pointer-events: none;
	transition: opacity var(--fccta-animation-speed, 0.25s) ease, transform var(--fccta-animation-speed, 0.25s) ease;
}

.fccta-wrapper.is-open .fccta-list {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.fccta-wrapper .fccta-list[hidden] {
	display: flex;
}

.fccta-item,
.fccta-text,
.fccta-toggle {
	border: 0;
	text-decoration: none;
	cursor: pointer;
}

.fccta-item {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	min-height: 48px;
	padding: 12px 16px;
	border-radius: 999px;
	background: var(--fccta-surface);
	color: var(--fccta-item-color);
	box-shadow: var(--fccta-shadow);
	transition: transform var(--fccta-animation-speed, 0.25s) ease, box-shadow var(--fccta-animation-speed, 0.25s) ease;
}

.fccta-item:hover,
.fccta-item:focus-visible {
	background: var(--fccta-surface-hover);
	color: var(--fccta-item-hover-color);
	transform: translateY(-2px);
	box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
	outline: none;
}

.fccta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	overflow: hidden;
	color: var(--fccta-item-icon-color);
}

.fccta-icon svg {
	width: 20px !important;
	height: 20px !important;
	max-width: 20px !important;
	max-height: 20px !important;
	display: block;
}

.fccta-icon > span,
.fccta-icon > i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px !important;
	height: 20px !important;
	max-width: 20px !important;
	max-height: 20px !important;
	font-size: 20px !important;
	line-height: 1 !important;
}

.fccta-icon img {
	display: block;
	width: 20px !important;
	height: 20px !important;
	max-width: 20px !important;
	max-height: 20px !important;
	object-fit: contain;
}

.fccta-text {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: min(280px, 72vw);
	padding: var(--fccta-text-padding, 12px 16px);
	border-radius: var(--fccta-text-radius, 999px);
	background: var(--fccta-text-bg, #ffffff);
	color: var(--fccta-text-color, #111827);
	font-size: var(--fccta-text-font-size, 15px);
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	box-shadow: var(--fccta-text-shadow, 0 10px 30px rgba(15, 23, 42, 0.18));
	transition: opacity var(--fccta-animation-speed, 0.25s) ease, transform var(--fccta-animation-speed, 0.25s) ease;
}

.fccta-text.is-hidden {
	opacity: 0;
	transform: translateX(8px);
	pointer-events: none;
}

.fccta-toggle {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--fccta-toggle-size);
	height: var(--fccta-toggle-size);
	max-width: var(--fccta-toggle-size);
	max-height: var(--fccta-toggle-size);
	flex: 0 0 var(--fccta-toggle-size);
	border-radius: 50%;
	background: var(--fccta-brand);
	box-shadow: var(--fccta-shadow);
	color: var(--fccta-brand-color);
	transition: background-color var(--fccta-animation-speed, 0.25s) ease, transform var(--fccta-animation-speed, 0.25s) ease, box-shadow var(--fccta-animation-speed, 0.25s) ease;
	animation: fccta-toggle-bob 2.35s ease-in-out infinite;
}

.fccta-toggle::after {
	content: "";
	position: absolute;
	inset: -11px;
	z-index: -1;
	border-radius: 50%;
	border: 3px solid var(--fccta-brand);
	opacity: 0;
	pointer-events: none;
	animation: fccta-toggle-pulse 2.35s ease-out infinite;
}

.fccta-toggle:hover,
.fccta-toggle:focus-visible {
	background: var(--fccta-brand-hover);
	transform: translateY(-2px);
	box-shadow: 0 18px 38px rgba(15, 23, 42, 0.24);
	outline: none;
}

.fccta-toggle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	overflow: hidden;
}

.fccta-toggle-icon svg {
	display: block;
	width: 36px !important;
	height: 36px !important;
	max-width: 36px !important;
	max-height: 36px !important;
}

.fccta-toggle-icon > span,
.fccta-toggle-icon > i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px !important;
	height: 36px !important;
	max-width: 36px !important;
	max-height: 36px !important;
	font-size: 36px !important;
	line-height: 1 !important;
}

.fccta-toggle-icon img {
	display: block;
	width: 36px !important;
	height: 36px !important;
	max-width: 36px !important;
	max-height: 36px !important;
	object-fit: contain;
}

.fccta-toggle-lines {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
}

.fccta-toggle-lines span {
	position: absolute;
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	border-radius: 999px;
	transition: transform var(--fccta-animation-speed, 0.25s) ease;
}

.fccta-toggle-lines span:first-child {
	transform: rotate(0deg);
}

.fccta-toggle-lines span:last-child {
	transform: rotate(90deg);
}

.fccta-wrapper.is-open .fccta-toggle-lines span:first-child {
	transform: rotate(45deg);
}

.fccta-wrapper.is-open .fccta-toggle-lines span:last-child {
	transform: rotate(-45deg);
}

.fccta-wrapper.is-open .fccta-toggle {
	animation: none;
}

.fccta-wrapper.is-open .fccta-toggle::after {
	animation: none;
	opacity: 0;
}

.fccta-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	white-space: nowrap;
}

.fccta-mobile-bar {
	display: none;
}

.fccta-mobile-text {
	display: none;
}

@media (min-width: 768px) {
	.fccta-wrapper[data-enable-desktop="0"] {
		display: none !important;
	}

	.fccta-wrapper[data-show-text-desktop="0"] .fccta-text {
		display: none;
	}
}

@media (max-width: 767px) {
	.fccta-wrapper {
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		height: calc(48px + env(safe-area-inset-bottom, 0px));
	}

	.fccta-inner {
		display: none;
	}

	.fccta-mobile-text {
		position: absolute;
		right: max(16px, env(safe-area-inset-right, 0px));
		bottom: calc(56px + env(safe-area-inset-bottom, 0px));
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: max-content;
		max-height: max-content;
		margin: 0;
		padding: 9px 14px;
		border: 0;
		border-radius: 12px;
		background: var(--fccta-mobile-text-bg);
		box-shadow: 0 7px 22px rgba(15, 23, 42, 0.2);
		color: var(--fccta-mobile-text-color);
		font: inherit;
		font-size: 14px;
		font-weight: 700;
		line-height: 1.25;
		text-align: center;
		cursor: pointer;
		transition: opacity var(--fccta-animation-speed, 0.25s) ease, transform var(--fccta-animation-speed, 0.25s) ease;
		touch-action: manipulation;
		-webkit-tap-highlight-color: transparent;
		width: max-content;
	}

	.fccta-wrapper[data-show-text-mobile="0"] .fccta-mobile-text,
	.fccta-mobile-text.is-hidden {
		display: none;
	}

	.fccta-mobile-text:focus-visible {
		outline: 3px solid var(--fccta-mobile-bar-bg);
		outline-offset: 3px;
	}

	.fccta-mobile-bar {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: start;
		width: 100%;
		height: calc(48px + env(safe-area-inset-bottom, 0px));
		padding: 0 max(8px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(8px, env(safe-area-inset-left, 0px));
		border-radius: 14px 14px 0 0;
		background: var(--fccta-mobile-bar-bg);
		box-shadow: 0 -6px 22px rgba(15, 23, 42, 0.18);
		overflow: visible;
	}

	.fccta-mobile-action,
	.fccta-mobile-action:hover,
	.fccta-mobile-action:focus-visible {
		position: relative;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		justify-self: center;
		width: 100%;
		height: 48px;
		min-height: 44px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		color: #101010;
		text-decoration: none;
		transform: none;
		cursor: pointer;
		touch-action: manipulation;
		-webkit-tap-highlight-color: transparent;
	}

	.fccta-mobile-action:nth-child(2) {
		border-right: 2px solid #ffffff7c;
		border-left: 2px solid #ffffff7c;
	}
	.fccta-mobile-action:focus-visible {
		outline: 3px solid rgba(255, 255, 255, 0.92);
		outline-offset: -6px;
	}

	.fccta-mobile-icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 34px;
		height: 34px;
	}

	.fccta-mobile-icon svg,
	.fccta-mobile-icon img {
		display: block;
		width: 32px;
		height: 32px;
		object-fit: contain;
	}

	.fccta-mobile-call,
	.fccta-mobile-call:hover,
	.fccta-mobile-call:focus-visible {
		grid-column: 1;
		top: -38px;
		width: 74px;
		height: 74px;
		min-height: 74px;
		border: 4px solid #ffffff;
		border-radius: 50%;
		background: #ffffff;
		box-shadow: 0 5px 16px rgba(15, 23, 42, 0.38);
	}

	.fccta-mobile-call::after {
		content: "";
		position: absolute;
		inset: 5px;
		border: 2px solid rgba(15, 23, 42, 0.16);
		border-radius: 50%;
		pointer-events: none;
	}

	.fccta-mobile-call-icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 54px;
		height: 54px;
		color: #101010;
		animation: fccta-mobile-call-shake 1.65s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
		transform-origin: 50% 60%;
	}

	.fccta-mobile-call-icon svg,
	.fccta-mobile-call-icon img {
		display: block;
		width: 52px !important;
		height: 52px !important;
		object-fit: contain;
	}

	.fccta-mobile-zalo .fccta-mobile-icon svg,
	.fccta-mobile-zalo .fccta-mobile-icon img {
		width: 30px;
		height: 30px;
	}

	.fccta-mobile-zalo {
		grid-column: 2;
	}

	.fccta-mobile-scroll-top {
		grid-column: 3;
	}
}

@keyframes fccta-mobile-call-shake {
	0%,
	42%,
	100% {
		transform: rotate(0deg) translate3d(0, 0, 0) scale(1);
	}

	5% {
		transform: rotate(-14deg) translate3d(-3px, 0, 0) scale(1.08);
	}

	10% {
		transform: rotate(14deg) translate3d(3px, 0, 0) scale(1.08);
	}

	15% {
		transform: rotate(-16deg) translate3d(-4px, 0, 0) scale(1.1);
	}

	20% {
		transform: rotate(16deg) translate3d(4px, 0, 0) scale(1.1);
	}

	25% {
		transform: rotate(-12deg) translate3d(-3px, 0, 0) scale(1.07);
	}

	30% {
		transform: rotate(12deg) translate3d(3px, 0, 0) scale(1.07);
	}

	36% {
		transform: rotate(-6deg) translate3d(-1px, 0, 0) scale(1.03);
	}
}

@media (prefers-reduced-motion: reduce) {
	.fccta-mobile-call-icon,
	.fccta-toggle,
	.fccta-toggle::after {
		animation: none;
	}
}

@keyframes fccta-toggle-pulse {
	0% {
		opacity: 0;
		transform: scale(0.82);
	}

	20% {
		opacity: 0.42;
	}

	70% {
		opacity: 0;
		transform: scale(1.34);
	}

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

@keyframes fccta-toggle-bob {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-5px);
	}
}
