/* AI Alt Text Generator admin */
:root {
	--ai-alt-blue: var(--wp-admin-theme-color, #2271b1);
	--ai-alt-blue-darker: var(--wp-admin-theme-color-darker-10, #135e96);
	--ai-alt-border: #dcdcde;
	--ai-alt-bg: #f6f7f7;
	--ai-alt-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	--ai-alt-success: #007017;
	--ai-alt-warning: #b32d2e;
}

.wpps-ai-alt-tabs {
	display: flex;
	gap: 0;
	margin: 0 0 20px;
	border-bottom: 1px solid var(--ai-alt-border);
}

.wpps-ai-alt-tab {
	display: inline-flex;
	align-items: center;
	padding: 12px 18px;
	margin-bottom: -1px;
	color: #50575e;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	font-weight: 500;
}

.wpps-ai-alt-tab:hover,
.wpps-ai-alt-tab:focus {
	color: var(--ai-alt-blue);
}

.wpps-ai-alt-tab.is-active {
	color: var(--ai-alt-blue);
	border-bottom-color: var(--ai-alt-blue);
}

.wpps-ai-alt-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}

.wpps-ai-alt-stat-card {
	background: #fff;
	border: 1px solid var(--ai-alt-border);
	box-shadow: var(--ai-alt-shadow);
	padding: 16px;
}

.wpps-ai-alt-stat-label {
	display: block;
	font-size: 12px;
	color: #646970;
	margin-bottom: 6px;
}

.wpps-ai-alt-stat-value {
	display: block;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.1;
	color: #1d2327;
}

.wpps-ai-alt-stat-card.is-warning .wpps-ai-alt-stat-value {
	color: var(--ai-alt-warning);
}

.wpps-ai-alt-stat-card.is-success .wpps-ai-alt-stat-value {
	color: var(--ai-alt-success);
}

.wpps-ai-alt-layout-2col {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}

@media (max-width: 960px) {
	.wpps-ai-alt-layout-2col {
		grid-template-columns: 1fr;
	}
}

.wpps-ai-alt-card {
	background: #fff;
	border: 1px solid var(--ai-alt-border);
	box-shadow: var(--ai-alt-shadow);
	margin-bottom: 16px;
}

.wpps-ai-alt-card-head {
	padding: 16px 18px 0;
}

.wpps-ai-alt-card-title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.wpps-ai-alt-card-desc,
.wpps-ai-alt-help {
	font-size: 13px;
	color: #646970;
	line-height: 1.5;
}

.wpps-ai-alt-card-body {
	padding: 12px 18px 18px;
}

.wpps-ai-alt-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.wpps-ai-alt-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 8px 0 20px;
}

.wpps-ai-alt-meta-list {
	margin: 0;
	padding-left: 18px;
}

.wpps-ai-alt-meta-list li {
	margin-bottom: 6px;
}

.wpps-ai-alt-notice {
	padding: 12px 14px;
	margin-bottom: 16px;
	border-left: 4px solid var(--ai-alt-blue);
	background: #f0f6fc;
}

.wpps-ai-alt-notice--warning {
	border-left-color: #dba617;
	background: #fcf9e8;
}

.wpps-ai-alt-notice--info p,
.wpps-ai-alt-notice--warning p {
	margin: 0;
}

.wpps-ai-alt-import-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--ai-alt-border);
}

.wpps-ai-alt-import-label {
	font-weight: 500;
}

.wpps-ai-alt-table,
.wpps-ai-alt-review-table {
	margin-top: 12px;
}

.wpps-ai-alt-review-table textarea {
	min-width: 220px;
}

.wpps-ai-alt-bulk-progress {
	margin-top: 12px;
}

.wpps-ai-alt-progress-bar {
	height: 8px;
	background: var(--ai-alt-bg);
	border: 1px solid var(--ai-alt-border);
	overflow: hidden;
	margin-bottom: 6px;
}

.wpps-ai-alt-progress-fill {
	height: 100%;
	background: var(--ai-alt-blue);
	width: 0%;
	transition: width 0.2s ease;
}

/* Settings */
.wpps-ai-alt-settings-toolbar,
.wpps-ai-alt-settings-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid var(--ai-alt-border);
	box-shadow: var(--ai-alt-shadow);
	margin-bottom: 12px;
	margin-top: 12px;
}

