.dc-fcb {
	--dc-fcb-primary: #ff7a00;
	--dc-fcb-phone-bar: #ffb000;
	--dc-fcb-shadow: rgba(255, 122, 0, 0.28);
	--dc-fcb-ripple: rgba(255, 176, 0, 0.72);
	position: fixed;
	z-index: 999999;
	font-family: Arial, Helvetica, sans-serif;
}

.dc-fcb--right-center {
	top: 50%;
	right: 18px;
	transform: translateY(-50%);
}

.dc-fcb--left-center {
	top: 50%;
	left: 18px;
	transform: translateY(-50%);
}

.dc-fcb--right-bottom {
	right: 18px;
	bottom: 92px;
}

.dc-fcb--left-bottom {
	left: 18px;
	bottom: 92px;
}

.dc-fcb__stack {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.dc-fcb--left-center .dc-fcb__stack,
.dc-fcb--left-bottom .dc-fcb__stack {
	align-items: flex-start;
}

.dc-fcb-phone-row {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.dc-fcb--left-center .dc-fcb-phone-row,
.dc-fcb--left-bottom .dc-fcb-phone-row {
	flex-direction: row-reverse;
	justify-content: flex-start;
}

.dc-fcb__button,
.dc-fcb-button,
.dc-fcb__phone-bar {
	text-decoration: none;
}

.dc-fcb__button,
.dc-fcb-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 999px;
	background: var(--dc-fcb-primary);
	color: #fff;
	box-shadow: 0 10px 22px var(--dc-fcb-shadow);
	isolation: isolate;
	transform-origin: center;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	animation: dc-fcb-float 1.95s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
	backface-visibility: hidden;
	will-change: transform;
}

.dc-fcb-button::before,
.dc-fcb-button::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	border: 2px solid var(--dc-fcb-ripple);
	border-radius: inherit;
	box-shadow: 0 0 0 2px rgba(255, 176, 0, 0.16);
	content: "";
	opacity: 0;
	pointer-events: none;
	transform: scale(1);
	animation: dc-fcb-pulse 1.8s ease-out infinite;
	will-change: transform, opacity;
}

.dc-fcb-button::after {
	animation-delay: 0.46s;
}

.dc-fcb__button:hover,
.dc-fcb__button:focus,
.dc-fcb-button:hover,
.dc-fcb-button:focus {
	color: #fff;
	transform: translateY(-3px) scale(1.1);
	box-shadow: 0 14px 26px var(--dc-fcb-shadow);
	outline: none;
	animation: none;
}

.dc-fcb-button:hover .dc-fcb-icon,
.dc-fcb-button:focus .dc-fcb-icon,
.dc-fcb-phone-bar:hover .dc-fcb-icon,
.dc-fcb-phone-bar:focus .dc-fcb-icon {
	animation-play-state: paused;
	transform: none;
}

.dc-fcb__button:focus-visible,
.dc-fcb-button:focus-visible,
.dc-fcb__phone-bar:focus-visible {
	outline: 3px solid rgba(255, 176, 0, 0.42);
	outline-offset: 4px;
}

.dc-fcb__button svg,
.dc-fcb__phone-bar svg {
	display: block;
}

.dc-fcb-icon {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transform-origin: center;
	will-change: transform;
}

.dc-fcb-button .dc-fcb-icon {
	--dc-fcb-shake-x-neg: -1.8px;
	--dc-fcb-shake-x-pos: 1.8px;
	--dc-fcb-shake-x-soft-neg: -1px;
	--dc-fcb-shake-x-soft-pos: 1px;
	--dc-fcb-shake-rotate-neg: -6deg;
	--dc-fcb-shake-rotate-pos: 6deg;
	--dc-fcb-shake-rotate-soft-neg: -3deg;
	--dc-fcb-shake-rotate-soft-pos: 3deg;
	animation: dc-fcb-shake 1.35s ease-in-out infinite;
}

.dc-fcb-button--phone .dc-fcb-icon {
	--dc-fcb-shake-x-neg: -2.4px;
	--dc-fcb-shake-x-pos: 2.4px;
	--dc-fcb-shake-x-soft-neg: -1.3px;
	--dc-fcb-shake-x-soft-pos: 1.3px;
	--dc-fcb-shake-rotate-neg: -8deg;
	--dc-fcb-shake-rotate-pos: 8deg;
	--dc-fcb-shake-rotate-soft-neg: -4deg;
	--dc-fcb-shake-rotate-soft-pos: 4deg;
	animation-duration: 1.05s;
}

