/**
* String Translation UI polish (Gettext / Emails / Regular / Slugs).
* Shared toolbar styles + Slugs-only extras.
* Brand accent: TranslatePress #3858E9.
*/
/* Always mark the ST canvas when our assets load (JS adds this class). */
.trp-string-translation-inner-container.tpa-seo-st-ui {
	direction: ltr;
}

/* One continuous loading ring, without the SVG's independently moving arcs. */
.tpa-seo-st-ui #trp-table-loader {
	min-height: 64px;
}

.tpa-seo-st-ui #trp-table-loader > .trp-loader {
	display: none;
}

.tpa-seo-st-ui #trp-table-loader::before {
	content: "";
	display: block;
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 28px;
	height: 28px;
	border: 3px solid #e0e6fa;
	border-top-color: #3858e9;
	border-radius: 50%;
	animation: tpa-seo-table-loading .8s linear infinite;
}

@keyframes tpa-seo-table-loading {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tpa-seo-st-ui #trp-table-loader::before {
		animation: none;
	}
}

/* —— Title + Rescan —— */
.trp-string-translation-inner-container.tpa-seo-st-ui .trp-title-rescan {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 14px;
}

.trp-string-translation-inner-container.tpa-seo-st-ui .trp-translation-tab-title-name {
	margin: 0;
	line-height: 1.3;
	color: #1e1e1e;
}

.trp-string-translation-inner-container.tpa-seo-st-ui .trp-rescan-wrap .button {
	height: 34px;
	line-height: 32px;
	padding: 0 14px;
	border-radius: 2px;
	border-color: #3858e9;
	color: #3858e9;
	background: #fff;
}

.trp-string-translation-inner-container.tpa-seo-st-ui .trp-rescan-wrap .button:hover {
	background: #f0f3ff;
	border-color: #2c46c7;
	color: #2c46c7;
}

/* Hide the core upsell even when the optional slug redesign is disabled. */
#trp-editor #trp-upsell-section-container {
	display: none !important;
}

/* —— Filters toolbar (all ST tabs) —— */
.trp-string-translation-inner-container.tpa-seo-st-ui .trp-filters-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0 0 12px;
	background: #fff;
	border: 1px solid #dcdcde;
}

.trp-string-translation-inner-container.tpa-seo-st-ui #trp-filter-translation-status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	width: 100%;
	margin: 0;
	padding: 0 0 10px;
	border-bottom: 1px solid #f0f0f1;
	font-size: 13px;
	color: #3c434a;
}

.trp-string-translation-inner-container.tpa-seo-st-ui .trp-translation-status-checkbox {
	display: inline-flex;
	align-items: center;
	margin: 0;
	line-height: 1.4;
	cursor: pointer;
	user-select: none;
}

.trp-string-translation-inner-container.tpa-seo-st-ui .trp-filter-dropdowns {
	display: flex;
	flex-wrap: wrap;
	min-width: 0;
}

.trp-string-translation-inner-container.tpa-seo-st-ui .trp-filter-dropdowns .trp-filter,
.trp-string-translation-inner-container.tpa-seo-st-ui .trp-filter-dropdowns .trp-tooltip-toggle {
	display: inline-flex;
	align-items: center;
	margin: 0;
}

.trp-string-translation-inner-container.tpa-seo-st-ui .trp-filter-dropdowns .trp-filter-select {
	margin: 0 !important;
	border-color: #949494;
	vertical-align: middle;
}

.trp-string-translation-inner-container.tpa-seo-st-ui #trp-filter-language {
	min-width: 150px;
}

.trp-string-translation-inner-container.tpa-seo-st-ui #trp-filter-domain {
	min-width: 180px;
}

.trp-string-translation-inner-container.tpa-seo-st-ui #trp-filter-type {
	min-width: 130px;
}

.trp-string-translation-inner-container.tpa-seo-st-ui .trp-filter-button,
.trp-string-translation-inner-container.tpa-seo-st-ui .trp-search-box .button,
.trp-string-translation-inner-container.tpa-seo-st-ui .trp-bulk-actions .button {
	height: 34px !important;
	line-height: 32px !important;
	margin: 0 !important;
	padding: 0 14px !important;
	border-radius: 2px !important;
	vertical-align: middle !important;
}

.trp-string-translation-inner-container.tpa-seo-st-ui #trp-clear-filter-button {
	margin-left: 2px;
	white-space: nowrap;
}

/* Search sits on the same toolbar row when space allows */
.trp-string-translation-inner-container.tpa-seo-st-ui .trp-search-box {
	display: flex;
	align-items: center;
	margin: 0;
}

.trp-string-translation-inner-container.tpa-seo-st-ui .trp-search-box #trp-string-search-input {
	flex: 1 1 auto;
	width: auto !important;
	margin: 0 !important;
	border-color: #949494;
}

/* —— Bulk actions row —— */
.trp-string-translation-inner-container.tpa-seo-st-ui .trp-table-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	padding: 8px 0;
}

