/* ============================================================
   Smart FAQ Schema — Admin Styles
   ============================================================ */

/* ---- Global Wrap ---- */
.sfaq-wrap { max-width: 1200px; margin: 0 auto; padding-bottom: 60px; }

/* ---- Header ---- */
.sfaq-header {
	background: linear-gradient(135deg, #d8222b 0%, #b01c23 100%);
	border-radius: 12px;
	padding: 24px 32px 0;
	margin: 20px 0 0;
	color: #fff;
	box-shadow: 0 4px 20px rgba(192,57,43,.25);
}
.sfaq-header-inner {
	display: flex;
	align-items: center;
	gap: 14px;
}
.sfaq-logo {
	font-size: 32px !important;
	color: #fff;
	opacity: .9;
}
.sfaq-header h1 {
	color: #fff !important;
	font-size: 24px;
	font-weight: 700;
	margin: 0;
	padding: 0;
}
.sfaq-version {
	background: rgba(255,255,255,.2);
	border-radius: 20px;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .5px;
}

/* ---- Tab Nav ---- */
.sfaq-tabs-nav {
	display: flex;
	gap: 0;
	margin-top: 20px;
}
.sfaq-tab {
	display: inline-block;
	padding: 12px 22px;
	color: rgba(255,255,255,.75);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	border-bottom: 3px solid transparent;
	transition: all .2s;
}
.sfaq-tab:hover { color: #fff; border-bottom-color: rgba(255,255,255,.4); }
.sfaq-tab--active { color: #fff !important; border-bottom-color: #fff !important; }

/* ---- Settings Form / Tab Content ---- */
.sfaq-settings-form { margin-top: 0; }
.sfaq-tab-content { padding-top: 24px; }

/* ---- Cards ---- */
.sfaq-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px 28px;
	margin-bottom: 20px;
	box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.sfaq-card-title {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 6px;
	color: #1a1a2e;
}
.sfaq-card-desc {
	color: #6b7280;
	margin: 0 0 18px;
	font-size: 13.5px;
}
.sfaq-card-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}
.sfaq-card-header-row .sfaq-card-title { margin-bottom: 0; }

/* ---- Fields ---- */
.sfaq-field-row { margin-bottom: 16px; }
.sfaq-field-row:last-child { margin-bottom: 0; }
.sfaq-label {
	display: block;
	font-weight: 600;
	font-size: 13.5px;
	margin-bottom: 6px;
	color: #374151;
}
.sfaq-input {
	width: 100%;
	max-width: 480px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 14px;
	transition: border-color .2s;
}
.sfaq-input:focus { border-color: #d8222b; outline: none; box-shadow: 0 0 0 3px rgba(192,57,43,.1); }
.sfaq-input--sm { max-width: 120px; }
.sfaq-input--search { max-width: 240px; }
.sfaq-select {
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 14px;
	background: #fff;
}
.sfaq-select--sm { padding: 7px 10px; font-size: 13px; }
.sfaq-textarea {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 13px;
	resize: vertical;
}
.sfaq-hint {
	font-size: 12.5px;
	color: #9ca3af;
	margin: 5px 0 0;
}
.sfaq-mt { margin-top: 16px; }

/* ---- Toggle / Checkbox ---- */
.sfaq-toggle-label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 14px;
	color: #374151;
}
.sfaq-toggle-label input[type="checkbox"] { display: none; }
.sfaq-toggle-slider {
	position: relative;
	width: 42px;
	height: 24px;
	background: #d1d5db;
	border-radius: 12px;
	transition: background .2s;
	flex-shrink: 0;
}
.sfaq-toggle-slider::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 50%;
	transition: left .2s;
	box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.sfaq-toggle-label input[type="checkbox"]:checked ~ .sfaq-toggle-slider { background: #d8222b; }
.sfaq-toggle-label input[type="checkbox"]:checked ~ .sfaq-toggle-slider::after { left: 21px; }

/* ---- Checkbox grid ---- */
.sfaq-checkbox-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.sfaq-checkbox-label {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	cursor: pointer;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 8px 14px;
}
.sfaq-checkbox-label input { cursor: pointer; }

/* ---- Radio cards (display method) ---- */
.sfaq-radio-group { display: flex; flex-wrap: wrap; gap: 14px; }
.sfaq-radio-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	padding: 14px 18px;
	cursor: pointer;
	max-width: 260px;
	transition: border-color .2s, background .2s;
	font-size: 13px;
	color: #6b7280;
}
.sfaq-radio-card input { display: none; }
.sfaq-radio-card strong { font-size: 15px; color: #1a1a2e; }
.sfaq-radio-card:hover { border-color: #d8222b; background: #fdf2f2; }
.sfaq-radio-card--active { border-color: #d8222b !important; background: #fdf2f2; }

/* ---- Style picker ---- */
.sfaq-style-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
}
.sfaq-style-card {
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	padding: 14px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: border-color .2s;
	font-size: 12.5px;
	color: #6b7280;
}
.sfaq-style-card input { display: none; }
.sfaq-style-card strong { font-size: 14px; color: #1a1a2e; }
.sfaq-style-card:hover { border-color: #d8222b; }
.sfaq-style-card--active { border-color: #d8222b; background: #fdf2f2; }

/* Style previews */
.sfaq-style-preview {
	background: #f3f4f6;
	border-radius: 8px;
	overflow: hidden;
	height: 48px;
	display: flex;
	align-items: center;
}
.sfaq-preview-q {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 600;
	padding: 0 10px;
	width: 100%;
}
.sfaq-preview-icon { font-size: 14px; font-weight: 700; }

.sfaq-preview-style1 { background: #fff; border: 1px solid #ccc; border-radius: 8px; }
.sfaq-preview-style2 { background: transparent; border-bottom: 2px solid #ccc; border-radius: 0; }
.sfaq-preview-style3 { background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.sfaq-preview-style4 { background: #fff; border-left: 4px solid #d8222b; }
.sfaq-preview-style5 { background: #fff; border-radius: 24px; border: 1px solid #ccc; }

/* ---- Color picker grid ---- */
.sfaq-color-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}
.sfaq-color-item { display: flex; flex-direction: column; gap: 6px; }
.sfaq-color-label { font-size: 13px; font-weight: 600; color: #374151; }
.sfaq-color-picker { width: 100% !important; }

/* ---- Code blocks ---- */
.sfaq-code-block {
	background: #1e1e2e;
	color: #cdd6f4;
	border-radius: 10px;
	padding: 16px 18px;
	font-size: 13px;
	line-height: 1.6;
	overflow-x: auto;
	white-space: pre;
}
.sfaq-code-input { font-family: monospace; font-size: 13px; background: #1e1e2e; color: #cdd6f4; }

/* ---- Shortcode list ---- */
.sfaq-shortcode-list { display: flex; flex-direction: column; gap: 12px; }
.sfaq-shortcode-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 12px 16px;
}
.sfaq-shortcode-item code {
	background: #1e1e2e;
	color: #cdd6f4;
	padding: 3px 10px;
	border-radius: 6px;
	font-size: 13px;
	white-space: nowrap;
}
.sfaq-shortcode-item span { font-size: 13px; color: #6b7280; }

/* ---- Inline message ---- */
.sfaq-inline-msg { font-size: 13px; color: #16a34a; margin-left: 10px; font-weight: 600; }

/* ---- Save bar ---- */
.sfaq-save-bar {
	position: sticky;
	bottom: 0;
	background: rgba(255,255,255,.97);
	backdrop-filter: blur(8px);
	border-top: 2px solid #e5e7eb;
	padding: 16px 0;
	margin-top: 10px;
	z-index: 100;
}
/* Dedicated save button — uses !important to beat WP's .button resets */
.sfaq-save-btn,
.sfaq-save-btn:link,
.sfaq-save-btn:visited {
	display: inline-flex !important;
	align-items: center !important;
	background: #d8222b !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 10px !important;
	padding: 12px 28px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(192,57,43,.35) !important;
	transition: background .2s, box-shadow .2s !important;
	letter-spacing: .3px !important;
	height: auto !important;
	line-height: 1.4 !important;
}
.sfaq-save-btn:hover,
.sfaq-save-btn:focus {
	background: #b01c23 !important;
	color: #ffffff !important;
	box-shadow: 0 6px 20px rgba(192,57,43,.45) !important;
	outline: none !important;
}
.sfaq-save-btn:active {
	background: #9e191f !important;
	box-shadow: 0 2px 8px rgba(192,57,43,.25) !important;
}

/* ---- Buttons ---- */
.sfaq-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 8px;
	padding: 9px 18px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	text-decoration: none;
	transition: opacity .2s, background .2s;
}
.sfaq-btn:hover { opacity: .85; }
.sfaq-btn-primary { background: #d8222b; color: #fff !important; }
.sfaq-btn-primary:hover { background: #b01c23; opacity: 1; }
.sfaq-btn-secondary { background: #f3f4f6; color: #374151 !important; border: 1px solid #d1d5db; }
.sfaq-btn-sm { padding: 6px 14px; font-size: 12.5px; }

/* ---- Welcome Banner ---- */
.sfaq-welcome-banner {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #ecfdf5;
	border: 1px solid #6ee7b7;
	border-radius: 10px;
	padding: 14px 20px;
	margin: 20px 0;
	font-size: 14.5px;
	font-weight: 600;
	color: #065f46;
}
.sfaq-welcome-banner .dashicons { font-size: 22px; color: #16a34a; }

/* ---- Guide steps ---- */
.sfaq-guide { display: flex; flex-direction: column; gap: 0; margin-top: 24px; }
.sfaq-guide-step {
	display: flex;
	gap: 20px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 22px 26px;
	margin-bottom: 14px;
	box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.sfaq-guide-step-number {
	width: 40px;
	height: 40px;
	min-width: 40px;
	background: #d8222b;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 700;
}
.sfaq-guide-step-body h3 { margin: 0 0 8px; font-size: 16px; color: #1a1a2e; }
.sfaq-guide-step-body p { font-size: 14px; color: #4b5563; margin: 0 0 8px; line-height: 1.65; }
.sfaq-guide-step-body ol { font-size: 14px; color: #4b5563; margin: 0 0 10px; padding-left: 20px; line-height: 1.8; }
.sfaq-callout {
	background: #fffbeb;
	border-left: 4px solid #f59e0b;
	border-radius: 0 8px 8px 0;
	padding: 10px 14px;
	font-size: 13.5px;
	color: #92400e;
	margin-top: 10px;
}

/* ---- Bulk Checker ---- */
.sfaq-bulk-stats {
	display: flex;
	gap: 16px;
	margin: 20px 0;
}
.sfaq-bulk-stat {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px 28px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	flex: 1;
	box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.sfaq-stat-num { font-size: 32px; font-weight: 800; line-height: 1; }
.sfaq-stat-lbl { font-size: 13px; color: #6b7280; font-weight: 500; }
.sfaq-stat--has .sfaq-stat-num   { color: #16a34a; }
.sfaq-stat--missing .sfaq-stat-num { color: #d8222b; }
.sfaq-stat--total .sfaq-stat-num  { color: #1a1a2e; }

.sfaq-bulk-filters { display: flex; align-items: center; margin-bottom: 16px; }
.sfaq-filter-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.sfaq-bulk-table { border-radius: 12px; overflow: hidden; border: 1px solid #e5e7eb; }
.sfaq-bulk-table th { background: #f9fafb; font-size: 13px; font-weight: 700; color: #374151; }
.sfaq-bulk-table td { vertical-align: middle; font-size: 13.5px; padding: 10px 12px; }
.sfaq-col-title { width: 32%; }
.sfaq-col-type  { width: 10%; }
.sfaq-col-status { width: 14%; }
.sfaq-col-count { width: 9%; text-align: center; }
.sfaq-col-schema, .sfaq-col-visible { width: 10%; text-align: center; }
.sfaq-col-action { width: 13%; text-align: center; }
.sfaq-no-results { text-align: center; color: #9ca3af; padding: 30px !important; }
.sfaq-row--has { background: #f0fdf4 !important; }
.sfaq-row--missing { background: #fff !important; }

.sfaq-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border-radius: 20px;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 600;
}
.sfaq-badge--yes { background: #dcfce7; color: #15803d; }
.sfaq-badge--no  { background: #fee2e2; color: #b91c1c; }

.sfaq-pill {
	display: inline-block;
	border-radius: 20px;
	padding: 2px 10px;
	font-size: 12px;
	font-weight: 600;
}
.sfaq-pill--on  { background: #dcfce7; color: #15803d; }
.sfaq-pill--off { background: #fee2e2; color: #b91c1c; }

.sfaq-bulk-pagination { display: flex; gap: 6px; margin-top: 16px; }
.sfaq-page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	color: #374151;
	transition: all .2s;
}
.sfaq-page-btn:hover { border-color: #d8222b; color: #d8222b; }
.sfaq-page-btn--active { background: #d8222b; border-color: #d8222b; color: #fff !important; }

/* ================================================================
   Meta Box Styles
   ================================================================ */
.sfaq-metabox { padding: 0; }

.sfaq-mb-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	background: linear-gradient(135deg, #d8222b 0%, #b01c23 100%);
	border-radius: 8px 8px 0 0;
	margin: -1px -1px 0;
}
.sfaq-mb-count {
	color: rgba(255,255,255,.9);
	font-size: 13px;
	font-weight: 600;
	background: rgba(255,255,255,.15);
	border-radius: 20px;
	padding: 3px 12px;
}
.sfaq-mb-header .button-primary,
.sfaq-add-faq {
	background: #fff !important;
	color: #d8222b !important;
	border-color: transparent !important;
	font-weight: 700 !important;
	border-radius: 6px !important;
	box-shadow: none !important;
	white-space: nowrap;
}

/* FAQ Rows */
#sfaq-items-wrap { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.sfaq-faq-row {
	display: flex;
	gap: 10px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 12px;
	transition: box-shadow .15s;
}
.sfaq-faq-row:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.sfaq-faq-row-handle {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	min-width: 28px;
	padding-top: 4px;
}
.sfaq-faq-row-num {
	font-size: 13px;
	font-weight: 700;
	color: #d8222b;
	background: #fdf2f2;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sfaq-drag-handle {
	color: #9ca3af;
	cursor: grab;
	font-size: 18px !important;
}
.sfaq-drag-handle:active { cursor: grabbing; }

.sfaq-faq-row-fields { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sfaq-faq-field { display: flex; flex-direction: column; gap: 4px; }
.sfaq-faq-field-label {
	font-size: 12px;
	font-weight: 700;
	color: #6b7280;
	display: flex;
	align-items: center;
	gap: 6px;
}
.sfaq-tag {
	background: #d8222b;
	color: #fff;
	border-radius: 4px;
	padding: 1px 6px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .5px;
}
.sfaq-q-input {
	border: 1px solid #d1d5db;
	border-radius: 7px;
	padding: 8px 10px;
	font-size: 14px;
	font-weight: 600;
	transition: border-color .15s;
}
.sfaq-q-input:focus { border-color: #d8222b; outline: none; box-shadow: 0 0 0 3px rgba(192,57,43,.08); }
.sfaq-a-input {
	border: 1px solid #d1d5db;
	border-radius: 7px;
	padding: 8px 10px;
	font-size: 13.5px;
	resize: vertical;
	min-height: 72px;
	transition: border-color .15s;
}
.sfaq-a-input:focus { border-color: #d8222b; outline: none; box-shadow: 0 0 0 3px rgba(192,57,43,.08); }

.sfaq-faq-row-actions { display: flex; align-items: flex-start; padding-top: 4px; }
.sfaq-remove-faq {
	background: none;
	border: none;
	cursor: pointer;
	color: #9ca3af;
	padding: 4px;
	border-radius: 6px;
	transition: color .15s, background .15s;
	line-height: 1;
}
.sfaq-remove-faq:hover { color: #d8222b; background: #fdf2f2; }
.sfaq-remove-faq .dashicons { font-size: 18px !important; }

/* Per-post options */
.sfaq-mb-options {
	border-top: 1px solid #e5e7eb;
	padding: 16px;
	background: #fff;
}
.sfaq-mb-options-title {
	font-size: 13px;
	font-weight: 700;
	color: #374151;
	margin: 0 0 4px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.sfaq-mb-options-title .dashicons { font-size: 16px !important; color: #d8222b; }
.sfaq-mb-options-desc { font-size: 12px; color: #9ca3af; margin: 0 0 14px; }

.sfaq-mb-options-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 14px;
}
.sfaq-mb-opt--full { grid-column: 1 / -1; }

.sfaq-mb-opt {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 10px 12px;
}
.sfaq-mb-opt-label {
	font-size: 12.5px;
	font-weight: 700;
	color: #374151;
	display: block;
	margin-bottom: 8px;
}
.sfaq-mb-hint { font-size: 11.5px; color: #9ca3af; margin: 6px 0 0; }

.sfaq-three-way { display: flex; gap: 10px; }
.sfaq-three-way label {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	cursor: pointer;
}
.sfaq-three-way input { cursor: pointer; }

/* ================================================================
   Collapsible FAQ rows
   ================================================================ */

/* Row body splits summary (collapsed) and fields (expanded) */
.sfaq-faq-row-body { flex: 1; display: flex; flex-direction: column; }

/* Summary line — visible only when collapsed */
.sfaq-faq-row-summary {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 2px 0;
}
.sfaq-faq-row--collapsed .sfaq-faq-row-summary { display: flex; }
.sfaq-row-summary-text {
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 500px;
}

/* Fields — hidden when collapsed */
.sfaq-faq-row--collapsed .sfaq-faq-row-fields { display: none; }
.sfaq-faq-row-fields { display: flex; flex-direction: column; gap: 8px; }

/* Toggle icon logic */
.sfaq-toggle-row {
	background: none;
	border: none;
	cursor: pointer;
	color: #9ca3af;
	padding: 4px;
	border-radius: 6px;
	transition: color .15s, background .15s;
	line-height: 1;
}
.sfaq-toggle-row:hover { color: #d8222b; background: #fdf2f2; }
.sfaq-toggle-row .sfaq-icon-expand  { display: block; }
.sfaq-toggle-row .sfaq-icon-collapse { display: none; }
.sfaq-faq-row--collapsed .sfaq-toggle-row .sfaq-icon-expand   { display: none; }
.sfaq-faq-row--collapsed .sfaq-toggle-row .sfaq-icon-collapse { display: block; }
.sfaq-toggle-row .dashicons { font-size: 18px !important; }

/* Header left/right flex regions */
.sfaq-mb-header-left {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.sfaq-mb-header-right { display: flex; align-items: center; gap: 8px; }

/* Collapse All / Expand All buttons in header */
.sfaq-mb-collapse-all {
	background: rgba(255,255,255,.15);
	border: 1px solid rgba(255,255,255,.3);
	border-radius: 6px;
	color: rgba(255,255,255,.9);
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: background .15s;
}
.sfaq-mb-collapse-all:hover { background: rgba(255,255,255,.25); color: #fff; }
.sfaq-mb-collapse-all .dashicons { font-size: 14px !important; }

/* Collapsed row visual */
.sfaq-faq-row--collapsed { background: #f9fafb; }
.sfaq-faq-row--collapsed .sfaq-faq-row-num {
	background: #e5e7eb;
	color: #6b7280;
}

/* ================================================================
   Styling layout: two-column (controls | live preview)
   ================================================================ */
.sfaq-styling-layout {
	display: grid;
	grid-template-columns: 1fr 370px;
	gap: 24px;
	align-items: start;
}
.sfaq-styling-controls { min-width: 0; }

/* Spacing grid */
.sfaq-spacing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sfaq-spacing-grid .sfaq-field-row { margin-bottom: 0; }

/* ================================================================
   Live Preview Panel
   ================================================================ */
.sfaq-preview-panel {
	position: sticky;
	top: 40px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.sfaq-preview-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(135deg, #1a1a2e 0%, #2d3748 100%);
	padding: 14px 18px;
	color: #fff;
}
.sfaq-preview-panel-header h3 {
	margin: 0 0 2px;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
}
.sfaq-preview-panel-header span {
	font-size: 11.5px;
	color: rgba(255,255,255,.6);
}
.sfaq-preview-style-badge {
	background: rgba(255,255,255,.15);
	border-radius: 20px;
	padding: 3px 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .4px;
	white-space: nowrap;
	color: #fff !important;
}
.sfaq-preview-panel-body {
	padding: 20px;
	max-height: 520px;
	overflow-y: auto;
}
/* Keep preview accordion width-constrained */
#sfaq-preview-accordion { margin: 0 !important; }
#sfaq-preview-accordion .sfaq-section-title { margin-bottom: 14px !important; }

/* Sortable drag state */
.sfaq-faq-row.ui-sortable-helper {
	box-shadow: 0 8px 24px rgba(0,0,0,.15);
	opacity: .95;
}
.sfaq-faq-row.ui-sortable-placeholder {
	background: #ffe4e1;
	border: 2px dashed #d8222b;
	visibility: visible !important;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
	.sfaq-styling-layout { grid-template-columns: 1fr 320px; }
}
@media (max-width: 1024px) {
	.sfaq-styling-layout { grid-template-columns: 1fr; }
	.sfaq-preview-panel { position: static; }
	.sfaq-spacing-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.sfaq-mb-options-grid { grid-template-columns: 1fr 1fr; }
	.sfaq-style-grid { grid-template-columns: repeat(2, 1fr); }
	.sfaq-bulk-stats { flex-wrap: wrap; }
	.sfaq-radio-group { flex-direction: column; }
}
@media (max-width: 600px) {
	.sfaq-mb-options-grid { grid-template-columns: 1fr; }
	.sfaq-mb-opt--full { grid-column: auto; }
	.sfaq-style-grid { grid-template-columns: 1fr; }
	.sfaq-header { padding: 16px 16px 0; border-radius: 8px; }
	.sfaq-card { padding: 16px; }
	.sfaq-color-grid { grid-template-columns: 1fr 1fr; }
	.sfaq-bulk-filters .sfaq-filter-form { flex-direction: column; align-items: flex-start; }
	.sfaq-faq-row { flex-direction: column; }
	.sfaq-faq-row-handle { flex-direction: row; align-items: center; }
}
