.csc-floating-container {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99999;
}

.csc-floating-toggle {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #2c2c2c;
	color: #fff;
	border: none;
	font-size: 24px;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
}

.csc-floating-toggle:hover {
	background: #444;
}

.csc-floating-panel {
	position: absolute;
	right: 0;
	bottom: 70px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	border-radius: 8px;
	overflow: hidden;
}

.csc-floating-panel .csc-chat-widget {
	width: 340px;
	max-width: 90vw;
}

.csc-floating-panel .csc-chat-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.csc-floating-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	line-height: 1;
	padding: 0 4px;
}

@media (max-width: 480px) {
	.csc-floating-panel .csc-chat-widget {
		width: 90vw;
	}
	.csc-floating-panel {
		right: -10px;
	}
}

.csc-chat-widget {
	max-width: 480px;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: #fff;
}

.csc-chat-header {
	background: #2c2c2c;
	color: #fff;
	padding: 12px 16px;
	font-weight: bold;
}

.csc-chat-messages {
	height: 360px;
	overflow-y: auto;
	padding: 12px;
	background: #f7f7f7;
}

.csc-msg {
	display: flex;
	margin-bottom: 10px;
}

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

.csc-msg-bot {
	justify-content: flex-start;
}

.csc-bubble {
	max-width: 80%;
	padding: 8px 12px;
	border-radius: 12px;
	white-space: pre-wrap;
	line-height: 1.5;
	font-size: 14px;
}

.csc-msg-user .csc-bubble {
	background: #daf1ff;
}

.csc-msg-bot .csc-bubble {
	background: #ffffff;
	border: 1px solid #e2e2e2;
}

.csc-sources {
	font-size: 12px;
	color: #666;
	margin: -4px 0 10px 4px;
}

.csc-sources a {
	color: #0073aa;
	text-decoration: none;
	margin-right: 4px;
}

.csc-chat-input-form {
	display: flex;
	border-top: 1px solid #ddd;
	padding: 8px;
	gap: 8px;
	background: #fff;
}

.csc-chat-input-form textarea {
	flex: 1;
	resize: none;
	border: 1px solid #ccc;
	border-radius: 6px;
	padding: 8px;
	font-size: 14px;
}

.csc-chat-input-form button {
	background: #2c2c2c;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 0 16px;
	cursor: pointer;
	font-size: 14px;
}

.csc-chat-input-form button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