.wpps-ai-alt-accordions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wpps-ai-alt-accordion {
	background: #fff;
	border: 1px solid var(--ai-alt-border);
	box-shadow: var(--ai-alt-shadow);
}

.wpps-ai-alt-accordion-header {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	background: transparent;
	border: 0;
	cursor: pointer;
	text-align: left;
}

.wpps-ai-alt-accordion-title {
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
	display: inline-flex;
	align-items: center;
}

.wpps-ai-alt-accordion-chevron {
	transition: transform 0.2s ease;
	color: #646970;
}

.wpps-ai-alt-accordion.is-open .wpps-ai-alt-accordion-chevron {
	transform: rotate(180deg);
}

.wpps-ai-alt-accordion-body {
	display: none;
	padding: 0 16px 16px;
}

.wpps-ai-alt-accordion.is-open .wpps-ai-alt-accordion-body {
	display: block;
}

.wpps-ai-alt-settings-group + .wpps-ai-alt-settings-group {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--ai-alt-border);
}

.wpps-ai-alt-onboarding {
	margin: 0 0 20px;
	padding: 20px 24px;
	border: 1px solid var(--ai-alt-border);
	border-radius: 8px;
	background: #f6f7f7;
}

.wpps-ai-alt-onboarding-title {
	margin: 0 0 12px;
	font-size: 16px;
}

.wpps-ai-alt-onboarding-steps {
	margin: 0 0 16px 20px;
	color: #50575e;
}

.wpps-ai-alt-dashboard-refresh {
	margin-top: 8px;
}

.wpps-ai-alt-settings-group--nested {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--ai-alt-border);
}

.wpps-ai-alt-settings-group--nested .wpps-ai-alt-settings-group-title {
	margin-bottom: 10px;
}

.wpps-ai-alt-settings-group-desc {
	margin: -4px 0 14px;
	font-size: 13px;
	line-height: 1.5;
	color: #646970;
}

.wpps-ai-alt-automation .wpps-ai-alt-option-card--primary {
	margin-bottom: 12px;
}

.wpps-ai-alt-option-card,
.wpps-ai-alt-option-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	cursor: pointer;
}

.wpps-ai-alt-option-card {
	padding: 16px 18px;
	border: 1px solid var(--ai-alt-border);
	border-radius: 8px;
	background: #fff;
}

.wpps-ai-alt-option-card--primary {
	background: #f6f7f7;
	border-color: #c3c4c7;
}

.wpps-ai-alt-option-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wpps-ai-alt-option-row {
	padding: 14px 16px;
	border: 1px solid var(--ai-alt-border);
	border-radius: 8px;
	background: #fff;
}

.wpps-ai-alt-option-card input[type="checkbox"],
.wpps-ai-alt-option-row input[type="checkbox"] {
	margin: 3px 0 0;
	flex: 0 0 auto;
}

.wpps-ai-alt-option-copy {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.wpps-ai-alt-option-title {
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
	line-height: 1.45;
}

.wpps-ai-alt-option-desc,
.wpps-ai-alt-option-note {
	font-size: 13px;
	line-height: 1.5;
	color: #646970;
}

.wpps-ai-alt-option-note {
	font-size: 12px;
}

.wpps-ai-alt-settings-note {
	margin: 10px 0 0;
	padding: 10px 12px;
	border-radius: 6px;
	background: #fcf9e8;
	border: 1px solid #f0e6b6;
	color: #6a5c1d;
	font-size: 12px;
	line-height: 1.5;
}

.wpps-ai-alt-filtering .wpps-ai-alt-field-full + .wpps-ai-alt-field-full {
	margin-top: 18px;
}

.wpps-ai-alt-filtering .wpps-ai-alt-option-row {
	margin-top: 18px;
}

.wpps-ai-alt-settings-group-title {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
}

.wpps-ai-alt-field-pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 18px;
	row-gap: 6px;
	margin-bottom: 12px;
}

.wpps-ai-alt-field-label {
	margin: 0;
	font-weight: 500;
	line-height: 1.4;
	align-self: end;
}

.wpps-ai-alt-field-label--left {
	grid-column: 1;
	grid-row: 1;
}

.wpps-ai-alt-field-label--right {
	grid-column: 2;
	grid-row: 1;
}

.wpps-ai-alt-field-control {
	min-width: 0;
}

.wpps-ai-alt-field-control--left {
	grid-column: 1;
	grid-row: 2;
}