.trp-string-translation-inner-container.tpa-seo-st-ui .trp-bulk-actions {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.trp-string-translation-inner-container.tpa-seo-st-ui .trp-bulk-actions select {
	min-width: 140px;
	margin: 0;
}

.trp-string-translation-inner-container.tpa-seo-st-ui .trp-pagination {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 1 1 auto;
	gap: 8px;
	margin-left: auto;
}

.trp-string-translation-inner-container.tpa-seo-st-ui .trp-pagination .displaying-num {
	margin-right: 8px;
}

/* Slightly denser rows across ST */
.trp-string-translation-inner-container.tpa-seo-st-ui table.trp-strings-table .alternate,
.trp-string-translation-inner-container.tpa-seo-st-ui table.trp-strings-table.striped > tbody > :nth-child(odd),
.trp-string-translation-inner-container.tpa-seo-st-ui table.trp-strings-table.striped > tbody > :nth-child(even) {
	height: auto !important;
}

.trp-string-translation-inner-container.tpa-seo-st-ui table.trp-strings-table tbody td {
	padding-top: 10px;
	padding-bottom: 10px;
	vertical-align: middle;
}

/* Checked row checkboxes — TranslatePress blue */
.trp-string-translation-inner-container.tpa-seo-st-ui table.trp-strings-table tbody input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	margin: 0;
	border: 1.5px solid #949494;
	border-radius: 2px;
	background: #fff;
	cursor: pointer;
	vertical-align: middle;
	position: relative;
}

.trp-string-translation-inner-container.tpa-seo-st-ui table.trp-strings-table tbody input[type="checkbox"]:hover {
	border-color: #3858e9;
}

.trp-string-translation-inner-container.tpa-seo-st-ui table.trp-strings-table tbody input[type="checkbox"]:checked {
	background: #3858e9;
	border-color: #3858e9;
}

.trp-string-translation-inner-container.tpa-seo-st-ui table.trp-strings-table tbody input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.trp-string-translation-inner-container.tpa-seo-st-ui table.trp-strings-table tbody input[type="checkbox"]:focus-visible {
	outline: 2px solid #3858e9;
	outline-offset: 1px;
}

/* Status filter checkboxes in toolbar */
.trp-string-translation-inner-container.tpa-seo-st-ui #trp-filter-translation-status input[type="checkbox"] {
	accent-color: #3858e9;
}

@media (max-width: 1100px) {
	.trp-string-translation-inner-container.tpa-seo-st-ui .trp-search-box {
		flex: 1 1 100%;
	}
	.trp-string-translation-inner-container.tpa-seo-st-ui .trp-search-box #trp-string-search-input {
		max-width: none;
	}
}

/* =========================================================
* Slugs-only
* ========================================================= */
.trp-string-translation-inner-container.tpa-seo-slugs-screen ul.trp-subnavigation {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin: 0 0 14px;
	padding: 4px;
	list-style: none;
	background: #f0f0f1;
	border-radius: 4px;
}

.trp-string-translation-inner-container.tpa-seo-slugs-screen ul.trp-subnavigation li {
	display: inline-flex;
	align-items: center;
	margin: 0;
	position: relative;
}

.trp-string-translation-inner-container.tpa-seo-slugs-screen ul.trp-subnavigation li > span:not(.trp-tooltip-other-slugs) {
	display: none !important;
}

.trp-string-translation-inner-container.tpa-seo-slugs-screen ul.trp-subnavigation li .trp-tooltip-other-slugs {
	display: inline-block;
	position: absolute;
	inset-inline-start: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	margin: 0;
	z-index: 1;
	color: #50575e;
}

.trp-string-translation-inner-container.tpa-seo-slugs-screen ul.trp-subnavigation .trp-tooltip-other-slugs::before {
	position: static;
	font-size: 14px;
	line-height: 16px;
}

.trp-string-translation-inner-container.tpa-seo-slugs-screen ul.trp-subnavigation li a[href*="/other-slug"] {
	padding-inline-start: 32px;
}

.trp-string-translation-inner-container.tpa-seo-slugs-screen ul.trp-subnavigation li:has(a.trp-subnavigation-active) .trp-tooltip-other-slugs {
	color: #3858e9;
}

.trp-string-translation-inner-container.tpa-seo-slugs-screen ul.trp-subnavigation li a {
	display: inline-block;
	padding: 7px 12px;
	border-radius: 3px;
	color: #50575e;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
}

.trp-string-translation-inner-container.tpa-seo-slugs-screen ul.trp-subnavigation li a:hover {
	background: #fff;
	color: #1e1e1e;
	text-decoration: none;
}

.trp-string-translation-inner-container.tpa-seo-slugs-screen ul.trp-subnavigation li a.trp-subnavigation-active,
.trp-string-translation-inner-container.tpa-seo-slugs-screen ul.trp-subnavigation li a.router-link-active {
	background: #fff;
	color: #3858e9;
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.tpa-seo-slugs-language-hint {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	padding: 8px 12px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 2px;
	color: #50575e;
	font-size: 13px;
	line-height: 1.45;
}

.tpa-seo-slugs-language-hint__body strong {
	color: #1e1e1e;
	font-weight: 600;
}

.tpa-seo-bulk-slugs-btn,
#tpa-seo-bulk-slugs-btn {
	display: none !important;
}

.trp-string-translation-inner-container.tpa-seo-st-ui .tpa-seo-bulk-slugs-btn,
.trp-string-translation-inner-container.tpa-seo-st-ui #tpa-seo-bulk-slugs-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	margin: 0 0 0 4px !important;
	height: 34px !important;
	line-height: 32px !important;
	padding: 0 12px !important;
	vertical-align: middle !important;
	border-radius: 2px !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

