.aiaa-box {
	text-align: start;
	font-family: inherit;
	border: 1px solid #e3e3e3;
	border-radius: 12px;
	padding: 16px 18px;
	margin: 0 0 28px;
	background: #f9f9fb;
}

/*
 * The host theme is RTL and applies `direction: rtl` broadly with enough
 * specificity to beat the `dir` HTML attribute alone, so force it here
 * explicitly per language. Every descendant must inherit it too, since
 * theme rules can target inner elements directly as well.
 */
.aiaa-box[dir="ltr"],
.aiaa-box[dir="ltr"] * {
	direction: ltr !important;
	text-align: left !important;
}

.aiaa-box[dir="rtl"],
.aiaa-box[dir="rtl"] * {
	direction: rtl !important;
	text-align: right !important;
}

.aiaa-summary-title {
	font-weight: 700;
	font-size: 15px;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 6px;
	color: #2b2f3a;
}

.aiaa-icon {
	color: #6a5cff;
}

.aiaa-summary-text {
	font-size: 15px;
	line-height: 2;
	margin: 0 0 14px;
	color: #333;
}

.aiaa-chat {
	border-top: 1px dashed #d8d8e0;
	padding-top: 12px;
}

.aiaa-chat-suggestions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.aiaa-suggestion-chip {
	background: #fff;
	border: 1px solid #d8d8e0;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 13px;
	cursor: pointer;
	color: #444;
}

.aiaa-suggestion-chip:hover {
	background: #6a5cff;
	color: #fff;
	border-color: #6a5cff;
}

.aiaa-suggestion-chip:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.aiaa-chat-log {
	max-height: 260px;
	overflow-y: auto;
	margin-bottom: 10px;
}

.aiaa-msg {
	margin-bottom: 10px;
	padding: 8px 12px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.9;
	max-width: 92%;
}

.aiaa-msg.aiaa-user {
	background: #6a5cff;
	color: #fff;
	margin-left: auto;
}

.aiaa-msg.aiaa-bot {
	background: #fff;
	border: 1px solid #e3e3e3;
	margin-right: auto;
}

.aiaa-chat-input-row {
	display: flex;
	gap: 8px;
}

.aiaa-chat-input-row input {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid #d8d8e0;
	border-radius: 8px;
	font-size: 14px;
}

.aiaa-chat-input-row button {
	background: #6a5cff;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 0 18px;
	cursor: pointer;
	font-size: 14px;
}

.aiaa-chat-input-row button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.aiaa-chat-remaining {
	margin-top: 8px;
	font-size: 12px;
	color: #888;
}
