.srk-il-editor-plugin-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: transparent;
}

.srk-il-editor-plugin-icon img {
	display: block;
	width: 25px;
	height: 25px;
	min-width: 25px;
	min-height: 25px;
	max-width: 25px;
	max-height: 25px;
	object-fit: contain;
}

.srk-il-editor-scan-button {
	width: 100%;
	justify-content: center;
	margin-bottom: 14px;
}

.srk-il-editor-suggestion-card {
	border: 1px solid #d7dee5;
	background: #fff;
	padding: 14px;
	margin-bottom: 14px;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.srk-il-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.srk-il-match-badge {
	background: #eaf4ff;
	color: #075c9f;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .5px;
	padding: 4px 8px;
}

.srk-il-score-text {
	color: #075c9f;
	font-size: 13px;
	font-weight: 800;
	border-bottom: 3px solid #075c9f;
	padding-bottom: 2px;
}

.srk-il-editor-context-text {
	color: #1d2327;
	font-size: 14px;
	line-height: 1.55;
	margin-bottom: 14px;
}

.srk-il-preview-anchor,
.srk-il-editor-highlight-anchor {
	background: #dbeafe;
	color: #111827;
	font-weight: 800;
	padding: 1px 4px;
	text-decoration: underline;
	text-decoration-color: #0b1d51;
}

.srk-il-card-target-box {
	margin-bottom: 14px;
}

.srk-il-card-target-label {
	font-size: 11px;
	font-weight: 800;
	color: #166534;
	text-transform: uppercase;
	letter-spacing: .5px;
	margin-bottom: 6px;
}

.srk-il-card-target-button {
	width: 100%;
	min-height: 36px;
	text-align: left;
	border: 1px solid #cbd5e1;
	background: #f8fafc;
	color: #1d2327;
	padding: 8px 10px;
	cursor: pointer;
	font-weight: 600;
}

.srk-il-card-target-button:hover {
	border-color: #0b1d51;
	color: #0b1d51;
}

.srk-il-editor-target-link {
	display: block;
	color: #0b1d51;
	font-weight: 700;
	text-decoration: none;
	margin-bottom: 14px;
}

.srk-il-editor-target-link:hover {
	text-decoration: underline;
}

.srk-il-card-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.srk-il-edit-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	text-decoration: none;
	color: #374151;
}

.srk-il-edit-link .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.srk-il-editor-apply-button {
	min-width: 100px;
	justify-content: center;
}

.srk-il-editor-custom-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.srk-il-editor-custom-keyword-text {
	display: inline-block;
}

.srk-il-editor-custom-keyword-delete {
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
}

.srk-il-editor-custom-keyword-delete:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

/* Anchor Modal */
.srk-il-editor-anchor-modal .components-modal__content {
	width: 520px;
	padding: 0;
	overflow: hidden;
}

.srk-il-editor-anchor-modal .components-modal__header {
	border-bottom: 1px solid #dcdcde;
	padding: 18px 24px;
}

.srk-il-modal-label {
	margin: 22px 24px 8px;
	font-size: 11px;
	font-weight: 800;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.srk-il-modal-label-small {
	margin-top: 18px;
}

.srk-il-anchor-live-preview {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 5px;
	margin: 0 24px 18px;
	padding: 14px 16px;
	font-size: 14px;
	line-height: 1.7;
	color: #1d2327;
	font-style: italic;
}

.srk-il-editor-anchor-modal .components-base-control {
	margin: 0 24px 18px;
}

.srk-il-editor-anchor-modal .components-base-control__label {
	font-size: 12px;
	font-weight: 700;
	color: #111827;
	margin-bottom: 8px;
}

.srk-il-editor-anchor-modal input.components-text-control__input {
	min-height: 42px;
	border-color: #9ca3af;
	font-size: 14px;
}

.srk-il-anchor-target-list {
	border: 1px solid #cbd5e1;
	border-radius: 5px;
	margin: 0 24px 22px;
	overflow: hidden;
}

.srk-il-anchor-target-row {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border: 0;
	border-bottom: 1px solid #e5e7eb;
	background: #fff;
	text-align: left;
	padding: 14px 16px;
	cursor: pointer;
}

.srk-il-anchor-target-row:last-child {
	border-bottom: 0;
}

.srk-il-anchor-target-row.is-selected,
.srk-il-anchor-target-row:hover {
	background: #f8fafc;
}

.srk-il-anchor-target-info strong {
	display: block;
	color: #111827;
	font-size: 14px;
	margin-bottom: 2px;
}

.srk-il-anchor-target-info small {
	display: block;
	color: #6b7280;
	font-size: 12px;
	word-break: break-all;
}

.srk-il-anchor-target-score {
	background: #dcfce7;
	color: #15803d;
	border-radius: 999px;
	padding: 4px 9px;
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
}

.srk-il-editor-modal-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	background: #f8fafc;
	border-top: 1px solid #dcdcde;
	padding: 16px 24px;
}