.trp-string-translation-inner-container.tpa-seo-slugs-screen table.trp-strings-table {
	table-layout: auto !important;
	width: 100% !important;
	min-width: 0 !important;
}

.trp-string-translation-inner-container.tpa-seo-slugs-screen table.trp-strings-table .trp-tooltip-toggle-table-head {
	visibility: visible !important;
}

.trp-string-translation-inner-container.tpa-seo-slugs-screen table.trp-strings-table thead th,
.trp-string-translation-inner-container.tpa-seo-slugs-screen table.trp-strings-table tfoot th,
.trp-string-translation-inner-container.tpa-seo-slugs-screen table.trp-strings-table tbody td {
	text-align: left !important;
}

.trp-string-translation-inner-container.tpa-seo-slugs-screen table.trp-strings-table tbody td:first-child,
.trp-string-translation-inner-container.tpa-seo-slugs-screen table.trp-strings-table .trp-check-column {
	width: 36px !important;
	max-width: 40px !important;
	text-align: center !important;
}

.trp-string-translation-inner-container.tpa-seo-slugs-screen table.trp-strings-table #trp-column-original,
.trp-string-translation-inner-container.tpa-seo-slugs-screen table.trp-strings-table .trp-table-data-original,
.trp-string-translation-inner-container.tpa-seo-slugs-screen table.trp-strings-table th.trp-fixed-columns#trp-column-original {
	/* Absorb remaining space when translation/status columns are absent. */
	width: auto !important;
	min-width: 160px !important;
	max-width: none !important;
	text-align: left !important;
}

.trp-string-translation-inner-container.tpa-seo-slugs-screen table.trp-strings-table .trp-table-data-original a span {
	font-family: Consolas, Monaco, "Courier New", monospace;
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #3858e9 !important;
	text-transform: none !important;
}

.trp-string-translation-inner-container.tpa-seo-slugs-pending-language .trp-filter-select#trp-filter-language {
	border-color: #3858e9;
	box-shadow: 0 0 0 1px #3858e9;
}

/* Notice modal (replaces window.alert) — OK button centered */
.tpa-seo-already-translated .tpa-seo-success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #dcfce7;
	color: #16a34a;
}

/* Bulk progress modal enhancements: selected count above table & Completed status badge */
/* Sidebar empty state when no slug or string is selected for editing */
.tpa-seo-sidebar-empty-state {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 56px 20px 24px;
	width: 100%;
	box-sizing: border-box;
}

.tpa-seo-sidebar-empty-icon {
	width: 58px;
	height: 58px;
	border-radius: 14px;
	background: #eff6ff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 18px;
	box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}

.tpa-seo-sidebar-empty-icon svg {
	width: 30px;
	height: 30px;
	stroke: #2563eb;
	stroke-width: 2.2;
}

.tpa-seo-sidebar-empty-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: #0f172a;
	margin: 0 0 8px;
	text-align: center;
}

.tpa-seo-sidebar-empty-desc {
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.5;
	color: #64748b;
	margin: 0 auto;
	text-align: center;
	max-width: 230px;
}

/* ==========================================================================
Inactive URL Slug Translation Screen (Matching Image 2)
========================================================================== */
/* Reset TranslatePress default upsell containers so our custom UI renders cleanly */
.trp-string-translation-inner-container.tpa-seo-inactive-slugs-screen {
	box-sizing: border-box;
	min-width: 0;
	padding: 28px;
}

#trp-preview:has(.tpa-seo-inactive-slugs-screen) {
	min-width: 0;
}

.tpa-seo-inactive-slugs-screen .trp-translation-tab-title-name {
	margin: 0 0 28px;
	font-size: 26px;
	font-weight: 700;
	color: #0f172a;
}

.tpa-seo-inactive-slugs-screen .tpa-seo-slugs-inactive-wrapper {
	padding-inline: 0;
}

.trp-text-and-image-upsale-slugs {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
}

.trp-text-and-image-upsale-slugs .trp-image-upsale-slugs,
.trp-text-and-image-upsale-slugs .trp-text-upsale-slugs:not(:has(.tpa-seo-slugs-inactive-card)) {
	display: none !important;
}

.tpa-seo-slugs-inactive-wrapper {
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	padding: 24px 28px 48px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.tpa-seo-slugs-inactive-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 6px 16px -2px rgba(0, 0, 0, 0.03);
	padding: 48px 32px 44px;
	max-width: 680px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	box-sizing: border-box;
}

.tpa-seo-slugs-inactive-icon-wrap {
	width: 64px;
	height: 64px;
	border-radius: 16px;
	background: #eff6ff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 22px;
	box-shadow: 0 1px 2px rgba(37, 99, 235, 0.06);
}

.tpa-seo-slugs-inactive-icon {
	width: 30px;
	height: 30px;
	stroke: #2563eb;
	stroke-width: 2.2;
	fill: none;
}

.tpa-seo-slugs-card-heading {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: #0f172a;
	margin: 0 0 8px 0;
	letter-spacing: -0.01em;
}

