/* NS AI Chat - frontend chat widget styles */

.ns-ai-chat-widget {
	max-width: 620px;
	font-size: 15px;
}

.ns-ai-chat-intro {
	margin: 0 0 12px;
	color: #555;
}

.ns-ai-chat-messages {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 14px;
	max-height: 340px;
	overflow-y: auto;
	padding-right: 4px;
}

.ns-ai-chat-message {
	padding: 8px 12px;
	border-radius: 8px;
	line-height: 1.45;
	max-width: 85%;
	word-wrap: break-word;
}

.ns-ai-chat-message.is-question {
	align-self: flex-end;
	background: #e7f1fb;
}

.ns-ai-chat-message.is-answer {
	align-self: flex-start;
	background: #f2f2f2;
}

.ns-ai-chat-message.is-loading {
	align-self: flex-start;
	background: transparent;
	font-style: italic;
	color: #777;
	padding-left: 0;
}

.ns-ai-chat-form {
	display: flex;
	gap: 8px;
}

.ns-ai-chat-input {
	flex: 1;
	padding: 8px 10px;
}

.ns-ai-chat-error {
	color: #b32d2e;
	margin-top: 10px;
}

.ns-ai-chat-error[hidden] {
	display: none;
}
