.stella-faq-flex-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-top: 20px;
}
.stella-faq-main-content {
	flex: 1;
	min-width: 300px;
}
.stella-faq-sidebar {
	width: 300px;
	flex-shrink: 0;
}
@media (max-width: 960px) {
	.stella-faq-sidebar {
		width: 100%;
	}
}
.stella-faq-flex-wrapper .stella-faq-card {
	background: #fff;
	border: 1px solid #e1e1e1;
	padding: 16px;
	margin-bottom: 24px;
}
.stella-faq-flex-wrapper .stella-faq-card h2 {
	margin-top: 0;
	margin-bottom: 8px;
}
.stella-faq-flex-wrapper .stella-faq-card p {
	margin-top: 0;
	margin-bottom: 12px;
}
.stella-faq-flex-wrapper .stella-faq-card .button {
	margin-right: 8px;
}
.stella-faq-flex-wrapper .stella-faq-card .button-link {
	margin-left: 8px;
}
.stella-faq-flex-wrapper .stella-faq-card table.widefat {
	margin-top: 12px;
}
.stella-faq-flex-wrapper .stella-faq-card .stella-unanswered-actions {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-bottom: 12px;
}
.stella-faq-flex-wrapper .stella-faq-card td .button,
.stella-faq-flex-wrapper .stella-faq-card td .button-link,
.stella-faq-flex-wrapper .stella-faq-card td .stella-faq-generated {
	display: inline-block;
	margin-right: 8px;
}
.stella-opportunity-list {
	margin: 12px 0 0 20px;
}
.stella-faq-status.stella-error {
	color: #b32d2e;
}
.stella-faq-connection-status {
	margin-left: 6px;
	font-weight: 600;
}
.stella-faq-generated {
	color: #1d6f42;
	font-weight: 600;
}
.stella-faq-admin #stella_faq_generator .handle-order-higher,
.stella-faq-admin #stella_faq_generator .handle-order-lower {
	display: none !important;
}
.stella-faq-admin #stella_faq_generator .postbox-header .handle-actions button:not(.handlediv) {
	display: none !important;
}
.stella-faq-admin #stella_faq_generator .postbox-header .hndle {
	font-size: 13px;
	font-weight: 600;
}
.stella-faq-flex-wrapper .stella-faq-sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.stella-faq-wporg-card {
	background: #fff7ed;
	border: 1px solid #fdba74;
	border-radius: 12px;
	color: #7c2d12;
	padding: 22px;
	box-sizing: border-box;
}

.stella-faq-wporg-card__stars {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 12px;
	color: #f59e0b;
}

.stella-faq-wporg-card__stars .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
}

.stella-faq-wporg-card__title {
	margin: 0 0 10px;
	color: #7c2d12;
	font-size: 18px;
	line-height: 1.3;
}

.stella-faq-wporg-card__copy {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.6;
}

.stella-faq-wporg-card__button {
	display: inline-block;
	background: #ea580c;
	color: #fff;
	padding: 12px 16px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 700;
	font-size: 13px;
}

.stella-faq-wporg-card__button:hover,
.stella-faq-wporg-card__button:focus {
	background: #c2410c;
	color: #fff;
}

.stella-faq-admin-credit-rating {
	margin: 8px 0 0;
}

.stella-faq-admin-credit-rating__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: #0b5fff;
	font-weight: 600;
	text-decoration: none;
}

.stella-faq-admin-credit-rating__link:hover,
.stella-faq-admin-credit-rating__link:focus {
	text-decoration: underline;
}

.stella-faq-admin-credit-rating__link .dashicons {
	color: #f59e0b;
	width: 16px;
	height: 16px;
	font-size: 16px;
}