.tpa-seo-slugs-card-desc {
	min-height: 3em;
	font-size: 14.5px;
	font-weight: 400;
	line-height: 1.5;
	color: #64748b;
	margin: 0 0 24px 0;
	max-width: 520px;
}

.tpa-seo-slugs-inactive-path {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px 24px;
	margin: 0 auto 26px auto;
	font-size: 13px;
	font-family: inherit;
	color: #475569;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	max-width: 100%;
	word-break: break-word;
	line-height: 1.5;
}

.tpa-seo-slugs-inactive-btn {
	min-height: 44px;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #1d68f0 !important;
	color: #ffffff !important;
	font-size: 14.5px !important;
	font-weight: 600 !important;
	padding: 11px 26px !important;
	border-radius: 8px !important;
	text-decoration: none !important;
	border: none !important;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
	cursor: pointer !important;
	transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease !important;
	line-height: 1.4 !important;
}

.tpa-seo-slugs-inactive-btn:hover,
.tpa-seo-slugs-inactive-btn:focus {
	background: #1d4ed8 !important;
	color: #ffffff !important;
	text-decoration: none !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px -1px rgba(37, 99, 235, 0.25) !important;
}

.tpa-seo-slugs-inactive-btn:active {
	transform: translateY(0);
}

.tpa-seo-slugs-inactive-btn-arrow {
	font-size: 16px;
	line-height: 1;
	display: inline-block;
	transition: transform 0.15s ease;
}

.tpa-seo-slugs-inactive-btn:hover .tpa-seo-slugs-inactive-btn-arrow {
	transform: translateX(2px);
}

@media (max-width: 640px) {
	.trp-string-translation-inner-container.tpa-seo-inactive-slugs-screen {
		padding: 20px 16px;
	}
	.tpa-seo-slugs-inactive-wrapper {
		padding: 16px 0 32px;
	}
	.tpa-seo-slugs-inactive-card {
		padding: 32px 20px;
	}
	.tpa-seo-slugs-inactive-path {
		font-size: 12px;
		padding: 10px 16px;
	}
}

/* Reference-inspired editor layout. Scoped to autoTP's string editor. */
/* Avoid showing native controls before their combined-action layout is ready. */
.tpa-seo-redesign-enabled .trp-string-translation-inner-container:not(.tpa-seo-st-ui) .trp-filters-container {
	visibility: hidden;
}

.tpa-seo-st-ui .trp-filter-dropdowns .trp-tooltip-toggle-filter-button,
.tpa-seo-st-ui .trp-filter-dropdowns .trp-tooltip-toggle-clear-filters {
	display: none !important;
}

.tpa-seo-st-ui .tpa-seo-clear-filters-button {
	flex: 0 0 auto;
	min-height: 40px;
	padding: 0 6px;
	border: 0;
	background: transparent;
	color: #3858e9;
	font: inherit;
	font-size: 13px;
	text-decoration: underline;
	white-space: nowrap;
	cursor: pointer;
}

.tpa-seo-st-ui .tpa-seo-clear-filters-button:disabled {
	color: #647089;
	opacity: .6;
	cursor: default;
}

.tpa-seo-st-ui.trp-string-translation-inner-container .trp-search-box .trp-filter-button {
	background: #3858e9 !important;
	color: #fff !important;
}

.tpa-seo-st-ui.trp-string-translation-inner-container .trp-search-box .trp-filter-button:hover {
	background: #2c46c7 !important;
}

#trp-editor.tpa-seo-editor-ui {
	--tpa-accent: #3858e9;
	--tpa-ink: #17213b;
	--tpa-muted: #647089;
	--tpa-border: #dce2ec;
	--tpa-soft: #f6f8fc;
	color: var(--tpa-ink);
}

.tpa-seo-st-ui.trp-string-translation-inner-container {
	padding: 28px 30px;
	background: var(--tpa-soft);
}

.tpa-seo-st-ui.trp-string-translation-inner-container .trp-title-rescan {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 6px 20px;
	margin-bottom: 24px;
}

.tpa-seo-st-ui.trp-string-translation-inner-container .trp-translation-tab-title-name {
	color: var(--tpa-ink);
	font-size: 25px;
	font-weight: 650;
	letter-spacing: -.4px;
}

.tpa-seo-editor-description {
	grid-column: 1;
	grid-row: 2;
	margin: 0;
	color: var(--tpa-muted);
	font-size: 14px;
	line-height: 1.6;
}

.tpa-seo-st-ui .trp-rescan-wrap {
	grid-column: 2;
	grid-row: 1 / 3;
}

.tpa-seo-st-ui.trp-string-translation-inner-container .trp-filters-container {
	padding: 20px;
	gap: 18px;
	border: 1px solid var(--tpa-border);
	border-radius: 9px;
	box-shadow: 0 2px 8px #17213b04;
}

.tpa-seo-st-ui.trp-string-translation-inner-container #trp-filter-translation-status {
	gap: 12px 24px;
	padding-bottom: 16px;
	border-color: #edf0f6;
}

.tpa-seo-st-ui.trp-string-translation-inner-container .trp-translation-status-checkbox {
	gap: 8px;
	font-size: 13px;
	color: #46516b;
}

.tpa-seo-st-ui.trp-string-translation-inner-container .trp-filter-dropdowns {
	flex: 1 1 240px;
	align-self: flex-end;
	align-items: flex-end;
	gap: 12px;
}