.wpps-ai-alt-field-control--right {
	grid-column: 2;
	grid-row: 2;
}

.wpps-ai-alt-field-pair .wpps-ai-alt-input {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	margin: 0;
}

.wpps-ai-alt-field-help {
	margin: 0;
	line-height: 1.5;
}

.wpps-ai-alt-field-help--left {
	grid-column: 1;
	grid-row: 3;
}

.wpps-ai-alt-field-help--right {
	grid-column: 2;
	grid-row: 3;
}

.wpps-ai-alt-field-full {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 12px;
}

.wpps-ai-alt-field-full .wpps-ai-alt-field-label {
	align-self: stretch;
}

.wpps-ai-alt-field-full .wpps-ai-alt-input {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	margin: 0;
}

.wpps-ai-alt-api-key-slot.is-hidden {
	display: none !important;
}

.wpps-ai-alt-api-key-notice {
	margin: 0;
	padding: 6px 10px;
	min-height: 30px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	border: 1px solid var(--ai-alt-border);
	background: var(--ai-alt-bg);
}

.wpps-ai-alt-provider-pro-note {
	margin: 0 0 12px;
}

.wpps-ai-alt-output-intro {
	margin: 0 0 10px;
	font-weight: 500;
	color: #1d2327;
}

.wpps-ai-alt-settings-intro {
	margin: 0 0 16px;
	font-size: 14px;
	color: #50575e;
	line-height: 1.5;
}

.wpps-ai-alt-privacy-note {
	margin: 12px 0 0;
}

.wpps-ai-alt-field-control--narrow {
	max-width: 160px;
}

.wpps-ai-alt-nested-checklist {
	margin: -4px 0 14px;
	padding: 10px 14px 10px 28px;
	border: 1px solid var(--ai-alt-border);
	border-top: 0;
	background: #fff;
}

.wpps-ai-alt-nested-checklist.is-hidden {
	display: none;
}

.wpps-ai-alt-stats--compact,
.wpps-ai-alt-stats--dashboard {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wpps-ai-alt-bulk-hero-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	margin-bottom: 20px;
	background: #fff;
	border: 1px solid var(--ai-alt-border);
	border-radius: 8px;
	overflow: hidden;
}

.wpps-ai-alt-bulk-hero-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 20px 16px;
	border-right: 1px solid var(--ai-alt-border);
	text-align: center;
}

.wpps-ai-alt-bulk-hero-stat:last-child {
	border-right: 0;
}

.wpps-ai-alt-bulk-hero-label {
	font-size: 12px;
	font-weight: 600;
	color: #646970;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.wpps-ai-alt-bulk-hero-value {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.1;
	color: #1d2327;
}

.wpps-ai-alt-bulk-hero-pct {
	font-size: 13px;
	font-weight: 600;
	color: #646970;
}

.wpps-ai-alt-bulk-hero-stat.is-warning .wpps-ai-alt-bulk-hero-value,
.wpps-ai-alt-bulk-hero-stat.is-warning .wpps-ai-alt-bulk-hero-pct {
	color: #b32d2e;
}

.wpps-ai-alt-bulk-card .wpps-ai-alt-card-body {
	padding-top: 24px;
}

.wpps-ai-alt-bulk-section {
	margin-bottom: 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--ai-alt-border);
}

.wpps-ai-alt-bulk-section:last-of-type {
	border-bottom: 0;
	padding-bottom: 0;
}

.wpps-ai-alt-bulk-section-title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 600;
	color: #1d2327;
}

.wpps-ai-alt-bulk-primary-action {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	margin-top: 8px;
}

.wpps-ai-alt-bulk-primary-action .button-hero {
	min-width: 280px;
}

.wpps-ai-alt-stats--bulk {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 782px) {
	.wpps-ai-alt-stats--compact,
	.wpps-ai-alt-stats--dashboard,
	.wpps-ai-alt-stats--bulk {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.wpps-ai-alt-settings-section {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--ai-alt-border);
}

.wpps-ai-alt-settings-section .wpps-ai-alt-settings-form {
	margin-top: 0;
}

.wpps-ai-alt-bulk-cta-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.wpps-ai-alt-bulk-cta-title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 600;
}

.wpps-ai-alt-steps {
	margin: 12px 0 0;
	padding-left: 20px;
	color: #50575e;
	font-size: 13px;
	line-height: 1.6;
}