.stella-faq-flex-wrapper .stella-faq-promo {
	border: none;
	background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(11, 95, 255, 0.15);
	position: sticky;
	top: 100px;
	overflow: hidden;
	padding: 24px;
	border: 1px solid rgba(11, 95, 255, 0.1);
	margin-top: 0;
}
.stella-faq-flex-wrapper .stella-faq-promo::before {
	content: "";
	position: absolute;
	top: 0;
	right: auto;
	bottom: 0;
	left: 0;
	width: 4px;
	height: auto;
	background: #0b5fff;
	pointer-events: none;
}
.stella-faq-flex-wrapper .stella-faq-promo-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}
.stella-faq-flex-wrapper .stella-faq-promo-header h2 {
	margin: 0;
	color: #1d2327;
	font-size: 1.4em;
	font-weight: 700;
}
.stella-faq-flex-wrapper .stella-faq-price {
	background: #0b5fff;
	color: #fff;
	padding: 6px 14px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	box-shadow: 0 2px 8px rgba(11, 95, 255, 0.3);
}
.stella-faq-flex-wrapper .stella-faq-promo p {
	font-size: 14px;
	color: #50575e;
	margin-bottom: 16px;
	line-height: 1.5;
}
.stella-faq-flex-wrapper .stella-faq-promo-list {
	margin: 0 0 20px 0;
	list-style: none;
	padding: 0;
}
.stella-faq-flex-wrapper .stella-faq-promo-list li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 8px;
	color: #2c3338;
	font-size: 13.5px;
}
.stella-faq-flex-wrapper .stella-faq-promo-list li::before {
	content: "\f147";
	font-family: dashicons;
	position: absolute;
	left: 0;
	top: 0;
	color: #0b5fff;
	font-size: 20px;
}
.stella-faq-flex-wrapper .stella-faq-promo .button-primary {
	padding: 8px 24px;
	height: auto;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Settings Form Styling */
.stella-faq-flex-wrapper .form-table th {
	font-weight: 600;
	color: #2d3748;
	width: 200px;
}

.stella-faq-flex-wrapper input[type="text"]:not(.wp-color-picker),
.stella-faq-flex-wrapper input[type="password"],
.stella-faq-flex-wrapper input[type="number"],
.stella-faq-flex-wrapper textarea,
.stella-faq-flex-wrapper select {
	border-radius: 6px;
	border: 1px solid #cbd5e0;
	padding: 8px 12px;
	transition: all 0.2s;
	box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.stella-faq-flex-wrapper input[type="number"].small-text {
	width: 75px !important;
}


/* Fix for WordPress Color Picker - No Layout Shift */
.stella-faq-flex-wrapper .wp-picker-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

.stella-faq-flex-wrapper .wp-picker-container .wp-color-result {
	margin: 0 !important;
	height: 30px;
	border-radius: 4px;
	border: 1px solid #cbd5e0;
	box-shadow: none;
}

.stella-faq-flex-wrapper .wp-picker-input-wrap {
	display: flex;
	align-items: center;
}

.stella-faq-flex-wrapper .wp-picker-input-wrap .wp-color-picker {
	width: 100px !important;
	height: 30px !important;
	padding: 0 8px !important;
	margin: 0 !important;
	border-radius: 4px !important;
	border: 1px solid #cbd5e0 !important;
}

/* Force the actual picker wheel to the next line */
.stella-faq-flex-wrapper .wp-picker-holder {
	flex-basis: 100%;
	margin-top: 10px;
}






.stella-faq-flex-wrapper input:focus,
.stella-faq-flex-wrapper textarea:focus,
.stella-faq-flex-wrapper select:focus {
	border-color: #0b5fff;
	box-shadow: 0 0 0 3px rgba(11, 95, 255, 0.1);
	outline: none;
}

/* Dashboard Empty States - More refined */
.stella-empty-state {
	text-align: center;
	padding: 60px 20px;
	background: #fcfdfe;
	border: 1px dashed #cbd5e0;
	border-radius: 12px;
	margin: 20px 0;
}

.stella-empty-state .dashicons {
	font-size: 56px;
	width: 56px;
	height: 56px;
	color: #e2e8f0;
	margin-bottom: 20px;
}

.stella-empty-state p {
	color: #64748b;
	font-size: 15px;
	max-width: 320px;
	margin: 0 auto;
	line-height: 1.6;
}

.stella-faq-admin,
.stella-faq-flex-wrapper {
	max-width: 100%;
	box-sizing: border-box;
}

.stella-faq-admin code {
	white-space: normal;
	word-break: break-word;
}

.stella-faq-user-guide {
	max-width: 860px;
}

.stella-faq-user-guide ol,
.stella-faq-user-guide ul {
	padding-left: 1.4em;
}

.stella-faq-wporg-card__button {
	box-sizing: border-box;
	text-align: center;
}

@media (max-width: 960px) {
	.stella-faq-flex-wrapper {
		flex-direction: column;
		gap: 16px;
		margin-top: 12px;
	}

	.stella-faq-main-content,
	.stella-faq-sidebar {
		width: 100%;
		min-width: 0;
	}

	.stella-faq-flex-wrapper .stella-faq-promo {
		position: relative;
		top: auto;
		overflow: hidden;
		isolation: isolate;
	}

	.stella-faq-flex-wrapper .stella-faq-promo::before {
		position: absolute;
		top: 0;
		right: auto;
		bottom: 0;
		left: 0;
		width: 4px;
		height: auto;
		max-height: 100%;
	}

	.stella-faq-flex-wrapper .stella-faq-card,
	.stella-faq-wporg-card {
		padding: 14px;
		margin-bottom: 16px;
	}

	.stella-faq-flex-wrapper .stella-faq-promo-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.stella-faq-flex-wrapper .stella-faq-promo-header h2 {
		font-size: 1.15em;
	}

	.stella-faq-wporg-card__button,
	.stella-faq-flex-wrapper .stella-faq-promo .button-primary {
		display: block;
		width: 100%;
	}

	.stella-faq-admin .form-table,
	.stella-faq-admin .form-table tbody,
	.stella-faq-admin .form-table tr,
	.stella-faq-admin .form-table th,
	.stella-faq-admin .form-table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.stella-faq-admin .form-table th {
		padding: 12px 0 4px;
	}

	.stella-faq-admin .form-table td {
		padding: 0 0 16px;
	}

	.stella-faq-admin .form-table input[type="text"],
	.stella-faq-admin .form-table input[type="password"],
	.stella-faq-admin .form-table input[type="number"]:not(.small-text),
	.stella-faq-admin .form-table textarea,
	.stella-faq-admin .form-table select,
	.stella-faq-admin .form-table .regular-text {
		width: 100% !important;
		max-width: 100%;
		box-sizing: border-box;
	}

	.stella-faq-admin .form-table .button {
		display: block;
		width: 100%;
		margin: 8px 0 0;
		text-align: center;
		box-sizing: border-box;
	}

	.stella-faq-provider-links {
		display: flex;
		flex-wrap: wrap;
		gap: 6px 10px;
		margin: 10px 0 0 !important;
	}

	.stella-faq-connection-status {
		display: block;
		margin: 8px 0 0 !important;
	}

	.stella-faq-unanswered-actions .button,
	.stella-faq-flex-wrapper .stella-faq-card > .button {
		width: 100%;
		text-align: center;
		box-sizing: border-box;
		margin: 0 0 8px;
	}

	.stella-faq-display-options {
		padding-left: 1.2em;
	}

	.stella-faq-admin-credit-rating__link {
		flex-wrap: wrap;
		text-align: center;
	}

	.stella-faq-data-table {
		border: 0;
		background: transparent;
		box-shadow: none;
	}

	.stella-faq-data-table thead {
		display: none;
	}

	.stella-faq-data-table tbody {
		display: block;
	}

	.stella-faq-data-table tbody tr {
		display: block;
		margin: 0 0 14px;
		padding: 14px;
		border: 1px solid #dcdcde;
		border-radius: 10px;
		background: #fff;
		box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	}

	.stella-faq-data-table tbody tr.stella-faq-data-table__empty-row {
		padding: 20px 14px;
		text-align: center;
	}

	.stella-faq-data-table tbody tr.stella-faq-data-table__empty-row td {
		display: block;
		padding: 0;
		border: 0;
	}

	.stella-faq-data-table tbody tr.stella-faq-data-table__empty-row td::before {
		display: none;
	}

	.stella-faq-data-table tbody td {
		display: block;
		padding: 10px 0;
		border: 0;
		border-bottom: 1px solid #f0f0f1;
	}

	.stella-faq-data-table tbody td:last-child {
		border-bottom: 0;
		padding-bottom: 0;
	}

	.stella-faq-data-table tbody td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 6px;
		font-size: 11px;
		font-weight: 600;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		color: #646970;
	}

	.stella-faq-data-table tbody td.stella-faq-data-table__checkbox {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}

	.stella-faq-data-table tbody td.stella-faq-data-table__checkbox::before {
		margin-bottom: 0;
		text-transform: none;
		font-size: 13px;
		letter-spacing: normal;
	}

	.stella-faq-data-table tbody td.stella-faq-data-table__actions::before {
		margin-bottom: 10px;
	}

	.stella-faq-data-table tbody td.stella-faq-data-table__actions .button,
	.stella-faq-data-table tbody td.stella-faq-data-table__actions .button-link {
		display: block;
		width: 100%;
		margin: 0 0 8px;
		text-align: center;
		box-sizing: border-box;
	}

	.stella-faq-flex-wrapper .stella-faq-card td .button,
	.stella-faq-flex-wrapper .stella-faq-card td .button-link,
	.stella-faq-flex-wrapper .stella-faq-card td .stella-faq-generated {
		display: block;
		margin: 0 0 8px;
	}

	.stella-empty-state {
		padding: 32px 16px;
	}

	.stella-faq-user-guide .button {
		display: inline-block;
		max-width: 100%;
		box-sizing: border-box;
	}
}