.tpa-seo-st-ui.trp-string-translation-inner-container .trp-filter-dropdowns > .trp-filter {
	display: flex;
	flex: 1 1 160px;
	flex-direction: column;
	align-items: stretch;
	gap: 7px;
	max-width: 300px;
}

.tpa-seo-filter-label {
	font-size: 12px;
	font-weight: 600;
	color: #46516b;
}

.tpa-seo-st-ui.trp-string-translation-inner-container .trp-filter-dropdowns .trp-filter-select {
	width: 100%;
	min-width: 0 !important;
	height: 40px !important;
	border: 1px solid #c4ccda;
	border-radius: 5px;
	padding-inline-start: 12px;
	font-size: 13px;
	background-color: #fff;
}

.tpa-seo-st-ui.trp-string-translation-inner-container .trp-search-box {
	flex: 2 1 420px;
	align-self: flex-end;
	min-width: 0;
	gap: 10px;
}

.tpa-seo-st-ui.trp-string-translation-inner-container .trp-search-box #trp-string-search-input {
	max-width: 600px;
	min-width: 0;
	height: 40px !important;
	padding: 0 12px;
	border: 1px solid #c4ccda;
	border-radius: 5px;
	font-size: 13px;
	background: #fff;
}

.tpa-seo-st-ui.trp-string-translation-inner-container .trp-filter-button,
.tpa-seo-st-ui.trp-string-translation-inner-container .trp-search-box .button,
.tpa-seo-st-ui.trp-string-translation-inner-container .trp-bulk-actions .button,
.tpa-seo-st-ui.trp-string-translation-inner-container .trp-rescan-wrap .button {
	height: 40px !important;
	line-height: 38px !important;
	padding: 0 16px !important;
	border-radius: 5px !important;
	border-color: var(--tpa-accent);
	color: var(--tpa-accent);
	background: #fff;
}

.tpa-seo-st-ui.trp-string-translation-inner-container #trp-clear-filter-button {
	line-height: 40px;
	color: var(--tpa-muted);
}

.tpa-seo-st-ui.trp-string-translation-inner-container .trp-table-actions {
	gap: 12px;
	margin: 12px 0;
}

.tpa-seo-st-ui .trp-table-actions > br.clear {
	display: none;
}

.tpa-seo-st-ui.trp-string-translation-inner-container .trp-bulk-actions select {
	height: 40px;
	border: 1px solid #c4ccda;
	border-radius: 5px;
}

.tpa-seo-st-ui.trp-string-translation-inner-container .trp-pagination {
	color: var(--tpa-muted);
	font-size: 13px;
}

/* Keep pagination controls evenly spaced in both table toolbars. */
.tpa-seo-st-ui .pagination-links {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
}

/* The input and total share a tooltip wrapper, which needs its own gap.
Core sets tooltip display with !important, so match it on this wrapper only. */
.tpa-seo-st-ui .trp-pagination .pagination-links > .trp-tooltip-toggle-pagination {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.tpa-seo-st-ui .pagination-links .paging-input {
	display: inline-flex;
	align-items: center;
}

.tpa-seo-st-ui .pagination-links .tablenav-paging-text {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.tpa-seo-st-ui .pagination-links .current-page {
	margin: 0;
}

.tpa-seo-st-ui .pagination-links > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 38px;
	border: 1px solid var(--tpa-border);
	border-radius: 5px;
	background: #fff;
}

.tpa-seo-st-ui .pagination-links > a.disabled {
	opacity: .45;
}

.tpa-seo-st-ui .pagination-links svg {
	width: 22px;
	height: 22px;
	fill: var(--tpa-accent);
}

.tpa-seo-st-ui .pagination-links .current-page {
	height: 38px;
	border: 1px solid #c4ccda;
	border-radius: 5px;
	text-align: center;
}

.tpa-seo-st-ui table.trp-strings-table {
	border: 1px solid var(--tpa-border);
	border-spacing: 0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 6px #17213b04;
}

.tpa-seo-st-ui.trp-string-translation-inner-container table.trp-strings-table :is(th, td) {
	padding: 15px 16px;
	border-color: #e9edf4;
	vertical-align: middle;
	font-size: 13px;
	line-height: 1.5;
}

.tpa-seo-st-ui table.trp-strings-table thead th,
.tpa-seo-st-ui table.trp-strings-table tfoot th {
	background: #fff;
	color: #46516b;
}

.tpa-seo-st-ui table.trp-strings-table th :is(span, a) {
	text-transform: none !important;
	font-size: 13px !important;
}

.tpa-seo-st-ui table.trp-strings-table tbody > tr:nth-child(odd) {
	background: #f8fafd !important;
}

.tpa-seo-st-ui table.trp-strings-table tbody > tr:nth-child(even) {
	background: #fff !important;
}

.tpa-seo-st-ui table.trp-strings-table tbody > tr:hover {
	background: #f0f4ff !important;
}

.tpa-seo-st-ui table.trp-strings-table tbody > tr:has(input:checked) {
	background: #edf2ff !important;
}

.tpa-seo-st-ui table.trp-strings-table .trp-table-data-domain div {
	font-size: 13px;
	text-transform: none;
	color: var(--tpa-muted);
}

.tpa-seo-st-ui table.trp-strings-table .trp-table-data-original {
	overflow-wrap: anywhere;
}

.tpa-seo-st-ui table.trp-strings-table .trp-table-data-translated {
	overflow-wrap: anywhere;
}

.tpa-seo-st-ui table.trp-strings-table tbody td[colspan] {
	text-align: center !important;
	color: #64748b;
	font-size: 14px;
	line-height: 1.6;
}

.tpa-seo-st-ui table.trp-strings-table tbody td:has(#trp-table-loader) {
	padding: 15px 16px !important;
}

.tpa-seo-st-ui .trp-language-translation-status-item > span {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
}

.tpa-seo-st-ui .trp-human-reviewed-green,
.tpa-seo-st-ui .tpa-seo-manual-status {
	background: #dcf8e5;
	color: #166534;
}

.tpa-seo-st-ui .trp-automatic-translated-blue,
.tpa-seo-st-ui .tpa-seo-automatic-status {
	background: #e7eeff;
	color: #274cb8;
}

.tpa-seo-st-ui .trp-language-file-purple,
.tpa-seo-st-ui .tpa-seo-file-status {
	background: #f0e4ff;
	color: #7835b8;
}

.tpa-seo-st-ui .trp-untranslated-red,
.tpa-seo-st-ui .tpa-seo-untranslated-status {
	background: #fef2f2;
	color: #b91c1c;
}

/* Sidebar: preserve the original controls and Vue event handlers. */
.tpa-seo-editor-ui #trp-controls {
	border-color: var(--tpa-border);
}