.wpps-ai-alt-bulk-cta-actions {
	flex-shrink: 0;
}

.wpps-ai-alt-details-card {
	overflow: hidden;
}

.wpps-ai-alt-details-summary {
	padding: 14px 18px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.wpps-ai-alt-details-summary::-webkit-details-marker {
	display: none;
}

.wpps-ai-alt-empty-history .wpps-ai-alt-card-body {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.wpps-ai-alt-bulk-page .wpps-ai-alt-bulk-targets {
	border: 0;
	margin: 0;
	padding: 0;
}

.wpps-ai-alt-bulk-page .wpps-ai-alt-bulk-targets .wpps-ai-alt-field-label,
.wpps-ai-alt-bulk-page .wpps-ai-alt-bulk-filters .wpps-ai-alt-field-label {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
}

.wpps-ai-alt-bulk-options {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--ai-alt-border);
}

.wpps-ai-alt-bulk-processing,
.wpps-ai-alt-bulk-woocommerce {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wpps-ai-alt-bulk-processing .wpps-ai-alt-settings-group-title,
.wpps-ai-alt-bulk-woocommerce .wpps-ai-alt-settings-group-title {
	margin: 0;
	font-size: 13px;
}

.wpps-ai-alt-bulk-page .wpps-ai-alt-option-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wpps-ai-alt-bulk-targets,
.wpps-ai-alt-bulk-filters {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wpps-ai-alt-bulk-targets.is-disabled {
	opacity: 0.55;
}

.wpps-ai-alt-bulk-targets.is-disabled .wpps-ai-alt-check {
	cursor: not-allowed;
}

.wpps-ai-alt-check--emphasis {
	margin-top: 4px;
	padding-top: 10px;
	border-top: 1px dashed var(--ai-alt-border);
}

.wpps-ai-alt-bulk-options-note {
	margin: 0 0 12px;
}

.wpps-ai-alt-bulk-page .wpps-ai-alt-bulk-speed-hint {
	margin: 0 0 16px;
}

.wpps-ai-alt-bulk-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	padding-top: 4px;
}

.wpps-ai-alt-bulk-page .wpps-ai-alt-bulk-match-count {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}

.wpps-ai-alt-bulk-page .wpps-ai-alt-bulk-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 0;
}

.wpps-ai-alt-wrap [hidden] {
	display: none !important;
}

@media (max-width: 782px) {
	.wpps-ai-alt-bulk-hero-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wpps-ai-alt-bulk-hero-stat:nth-child(2n) {
		border-right: 0;
	}

	.wpps-ai-alt-bulk-hero-stat:nth-child(-n+2) {
		border-bottom: 1px solid var(--ai-alt-border);
	}

	.wpps-ai-alt-bulk-footer {
		flex-direction: column;
		align-items: stretch;
	}

	.wpps-ai-alt-bulk-page .wpps-ai-alt-bulk-actions {
		width: 100%;
	}

	.wpps-ai-alt-bulk-page .wpps-ai-alt-bulk-actions .button-hero {
		width: 100%;
		text-align: center;
	}
}

.wpps-ai-alt-history-search {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 12px;
}

.wpps-ai-alt-history-count {
	margin: 0 0 12px;
	font-weight: 600;
}

.wpps-ai-alt-history-pagination {
	margin-top: 12px;
}

.wpps-ai-alt-bulk-progress-panel {
	margin-top: 16px;
}

.wpps-ai-alt-bulk-page.is-running .wpps-ai-alt-bulk-primary-action .wpps-ai-alt-help {
	display: none;
}

.wpps-ai-alt-bulk-run-panel {
	margin-top: 18px;
	padding: 16px 18px;
	background: #f6f7f7;
	border: 1px solid var(--ai-alt-border);
	border-radius: 4px;
}

.wpps-ai-alt-bulk-run-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.wpps-ai-alt-bulk-run-status {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.wpps-ai-alt-bulk-run-label {
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}

.wpps-ai-alt-bulk-run-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid #c3c4c7;
	border-top-color: var(--ai-alt-blue);
	border-radius: 50%;
	animation: wpps-ai-alt-spin 0.8s linear infinite;
	flex-shrink: 0;
}

.wpps-ai-alt-bulk-stop-btn {
	flex-shrink: 0;
}

.wpps-ai-alt-bulk-run-progress {
	margin-bottom: 14px;
}

.wpps-ai-alt-bulk-progress-bar {
	height: 10px;
	margin-bottom: 8px;
	border-radius: 999px;
}

.wpps-ai-alt-bulk-progress-bar .wpps-ai-alt-progress-fill {
	border-radius: 999px;
}

.wpps-ai-alt-bulk-run-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	color: #50575e;
}

