.cnc-chatbot {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 99998;
	font-family: Poppins, Arial, Helvetica, sans-serif;
	color: #25232a;
}

.cnc-chatbot * {
	box-sizing: border-box;
}

.cnc-chatbot-launcher {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 54px;
	border: 0;
	border-radius: 999px;
	background: #25b39b;
	color: #fff;
	font-size: 16px;
	font-weight: 900;
	padding: 13px 20px;
	box-shadow: 0 18px 40px rgba(37, 179, 155, 0.32);
	cursor: pointer;
}

.cnc-chatbot-launcher-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #ffb129;
	box-shadow: 0 0 0 6px rgba(255, 177, 41, 0.24);
}

.cnc-chatbot-panel {
	position: absolute;
	right: 0;
	bottom: 70px;
	display: none;
	width: min(380px, calc(100vw - 28px));
	max-height: min(680px, calc(100vh - 110px));
	overflow: hidden;
	border: 1px solid rgba(84, 45, 112, 0.14);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 28px 80px rgba(22, 18, 30, 0.24);
}

.cnc-chatbot.is-open .cnc-chatbot-panel {
	display: grid;
	grid-template-rows: auto minmax(210px, 1fr) auto auto;
}

.cnc-chatbot-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px 18px;
	background: linear-gradient(135deg, #542d70, #25b39b);
	color: #fff;
}

.cnc-chatbot-header strong,
.cnc-chatbot-header span {
	display: block;
}

.cnc-chatbot-header strong {
	font-size: 17px;
	line-height: 1.2;
}

.cnc-chatbot-header span {
	margin-top: 3px;
	font-size: 12px;
	font-weight: 700;
	opacity: 0.88;
}

.cnc-chatbot-header button {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
}

.cnc-chatbot-messages {
	display: flex;
	flex-direction: column;
	gap: 10px;
	overflow: auto;
	padding: 16px;
	background: #fbfafc;
}

.cnc-chatbot-message {
	max-width: 86%;
	border-radius: 8px;
	padding: 11px 13px;
	font-size: 14px;
	line-height: 1.45;
	box-shadow: 0 8px 18px rgba(30, 24, 39, 0.07);
}

.cnc-chatbot-message.bot {
	align-self: flex-start;
	background: #fff;
	border: 1px solid rgba(84, 45, 112, 0.1);
}

.cnc-chatbot-message.loading {
	color: #6d6675;
	font-style: italic;
}

.cnc-chatbot-message.user {
	align-self: flex-end;
	background: #25b39b;
	color: #fff;
}

.cnc-chatbot-message a {
	color: inherit;
	font-weight: 900;
	text-decoration: underline;
}

.cnc-chatbot-quick {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 12px 14px;
	border-top: 1px solid #eeeeF3;
	background: #fff;
}

.cnc-chatbot-quick button {
	flex: 0 0 auto;
	border: 1px solid rgba(37, 179, 155, 0.26);
	border-radius: 999px;
	background: #eefaf7;
	color: #176d62;
	font-size: 12px;
	font-weight: 900;
	padding: 9px 12px;
	cursor: pointer;
}

.cnc-chatbot-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid #eeeeF3;
	background: #fff;
}

.cnc-chatbot-form input {
	width: 100%;
	border: 1px solid #dfe3ea;
	border-radius: 999px;
	padding: 12px 14px;
	font: inherit;
}

.cnc-chatbot-form button {
	border: 0;
	border-radius: 999px;
	background: #542d70;
	color: #fff;
	font-weight: 900;
	padding: 12px 15px;
	cursor: pointer;
}

@media (max-width: 680px) {
	.cnc-chatbot {
		right: 14px;
		bottom: 78px;
	}

	.cnc-chatbot-panel {
		bottom: 66px;
	}
}