.tpa-seo-editor-ui #trp-close-save {
	border-color: var(--tpa-border);
}

.tpa-seo-editor-ui #trp-editors-tab-table {
	border-bottom: 1px solid var(--tpa-border);
}

.tpa-seo-editor-ui .trp-editors-tab {
	padding: 16px 6px;
	background: #fff;
}

.tpa-seo-editor-ui .trp-editors-tab a {
	font-size: 13px;
	font-weight: 600;
	color: var(--tpa-ink);
}

.tpa-seo-editor-ui .trp-selected-tab {
	border-bottom: 3px solid var(--tpa-accent);
}

.tpa-seo-editor-ui .trp-selected-tab a {
	color: var(--tpa-accent);
}

.tpa-seo-editor-ui #trp-controls-section-first {
	height: auto !important;
	padding: 0;
}

.tpa-seo-editor-ui #trp-controls-section-content-string-translation {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 18px;
}

.tpa-seo-sidebar-heading {
	flex: 1;
	margin: 0;
	font-size: 17px;
	font-weight: 650;
	line-height: 1.4;
	color: var(--tpa-ink);
	text-align: start;
	padding-inline: 0 80px;
}

.tpa-seo-editor-ui #trp-next-previous {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	margin: 0 !important;
	align-items: center;
	line-height: 1;
}

.tpa-seo-editor-ui #trp-next-previous .trp-button-container,
.tpa-seo-editor-ui #trp-next-previous .trp-tooltip-toggle {
	display: flex !important;
	align-items: center;
}

.tpa-seo-editor-ui #trp-next-previous .trp-next-previous-buttons,
.tpa-seo-editor-ui #trp-next-previous .trp-next-previous-buttons span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.tpa-seo-editor-ui #trp-next-previous svg {
	display: block;
}

.trp-rtl.tpa-seo-editor-ui #trp-next-previous,
.tpa-seo-editor-ui.trp-rtl #trp-next-previous {
	right: auto;
	left: 18px;
}

.tpa-seo-editor-ui #trp-translation-section {
	padding: 20px 18px;
}

.tpa-seo-editor-ui #trp-translation-section .trp-language-container {
	padding: 0 0 20px;
	border-bottom: 1px solid #edf0f6;
}

.tpa-seo-language-caption {
	margin-bottom: 9px;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: .7px;
	text-transform: uppercase;
	color: var(--tpa-muted);
}

.tpa-seo-editor-ui .trp-language-name {
	color: var(--tpa-ink);
	font-size: 14px;
	padding-bottom: 10px;
}

.tpa-seo-editor-ui #trp-translation-section .trp-translation-input {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 11px 12px;
	border: 1px solid #c4ccda;
	border-radius: 5px;
	background: #fff;
	font-size: 14px;
	line-height: 1.5;
	color: var(--tpa-ink);
}

.tpa-seo-editor-ui #trp-translation-section .trp-translation-input[readonly] {
	background: #f3f5f8;
	border-color: var(--tpa-border);
}

.tpa-seo-editor-ui #trp-translation-section .trp-highlight-unsaved-changes .trp-translation-input {
	border-color: #b78114;
	background: #fffdf5;
}

.tpa-seo-editor-ui .trp-toggle-languages.button {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	height: auto;
	border: 1px solid #dce5fa;
	border-radius: 6px;
	background: #f1f5ff;
	color: var(--tpa-ink);
	text-align: start;
}

.tpa-seo-slug-help {
	margin: 8px 0 0;
	color: var(--tpa-muted);
	font-size: 11px;
	line-height: 1.6;
}

.tpa-seo-editor-ui .trp-translation-input-footer {
	padding-top: 7px;
	color: var(--tpa-muted);
}