/* Target Selection Modal */
.srk-il-target-modal .components-modal__content {
	width: 640px;
	padding: 0;
	overflow: hidden;
}

.srk-il-target-modal .components-modal__header {
	border-bottom: 1px solid #dcdcde;
	padding: 18px 24px;
}

.srk-il-target-modal-note {
	background: #f8fafc;
	border-bottom: 1px solid #dcdcde;
	padding: 16px 24px;
	color: #374151;
	font-size: 14px;
}

.srk-il-target-option-list {
	margin: 0;
}

.srk-il-target-option {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 16px;
	border: 0;
	border-bottom: 1px solid #e5e7eb;
	background: #fff;
	padding: 18px 24px;
	text-align: left;
	cursor: pointer;
}

.srk-il-target-option:hover,
.srk-il-target-option.is-selected {
	background: #f8fafc;
}

.srk-il-target-radio {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1px solid #9ca3af;
	flex: 0 0 16px;
}

.srk-il-target-option.is-selected .srk-il-target-radio {
	border: 5px solid #0b1d51;
}

.srk-il-target-content {
	flex: 1;
	min-width: 0;
}

.srk-il-target-title-line {
	display: block;
	color: #0b1d51;
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 4px;
}

.srk-il-target-url-line {
	display: block;
	color: #6b7280;
	font-size: 12px;
	word-break: break-all;
}

.srk-il-target-badge {
	background: #dcfce7;
	color: #166534;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .5px;
	padding: 5px 9px;
}

/* Keywords */
.srk-il-editor-section-title {
	display: block;
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #1d2327;
}

.srk-il-editor-keyword-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}

.srk-il-editor-keyword-chip,
.srk-il-editor-custom-chip {
	display: inline-flex;
	border-radius: 4px;
	padding: 5px 8px;
	font-size: 12px;
	font-weight: 600;
}

.srk-il-editor-keyword-chip {
	background: #eef4ff;
	color: #0b1d51;
}

.srk-il-editor-custom-chip {
	background: #ecfdf3;
	color: #067647;
}

.srk-il-editor-custom-add {
	display: flex;
	gap: 6px;
	margin-bottom: 10px;
}

.srk-il-editor-custom-add input {
	width: 100%;
}

.srk-il-editor-empty {
	color: #757575;
	font-style: italic;
	margin: 0 0 12px;
}

/* Compact editor modal: context preview + selected anchor + save action only. */
.srk-il-editor-anchor-modal .components-modal__content {
	max-width: 560px;
	width: calc(100vw - 48px);
	max-height: calc(100vh - 96px);
	overflow: auto;
	padding-bottom: 76px;
}

.srk-il-editor-anchor-modal .srk-il-anchor-live-preview {
	background: #f8fafc;
	border: 1px solid #d7dee5;
	border-radius: 6px;
	line-height: 1.6;
	margin-bottom: 16px;
	max-height: 220px;
	overflow: auto;
	padding: 12px;
}

.srk-il-editor-apply-button {
	min-width: 96px;
	justify-content: center;
}
/* Fix Gutenberg anchor edit modal layout */
.srk-il-editor-anchor-modal.components-modal__frame {
	width: 560px;
	max-width: calc(100vw - 48px);
	max-height: calc(100vh - 80px);
	overflow: hidden;
	box-sizing: border-box;
}

.srk-il-editor-anchor-modal .components-modal__content {
	width: 100%;
	max-width: 100%;
	max-height: calc(100vh - 80px);
	padding: 0;
	overflow-x: hidden;
	overflow-y: auto;
	box-sizing: border-box;
}

.srk-il-editor-anchor-modal .components-modal__header {
	padding: 18px 24px;
	border-bottom: 1px solid #dcdcde;
	box-sizing: border-box;
}

.srk-il-editor-anchor-modal .srk-il-modal-label {
	margin: 22px 24px 8px;
}

.srk-il-editor-anchor-modal .srk-il-anchor-live-preview {
	margin: 0 24px 18px;
	max-height: 180px;
	overflow-y: auto;
	overflow-x: hidden;
	box-sizing: border-box;
}

.srk-il-editor-anchor-modal .components-base-control {
	margin: 0 24px 18px;
	box-sizing: border-box;
}

.srk-il-editor-anchor-modal .components-base-control__field {
	margin-bottom: 0;
}

.srk-il-editor-anchor-modal input.components-text-control__input {
	width: 100%;
	box-sizing: border-box;
}

