.wpr-translate-admin {
    box-sizing: border-box;
    overflow-x: hidden;
}

.wpr-translate-admin .wpr-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.wpr-translate-admin .wpr-card h2 {
    margin-top: 0;
}

/* Quick setup overview card */
.wpr-translate-admin .wpr-overview-steps {
    max-width: 1120px;
    border: 1px solid #d8e2ec;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.wpr-translate-admin .wpr-overview-steps-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 24px 22px;
    background: linear-gradient(180deg, #eaf4ff 0%, #f4f9ff 100%);
}

.wpr-translate-admin .wpr-overview-steps-header-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
}

.wpr-translate-admin .wpr-overview-steps-header-icon img,
.wpr-translate-admin .wpr-overview-step-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.wpr-translate-admin .wpr-overview-steps-title {
    margin: 0;
    font-size: 29px;
    line-height: 1.2;
    font-weight: 400;
    color: #152435;
}

.wpr-translate-admin .wpr-overview-steps-subtitle {
    margin-top: 6px;
    font-size: 16px;
    line-height: 1.5;
    color: #344659;
}

.wpr-translate-admin .wpr-overview-steps-list {
    background: #fff;
}

.wpr-translate-admin .wpr-overview-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 16px 16px 12px;
    border-top: 1px solid #e6edf3;
}

.wpr-translate-admin .wpr-overview-step-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

.wpr-translate-admin .wpr-overview-step-icon {
    width: 35px;
    height: 35px;
    flex: 0 0 44px;
}

.wpr-translate-admin .wpr-overview-step-content {
    min-width: 0;
}

.wpr-translate-admin .wpr-overview-step-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    color: #243447;
}

.wpr-translate-admin .wpr-overview-step-text strong {
    font-weight: 400;
}

.wpr-translate-admin .wpr-overview-step-links {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wpr-translate-admin .wpr-overview-step-links a {
    color: #1d5f9b;
    font-size: 14px;
    text-decoration: none;
    padding: 7px 10px;
}

.wpr-translate-admin .wpr-overview-step-actions {
    flex: 0 0 auto;
}

.wpr-translate-admin .wpr-overview-step-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 6px;
    background: #e8f1fb;
    color: #1d5f9b;
    font-size: 17px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.wpr-translate-admin .wpr-overview-step-action:hover,
.wpr-translate-admin .wpr-overview-step-action:focus {
    background: #dcecfb;
    color: #184f82;
}

@media (max-width: 1100px) {
    .wpr-translate-admin .wpr-overview-step {
        flex-direction: column;
        align-items: flex-start;
    }

    .wpr-translate-admin .wpr-overview-step-actions {
        padding-left: 58px;
    }
}

.wpr-language-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.wpr-language-column-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wpr-language-column-flag {
    width: 18px;
    height: 14px;
    line-height: 0;
    flex: 0 0 auto;
}

.wpr-language-column-flag img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    object-fit: cover;
}

.wpr-language-column-label {
    font-size: 13px;
    color: #23282d;
}

/* Keep the language column compact and allow translations to breathe like core columns. */


/* Dashboard summary */
.wpr-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.wpr-stat-item {
    flex: 1 1 160px;
    background: #f6f7f7;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wpr-stat-label {
    font-weight: 600;
    color: #1d2327;
}

.wpr-stat-value {
    font-size: 20px;
    font-weight: 700;
}

.wpr-language-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpr-language-summary-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    background: #fff;
}

.wpr-language-summary-head {
    background: #f6f7f7;
    font-weight: 600;
}

.wpr-language-summary-cell {
    flex: 1 1 120px;
}

.wpr-language-summary-cell.wpr-summary-default,
.wpr-language-summary-cell.wpr-summary-status {
    flex: 0 0 100px;
    text-align: center;
}

/* Languages manager */
.wpr-languages-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-x: hidden;
    padding-bottom: 4px;
    max-width: 100%;
}