.tpa-seo-editor-ui #trp-save {
	border-radius: 5px;
	box-shadow: none;
}

.tpa-seo-editor-ui :is(button, a, select, input, textarea):focus-visible {
	outline: 2px solid var(--tpa-accent);
	outline-offset: 2px;
}

@media (max-width: 1100px) {
	.tpa-seo-st-ui.trp-string-translation-inner-container {
		padding: 22px 20px;
	}
	.tpa-seo-st-ui.trp-string-translation-inner-container .trp-filter-dropdowns > .trp-filter {
		flex-basis: 140px;
	}
}

@media (max-width: 760px) {
	.tpa-seo-st-ui.trp-string-translation-inner-container .trp-title-rescan {
		grid-template-columns: 1fr;
	}
	.tpa-seo-st-ui .trp-rescan-wrap {
		grid-column: 1;
		grid-row: 3;
	}
	.tpa-seo-st-ui.trp-string-translation-inner-container .trp-pagination {
		flex-basis: 100%;
		justify-content: flex-start;
	}
}

/* Keep wide string content inside the table, including at laptop widths. */
.tpa-seo-editor-ui #trp-preview {
	min-width: 0;
}

.tpa-seo-st-ui.trp-string-translation-inner-container {
	min-width: 0;
}

.tpa-seo-st-ui #trp-string-tables-container {
	overflow-x: auto;
}

.tpa-seo-st-ui.trp-string-translation-inner-container table.trp-strings-table {
	width: 100% !important;
	min-width: 640px !important;
}

.tpa-seo-st-ui table.trp-strings-table .trp-tooltip-toggle-table-head {
	visibility: visible !important;
}

.tpa-seo-st-ui table.trp-strings-table :is(th, td):first-child,
.tpa-seo-st-ui table.trp-strings-table .trp-check-column {
	width: 38px !important;
	max-width: 38px !important;
	padding-inline: 10px !important;
}

.tpa-seo-st-ui table.trp-strings-table #trp-column-id,
.tpa-seo-st-ui table.trp-strings-table td.trp-table-data-id {
	width: 60px !important;
	max-width: 75px !important;
}

.tpa-seo-st-ui table.trp-strings-table.tpa-seo-empty-post-id th#trp-column-id,
.tpa-seo-st-ui table.trp-strings-table.tpa-seo-empty-post-id td.trp-table-data-id {
	display: none !important;
}

.tpa-seo-st-ui table.trp-strings-table #trp-column-original {
	min-width: 0 !important;
}

.tpa-seo-st-ui table.trp-strings-table #trp-column-translated,
.tpa-seo-st-ui table.trp-strings-table td.trp-table-data-translated {
	width: 32%;
}

.tpa-seo-st-ui table.trp-strings-table #trp-column-domain,
.tpa-seo-st-ui table.trp-strings-table td.trp-table-data-domain {
	width: 15%;
}

.tpa-seo-st-ui table.trp-strings-table th.trp-translation-status-column,
.tpa-seo-st-ui table.trp-strings-table td.trp-translation-status-entry-wrapper {
	width: 18%;
}

.tpa-seo-st-ui table.trp-strings-table .trp-language-translation-status-item {
	white-space: normal;
}

.trp-string-translation-inner-container.tpa-seo-st-ui table.trp-strings-table th.trp-translation-status-column,
.trp-string-translation-inner-container.tpa-seo-st-ui table.trp-strings-table td.trp-translation-status-entry-wrapper {
	text-align: center !important;
}

.tpa-seo-st-ui table.trp-strings-table .trp-language-translation-status {
	padding-inline: 0;
}

.tpa-seo-st-ui table.trp-strings-table :is(th, td) {
	overflow-wrap: anywhere;
}

.tpa-seo-st-ui .trp-filter-dropdowns > .trp-tooltip-toggle-clear-filters {
	flex: 0 0 auto;
}

.tpa-seo-editor-ui #trp-controls-section-content-string-translation {
	box-sizing: border-box;
	width: 100%;
}

.tpa-seo-editor-ui #trp-translation-section .trp-language-container {
	margin-bottom: 16px;
	padding-bottom: 16px;
}

.tpa-seo-editor-ui #trp-translation-section .trp-translation-input-footer {
	min-height: 0;
	padding-bottom: 0;
}

.tpa-seo-editor-ui.tpa-seo-slug-editor #trp-translation-section .trp-translation-memory-wrap {
	display: none;
}

.tpa-seo-editor-ui.tpa-seo-slug-editor #trp-translation-section .trp-attribute-name {
	display: none;
}

.tpa-seo-editor-ui #trp-translation-section .trp-language-name > span:first-child {
	color: var(--tpa-muted);
	font-weight: 400;
}

/* Tablet/phone: use the full viewport for each part of the editor. */
.tpa-seo-editor-ui .tpa-seo-back-to-strings {
	display: none;
}

