.csc-support {
	bottom: 22px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	position: fixed;
	right: 22px;
	z-index: 99998;
}

.csc-support-launcher,
.csc-support-option {
	align-items: center;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .27) !important;
	cursor: pointer;
	display: flex;
	height: 56px;
	justify-content: center;
	margin: 0;
	overflow: visible;
	padding: 0 !important;
	position: relative;
	text-decoration: none;
	width: 56px;
}

.csc-support-launcher {
	background: #d70018 !important;
	color: #fff !important;
	z-index: 2;
}

.csc-support-launcher:hover,
.csc-support-launcher:focus,
.csc-support-option:hover,
.csc-support-option:focus {
	box-shadow: 0 8px 26px rgba(0, 0, 0, .34) !important;
	transform: translateY(-2px);
}

.csc-launcher-pulse {
	animation: csc-pulse-ring 2.4s ease-out infinite;
	border: 2px solid #d70018;
	border-radius: 50%;
	height: 100%;
	left: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	top: 0;
	width: 100%;
}

.csc-launcher-pulse.is-delayed {
	animation-delay: 1.2s;
}

.csc-launcher-badge {
	align-items: center;
	animation: csc-badge-pop .35s cubic-bezier(.2, 1.4, .3, 1);
	background: #16a34a;
	border: 2px solid #fff;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(22, 163, 74, .45);
	color: #fff;
	display: flex;
	font-size: 11px;
	font-weight: 700;
	height: 20px;
	justify-content: center;
	min-width: 20px;
	position: absolute;
	right: -2px;
	top: -2px;
	z-index: 3;
}

.csc-launcher-badge[hidden] {
	display: none !important;
}

.csc-launcher-icon {
	border: 2px solid #fff;
	border-radius: 50%;
	display: block;
	height: 24px;
	position: relative;
	width: 29px;
	z-index: 1;
}

.csc-launcher-icon::after {
	border-left: 5px solid transparent;
	border-top: 6px solid #fff;
	bottom: -6px;
	content: "";
	left: 3px;
	position: absolute;
	transform: rotate(12deg);
}

.csc-chatbot-close svg,
.csc-proactive-close svg,
.csc-chatbot-send svg,
.csc-msg-avatar svg {
	display: block;
	fill: currentColor;
	height: 100%;
	width: 100%;
}

.csc-launcher-label,
.csc-option-label {
	background: #222;
	border-radius: 7px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	padding: 8px 10px;
	position: absolute;
	right: 68px;
	text-transform: none;
	white-space: nowrap;
}

.csc-launcher-label::after,
.csc-option-label::after {
	border-bottom: 5px solid transparent;
	border-left: 6px solid #222;
	border-top: 5px solid transparent;
	content: "";
	position: absolute;
	right: -6px;
	top: 50%;
	transform: translateY(-50%);
}

.csc-support-menu {
	align-items: flex-end;
	bottom: 70px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	right: 0;
	transform: translateY(8px);
	transition: opacity .22s ease, transform .22s ease;
	visibility: hidden;
}

.csc-support-menu.is-open {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
	visibility: visible;
}

.csc-support-menu[hidden] {
	display: none;
}

.csc-support-option {
	background: transparent !important;
	color: #fff !important;
	min-height: 56px;
	min-width: 56px;
}

.csc-channel-icon {
	align-items: center;
	border-radius: 50%;
	display: flex;
	font-size: 12px;
	font-weight: 700;
	height: 56px;
	justify-content: center;
	width: 56px;
}

.csc-channel-icon svg {
	fill: currentColor;
	height: 31px;
	width: 31px;
}

.csc-support-zalo .csc-channel-icon,
.csc-support-zalo-user .csc-channel-icon {
	background: #0068ff;
	color: #fff;
}

.csc-zalo-icon {
	font-size: 13px;
	letter-spacing: -.5px;
}

.csc-support-messenger .csc-channel-icon {
	background: #0866ff;
	color: #fff;
}