.srk-il-editor-anchor-modal .srk-il-editor-modal-footer {
	position: static;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin: 0;
	padding: 16px 24px;
	background: #f8fafc;
	border-top: 1px solid #dcdcde;
	box-sizing: border-box;
}

.srk-il-editor-anchor-modal .srk-il-editor-modal-footer .components-button {
	min-width: 110px;
	justify-content: center;
}
.srk-il-source-badge{
	display:inline-flex;
	align-items:center;
	border-radius:999px;
	padding:4px 8px;
	font-size:10px;
	font-weight:800;
	line-height:1.2;
	text-transform:uppercase;
	letter-spacing:.4px;
}
.srk-il-source-badge.is-rule{
	background:#eef4ff;
	color:#0b1d51;
	border:1px solid #bfd3ff;
}
.srk-il-source-badge.is-ai{
	background:#f3e8ff;
	color:#7e22ce;
	border:1px solid #d8b4fe;
}
.srk-il-card-badges{
	display:flex;
	align-items:center;
	flex-wrap:wrap;
	gap:6px;
}
/* ==========================================================
 * Unified SEO Repair Kit Gutenberg Sidebar
 * ========================================================== */

.srk-editor-feature-tabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	background: #fff;
	border-bottom: 1px solid #dcdcde;
	position: sticky;
	top: 0;
	z-index: 10;
}

.srk-editor-feature-tab {
	appearance: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 62px;
	padding: 8px 5px 7px;
	margin: 0;
	background: #fff;
	border: 0;
	border-bottom: 3px solid transparent;
	color: #646970;
	cursor: pointer;
	font-size: 11px;
	font-weight: 500;
	transition:
		background-color 0.15s ease,
		color 0.15s ease,
		border-color 0.15s ease;
}

.srk-editor-feature-tab:hover {
	background: #f6f7f7;
	color: #081c59;
}

.srk-editor-feature-tab:focus {
	outline: 2px solid #0b1d51;
	outline-offset: -2px;
	box-shadow: none;
}

.srk-editor-feature-tab.is-active {
	color: #081c59;
	background: #fff;
	border-bottom-color: #f28500;
	font-weight: 600;
}
.srk-editor-feature-label {
	display: block;
	overflow: hidden;
	max-width: 100%;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.srk-editor-feature-view {
	display: none;
}

.srk-editor-feature-view.is-active {
	display: block;
}

.srk-editor-meta-view .srk-meta-panel--embedded {
	padding: 0;
	margin: 0;
}

.srk-editor-meta-view .srk-meta-panel--embedded > div {
	margin: 0;
}

.srk-editor-internal-linking-view > .components-panel__body:first-of-type {
	border-top: 0;
}

.srk-editor-feature-dashicon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	font-size: 23px;
	line-height: 1;
	color: #646970;
	transition: color 0.15s ease;
}

.srk-editor-feature-tab:hover .srk-editor-feature-dashicon {
	color: #081c59;
}

.srk-editor-feature-tab.is-active .srk-editor-feature-dashicon {
	color: #081c59;
}

/* ==========================================================
 * SEO Repair Kit Gutenberg Toolbar Button
 * ========================================================== */

/* Normal toolbar button */
.interface-pinned-items .components-button:has(.srk-il-editor-plugin-icon) {
	background: transparent !important;
	box-shadow: none !important;
}

/* Active / sidebar-open state */
.interface-pinned-items .components-button:has(.srk-il-editor-plugin-icon).is-pressed,
.interface-pinned-items .components-button:has(.srk-il-editor-plugin-icon)[aria-pressed="true"] {
	background: #f5f5f5 !important;
	color: #081c59 !important;
	box-shadow: inset 0 0 0 1px #dcdcde !important;
}

/* Hover */
.interface-pinned-items .components-button:has(.srk-il-editor-plugin-icon):hover {
	background: #f5f5f5 !important;
	color: #081c59 !important;
}

/* Focus */
.interface-pinned-items .components-button:has(.srk-il-editor-plugin-icon):focus {
	background: #f5f5f5 !important;
	box-shadow: inset 0 0 0 1px #f28500 !important;
	outline: none !important;
}
/* =========================================================
   Gutenberg — Target Selection Modal Scroll Fix
========================================================= */

/*
 * Keep the target selection modal inside the viewport.
 */
.srk-il-target-modal.components-modal__frame {
	width: 640px;
	max-width: calc(100vw - 40px);
	max-height: calc(100vh - 80px);
	overflow: hidden;
	box-sizing: border-box;
}

/*
 * Modal content itself stays fixed.
 * Only the target-post list should scroll.
 */
.srk-il-target-modal .components-modal__content {
	width: 100%;
	max-width: 100%;
	max-height: calc(100vh - 80px);
	padding: 0;
	overflow: hidden;
	box-sizing: border-box;
}