.wpps-ai-alt-bulk-progress-pct {
	font-weight: 600;
	color: #1d2327;
}

.wpps-ai-alt-bulk-run-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}

.wpps-ai-alt-bulk-stat-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	background: #fff;
	border: 1px solid var(--ai-alt-border);
	border-radius: 999px;
	font-size: 12px;
}

.wpps-ai-alt-bulk-stat-label {
	color: #646970;
}

.wpps-ai-alt-bulk-stat-value {
	font-size: 14px;
	font-weight: 700;
	color: #1d2327;
}

.wpps-ai-alt-bulk-stat-chip.is-success .wpps-ai-alt-bulk-stat-value {
	color: var(--ai-alt-success);
}

.wpps-ai-alt-bulk-stat-chip.is-failed .wpps-ai-alt-bulk-stat-value {
	color: var(--ai-alt-warning);
}

.wpps-ai-alt-bulk-results-section {
	border-top: 1px solid var(--ai-alt-border);
	padding-top: 14px;
}

.wpps-ai-alt-bulk-results-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 14px;
}

.wpps-ai-alt-bulk-results-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	background: #fff;
	border: 1px solid var(--ai-alt-border);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: #50575e;
}

.wpps-ai-alt-bulk-results-scroll {
	position: relative;
	max-height: 360px;
	overflow: auto;
	background: #fff;
	border: 1px solid var(--ai-alt-border);
}

.wpps-ai-alt-bulk-results-table {
	margin: 0;
	border: 0;
}

.wpps-ai-alt-bulk-results-table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: #f0f0f1;
}

.wpps-ai-alt-bulk-results-table .col-image {
	width: 220px;
}

.wpps-ai-alt-bulk-results-table .col-status {
	width: 110px;
}

.wpps-ai-alt-bulk-image-cell {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.wpps-ai-alt-bulk-thumb {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid var(--ai-alt-border);
	background: #f6f7f7;
	flex-shrink: 0;
}

.wpps-ai-alt-bulk-thumb-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 4px;
	border: 1px solid var(--ai-alt-border);
	background: #f6f7f7;
	color: #a7aaad;
	flex-shrink: 0;
}

.wpps-ai-alt-bulk-thumb-fallback .dashicons {
	width: 24px;
	height: 24px;
	font-size: 24px;
}

.wpps-ai-alt-bulk-image-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.wpps-ai-alt-bulk-image-title {
	font-weight: 600;
	color: #1d2327;
	text-decoration: none;
}

a.wpps-ai-alt-bulk-image-title:hover {
	color: var(--ai-alt-blue);
}

.wpps-ai-alt-bulk-image-file {
	display: block;
	font-size: 12px;
	color: #646970;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 140px;
}

.wpps-ai-alt-bulk-status {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.wpps-ai-alt-bulk-status.is-success {
	background: #edfaef;
	color: var(--ai-alt-success);
}

.wpps-ai-alt-bulk-status.is-failed {
	background: #fcf0f1;
	color: var(--ai-alt-warning);
}

.wpps-ai-alt-bulk-status.is-skipped {
	background: #f0f0f1;
	color: #646970;
}

.wpps-ai-alt-bulk-alt-text {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.45;
	color: #1d2327;
}

.wpps-ai-alt-bulk-keywords {
	margin-top: 4px;
	font-size: 11px;
	line-height: 1.35;
	color: var(--ai-alt-blue);
	font-weight: 600;
}

.wpps-ai-alt-bulk-results-empty {
	margin: 0;
	padding: 28px 16px;
	text-align: center;
	color: #646970;
	font-size: 13px;
}

.wpps-ai-alt-bulk-results-scroll:has(tbody tr) .wpps-ai-alt-bulk-results-empty {
	display: none;
}

.wpps-ai-alt-history-row-new td,
.wpps-ai-alt-history-row-new th {
	background: #edfaef;
}

.wpps-ai-alt-stat-sub {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: #646970;
}

.wpps-ai-alt-test-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 8px 12px;
	max-width: 640px;
	margin-bottom: 4px;
}