.wpr-languages-header {
    background: #f6f7f7;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    padding: 12px;
    font-weight: 600;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.wpr-languages-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpr-languages-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 12px;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    background: #fff;
    align-items: center;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.wpr-languages-body .wpr-languages-row:nth-child(even),
.wpr-glossary-row:nth-child(even),
.wpr-taxonomy-table .wpr-taxonomy-row:nth-child(even),
.wpr-strings-row:nth-child(odd) {
    background: #f6f7f7;
}

.wpr-strings-row:nth-child(even) {
    background: #fff;
}

.wpr-languages-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 140px;
    min-width: 0;
    justify-content: center;
}

.wpr-language-order {
    flex: 0 0 60px;
    align-items: center;
    justify-content: center;
}

.wpr-language-default,
.wpr-language-enabled,
.wpr-language-visible {
    flex: 0 0 80px;
    align-items: center;
    justify-content: center;
}

.wpr-languages-row .wpr-sort-handle {
    cursor: move;
    color: #6c7781;
}

.wpr-language-code-field {
    display: flex;
    align-items: center;
}

.wpr-language-code-input {
    width: 90px;
}

.wpr-language-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpr-language-name-row .regular-text {
    flex: 1;
    min-width: 0;
}

.wpr-language-code-text {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 5px 12px;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    background-color: var(--wpresidence-white);
    color: var(--wpresidece-text-primary);
    font-size: 14px;
    line-height: 2;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
}

.wpr-language-locale input {
    width: 75px !important;
    max-width: 75px;
}

.wpr-col-order,
.wpr-language-order {
    flex: 0 0 60px;
}

.wpr-col-name,
.wpr-language-name {
    flex: 1 1 220px;
}

.wpr-col-locale,
.wpr-language-locale {
    flex: 0 0 75px;
    width: 75px;
}

.wpr-col-slug,
.wpr-language-slug {
    flex: 0 0 75px;
    width: 75px;
}

.wpr-col-flag,
.wpr-language-flag {
    flex: 0 0 140px;
}

.wpr-language-flag-select {
    width: 100%;
}

.wpr-language-default-radio,
.wpr-language-enabled input[type="checkbox"] {
    margin-top: 0;
}

.wpr-col-default,
.wpr-language-default,
.wpr-col-enabled,
.wpr-language-enabled,
.wpr-col-visible,
.wpr-language-visible {
    flex: 0 0 90px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.wpr-languages-grid .regular-text {
    width: 100%;
    max-width: 100%;
}

.wpr-col-actions,
.wpr-language-actions {
    flex: 0 0 60px;
    align-items: center;
}

/* Post editor auto-translate controls */
.wpr-translate-auto-translate-button {
    background-color: #46b450;
    border-color: #46b450;
    color: #fff;
}

.wpr-translate-auto-translate-message {
    font-size: 13px;
    color: #50575e;
}

/* Post editor language badge */
.wpr-editor-language-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    background: #f6f7f7;
    color: #1d2327;
    font-size: 12px;
    font-weight: 600;
}

.wpr-editor-language-flag {
    width: 18px;
    height: 14px;
    border-radius: 2px;
    background-color: #e2e4e7;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.wpr-editor-language-flag.wpr-editor-language-flag--empty {
    background-image: none;
}

.wpr-editor-language-label {
    display: flex;
    align-items: center;
    line-height: 1;
}

.wpr-language-code-input.wpr-has-error {
    border-color: #d63638;
    box-shadow: 0 0 0 1px rgba(214, 54, 56, 0.2);
}

.wpr-no-items {
    padding: 16px;
    background: #f6f7f7;
    border: 1px dashed #ebebeb;
    border-radius: 4px;
    text-align: center;
}

.wpr-language-picker-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.wpr-language-picker-select {
    min-width: 240px;
    max-width: 250px !important;
    width: auto;
}

#wpr-default-language {
    max-width: 250px;
    width: 100%;
}

.wpr-add-custom-language {
    margin-top: 10px;
}

.wpr-sort-placeholder {
    height: 64px;
    background: #f0f6fc;
    border: 2px dashed #6c7781;
    border-radius: 4px;
}

/* String translation */
.wpr-string-filter-form .wpr-filter-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
    column-gap: 12px;
    row-gap: 6px;
    align-items: end;
}

.wpr-string-filter-form label {
    font-weight: 600;
    grid-row: 1;
}

.wpr-string-filter-form input[type="search"],
.wpr-string-filter-form select {
    min-width: 0;
    grid-row: 2;
}

