
.zcc-root {
	--zcc-purple: #6d5ca8;
	--zcc-orange: #f7941c;
	--zcc-dark: #161222;
	--zcc-text: #231f20;
	--zcc-muted: #5b5664;
	--zcc-line: #ebedef;
	--zcc-soft: #f5f3fa;
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 99990;
	font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--zcc-text);
}

.zcc-root *, .zcc-root *:before, .zcc-root *:after {
	box-sizing: border-box;
}

.zcc-root button {
	font-family: inherit;
	letter-spacing: 0;
	text-transform: none;
	margin: 0;
}

/* Launcher */
.zcc-launch {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 60px;
	min-width: 60px;
	padding: 0 22px 0 18px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #f7941c, #e9761a) !important;
	color: #fff !important;
	cursor: pointer;
	box-shadow: 0 14px 34px rgba(247, 148, 28, .38), 0 4px 10px rgba(22, 18, 34, .12);
	transition: transform .2s, box-shadow .2s, padding .25s;
}

.zcc-launch:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 40px rgba(247, 148, 28, .45), 0 4px 10px rgba(22, 18, 34, .12);
}

.zcc-launch:focus-visible {
	outline: 3px solid var(--zcc-purple);
	outline-offset: 3px;
}

.zcc-launch-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	transition: transform .25s, opacity .2s;
}

.zcc-ico-x {
	position: absolute;
	left: 17px;
	opacity: 0;
	transform: rotate(-90deg);
}

.zcc-launch-label {
	font: 600 16px/1 "Work Sans", "Inter Tight", sans-serif;
	white-space: nowrap;
}

.zcc-launch:before {
	content: "";
	position: absolute;
	top: 10px;
	left: 40px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #2bd576;
	border: 2px solid #f28a1b;
}

.zcc-is-open .zcc-launch {
	padding: 0;
	width: 60px;
	justify-content: center;
}

.zcc-is-open .zcc-launch:before, .zcc-is-open .zcc-launch-label {
	display: none;
}

.zcc-is-open .zcc-ico-chat {
	opacity: 0;
	transform: rotate(90deg);
}

.zcc-is-open .zcc-ico-x {
	position: static;
	opacity: 1;
	transform: none;
}

.zcc-is-open .zcc-launch .zcc-ico-chat {
	position: absolute;
}

.zcc-nudge .zcc-launch {
	animation: zcc-bounce 1.2s ease 2;
}

@keyframes zcc-bounce {
	0%, 100% {
		transform: translateY(0);
	}
	
	30% {
		transform: translateY(-8px);
	}
	
	60% {
		transform: translateY(0);
	}
	
	80% {
		transform: translateY(-3px);
	}
}

/* Panel */
.zcc-panel {
	position: absolute;
	right: 0;
	bottom: 76px;
	width: 390px;
	height: min(640px, calc(100vh - 120px));
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 22px;
	box-shadow: 0 30px 80px rgba(22, 18, 34, .28), 0 0 0 1px rgba(22, 18, 34, .06);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px) scale(.98);
	transform-origin: bottom right;
	transition: opacity .2s, transform .22s cubic-bezier(.2, .8, .2, 1), visibility 0s .22s;
}

.zcc-is-open .zcc-panel {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .2s, transform .22s cubic-bezier(.2, .8, .2, 1);
}

.zcc-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 14px 16px 18px;
	background: var(--zcc-dark);
	background-image: radial-gradient(420px 160px at 100% 0, rgba(109, 92, 168, .75), transparent 70%), radial-gradient(300px 140px at 0 100%, rgba(247, 148, 28, .28), transparent 70%);
	color: #fff;
}