.wpps-ai-alt-test-row .wpps-ai-alt-test-help {
	flex-basis: 100%;
	margin: 0;
}

.wpps-ai-alt-test-result {
	font-size: 13px;
}

@media (max-width: 782px) {
	.wpps-ai-alt-field-pair {
		grid-template-columns: 1fr;
	}

	.wpps-ai-alt-field-label--left {
		grid-column: 1;
		grid-row: 1;
	}

	.wpps-ai-alt-field-control--left {
		grid-column: 1;
		grid-row: 2;
	}

	.wpps-ai-alt-field-pair--has-left-help .wpps-ai-alt-field-help--left {
		grid-column: 1;
		grid-row: 3;
		margin-bottom: 8px;
	}

	.wpps-ai-alt-field-pair--has-left-help .wpps-ai-alt-field-label--right {
		grid-column: 1;
		grid-row: 4;
	}

	.wpps-ai-alt-field-pair--has-left-help .wpps-ai-alt-field-control--right {
		grid-column: 1;
		grid-row: 5;
	}

	.wpps-ai-alt-field-pair:not(.wpps-ai-alt-field-pair--has-left-help):not(.wpps-ai-alt-field-pair--has-both-help) .wpps-ai-alt-field-label--right {
		grid-column: 1;
		grid-row: 3;
	}

	.wpps-ai-alt-field-pair:not(.wpps-ai-alt-field-pair--has-left-help):not(.wpps-ai-alt-field-pair--has-both-help) .wpps-ai-alt-field-control--right {
		grid-column: 1;
		grid-row: 4;
		margin-bottom: 8px;
	}

	.wpps-ai-alt-field-pair--has-both-help .wpps-ai-alt-field-label--right {
		grid-column: 1;
		grid-row: 4;
	}

	.wpps-ai-alt-field-pair--has-both-help .wpps-ai-alt-field-control--right {
		grid-column: 1;
		grid-row: 5;
	}

	.wpps-ai-alt-field-pair--has-both-help .wpps-ai-alt-field-help--right {
		grid-column: 1;
		grid-row: 6;
		margin-bottom: 8px;
	}
}

.wpps-ai-alt-input {
	width: 100%;
	max-width: 100%;
}

.wpps-ai-alt-checklist {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 14px;
	padding: 12px 14px;
	border: 1px solid var(--ai-alt-border);
	background: var(--ai-alt-bg);
}

.wpps-ai-alt-check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #1d2327;
}

.wpps-ai-alt-check input[type="checkbox"] {
	margin: 2px 0 0;
}

.wpps-ai-alt-table-wrap {
	overflow-x: auto;
	margin-top: 4px;
}

.wpps-ai-alt-role-table {
	width: 100%;
	max-width: 100%;
	margin: 0;
	border: 1px solid var(--ai-alt-border);
}

.wpps-ai-alt-role-table th {
	font-weight: 500;
}

.wpps-ai-alt-test-result {
	margin-left: 0;
	font-size: 13px;
}

.wpps-ai-alt-settings-form .wpps-ct-multiselect {
	position: relative;
	max-width: 420px;
}

.wpps-ai-alt-settings-form .wpps-ct-multiselect__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	background: #fff;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
	line-height: 1.4;
	color: #1d2327;
}

.wpps-ai-alt-settings-form .wpps-ct-multiselect__trigger:hover,
.wpps-ai-alt-settings-form .wpps-ct-multiselect__trigger:focus {
	border-color: var(--ai-alt-blue, #2271b1);
	outline: none;
}

.wpps-ai-alt-settings-form .wpps-ct-multiselect__chevron {
	font-size: 18px;
	width: 18px;
	height: 18px;
	color: #787c82;
	flex-shrink: 0;
	margin-left: 8px;
}

.wpps-ai-alt-settings-form .wpps-ct-multiselect__trigger[aria-expanded="true"] .wpps-ct-multiselect__chevron {
	transform: rotate(180deg);
}

.wpps-ai-alt-settings-form .wpps-ct-multiselect__dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 4px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	z-index: 100;
	max-height: 280px;
	display: flex;
	flex-direction: column;
}

.wpps-ai-alt-settings-form .wpps-ct-multiselect__dropdown[hidden] {
	display: none !important;
}