.csc-support-chatbot .csc-channel-icon {
	background: linear-gradient(145deg, #22c55e, #16a34a);
	color: #fff;
	overflow: hidden;
	padding: 0;
	position: relative;
}

.csc-support-chatbot .csc-channel-icon.has-photo {
	background: #fff;
}

.csc-support-chatbot .csc-channel-icon.has-photo img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.csc-support-option.is-disabled {
	cursor: not-allowed;
	filter: grayscale(1);
	opacity: .48;
}

.csc-support-option.is-disabled:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, .27) !important;
	transform: none;
}

.csc-proactive {
	background: #fff;
	border-radius: 16px;
	bottom: 72px;
	box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
	color: #222;
	max-width: 240px;
	opacity: 0;
	padding: 14px 32px 14px 14px;
	pointer-events: none;
	position: absolute;
	right: 0;
	transform: translateY(10px) scale(.96);
	transition: opacity .28s ease, transform .28s cubic-bezier(.2, .9, .2, 1);
	visibility: hidden;
	width: 240px;
}

.csc-proactive.is-open {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
	visibility: visible;
}

.csc-proactive[hidden] {
	display: none;
}

.csc-proactive::after {
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 8px solid #fff;
	bottom: -7px;
	content: "";
	position: absolute;
	right: 18px;
}

.csc-proactive p {
	font-size: 13px;
	line-height: 1.45;
	margin: 0;
}

.csc-proactive-close {
	align-items: center;
	background: transparent;
	border: 0;
	color: #888;
	cursor: pointer;
	display: flex;
	height: 22px;
	justify-content: center;
	padding: 0;
	position: absolute;
	right: 8px;
	top: 8px;
	width: 22px;
}

.csc-chatbot {
	bottom: 72px;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	right: 0;
	transform: translateY(18px) scale(.92);
	transform-origin: 100% 100%;
	transition: opacity .28s ease, transform .32s cubic-bezier(.2, .9, .2, 1);
	visibility: hidden;
	width: 340px;
}

.csc-chatbot.is-open {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
	visibility: visible;
}

.csc-chatbot[hidden] {
	display: none;
}

.csc-chatbot-window {
	background: #f3f4f6;
	border-radius: 20px;
	box-shadow: 0 22px 50px rgba(0, 0, 0, .22);
	display: flex;
	flex-direction: column;
	height: 480px;
	max-height: calc(100vh - 140px);
	overflow: hidden;
	position: relative;
}

.csc-chatbot-window.is-lead .csc-chatbot-body,
.csc-chatbot-window.is-lead .csc-chatbot-composer {
	display: none;
}

.csc-lead {
	background: #f3f4f6;
	box-sizing: border-box;
	display: none;
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 14px 14px 16px;
}

.csc-chatbot-window.is-lead .csc-lead {
	display: block;
}

.csc-lead-intro {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	color: #222;
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 12px;
	padding: 12px 14px;
}

.csc-lead-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.csc-lead-card {
	background: #3b82f6;
	border-radius: 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 14px;
}

.csc-lead-row {
	align-items: stretch;
	display: flex;
	gap: 8px;
}

.csc-lead-honor {
	align-items: center;
	background: rgba(255, 255, 255, .22);
	border-radius: 999px;
	display: flex;
	flex-shrink: 0;
	padding: 3px;
}

.csc-lead-honor label {
	cursor: pointer;
	display: block;
	margin: 0;
	position: relative;
}

.csc-lead-honor input {
	height: 1px !important;
	left: 0;
	margin: 0 !important;
	opacity: 0;
	padding: 0 !important;
	pointer-events: none;
	position: absolute;
	width: 1px !important;
}

.csc-lead-honor span {
	border-radius: 999px;
	color: rgba(255, 255, 255, .9);
	display: block;
	font-size: 13px;
	font-weight: 700;
	line-height: 36px;
	padding: 0 14px;
}

.csc-lead-honor input:checked + span {
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
	color: #111;
}