.dc-fcb-button--zalo .dc-fcb-icon,
.dc-fcb-button--messenger .dc-fcb-icon {
	--dc-fcb-shake-x-neg: -1.4px;
	--dc-fcb-shake-x-pos: 1.4px;
	--dc-fcb-shake-x-soft-neg: -0.7px;
	--dc-fcb-shake-x-soft-pos: 0.7px;
	--dc-fcb-shake-rotate-neg: -5deg;
	--dc-fcb-shake-rotate-pos: 5deg;
	--dc-fcb-shake-rotate-soft-neg: -2.5deg;
	--dc-fcb-shake-rotate-soft-pos: 2.5deg;
	animation-duration: 1.55s;
}

.dc-fcb-icon-image {
	display: block;
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.dc-fcb__zalo-text {
	position: relative;
	z-index: 1;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.dc-fcb__phone-bar,
.dc-fcb-phone-bar {
	display: inline-flex;
	align-items: center;
	min-width: 156px;
	max-width: 220px;
	min-height: 42px;
	padding: 8px 14px 8px 10px;
	border-radius: 999px;
	background: var(--dc-fcb-phone-bar);
	color: #fff;
	box-shadow: 0 10px 22px rgba(255, 176, 0, 0.28);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.1;
	white-space: nowrap;
	transform-origin: center;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	animation: dc-fcb-phone-bar-shake 2.8s ease-in-out infinite;
	backface-visibility: hidden;
	will-change: transform;
}

.dc-fcb__phone-bar:hover,
.dc-fcb__phone-bar:focus,
.dc-fcb-phone-bar:hover,
.dc-fcb-phone-bar:focus {
	color: #fff;
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 14px 26px rgba(255, 176, 0, 0.32);
	outline: none;
	animation: none;
}

.dc-fcb__phone-bar-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-right: 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	flex: 0 0 28px;
}

.dc-fcb__phone-bar-icon svg {
	width: 17px;
	height: 17px;
}

.dc-fcb__phone-bar-icon .dc-fcb-icon-image {
	width: 18px;
	height: 18px;
}

.dc-fcb-phone-bar .dc-fcb-icon {
	--dc-fcb-shake-x-neg: -1px;
	--dc-fcb-shake-x-pos: 1px;
	--dc-fcb-shake-x-soft-neg: -0.5px;
	--dc-fcb-shake-x-soft-pos: 0.5px;
	--dc-fcb-shake-rotate-neg: -4deg;
	--dc-fcb-shake-rotate-pos: 4deg;
	--dc-fcb-shake-rotate-soft-neg: -2deg;
	--dc-fcb-shake-rotate-soft-pos: 2deg;
	animation: dc-fcb-shake 2.2s ease-in-out infinite;
}

.dc-fcb__phone-label {
	overflow: hidden;
	text-overflow: ellipsis;
}

.dc-fcb--device-mobile,
.dc-fcb--device-desktop {
	display: none;
}

@media (min-width: 768px) {
	.dc-fcb--device-desktop {
		display: block;
	}
}

@media (max-width: 767px) {
	.dc-fcb {
		right: 10px;
		left: auto;
	}

	.dc-fcb--left-center,
	.dc-fcb--left-bottom {
		right: auto;
		left: 10px;
	}

	.dc-fcb--right-bottom,
	.dc-fcb--left-bottom {
		bottom: 70px;
	}

	.dc-fcb--device-mobile {
		display: block;
	}

	.dc-fcb__stack {
		gap: 10px;
	}

	.dc-fcb-phone-row {
		gap: 8px;
	}

	.dc-fcb__button,
	.dc-fcb-button {
		width: 48px;
		height: 48px;
		animation-duration: 2.5s;
	}

	.dc-fcb-button::before,
	.dc-fcb-button::after {
		animation-duration: 2.15s;
	}

	.dc-fcb__phone-bar {
		min-width: 138px;
		max-width: 168px;
		min-height: 38px;
		padding: 7px 11px 7px 8px;
		font-size: 13px;
		animation-duration: 3.6s;
	}

	.dc-fcb-button .dc-fcb-icon {
		--dc-fcb-shake-x-neg: -1px;
		--dc-fcb-shake-x-pos: 1px;
		--dc-fcb-shake-x-soft-neg: -0.5px;
		--dc-fcb-shake-x-soft-pos: 0.5px;
		--dc-fcb-shake-rotate-neg: -4deg;
		--dc-fcb-shake-rotate-pos: 4deg;
		--dc-fcb-shake-rotate-soft-neg: -2deg;
		--dc-fcb-shake-rotate-soft-pos: 2deg;
		animation-duration: 1.9s;
	}

	.dc-fcb-button--phone .dc-fcb-icon {
		--dc-fcb-shake-x-neg: -1.4px;
		--dc-fcb-shake-x-pos: 1.4px;
		--dc-fcb-shake-x-soft-neg: -0.7px;
		--dc-fcb-shake-x-soft-pos: 0.7px;
		--dc-fcb-shake-rotate-neg: -5deg;
		--dc-fcb-shake-rotate-pos: 5deg;
		--dc-fcb-shake-rotate-soft-neg: -2.5deg;
		--dc-fcb-shake-rotate-soft-pos: 2.5deg;
		animation-duration: 1.7s;
	}

	.dc-fcb-phone-bar .dc-fcb-icon {
		--dc-fcb-shake-x-neg: -0.7px;
		--dc-fcb-shake-x-pos: 0.7px;
		--dc-fcb-shake-x-soft-neg: -0.35px;
		--dc-fcb-shake-x-soft-pos: 0.35px;
		--dc-fcb-shake-rotate-neg: -3deg;
		--dc-fcb-shake-rotate-pos: 3deg;
		--dc-fcb-shake-rotate-soft-neg: -1.5deg;
		--dc-fcb-shake-rotate-soft-pos: 1.5deg;
		animation-duration: 2.8s;
	}
}

@media (min-width: 768px) {
	.dc-fcb--device-all {
		display: block;
	}
}

@media (max-width: 767px) {
	.dc-fcb--device-all {
		display: block;
	}
}

@keyframes dc-fcb-pulse {
	0% {
		transform: scale(0.92);
		opacity: 0.45;
	}

	68% {
		transform: scale(1.56);
		opacity: 0;
	}

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

@keyframes dc-fcb-float {
	0% {
		transform: translate3d(0, 0, 0) scale(1);
	}

	16% {
		transform: translate3d(0, -3px, 0) scale(1.08);
	}

	30% {
		transform: translate3d(0, 1px, 0) scale(0.98);
	}

	44% {
		transform: translate3d(0, -1px, 0) scale(1.035);
	}

	58%,
	100% {
		transform: translate3d(0, 0, 0) scale(1);
	}
}

@keyframes dc-fcb-shake {
	0%,
	18%,
	78%,
	100% {
		transform: translate3d(0, 0, 0) rotate(0);
	}

	26% {
		transform: translate3d(var(--dc-fcb-shake-x-neg), 0, 0) rotate(var(--dc-fcb-shake-rotate-neg));
	}

	34% {
		transform: translate3d(var(--dc-fcb-shake-x-pos), 0, 0) rotate(var(--dc-fcb-shake-rotate-pos));
	}

	42% {
		transform: translate3d(var(--dc-fcb-shake-x-soft-neg), 0, 0) rotate(var(--dc-fcb-shake-rotate-soft-neg));
	}

	50% {
		transform: translate3d(var(--dc-fcb-shake-x-soft-pos), 0, 0) rotate(var(--dc-fcb-shake-rotate-soft-pos));
	}

	58% {
		transform: translate3d(0, 0, 0) rotate(0);
	}
}

@keyframes dc-fcb-phone-bar-shake {
	0% {
		transform: translate3d(0, 0, 0) scale(1);
	}

	18% {
		transform: translate3d(0, -1px, 0) scale(1.018);
	}

	32% {
		transform: translate3d(-1px, 0, 0) scale(1);
	}

	46% {
		transform: translate3d(1px, 0, 0) scale(1.01);
	}

	60%,
	100% {
		transform: translate3d(0, 0, 0) scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.dc-fcb-button,
	.dc-fcb-button::before,
	.dc-fcb-button::after,
	.dc-fcb-icon,
	.dc-fcb-phone-bar {
		animation: none !important;
		transition-duration: 0.01ms !important;
	}
}