.wpps-ai-alt-settings-form .wpps-ct-multiselect__search {
	width: 100%;
	padding: 8px 12px;
	border: none;
	border-bottom: 1px solid #dcdcde;
	font-size: 13px;
	box-sizing: border-box;
	outline: none;
}

.wpps-ai-alt-settings-form .wpps-ct-multiselect__actions {
	padding: 6px 10px;
	border-bottom: 1px solid #dcdcde;
	display: flex;
	gap: 12px;
	flex-shrink: 0;
}

.wpps-ai-alt-settings-form .wpps-ct-multiselect__action {
	background: none;
	border: none;
	color: var(--ai-alt-blue, #2271b1);
	cursor: pointer;
	font-size: 12px;
	padding: 0;
}

.wpps-ai-alt-settings-form .wpps-ct-multiselect__action:hover {
	color: var(--ai-alt-blue-darker);
	text-decoration: underline;
}

.wpps-ai-alt-settings-form .wpps-ct-multiselect__options {
	overflow-y: auto;
	padding: 4px 0;
	max-height: 200px;
}

.wpps-ai-alt-settings-form .wpps-ct-multiselect__option {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	cursor: pointer;
	font-size: 13px;
	white-space: nowrap;
}

.wpps-ai-alt-settings-form .wpps-ct-multiselect__option:hover {
	background: #f0f0f1;
}

.wpps-ai-alt-settings-form .wpps-ct-multiselect__option input {
	flex-shrink: 0;
	margin: 0;
}

.wpps-ai-alt-settings-form .wpps-ct-multiselect__option-slug {
	color: #646970;
	font-size: 12px;
}

.wpps-ai-alt-settings-form .wpps-ct-multiselect__option.wpps-ct-multiselect__option--hidden {
	display: none;
}

/* Accordion tooltips (shared pattern) */
.wpps-ai-alt-accordion-tooltip {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 6px;
	cursor: help;
}

.wpps-ai-alt-accordion-tooltip-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	font-size: 12px;
	font-weight: 600;
	color: #646970;
	background: var(--ai-alt-bg);
	border-radius: 50%;
	line-height: 1;
}

.wpps-ai-alt-accordion-tooltip:hover .wpps-ai-alt-accordion-tooltip-trigger,
.wpps-ai-alt-accordion-tooltip.is-active .wpps-ai-alt-accordion-tooltip-trigger {
	color: var(--ai-alt-blue);
	background: #e8f0fe;
}

.wpps-ai-alt-accordion-tooltip-panel {
	position: absolute;
	left: 0;
	bottom: calc(100% + 10px);
	transform: translateY(4px);
	min-width: 220px;
	max-width: min(320px, calc(100vw - 32px));
	padding: 12px 14px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: #1d2327;
	background: #fff;
	border: 1px solid var(--ai-alt-border);
	border-radius: 6px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
	z-index: 100000;
}

.wpps-ai-alt-accordion-tooltip-panel.is-positioned {
	position: fixed !important;
	bottom: auto !important;
	transform: none !important;
}

.wpps-ai-alt-accordion-tooltip.is-active .wpps-ai-alt-accordion-tooltip-panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Meta box + media (existing) */
.wpps-ai-alt-wrap .wpps-ai-alt-description {
	max-width: 640px;
	margin-bottom: 1.5em;
}

.wpps-ai-alt-card.wpps-ai-alt-panel .wpps-ai-alt-result,
.wpps-ai-alt-panel .wpps-ai-alt-result {
	margin-top: 0.5em;
	padding: 0.5em;
	font-size: 12px;
}

.wpps-ai-alt-panel .wpps-ai-alt-result.success {
	background: #edfaef;
	border: 1px solid var(--ai-alt-border);
}

.wpps-ai-alt-panel .wpps-ai-alt-result.error {
	background: #fcf0f1;
	border: 1px solid var(--ai-alt-border);
}

.wpps-ai-alt-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	line-height: 1.5;
	background: var(--ai-alt-bg);
	color: #1d2327;
}

.wpps-ai-alt-badge.is-missing,
.wpps-ai-alt-badge.is-weak {
	background: #fcf0f1;
	color: #8a2424;
}

.wpps-ai-alt-badge.is-good {
	background: #edfaef;
	color: #1e6021;
}

