/* aieo-faq-admin.css — the FAQ manager panel (DMM tab `faq`). Admin-only. */

.aieo-faq-admin { max-width: 980px; }
.aieo-faq-card { max-width: 100%; padding: 16px 20px; }

/* ── Groups ───────────────────────────────────────────────── */
.aieo-faq-group-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.aieo-faq-no-groups { margin: 6px 0; }
.aieo-faq-group-chip {
	display: inline-flex; align-items: center; gap: 6px;
	background: #f0f0f1; border: 1px solid #dcdcde; border-radius: 16px;
	padding: 4px 6px 4px 12px; font-size: 13px;
}
.aieo-faq-group-name { font-weight: 600; }
.aieo-faq-group-count { color: #646970; font-size: 12px; }
.aieo-faq-group-rename,
.aieo-faq-group-delete {
	border: 0; background: transparent; cursor: pointer; color: #646970;
	font-size: 14px; line-height: 1; padding: 2px 5px; border-radius: 50%;
}
.aieo-faq-group-rename:hover { color: #2271b1; background: #f0f6fc; }
.aieo-faq-group-delete:hover { color: #b32d2e; background: #fce8e8; }
.aieo-faq-group-add { display: flex; gap: 8px; align-items: center; }

/* ── Sections + entry list ────────────────────────────────── */
.aieo-faq-sections { margin-top: 8px; }
.aieo-faq-section {
	background: #fff; border: 1px solid #e0e0e3; border-radius: 8px;
	margin-bottom: 14px; overflow: hidden;
}
.aieo-faq-section-title {
	display: flex; align-items: baseline; gap: 8px;
	padding: 10px 14px; background: #f6f7f7; border-bottom: 1px solid #e0e0e3;
	font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
}
.aieo-faq-section-count { color: #646970; font-weight: 400; }
.aieo-faq-list { margin: 0; padding: 0; list-style: none; min-height: 46px; }
.aieo-faq-item {
	display: flex; align-items: center; gap: 12px;
	padding: 10px 14px; border-bottom: 1px solid #f0f0f1; background: #fff;
}
.aieo-faq-item:last-child { border-bottom: 0; }
.aieo-faq-item.is-draft { background: #fffdf5; }
.aieo-faq-handle {
	cursor: grab; color: #a7aaad; font-size: 15px; letter-spacing: -4px;
	user-select: none; flex: 0 0 auto; padding-right: 4px;
}
.aieo-faq-handle:active { cursor: grabbing; }
.aieo-faq-main { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.aieo-faq-q { font-weight: 600; cursor: text; border-bottom: 1px dashed transparent; }
.aieo-faq-q:hover { border-bottom-color: #c3c4c7; }
.aieo-faq-q-input { font-weight: 600; min-width: 280px; max-width: 100%; }
.aieo-faq-a { color: #646970; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.aieo-faq-badge {
	font-size: 11px; text-transform: uppercase; letter-spacing: .03em;
	background: #fcf0cd; color: #8a6d3b; border-radius: 3px; padding: 1px 6px;
}
.aieo-faq-actions { display: flex; gap: 14px; white-space: nowrap; flex: 0 0 auto; }
.aieo-faq-actions .button-link { text-decoration: none; }
.aieo-faq-actions .aieo-faq-delete { color: #b32d2e; cursor: pointer; }

/* sortable placeholder + dragging */
.aieo-faq-placeholder { height: 44px; background: #f0f6fc; border: 1px dashed #72aee6; }
.aieo-faq-item.ui-sortable-helper { box-shadow: 0 4px 14px rgba(0,0,0,.14); border-radius: 6px; }

.aieo-faq-status { font-size: 13px; font-weight: 400; }