.wpr-string-filter-form button[type="submit"] {
    grid-row: 2;
}

.wpr-string-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.wpr-string-actions form {
    margin: 0;
}

.wpr-string-auto-translate-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
}

.wpr-string-auto-translate-label {
    display: block;
    margin: 0 0 8px;
    font-weight: 600;
}

#wpr-string-auto-translate-language {
    width: 300px;
    min-width: 300px;
}

#wpr-string-auto-translate-domain {
    width: 240px;
    min-width: 240px;
}

.wpr-strings-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-x: auto;
}

.wpr-strings-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 12px;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    background: #fff;
    min-width: 960px;
    align-items: flex-start;
}

.wpr-strings-header {
    background: #f6f7f7;
    font-weight: 600;
}

.wpr-strings-footer {
    background: #f6f7f7;
}

.wpr-strings-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 160px;
}

.wpr-cell-select {
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
}

.wpr-cell-domain {
    flex: 0 0 160px;
}

.wpr-cell-original {
    flex: 1 1 260px;
}

.wpr-cell-language {
    flex: 1 1 220px;
    align-items: flex-start;
    font-weight: 600;
    text-transform: uppercase;
}

.wpr-cell-translation {
    flex: 1 1 220px;
}

.wpr-string-value {
    margin: 0;
}

.wpr-translation-input {
    width: 100%;
    min-height: 72px;
    box-sizing: border-box;
    resize: vertical;
}

.wpr-translation-input.wpr-is-saving {
    opacity: 0.7;
}

.wpr-translation-input.wpr-is-saved {
    border-color: #46b450;
    box-shadow: 0 0 0 1px rgba(70, 180, 80, 0.2);
}

.wpr-translation-input.wpr-has-error {
    border-color: #d63638;
    box-shadow: 0 0 0 1px rgba(214, 54, 56, 0.2);
}


.wpr-string-bulk-actions {
    margin-top: 12px;
}

.wpr-string-results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.wpr-string-count {
    font-weight: 600;
}

.wpr-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.wpr-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 11px;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    text-decoration: none;
    color: #1d2327;
    background: #fff;
}

.wpr-pagination .page-numbers.current {
    background: #0b6fcd;
    border-color: #0970d3;
    color: #fff;
}

.wpr-pagination .page-numbers:hover {
    border-color: #2271b1;
    color: #2271b1;
}