.zcc-avatar {
	flex: 0 0 42px;
	height: 42px;
	border-radius: 14px;
	background: linear-gradient(140deg, #f7941c, #e2621b);
	display: flex;
	align-items: center;
	justify-content: center;
	font: 800 20px/1 "Work Sans", sans-serif;
	color: #fff;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}

.zcc-title {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.zcc-title strong {
	font: 700 16px/1.2 "Work Sans", sans-serif;
	color: #fff;
}

.zcc-title span {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: rgba(255, 255, 255, .72);
	margin-top: 3px;
}

.zcc-title i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2bd576;
	box-shadow: 0 0 0 3px rgba(43, 213, 118, .2);
}

.zcc-icon-btn {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 10px;
	background: rgba(255, 255, 255, .08) !important;
	color: #fff !important;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: background .2s;
}

.zcc-icon-btn:hover {
	background: rgba(255, 255, 255, .18) !important;
}

.zcc-body {
	flex: 1;
	overflow-y: auto;
	padding: 18px 16px 8px;
	background: #fafafc;
	scroll-behavior: smooth;
	overscroll-behavior: contain;
}

.zcc-msg {
	display: flex;
	margin: 0 0 10px;
}

.zcc-bubble {
	max-width: 86%;
	padding: 10px 14px;
	border-radius: 18px;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.zcc-bot .zcc-bubble {
	background: #fff;
	border: 1px solid var(--zcc-line);
	border-bottom-left-radius: 6px;
	color: var(--zcc-text);
}

.zcc-user {
	justify-content: flex-end;
}

.zcc-user .zcc-bubble {
	background: var(--zcc-purple);
	color: #fff;
	border-bottom-right-radius: 6px;
}

.zcc-bubble p {
	margin: 0 0 8px !important;
	padding: 0;
	font-size: 15px;
	line-height: 1.5;
	color: inherit;
}

.zcc-bubble p:last-child {
	margin-bottom: 0 !important;
}

.zcc-bubble ul {
	margin: 4px 0 8px 0 !important;
	padding: 0 0 0 18px !important;
}

.zcc-bubble li {
	margin: 0 0 4px;
	padding: 0;
	font-size: 15px;
	line-height: 1.45;
	list-style: disc;
}

.zcc-bubble a {
	color: var(--zcc-purple) !important;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.zcc-user .zcc-bubble a {
	color: #fff !important;
}

.zcc-bubble strong {
	font-weight: 700;
}

.zcc-err .zcc-bubble {
	background: #fff5f2;
	border-color: #f6d1c6;
}

.zcc-note .zcc-bubble {
	background: #eef9f2;
	border-color: #cdebd8;
	color: #1c5e36;
	font-size: 14px;
}

.zcc-check {
	display: inline-flex;
	width: 18px;
	height: 18px;
	margin-right: 4px;
	border-radius: 50%;
	background: #2bb566;
	color: #fff;
	font-size: 11px;
	align-items: center;
	justify-content: center;
}

.zcc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 12px;
}

.zcc-chips button {
	border: 1px solid #dcd4ec;
	background: #fff !important;
	color: var(--zcc-purple) !important;
	border-radius: 999px;
	padding: 8px 14px;
	font: 600 13.5px/1.2 "Inter Tight", sans-serif;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
	box-shadow: none;
}

.zcc-chips button:hover {
	background: var(--zcc-purple) !important;
	border-color: var(--zcc-purple);
	color: #fff !important;
}

.zcc-dots {
	display: inline-flex;
	gap: 4px;
	padding: 4px 2px;
}

.zcc-dots i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #b7b0c9;
	animation: zcc-blink 1.2s infinite;
}

.zcc-dots i:nth-child(2) {
	animation-delay: .15s;
}

.zcc-dots i:nth-child(3) {
	animation-delay: .3s;
}

@keyframes zcc-blink {
	0%, 80%, 100% {
		opacity: .35;
		transform: translateY(0);
	}
	
	40% {
		opacity: 1;
		transform: translateY(-3px);
	}
}

.zcc-quick {
	display: flex;
	gap: 6px;
	padding: 8px 14px 0;
	background: #fff;
	border-top: 1px solid var(--zcc-line);
	overflow-x: auto;
	scrollbar-width: none;
}

.zcc-quick::-webkit-scrollbar {
	display: none;
}

.zcc-quick a {
	flex: 0 0 auto;
	padding: 6px 11px;
	border-radius: 999px;
	background: var(--zcc-soft);
	color: var(--zcc-muted) !important;
	font: 600 12.5px/1.2 "Inter Tight", sans-serif;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background .15s, color .15s;
}

.zcc-quick a:hover {
	background: #ece7f7;
	color: var(--zcc-purple) !important;
}

.zcc-form {
	position: relative;
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 10px 12px 8px;
	background: #fff;
}

.zcc-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0;
}

.zcc-form textarea {
	flex: 1;
	resize: none;
	min-height: 46px;
	max-height: 120px;
	margin: 0;
	padding: 12px 14px !important;
	border: 1px solid #ddd9e6 !important;
	border-radius: 14px !important;
	background: #fff !important;
	color: var(--zcc-text) !important;
	font: 400 15px/1.4 "Inter Tight", sans-serif !important;
	outline: none !important;
	box-shadow: none !important;
	transition: border-color .2s, box-shadow .2s;
}

.zcc-form textarea:focus {
	border-color: var(--zcc-purple) !important;
	box-shadow: 0 0 0 3px rgba(109, 92, 168, .14) !important;
}

.zcc-send {
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 14px;
	background: var(--zcc-orange) !important;
	color: #fff !important;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: background .2s, transform .15s, opacity .2s;
}

.zcc-send:hover {
	background: #e5830c !important;
}

.zcc-busy .zcc-send {
	opacity: .5;
	pointer-events: none;
}

.zcc-foot {
	margin: 0 !important;
	padding: 0 14px 10px;
	background: #fff;
	text-align: center;
	font-size: 11.5px;
	color: #9a94a8;
}

.zcc-foot a {
	color: #9a94a8 !important;
	text-decoration: underline;
}

@media (max-width:767px) {
	.zcc-root {
		right: 16px;
		bottom: 16px;
	}
	
	.zcc-launch {
		height: 56px;
		padding: 0 18px 0 15px;
	}
	
	.zcc-launch-label {
		font-size: 15px;
	}
	
	.zcc-ico-x {
		left: 15px;
	}
	
	.zcc-launch:before {
		left: 35px;
		top: 9px;
	}
	
	.zcc-is-open .zcc-launch {
		display: none;
	}
	
	.zcc-panel {
		position: fixed;
		inset: 0;
		width: 100%;
		height: 100%;
		height: 100dvh;
		border-radius: 0;
		bottom: 0;
		transform: translateY(24px);
	}
	
	.zcc-head {
		padding-top: max(16px, env(safe-area-inset-top));
	}
	
	.zcc-foot {
		padding-bottom: max(10px, env(safe-area-inset-bottom));
	}
	
	.zcc-form textarea {
		font-size: 16px !important;
	}
	
	html.zcc-lock, html.zcc-lock body {
		overflow: hidden !important;
	}
}

@media (prefers-reduced-motion:reduce) {
	.zcc-panel, .zcc-launch, .zcc-launch-ico {
		transition: none !important;
	}
	
	.zcc-nudge .zcc-launch, .zcc-dots i {
		animation: none !important;
	}
}

/* v1.0.1 launcher polish */
.zcc-root .zcc-launch {
	border-radius: 999px !important;
	gap: 12px !important;
	padding: 0 24px 0 8px !important;
	height: 58px !important;
	font-family: inherit !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	line-height: 1 !important;
}

.zcc-root .zcc-launch:before {
	display: none !important;
}

.zcc-launch-badge {
	position: relative;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
	color: #f28a1b;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
	transition: transform .25s, opacity .2s;
}

.zcc-launch-badge svg {
	display: block;
}

.zcc-dot {
	position: absolute;
	top: 1px;
	right: 1px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #2bd576;
	border: 2px solid #fff;
}

.zcc-root .zcc-launch .zcc-launch-label {
	font: 600 16px/1 "Work Sans", "Inter Tight", sans-serif !important;
	color: #fff !important;
}

.zcc-root .zcc-ico-x {
	left: 50% !important;
	top: 50% !important;
	margin: -13px 0 0 -13px;
}

.zcc-is-open .zcc-launch {
	padding: 0 !important;
	width: 58px !important;
}

.zcc-is-open .zcc-launch-badge {
	position: absolute;
	opacity: 0;
	transform: scale(.6);
}

.zcc-is-open .zcc-ico-x {
	position: absolute !important;
}

@media (max-width:767px) {
	.zcc-root .zcc-launch {
		height: 54px !important;
		padding: 0 20px 0 7px !important;
	}
	
	.zcc-launch-badge {
		flex-basis: 40px;
		width: 40px;
		height: 40px;
	}
	
	.zcc-root .zcc-launch .zcc-launch-label {
		font-size: 15px !important;
	}
}

/* v1.0.2 — protect buttons from theme padding */
.zcc-root .zcc-icon-btn, .zcc-root .zcc-send {
	padding: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	line-height: 1 !important;
	border: 0 !important;
	box-shadow: none !important;
}

.zcc-root .zcc-icon-btn {
	width: 36px !important;
	height: 36px !important;
	flex: 0 0 36px !important;
	border-radius: 10px !important;
}

.zcc-root .zcc-send {
	width: 46px !important;
	height: 46px !important;
	flex: 0 0 46px !important;
	border-radius: 14px !important;
}

.zcc-root button svg {
	flex: 0 0 auto !important;
	max-width: none !important;
	display: block !important;
}

.zcc-root .zcc-chips button {
	padding: 8px 14px !important;
	line-height: 1.2 !important;
	border-radius: 999px !important;
	height: auto !important;
	min-height: 0 !important;
}