@media (max-width: 900px) {
	#trp-editor.tpa-seo-editor-ui {
		flex-direction: column;
		overflow-y: auto;
		overflow-x: hidden;
	}
	.tpa-seo-editor-ui #trp-preview {
		order: 1;
		flex: 0 0 auto;
		width: 100%;
		height: auto;
		overflow: visible;
	}
	.tpa-seo-editor-ui #trp-controls {
		order: 2;
		flex: 0 0 auto;
		width: 100%;
		min-width: 0;
		height: auto;
		border: 0;
		border-top: 1px solid var(--tpa-border);
	}
	.tpa-seo-editor-ui #trp-controls-container-string-translation {
		height: auto !important;
		overflow: visible;
	}
	.tpa-seo-editor-ui #trp-close-save {
		width: 100%;
	}
	.tpa-seo-editor-ui #trp-controls-section-content-string-translation {
		flex-wrap: wrap;
	}
	.tpa-seo-editor-ui #trp-next-previous {
		position: static;
		top: auto;
		transform: none;
		margin-inline-start: auto;
	}
	.tpa-seo-sidebar-heading {
		padding: 0;
	}
	.tpa-seo-editor-ui .tpa-seo-back-to-strings {
		display: block;
		flex-basis: 100%;
		min-height: 44px;
		margin-top: 8px;
		border-radius: 5px;
	}
	.tpa-seo-editor-ui #trp-translation-section {
		max-width: 640px;
		margin-inline: auto;
		box-sizing: border-box;
	}
	.tpa-seo-st-ui.trp-string-translation-inner-container {
		padding: 20px 16px;
		box-sizing: border-box;
	}
	.tpa-seo-st-ui.trp-string-translation-inner-container .trp-translation-tab-title-name {
		font-size: 22px;
	}
	.tpa-seo-st-ui.trp-string-translation-inner-container .trp-pagination {
		flex-basis: 100%;
		justify-content: flex-start;
	}
	.tpa-seo-st-ui .trp-table-actions {
		max-width: 100%;
	}
	.tpa-seo-st-ui.trp-string-translation-inner-container .trp-bulk-actions {
		min-width: 0;
	}
}

@media (max-width: 480px) {
	.tpa-seo-st-ui.trp-string-translation-inner-container {
		padding: 18px 12px;
	}
	.tpa-seo-st-ui.trp-string-translation-inner-container .trp-filters-container {
		padding: 14px;
		gap: 16px;
	}
	.tpa-seo-st-ui.trp-string-translation-inner-container .trp-filter-dropdowns > .trp-filter {
		flex-basis: 100%;
		max-width: none;
	}
	.tpa-seo-st-ui.trp-string-translation-inner-container .trp-search-box {
		flex-wrap: wrap;
	}
	.tpa-seo-st-ui.trp-string-translation-inner-container .trp-search-box #trp-string-search-input {
		flex-basis: 100%;
	}
	.tpa-seo-st-ui.trp-string-translation-inner-container .trp-filter-dropdowns .trp-filter-select,
	.tpa-seo-st-ui.trp-string-translation-inner-container .trp-search-box #trp-string-search-input {
		height: 44px !important;
		font-size: 16px;
	}
	.tpa-seo-st-ui.trp-string-translation-inner-container .trp-filter-button,
	.tpa-seo-st-ui.trp-string-translation-inner-container .trp-search-box .button,
	.tpa-seo-st-ui.trp-string-translation-inner-container .trp-bulk-actions .button {
		height: 44px !important;
		line-height: 42px !important;
	}
	.tpa-seo-editor-ui #trp-translation-section .trp-translation-input {
		font-size: 16px;
	}
}

@media (max-width: 900px) {
	.tpa-seo-editor-ui #trp-preview .navigation-tab-wrapper {
		display: flex;
		flex-wrap: wrap;
		height: auto;
		min-height: 60px;
		box-sizing: border-box;
	}
	.tpa-seo-editor-ui #trp-preview .navigation-tab-wrapper .navigation-tab {
		flex: 1 1 auto;
		float: none;
		min-width: 0;
		margin: 0;
		padding: 18px 12px;
		box-sizing: border-box;
		text-align: center;
	}
}

/* WordPress list-table mobile rules must not split translation columns. */
@media (max-width: 900px) {
	.tpa-seo-st-ui table.trp-strings-table thead {
		display: table-header-group;
	}
	.tpa-seo-st-ui table.trp-strings-table tfoot {
		display: table-footer-group;
	}
	.tpa-seo-st-ui table.trp-strings-table tbody {
		display: table-row-group;
	}
	.tpa-seo-st-ui table.trp-strings-table tr {
		display: table-row;
	}
	.tpa-seo-st-ui table.trp-strings-table :is(th, td) {
		display: table-cell !important;
	}
	.tpa-seo-st-ui table.trp-strings-table tbody td {
		padding: 15px 16px !important;
	}
	.tpa-seo-st-ui table.trp-strings-table tbody td::before {
		display: none !important;
	}
}

@media (max-width: 900px) {
	.tpa-seo-editor-ui #trp-controls-section-first {
		height: auto !important;
	}
}

/* Free keeps AI bulk translation as a Pro upgrade link. */
.trp-bulk-actions .tpa-string-editor-upgrade-button {
	display: inline-flex;
	align-items: center;
	margin-inline-start: 8px;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 5px;
	background: #3858e9 !important;
	color: #fff !important;
	border: 1px solid #3858e9 !important;
	text-decoration: none !important;
	white-space: nowrap !important;
}

.trp-bulk-actions .tpa-string-editor-upgrade-button:hover {
	background: #2c46c7 !important;
	color: #fff !important;
}
