/**
 * AI Assistant — settings page styles.
 */

.auto-form-builder-ai-wrap .afb-ai-title {
	display: flex;
	align-items: center;
	gap: 8px;
}

.auto-form-builder-ai-wrap .afb-ai-title .dashicons {
	color: #6d4aff;
	font-size: 28px;
	width: 28px;
	height: 28px;
}

.afb-ai-card {
	max-width: 720px;
	margin: 16px 0;
	padding: 24px;
	background: #fff;
	border: 1px solid #e2e4e9;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.afb-ai-card h2 {
	margin-top: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.afb-ai-connect-card .afb-ai-lead {
	font-size: 15px;
	line-height: 1.6;
	color: #3c434a;
}

.afb-ai-benefits {
	margin: 16px 0 20px;
	padding: 0;
	list-style: none;
}

.afb-ai-benefits li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0;
	color: #1d2327;
}

.afb-ai-benefits .dashicons,
.afb-ai-ok {
	color: #1a9d55;
}

.afb-ai-fineprint {
	color: #646970;
	font-size: 13px;
}

.afb-ai-status-table {
	width: 100%;
	border-collapse: collapse;
	margin: 8px 0 16px;
}

.afb-ai-status-table th {
	text-align: left;
	width: 180px;
	padding: 8px 12px 8px 0;
	color: #646970;
	font-weight: 600;
	vertical-align: top;
}

.afb-ai-status-table td {
	padding: 8px 0;
	color: #1d2327;
}

.afb-ai-balance {
	font-weight: 600;
}

.afb-ai-balance.afb-ai-balance-error {
	color: #b32d2e;
	font-weight: 400;
}

.afb-ai-regenerate-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 12px;
	background: #f6f7f7;
	border-radius: 8px;
	color: #50575e;
	font-size: 13px;
}

.afb-ai-regenerate-note .dashicons {
	color: #6d4aff;
	flex: 0 0 auto;
}

.afb-ai-disconnect {
	color: #b32d2e;
	border-color: #b32d2e;
}

.afb-ai-disconnect:hover {
	color: #fff;
	background: #b32d2e;
	border-color: #b32d2e;
}

.afb-ai-context-textarea {
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	line-height: 1.6;
}

.afb-ai-chat-scope {
	border: 1px solid #e2e4ec;
	border-radius: 8px;
	padding: 12px 14px;
	margin: 0 0 4px;
}

.afb-ai-chat-scope legend {
	font-weight: 600;
	padding: 0 6px;
}

.afb-ai-scope-option {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 8px 0;
	line-height: 1.4;
}

.afb-ai-scope-option input {
	margin-top: 2px;
}

.afb-ai-settings-sep {
	border: 0;
	border-top: 1px solid #e2e4ec;
	margin: 16px 0;
}