/*
 * Keep anchor information visible above the list.
 */
.srk-il-target-modal .srk-il-target-modal-note {
	flex: 0 0 auto;
}

/*
 * Show a compact list and allow additional target posts
 * to be reached with vertical scrolling.
 *
 * Around 3 target rows remain visible before scrolling.
 */
.srk-il-target-modal .srk-il-target-option-list {
	margin: 0;
	max-height: 250px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
}

/*
 * Do not allow individual target rows to shrink.
 */
.srk-il-target-modal .srk-il-target-option {
	flex: 0 0 auto;
	box-sizing: border-box;
}

/*
 * Keep Cancel / Confirm Selection permanently visible.
 */
.srk-il-target-modal .srk-il-editor-modal-footer {
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
	margin: 0;
	background: #f8fafc;
	border-top: 1px solid #dcdcde;
}

/* Optional cleaner scrollbar */
.srk-il-target-modal .srk-il-target-option-list::-webkit-scrollbar {
	width: 8px;
}

.srk-il-target-modal .srk-il-target-option-list::-webkit-scrollbar-track {
	background: #f1f5f9;
}

.srk-il-target-modal .srk-il-target-option-list::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 999px;
}

.srk-il-target-modal .srk-il-target-option-list::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}

/* =========================================================
   Gutenberg — Non-Blocking Suggestion / AI Status
========================================================= */

.srk-il-suggestion-status-card {
	margin: 4px 0 16px;
	padding: 14px;
	border: 1px solid #d7dee5;
	border-left: 4px solid #081c59;
	border-radius: 7px;
	background: #f8fafc;
}

.srk-il-suggestion-status-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.srk-il-suggestion-status-header > strong {
	color: #081c59;
	font-size: 13px;
	font-weight: 700;
}

.srk-il-suggestion-status-count {
	color: #646970;
	font-size: 11px;
	font-weight: 600;
}

.srk-il-suggestion-status-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 0;
	border-top: 1px solid #e5e7eb;
	color: #374151;
	font-size: 12px;
}

.srk-il-suggestion-status-row > span {
	font-weight: 600;
}

.srk-il-suggestion-state {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 700;
}

.srk-il-suggestion-state::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #94a3b8;
}

.srk-il-suggestion-state.is-ready {
	color: #166534;
}

.srk-il-suggestion-state.is-ready::before {
	background: #22c55e;
}

.srk-il-suggestion-state.is-processing {
	color: #1d4ed8;
}

.srk-il-suggestion-state.is-processing::before {
	background: #3b82f6;
	animation: srk-il-ai-pulse 1.2s ease-in-out infinite;
}

.srk-il-suggestion-state.is-disabled,
.srk-il-suggestion-state.is-not_processed {
	color: #64748b;
}

.srk-il-suggestion-state.is-stale {
	color: #b45309;
}

.srk-il-suggestion-state.is-stale::before {
	background: #f59e0b;
}

.srk-il-suggestion-state.is-failed {
	color: #b42318;
}

.srk-il-suggestion-state.is-failed::before {
	background: #ef4444;
}

.srk-il-ai-coverage {
	padding-top: 10px;
	border-top: 1px solid #e5e7eb;
}

.srk-il-ai-coverage-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 7px;
	color: #475569;
	font-size: 11px;
}

.srk-il-ai-coverage-heading strong {
	color: #081c59;
}

.srk-il-ai-coverage-track {
	width: 100%;
	height: 5px;
	overflow: hidden;
	border-radius: 999px;
	background: #e2e8f0;
}

.srk-il-ai-coverage-track span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: #f28500;
	transition: width 0.25s ease;
}

.srk-il-suggestion-status-message {
	margin: 11px 0 0;
	color: #475569;
	font-size: 11px;
	line-height: 1.5;
}

.srk-il-ai-settings-link {
	display: inline-block;
	margin-top: 9px;
	color: #081c59;
	font-size: 11px;
	font-weight: 700;
	text-decoration: underline;
}

.srk-il-ai-settings-link:hover,
.srk-il-ai-settings-link:focus {
	color: #f28500;
}

@keyframes srk-il-ai-pulse {
	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.35;
	}
}

/* Responsive */
@media screen and (max-width: 782px) {

	.srk-il-target-modal.components-modal__frame {
		width: calc(100vw - 24px);
		max-width: calc(100vw - 24px);
		max-height: calc(100vh - 40px);
	}

	.srk-il-target-modal .components-modal__content {
		max-height: calc(100vh - 40px);
	}

	.srk-il-target-modal .srk-il-target-option-list {
		max-height: min(250px, calc(100vh - 260px));
	}
}