/* Settings */
.wpr-settings-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wpr-settings-field {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

.wpr-settings-label {
    flex: 0 0 220px;
    font-weight: 600;
}

.wpr-settings-control {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpr-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpr-settings-actions {
    margin-top: 12px;
}

.wpr-menu-switcher-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpr-menu-switcher-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wpr-menu-switcher-header {
    font-weight: 600;
    text-transform: uppercase;
    color: #50575e;
}

.wpr-menu-switcher-name {
    flex: 1;
    min-width: 200px;
}

.wpr-menu-switcher-control {
    flex: 0 0 220px;
}

.wpr-menu-switcher-control select {
    width: 100%;
}

.wpr-auto-translation-textarea {
    width: 100%;
}

.wpr-auto-translation-explanation {
    margin-top: 10px;
    margin-bottom: 15px;
}

.wpr-auto-translation-target {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wpr-auto-translation-target .wpr-settings-label {
    min-width: 220px;
}

.wpr-auto-translation-target .wpr-settings-control {
    flex: 1;
}

.wpr-auto-translation-language {
    min-width: 220px;
    max-width: 250px !important;
    width: 100%;
}

.wpr-auto-translation-post-type-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 10px;
}

.wpr-auto-translation-post-type-row:nth-child(odd) {
    background: #f6f7f7;
}

.wpr-auto-translation-post-type-label {
    flex: 1;
    max-width: 250px;
}

.wpr-auto-translation-post-type-actions {
    display: flex;
    gap: 10px;
}

.wpr-auto-translation-post-type-actions label {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wpr-post-type-actions.wpr-auto-translation-post-type-actions label + label {
    margin-left: 15px;
}

.wpr-translate-auto-status {
    margin-bottom: 10px;
}

.wpr-auto-translation-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.wpr-menu-sync__menu-item {
    margin-left: 0;
}

.wpr-menu-sync__menu-item-depth-0 {
    margin-left: 0;
}

.wpr-menu-sync__menu-item-depth-1 {
    margin-left: 20px;
}

.wpr-menu-sync__menu-item-depth-2 {
    margin-left: 40px;
}

.wpr-menu-sync__menu-item-depth-3 {
    margin-left: 60px;
}

.wpr-menu-sync__menu-item-depth-4 {
    margin-left: 80px;
}

.wpr-menu-sync__menu-item-depth-5 {
    margin-left: 100px;
}

.wpr-menu-sync__menu-item-depth-6 {
    margin-left: 120px;
}

.wpr-menu-sync__menu-item-depth-7 {
    margin-left: 140px;
}

.wpr-menu-sync__menu-item-depth-8 {
    margin-left: 160px;
}

.wpr-menu-sync__menu-item-depth-9 {
    margin-left: 180px;
}

.wpr-menu-sync__menu-item-depth-10 {
    margin-left: 200px;
}

.wpr-menu-sync-description {
    margin-bottom: 30px !important;
}

.wpr-menu-sync-heading {
    margin: 0 0 10px;
}

.wpr-taxonomy-table-wrapper {
    margin-top: 16px;
}

.wpr-taxonomy-table-title {
    margin: 0 0 12px;
}

.wpr-taxonomy-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpr-taxonomy-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    background: #fff;
}

.wpr-taxonomy-row.wpr-taxonomy-header {
    background: #f6f7f7;
    font-weight: 600;
}

.wpr-taxonomy-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wpr-taxonomy-col-title {
    flex: 0 0 240px;
}

.wpr-taxonomy-col-mode {
    flex: 1;
}

.wpr-taxonomy-col-automation {
    flex: 0 0 260px;
}

.wpr-taxonomy-title {
    font-weight: 600;
}

.wpr-taxonomy-slug {
    margin-top: 2px;
    font-size: 12px;
    color: #50575e;
}

.wpr-taxonomy-options,
.wpr-taxonomy-automation {
    display: flex;
    flex-direction: column;
    gap: 8px;
    vertical-align: top;
}

.wpr-taxonomy-options label,
.wpr-taxonomy-automation label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wpr-term-language {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.wpr-term-language-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wpr-term-language-flag {
    width: 18px;
    height: 14px;
    line-height: 0;
    flex: 0 0 auto;
}

.wpr-term-language-flag img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    object-fit: cover;
}

.wpr-term-language-name {
    font-size: 13px;
    color: #23282d;
}

.wpr-translation-language-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
}

.wpr-translation-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wpr-translation-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wpr-translation-action {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.wpr-title-translation-links {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wpr-title-translation-row a {
    text-decoration: none;
}

.wpr-translate-term-language-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.wpr-translate-term-language,
.wpr-translate-term-source {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wpr-translate-term-language select,
.wpr-translate-term-source select {
    display: flex;
}

/* Glossary */
.wpr-glossary-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wpr-glossary-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpr-glossary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    background: #fff;
}

.wpr-glossary-header {
    background: #f6f7f7;
    font-weight: 600;
}

.wpr-glossary-cell {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wpr-glossary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Custom field rules */
.wpr-cf-reload-form-inline {
    margin-bottom: 30px;
}

.wpr-cf-rules-table th[scope="col"]:first-child,
.wpr-cf-rules-table th[scope="row"] {
    max-width: 250px;
    width: 250px;
    white-space: normal;
}

.wpr-cf-rules-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpr-cf-action-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wpr-cf-accordion-item {
    border: 1px solid #ebebeb;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.wpr-cf-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f6f7f7;
    cursor: pointer;
}

.wpr-cf-accordion-toggle:focus {
    outline: 2px solid #2271b1;
    outline-offset: -2px;
}

.wpr-cf-accordion-title {
    font-weight: 600;
}

.wpr-cf-accordion-count {
    min-width: 32px;
    text-align: center;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dcdcde;
    font-size: 12px;
    line-height: 1;
    padding: 4px 8px;
}

.wpr-cf-accordion-panel {
    display: none;
    padding: 12px;
}

.wpr-cf-accordion-panel.is-open {
    display: flex;
    flex-direction: column;
}

.wpr-cf-accordion-empty {
    padding: 12px;
    border: 1px dashed #dcdcde;
    border-radius: 4px;
    background: #fff;
    color: #50575e;
}

.wpr-cf-rule-row {
    display: flex;
    gap: 124px;
    align-items: center;
    padding: 12px;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    background: #fff;
    text-align: left;
}

.wpr-cf-rule-row.wpr-cf-rule-header {
    background: #f6f7f7;
    font-weight: 600;
}

.wpr-cf-rules-table .wpr-cf-rule-row:nth-child(even) {
    background: #f6f7f7;
}

.wpr-cf-rule-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wpr-cf-rule-col-title {
    min-width: 0;
    min-width: 200px;
}

.wpr-cf-rule-col-action {
    flex: 0 0 220px;
}

.wpr-cf-rules-table .wpr-cf-rule-title {
    font-weight: 600;
    font-size: 14px;
}

.wpr-cf-rules-table .wpr-cf-rule-key {
    margin-top: 2px;
    font-size: 12px;
    color: #50575e;
}

.wpr-cf-rules-table .wpr-cf-rule-description {
    margin-top: 6px;
    color: #3c434a;
}

.wpr-cf-rules-table .wpr-cf-rule-default {
    margin-top: 6px;
    font-size: 12px;
    color: #2271b1;
}

.wpr-cf-rules-table .wpr-cf-rule-action {
    vertical-align: middle;
}

.wpr-cf-rules-table .wpr-cf-rule-select {
    min-width: 160px;
}

.wpr-cf-rules-table .wpr-cf-rule-status {
    margin-top: 6px;
    min-height: 18px;
    font-size: 12px;
    color: #2271b1;
}

.wpr-cf-rules-table tr.has-override th,
.wpr-cf-rules-table tr.has-override td {
    background-color: #f6f7f7;
}

/* Utility */
.wpr-hidden {
    display: none;
}

@media (max-width: 782px) {
    .wpr-settings-label {
        flex: 1 1 100%;
    }

    .wpr-language-summary-cell.wpr-summary-default,
    .wpr-language-summary-cell.wpr-summary-status,
    .wpr-language-default,
    .wpr-language-enabled,
    .wpr-language-visible {
        flex: 1 1 100px;
    }

    .wpr-cell-domain {
        flex: 1 1 200px;
    }
}


.wpr-language-switcher .wpr-language-switcher-toggle{
    background-color: #fff;;
}

/* Theme-aligned admin form styling for WPResidence Translate screens. */
.wpr-translate-admin {
    --wpresidece-text-primary: #212636;
    --palette-divider: #dcdfe4;
    --wpresidence-white: #fff;
    --wpresidence-primary: #0073e1;
    --wpresidence-primary-dark: #116dc4;
    --wpresidence-teal: #15b79f;
    --wpresidence-purple: #4e36f5;
    --wpresidence-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    color: var(--wpresidece-text-primary);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 14px;
    font-weight: 500;
    line-height: 28px;
}

.wpr-translate-admin h1,
.wpr-translate-admin h2,
.wpr-translate-admin h3,
.wpr-translate-admin h4 {
    color: var(--wpresidece-text-primary);
    font-weight: 700;
    text-transform: uppercase;
}

.wpr-translate-admin label {
    font-weight: 600;
    color: var(--wpresidece-text-primary);
}

.wpr-translate-admin input[type="text"],
.wpr-translate-admin input[type="email"],
.wpr-translate-admin input[type="number"],
.wpr-translate-admin input[type="search"],
.wpr-translate-admin input[type="url"],
.wpr-translate-admin input[type="tel"],
.wpr-translate-admin input[type="password"],
.wpr-translate-admin select,
.wpr-translate-admin textarea {
    background-color: var(--wpresidence-white);
    border: 1px solid var(--palette-divider);
    border-radius: 8px;
    box-shadow: var(--wpresidence-shadow);
    color: var(--wpresidece-text-primary);
    font-size: 14px;
    line-height: 2;
    min-height: 38px;
    padding: 5px 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    outline: 0;
    transition: 50ms border-color ease-in-out;
}

.wpr-translate-admin textarea {
    line-height: 1.6;
    min-height: 110px;
}

.wpr-translate-admin .button,
.wpr-translate-admin .button.button-secondary,
.wpr-translate-admin .button.button-primary {
    background: linear-gradient(180deg, var(--wpresidence-primary) 0%, var(--wpresidence-primary-dark) 100%);
    border: 1px solid var(--wpresidence-teal);
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.08) 0 1px 2px 0, var(--wpresidence-purple) 0 0 0 1px inset, rgba(255, 255, 255, 0.16) 0 2px 0 0 inset;
    color: var(--wpresidence-white);
    font-size: 13px;
    font-weight: 400;
    min-height: 38px;
    padding: 7px 30px;
    text-shadow: none;
}

.wpr-translate-admin .button:hover,
.wpr-translate-admin .button:focus {
    background: linear-gradient(180deg, var(--wpresidence-primary-dark) 0%, #0d5aa0 100%);
    color: var(--wpresidence-white);
    box-shadow: rgba(0, 0, 0, 0.12) 0 1px 2px 0, var(--wpresidence-purple) 0 0 0 1px inset, rgba(255, 255, 255, 0.2) 0 2px 0 0 inset;
}

.wpr-translate-admin .wpr-card {
    border-color: #ccd0d4;
}

.wpr-translate-admin .wpr-translate-auto-translate-button {
    background-color: #313643;
    border-color: #313643;
    color: #f3f4f7;
}

.wpr-translate-admin .wpr-remove-language {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    background-color: #f3f4f6;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    color: #111827;
    cursor: pointer;
    text-decoration: none;
    text-shadow: none;
    padding: 0;
}

.wpr-translate-admin .wpr-remove-language .wpr-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.wpr-translate-admin .wpr-remove-language:hover,
.wpr-translate-admin .wpr-remove-language:focus {
    background-color: #fff;
    border: 0;
    box-shadow: none;
    color: #111827;
}

/* Theme button styling for key language actions. */
.wpr-translate-admin #wpr-add-language-from-catalog,
.wpr-translate-admin #submit.button.button-primary {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    text-decoration: none;
    user-select: none;
}

/* Theme checkbox and radio styling scoped to plugin screens. */
.wpr-translate-admin input[type="checkbox"],
.wpr-translate-admin input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    background-image: none !important;
    background-color: var(--wpresidence-white);
    background-image: none;
    border: 1px solid var(--palette-divider);
    border-radius: 8px;
    box-shadow: var(--wpresidence-shadow);
    box-sizing: border-box;
    color: var(--wpresidece-text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 13px;
    font-weight: 400;
    height: 24px !important;
    line-height: 0;
    margin: 0 8px 0 0;
    min-width: 24px;
    outline: 0;
    padding: 0;
    position: relative;
    text-align: center;
    transition: border-color 0.05s ease-in-out;
    user-select: none;
    vertical-align: middle;
    width: 24px !important;
}

.wpr-translate-admin input[type="checkbox"]::before,
.wpr-translate-admin input[type="radio"]::before {
    content: none !important;
}

.wpr-translate-admin input[type="radio"] {
    border-radius: 50%;
}

.wpr-translate-admin input[type="checkbox"]:checked,
.wpr-translate-admin input[type="radio"]:checked {
    background-color: var(--wpresidence-purple);
    border-color: var(--wpresidence-purple);
}

.wpr-translate-admin input[type="checkbox"]:checked::after,
.wpr-translate-admin input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
}

.wpr-translate-admin input[type="checkbox"]:checked::after {
    width: 10px;
    height: 7px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    margin-top: 4px;
}

.wpr-translate-admin input[type="radio"]:checked::after {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
}

.wpr-translate-admin .wpr-language-default,
.wpr-translate-admin .wpr-language-enabled,
.wpr-translate-admin .wpr-language-visible {
    align-items: center;
    justify-content: center;
}

.wpr-translate-admin .wpr-language-default input[type="radio"],
.wpr-translate-admin .wpr-language-enabled input[type="checkbox"],
.wpr-translate-admin .wpr-language-visible input[type="checkbox"] {
    align-self: center;
}