.wpps-ai-alt-badge.is-review,
.wpps-ai-alt-badge.is-warning {
	background: #f5e6c8;
	color: #6a4d0d;
}

.column-wpps_ai_alt_status,
.column-wpps_ai_alt_text,
.column-wpps_ai_alt_actions {
	width: 12%;
}

.wpps-ai-alt-tab-panel {
	position: relative;
	min-height: 80px;
}

.wpps-ai-alt-tab-panel.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

.wpps-ai-alt-tab-panel.is-loading::after {
	content: '';
	position: absolute;
	top: 24px;
	left: 50%;
	width: 22px;
	height: 22px;
	margin-left: -11px;
	border: 2px solid #c3c4c7;
	border-top-color: var(--ai-alt-blue);
	border-radius: 50%;
	animation: wpps-ai-alt-spin 0.8s linear infinite;
}

@keyframes wpps-ai-alt-spin {
	to {
		transform: rotate(360deg);
	}
}

.wpps-ai-alt-tab-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	height: 1.25rem;
	margin-left: 0.35rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	background: #d63638;
	color: #fff;
}

.wpps-ai-alt-review-page .wp-list-table,
.wpps-ai-alt-history-page .wp-list-table {
	margin-top: 0.75rem;
}

.wpps-ai-alt-review-row-actions {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 108px;
}

.wpps-ai-alt-review-row-actions .button {
	margin: 0;
	text-align: center;
}

.wpps-ai-alt-review-page .column-actions {
	width: 120px;
	vertical-align: top;
}

.wpps-ai-alt-review-page .column-suggestion {
	min-width: 220px;
}

.wpps-ai-alt-review-page .wpps-ai-alt-review-field {
	width: 100%;
	min-width: 200px;
}

.wpps-ai-alt-review-page .tablenav,
.wpps-ai-alt-history-page .tablenav {
	margin: 0.5rem 0 0.75rem;
}

.wpps-ai-alt-stat-card.is-primary .wpps-ai-alt-stat-value {
	color: var(--ai-alt-blue);
}

.media-modal .wpps-ai-alt-media-actions,
.media-frame .wpps-ai-alt-media-actions {
	margin: 8px 0 0;
}

.media-modal .wpps-powersuite-media-tools.wpps-ai-alt-media-tools,
.media-frame .wpps-powersuite-media-tools.wpps-ai-alt-media-tools,
.edit-attachment-frame .wpps-powersuite-media-tools.wpps-ai-alt-media-tools {
	clear: both;
	float: right;
	width: 65%;
	box-sizing: border-box;
	margin: 0 0 12px;
}

.media-modal .wpps-ai-alt-media-actions .button,
.media-frame .wpps-ai-alt-media-actions .button {
	margin-right: 6px;
}

.media-modal .wpps-ai-alt-media-actions .wpps-ai-alt-media-result,
.media-frame .wpps-ai-alt-media-actions .wpps-ai-alt-media-result {
	margin-top: 8px;
	padding: 6px 8px;
	font-size: 12px;
	border-radius: 2px;
}

.media-modal .wpps-ai-alt-media-actions .wpps-ai-alt-media-result.success,
.media-frame .wpps-ai-alt-media-actions .wpps-ai-alt-media-result.success {
	background: #edfaef;
	border: 1px solid #c3e6cb;
}

.media-modal .wpps-ai-alt-media-actions .wpps-ai-alt-media-result.error,
.media-frame .wpps-ai-alt-media-actions .wpps-ai-alt-media-result.error {
	background: #fcf0f1;
	border: 1px solid #f1aeb5;
}

.media-modal .wpps-ai-alt-media-decorative-note,
.media-frame .wpps-ai-alt-media-decorative-note {
	margin: 6px 0 0;
}

.media-modal .wpps-ai-alt-media-actions .wpps-ai-alt-media-generate[hidden],
.media-modal .wpps-ai-alt-media-actions .wpps-ai-alt-media-undecorative[hidden],
.media-modal .wpps-ai-alt-media-actions .wpps-ai-alt-media-decorative-note[hidden],
.media-frame .wpps-ai-alt-media-actions .wpps-ai-alt-media-generate[hidden],
.media-frame .wpps-ai-alt-media-actions .wpps-ai-alt-media-undecorative[hidden],
.media-frame .wpps-ai-alt-media-actions .wpps-ai-alt-media-decorative-note[hidden] {
	display: none !important;
}