.csc-lead-card > label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.csc-lead-card > label > span {
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

.csc-lead-card > label > span i {
	color: #fbbf24;
	font-style: normal;
}

.csc-lead-form input[type="text"],
.csc-lead-form input[type="tel"] {
	background: #fff !important;
	border: 0 !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	box-sizing: border-box;
	color: #111;
	flex: 1;
	font-size: 14px;
	height: 42px !important;
	margin: 0 !important;
	min-width: 0;
	padding: 0 12px !important;
	width: 100%;
}

.csc-lead-form input::placeholder {
	color: #9ca3af;
}

.csc-lead-error {
	color: #d70018;
	font-size: 12px;
	margin: 0;
}

.csc-lead-submit {
	background: linear-gradient(135deg, #d70018 0%, #ff3b3b 100%) !important;
	border: 0 !important;
	border-radius: 12px !important;
	color: #fff !important;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	height: 44px;
}

.csc-lead-submit:disabled {
	opacity: .65;
}

.csc-contact {
	width: 100%;
}

.csc-contact-form {
	margin-top: 2px;
}

.csc-contact-skip {
	background: transparent !important;
	border: 0 !important;
	color: #6b7280;
	cursor: pointer;
	font-size: 12px;
	padding: 2px 0 0;
	text-align: center;
}

.csc-contact-skip:hover {
	color: #d70018;
}

.csc-chatbot-header {
	align-items: center;
	background: linear-gradient(135deg, #d70018 0%, #ff3b3b 100%);
	color: #fff;
	display: flex;
	gap: 10px;
	padding: 14px 12px 14px 14px;
}

.csc-chatbot-avatar {
	align-items: center;
	background: rgba(255, 255, 255, .16);
	border-radius: 50%;
	display: flex;
	flex-shrink: 0;
	height: 42px;
	justify-content: center;
	position: relative;
	width: 42px;
}

.csc-chatbot-avatar svg {
	fill: #fff;
	height: 22px;
	width: 22px;
}

.csc-chatbot-avatar.has-photo {
	background: transparent;
}

.csc-chatbot-avatar.has-photo img {
	border-radius: 50%;
	display: block;
	height: 100%;
	object-fit: cover;
	position: relative;
	width: 100%;
	z-index: 1;
}

.csc-chatbot-avatar-ring {
	animation: csc-pulse-ring 2s ease-out infinite;
	border: 2px solid rgba(255, 255, 255, .7);
	border-radius: 50%;
	inset: -4px;
	position: absolute;
}

.csc-chatbot-heading {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.csc-chatbot-heading strong {
	font-size: 15px;
	font-weight: 700;
}

.csc-chatbot-status {
	align-items: center;
	display: flex;
	font-size: 12px;
	gap: 6px;
	opacity: .92;
}

.csc-chatbot-status i {
	animation: csc-status-blink 1.6s ease-in-out infinite;
	background: #4ade80;
	border-radius: 50%;
	display: block;
	height: 8px;
	width: 8px;
}

.csc-chatbot-close {
	align-items: center;
	background: rgba(255, 255, 255, .14);
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: flex;
	flex-shrink: 0;
	height: 32px;
	justify-content: center;
	padding: 7px;
	width: 32px;
}

.csc-chatbot-body {
	min-height: 0;
	position: relative;
	flex: 1;
}

.csc-chatbot-messages {
	background: linear-gradient(#f7f7f8, #f3f4f6);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%;
	overflow-y: auto;
	padding: 14px 12px 168px;
}

.csc-msg-row {
	align-items: flex-end;
	display: flex;
	gap: 8px;
	max-width: 100%;
}

.csc-msg-row.is-user {
	justify-content: flex-end;
}

.csc-msg-avatar {
	align-items: center;
	background: #d70018;
	border-radius: 50%;
	color: #fff;
	display: flex;
	flex-shrink: 0;
	height: 28px;
	justify-content: center;
	overflow: hidden;
	padding: 6px;
	width: 28px;
}

.csc-msg-avatar.has-photo {
	background: #fff;
	padding: 0;
}

.csc-msg-avatar.has-photo img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.csc-msg-col {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: calc(100% - 36px);
	min-width: 0;
}

.csc-msg-row.is-user .csc-msg-col {
	align-items: flex-end;
	max-width: 86%;
}

.csc-msg {
	animation: csc-msg-in .32s cubic-bezier(.2, .9, .2, 1) both;
	border-radius: 16px;
	font-size: 13.5px;
	line-height: 1.45;
	padding: 10px 12px;
	white-space: pre-wrap;
	word-break: break-word;
}

.csc-msg.is-bot {
	background: #fff;
	border-bottom-left-radius: 6px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
	color: #222;
}

.csc-msg.is-user {
	background: #d70018;
	border-bottom-right-radius: 6px;
	color: #fff;
}

.csc-typing {
	align-items: center;
	background: #fff;
	border-radius: 16px;
	border-bottom-left-radius: 6px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
	display: flex;
	gap: 5px;
	padding: 12px 14px;
}

.csc-typing span {
	animation: csc-dot 1.1s ease-in-out infinite;
	background: #9ca3af;
	border-radius: 50%;
	display: block;
	height: 7px;
	width: 7px;
}

.csc-typing span:nth-child(2) {
	animation-delay: .15s;
}

.csc-typing span:nth-child(3) {
	animation-delay: .3s;
}

.csc-chatbot-composer {
	background: #fff;
	border-top: 1px solid #ececec;
	flex-shrink: 0;
	padding: 8px 10px 10px;
	position: relative;
	z-index: 4;
}

.csc-chatbot-quick {
	align-items: flex-end;
	bottom: 10px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	left: 10px;
	pointer-events: none;
	position: absolute;
	right: 10px;
	z-index: 3;
}

.csc-chatbot-quick::before {
	background: linear-gradient(180deg, rgba(243, 244, 246, 0) 0%, #f3f4f6 42%);
	bottom: -10px;
	content: "";
	left: -10px;
	pointer-events: none;
	position: absolute;
	right: -10px;
	top: -28px;
	z-index: -1;
}

.csc-quick-chip {
	background: #fff !important;
	border: 1px solid rgba(0, 0, 0, .06) !important;
	border-radius: 12px !important;
	box-shadow: 0 8px 22px rgba(15, 23, 42, .14) !important;
	box-sizing: border-box;
	color: #222 !important;
	cursor: pointer;
	display: inline-flex !important;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	margin: 0 !important;
	max-width: 100%;
	padding: 8px 12px !important;
	pointer-events: auto;
	position: relative;
	text-align: right;
	white-space: nowrap;
	width: max-content !important;
}

.csc-quick-chip:hover {
	background: #fff !important;
	box-shadow: 0 10px 26px rgba(15, 23, 42, .2) !important;
	transform: translateY(-1px);
}

.csc-quick-chip.is-primary {
	background: linear-gradient(135deg, #d70018 0%, #ff3b3b 100%) !important;
	border-color: transparent !important;
	box-shadow: 0 8px 22px rgba(215, 0, 24, .28) !important;
	color: #fff !important;
}

.csc-chatbot-form {
	align-items: center;
	background: transparent;
	display: flex;
	gap: 8px;
	padding: 0;
}

.csc-chatbot-input {
	background: #fff !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 12px !important;
	box-sizing: border-box;
	flex: 1;
	font-size: 13px;
	height: 44px !important;
	line-height: 20px;
	min-height: 44px !important;
	min-width: 0;
	outline: none;
	padding: 0 14px !important;
}

.csc-chatbot-send {
	align-items: center;
	background: #d70018 !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	box-sizing: border-box;
	color: #fff !important;
	cursor: pointer;
	display: flex;
	flex-shrink: 0;
	height: 28px !important;
	justify-content: center;
	line-height: 1 !important;
	margin: 0 !important;
	min-height: 0 !important;
	min-width: 0 !important;
	padding: 0 !important;
	width: 28px !important;
}

.csc-chatbot-send:hover {
	background: #b80014 !important;
	color: #fff !important;
}

.csc-chatbot-send svg {
	height: 14px;
	margin: 0 0 0 1px;
	width: 14px;
}

@media only screen and (max-width: 849px) {
	.csc-support {
		bottom: calc(82px + env(safe-area-inset-bottom, 0px));
		right: 12px;
	}

	body.hlora-nav-overlay .csc-support {
		opacity: 0;
		pointer-events: none;
		visibility: hidden;
	}

	.csc-support-launcher,
	.csc-support-option,
	.csc-channel-icon {
		height: 52px;
		min-height: 52px;
		min-width: 52px;
		width: 52px;
	}

	.csc-support-menu {
		bottom: 64px;
		gap: 10px;
	}

	.csc-launcher-label,
	.csc-option-label {
		right: 62px;
	}

	.csc-support.is-chat-open {
		z-index: 2147483000;
	}

	.csc-chatbot {
		bottom: 0;
		left: 0;
		position: fixed;
		right: 0;
		top: calc(12px + env(safe-area-inset-top, 0px));
		transform-origin: 50% 100%;
		width: 100%;
		z-index: 6;
	}

	.csc-chatbot.is-open {
		transform: none;
	}

	.csc-chatbot-window {
		border-radius: 18px 18px 0 0;
		box-shadow: 0 -10px 36px rgba(0, 0, 0, .22);
		height: 100%;
		max-height: none;
	}

	.csc-support.is-chat-open .csc-support-launcher,
	.csc-support.is-chat-open .csc-support-menu,
	.csc-support.is-chat-open .csc-proactive {
		opacity: 0;
		pointer-events: none;
		visibility: hidden;
	}

	html.csc-chat-open,
	html.csc-chat-open body {
		overflow: hidden;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.csc-support-launcher {
		animation: csc-launcher-bob 3.6s ease-in-out infinite;
	}

	.csc-support-menu.is-open .csc-support-option {
		animation: csc-option-in .28s cubic-bezier(.2, .9, .2, 1) both;
	}

	.csc-support-menu.is-open .csc-support-option:nth-child(2) {
		animation-delay: .05s;
	}

	.csc-support-menu.is-open .csc-support-option:nth-child(3) {
		animation-delay: .1s;
	}

	.csc-support-menu.is-open .csc-support-option:nth-child(4) {
		animation-delay: .15s;
	}

	.csc-support-menu.is-open .csc-support-chatbot .csc-channel-icon {
		animation: csc-chatbot-glow 1.6s ease-in-out infinite;
	}
}

@media (prefers-reduced-motion: reduce) {
	.csc-launcher-pulse,
	.csc-chatbot-avatar-ring,
	.csc-support-launcher,
	.csc-chatbot-status i,
	.csc-typing span {
		animation: none;
	}

	.csc-chatbot,
	.csc-proactive,
	.csc-support-menu {
		transition: none;
	}
}

@keyframes csc-pulse-ring {
	0% { opacity: .65; transform: scale(1); }
	100% { opacity: 0; transform: scale(1.7); }
}

@keyframes csc-launcher-bob {
	0%, 70%, 100% { transform: translateY(0); }
	78% { transform: translateY(-5px); }
	86% { transform: translateY(0); }
	92% { transform: translateY(-3px); }
}

@keyframes csc-option-in {
	from { opacity: 0; transform: translateY(12px) scale(.86); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes csc-msg-in {
	from { opacity: 0; transform: translateY(8px) scale(.96); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes csc-dot {
	0%, 80%, 100% { opacity: .35; transform: translateY(0); }
	40% { opacity: 1; transform: translateY(-4px); }
}

@keyframes csc-status-blink {
	0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); }
	50% { opacity: .75; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

@keyframes csc-badge-pop {
	from { opacity: 0; transform: scale(.4); }
	to { opacity: 1; transform: scale(1); }
}

@keyframes csc-chatbot-glow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); }
	50% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
}
