.unifiedsmb-seo-panel {
    /* Blues */
    --usmb-gradient-blue-start: #009FE3;
    --usmb-gradient-blue-end: #025A7A;
    --usmb-light-blue: #E2EEFB;
    --usmb-blue: #009FE3;
    --usmb-dark-blue: #025A7A;

    /* Red/Orange/Green/Black */
    --usmb-red: #FF0000;
    --usmb-orange: #FF8800;
    --usmb-green: #3FC57C;
    --usmb-black: #000000;

    /* Grays */
    --usmb-dark-grey: #6A6A6A;
    --usmb-light-grey: #E3E3E3;

    /* Light pastel colors */
    --usmb-light-red: #FFB7B7;
    --usmb-light-orange: #FFF8E5;
    --usmb-light-green: #E3FFF1;
    --usmb-white: #FFFFFF;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Google SERP palette */
    --usmb-serp-title: #1a0dab;
    --usmb-serp-site: #202124;
    --usmb-serp-url: #4d5156;
    --usmb-serp-text: #4d5156;

    box-sizing: border-box;
    max-width: 100%;
    color: #1d2327;
    font-size: 13px;
}

.unifiedsmb-seo-panel *,
.unifiedsmb-seo-panel *::before,
.unifiedsmb-seo-panel *::after {
    box-sizing: border-box;
}

/* Wrappers: classic/Gutenberg metabox and the two term forms. */
.unifiedsmb-seo-metabox {
    max-width: 100%;
    overflow: hidden;
}

.unifiedsmb-seo-term-row > td,
.unifiedsmb-seo-term-field {
    max-width: 100%;
}

.unifiedsmb-seo-term-row > td .unifiedsmb-seo-panel,
.unifiedsmb-seo-term-field .unifiedsmb-seo-panel {
    /* The term edit <td> is narrow; never let the panel push the table wider. */
    max-width: 100%;
    min-width: 0;
}

/* === Header === */

.unifiedsmb-seo-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--usmb-light-grey);
}

.unifiedsmb-seo-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.unifiedsmb-seo-header-title .dashicons {
    color: var(--usmb-blue);
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.unifiedsmb-seo-header-title h3 {
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--usmb-black);
    line-height: 1.3;
}

.unifiedsmb-seo-header-score {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.unifiedsmb-seo-score-caption {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--usmb-dark-grey);
}

/* === Score badge (JS fills #unifiedsmb-seo-score) === */

.unifiedsmb-seo-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 26px;
    padding: 0 10px;
    border-radius: 13px;
    background: var(--usmb-light-grey);
    color: var(--usmb-dark-grey);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Hide the badge until the JS has written a value into it. */
.unifiedsmb-seo-score:empty {
    display: none;
}

.unifiedsmb-seo-score--good,
.unifiedsmb-seo-score[data-rating="good"] {
    background: var(--usmb-light-green);
    border-color: var(--usmb-green);
    color: #1c7a4a;
}

.unifiedsmb-seo-score--ok,
.unifiedsmb-seo-score[data-rating="ok"] {
    background: var(--usmb-light-orange);
    border-color: var(--usmb-orange);
    color: #8a4b00;
}

.unifiedsmb-seo-score--bad,
.unifiedsmb-seo-score[data-rating="bad"] {
    background: var(--usmb-light-red);
    border-color: var(--usmb-red);
    color: #a30000;
}

/* === Info box (mirrors tools.css, repeated for the metabox context) === */

.unifiedsmb-seo-panel .unifiedsmb-info-box {
    display: flex;
    align-items: flex-start;
    padding: 12px 14px;
    margin: 0 0 16px 0;
    border-radius: var(--radius-sm);
    background-color: var(--usmb-light-blue);
    border-left: 4px solid var(--usmb-blue);
}

.unifiedsmb-seo-panel .unifiedsmb-info-box .dashicons {
    flex: 0 0 auto;
    margin-right: 10px;
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--usmb-blue);
}

.unifiedsmb-seo-panel .unifiedsmb-info-box p {
    margin: 0 0 6px 0;
    flex: 1;
    min-width: 0;
}

.unifiedsmb-seo-panel .unifiedsmb-info-box p:last-child {
    margin-bottom: 0;
}

.unifiedsmb-seo-intro {
    margin: 0 0 16px 0;
    color: var(--usmb-dark-grey);
}

.unifiedsmb-seo-subtitle {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--usmb-black);
}

/* === Form rows / fields (scoped copies of the main.css form language) === */

.unifiedsmb-seo-panel .unifiedsmb-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.unifiedsmb-seo-panel .unifiedsmb-form-field {
    flex: 1 1 100%;
    min-width: 0;
    padding: 0;
    margin-bottom: 18px;
}

.unifiedsmb-seo-panel .unifiedsmb-form-field > label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--usmb-black);
}

.unifiedsmb-seo-panel .unifiedsmb-form-field .description {
    margin: 6px 0 0 0;
    color: var(--usmb-dark-grey);
    font-size: 12px;
    font-style: normal;
    line-height: 1.5;
}

.unifiedsmb-seo-label-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.unifiedsmb-seo-label-row > label {
    margin-bottom: 0 !important;
    font-weight: 600;
    color: var(--usmb-black);
}

.unifiedsmb-seo-panel input.unifiedsmb-seo-input,
.unifiedsmb-seo-panel textarea.unifiedsmb-seo-input {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border: 2px solid var(--usmb-light-grey);
    border-radius: var(--radius-md);
    background: var(--usmb-white);
    font-size: 13px;
    line-height: 1.5;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.unifiedsmb-seo-panel input.unifiedsmb-seo-input:focus,
.unifiedsmb-seo-panel textarea.unifiedsmb-seo-input:focus {
    border-color: var(--usmb-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.1);
}

.unifiedsmb-seo-panel textarea.unifiedsmb-seo-textarea {
    min-height: 72px;
    resize: vertical;
}

/* Input + button on one line, wrapping on narrow screens. */
.unifiedsmb-seo-field-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

/* === Buttons: reset-to-backoffice, media picker, device toggle === */

/* Right-hand side of a field label: the reset action plus the counter. */
.unifiedsmb-seo-label-aside {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* === Character/pixel counters === */

.unifiedsmb-seo-counter {
    font-size: 11px;
    font-weight: 600;
    color: var(--usmb-dark-grey);
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.unifiedsmb-seo-counter:empty {
    display: none;
}

.unifiedsmb-seo-counter--over,
.unifiedsmb-seo-counter[data-state="over"] {
    color: var(--usmb-red);
}

.unifiedsmb-seo-counter--ok,
.unifiedsmb-seo-counter[data-state="ok"] {
    color: var(--usmb-orange);
}

.unifiedsmb-seo-counter--good,
.unifiedsmb-seo-counter[data-state="good"] {
    color: #1c7a4a;
}

/* === Google SERP preview === */

.unifiedsmb-seo-preview {
    margin: 0 0 20px 0;
    padding: 14px;
    border: 1px solid var(--usmb-light-grey);
    border-radius: var(--radius-lg);
    background: #fafbfc;
    max-width: 100%;
    overflow: hidden;
}

.unifiedsmb-seo-preview-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.unifiedsmb-seo-preview-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--usmb-dark-grey);
}

.unifiedsmb-seo-devices {
    display: inline-flex;
    gap: 0;
    padding: 2px;
    border: 1px solid var(--usmb-light-grey);
    border-radius: var(--radius-md);
    background: var(--usmb-white);
}

.unifiedsmb-seo-device {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--usmb-dark-grey);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.unifiedsmb-seo-device:hover {
    color: var(--usmb-blue);
}

.unifiedsmb-seo-device:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 159, 227, 0.35);
}

.unifiedsmb-seo-device.active {
    background: var(--usmb-light-blue);
    color: var(--usmb-dark-blue);
}

.unifiedsmb-seo-device .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
}

/* The mount itself. The device modifier may sit on the mount or on the card. */
.unifiedsmb-seo-serp {
    max-width: 100%;
    /* The JS measures title/description widths against Arial; keep the preview
       on the same family so the wrapping matches the measurement. */
    font-family: Arial, Helvetica, sans-serif;
}

.unifiedsmb-seo-serp:empty {
    min-height: 96px;
    border: 1px dashed var(--usmb-light-grey);
    border-radius: var(--radius-md);
    background: var(--usmb-white);
}

.unifiedsmb-seo-serp-card,
.unifiedsmb-seo-serp__card {
    max-width: 100%;
    padding: 14px 16px;
    background: var(--usmb-white);
    border: 1px solid var(--usmb-light-grey);
    border-radius: var(--radius-md);
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
}

/* Site row: favicon circle + site name */
.unifiedsmb-seo-serp-site,
.unifiedsmb-seo-serp-head,
.unifiedsmb-seo-serp__site {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    min-width: 0;
}

.unifiedsmb-seo-serp-favicon,
.unifiedsmb-seo-serp__favicon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f1f3f4;
    border: 1px solid #e0e2e5;
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    color: var(--usmb-dark-grey);
    text-transform: uppercase;
}

.unifiedsmb-seo-serp-favicon img,
.unifiedsmb-seo-serp-favicon-img,
.unifiedsmb-seo-serp__favicon img {
    width: 18px;
    height: 18px;
    display: block;
}

.unifiedsmb-seo-serp-site-meta,
.unifiedsmb-seo-serp-identity,
.unifiedsmb-seo-serp__site-meta {
    min-width: 0;
    line-height: 1.3;
}

.unifiedsmb-seo-serp-sitename,
.unifiedsmb-seo-serp__sitename {
    display: block;
    font-size: 14px;
    color: var(--usmb-serp-site);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modern Google breadcrumb URL line: example.com > shop > product */
.unifiedsmb-seo-serp-url,
.unifiedsmb-seo-serp__url {
    display: block;
    font-size: 12px;
    color: var(--usmb-serp-url);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unifiedsmb-seo-serp-title,
.unifiedsmb-seo-serp__title {
    display: block;
    margin: 4px 0 3px 0;
    font-size: 20px;
    line-height: 1.3;
    color: var(--usmb-serp-title);
    font-weight: 400;
    cursor: pointer;
    overflow-wrap: break-word;
}

.unifiedsmb-seo-serp-title:hover,
.unifiedsmb-seo-serp__title:hover {
    text-decoration: underline;
}

.unifiedsmb-seo-serp-description,
.unifiedsmb-seo-serp__description {
    display: block;
    font-size: 14px;
    line-height: 1.58;
    color: var(--usmb-serp-text);
    overflow-wrap: break-word;
}

.unifiedsmb-seo-serp-date,
.unifiedsmb-seo-serp__date {
    color: #70757a;
}

/* Desktop variant: roughly the 600px Google column. */
.unifiedsmb-seo-serp--desktop .unifiedsmb-seo-serp-card,
.unifiedsmb-seo-serp--desktop .unifiedsmb-seo-serp__card,
.unifiedsmb-seo-serp-card.unifiedsmb-seo-serp--desktop,
.unifiedsmb-seo-serp__card.unifiedsmb-seo-serp--desktop {
    width: 600px;
    max-width: 100%;
}

/* Mobile variant: narrow rounded card, Google's mobile type scale. */
.unifiedsmb-seo-serp--mobile .unifiedsmb-seo-serp-card,
.unifiedsmb-seo-serp--mobile .unifiedsmb-seo-serp__card,
.unifiedsmb-seo-serp-card.unifiedsmb-seo-serp--mobile,
.unifiedsmb-seo-serp__card.unifiedsmb-seo-serp--mobile {
    width: 400px;
    max-width: 100%;
    padding: 14px 16px;
    border: 1px solid #dadce0;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.unifiedsmb-seo-serp--mobile .unifiedsmb-seo-serp-title,
.unifiedsmb-seo-serp--mobile .unifiedsmb-seo-serp__title,
.unifiedsmb-seo-serp-card.unifiedsmb-seo-serp--mobile .unifiedsmb-seo-serp-title,
.unifiedsmb-seo-serp__card.unifiedsmb-seo-serp--mobile .unifiedsmb-seo-serp__title {
    font-size: 18px;
    line-height: 1.35;
}

.unifiedsmb-seo-serp--mobile .unifiedsmb-seo-serp-description,
.unifiedsmb-seo-serp--mobile .unifiedsmb-seo-serp__description,
.unifiedsmb-seo-serp-card.unifiedsmb-seo-serp--mobile .unifiedsmb-seo-serp-description,
.unifiedsmb-seo-serp__card.unifiedsmb-seo-serp--mobile .unifiedsmb-seo-serp__description {
    font-size: 13px;
    line-height: 1.5;
}

/* === Analysis list (JS output inside #unifiedsmb-seo-analysis) === */

.unifiedsmb-seo-analysis-wrap {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--usmb-light-grey);
}

.unifiedsmb-seo-analysis {
    max-width: 100%;
}

.unifiedsmb-seo-analysis:empty::before {
    content: "";
    display: block;
    height: 8px;
}

.unifiedsmb-seo-analysis-group,
#unifiedsmb-seo-analysis .unifiedsmb-seo-analysis-group {
    margin-bottom: 18px;
    padding: 12px 14px;
    background: var(--usmb-white);
    border: 1px solid var(--usmb-light-grey);
    border-radius: var(--radius-md);
}

.unifiedsmb-seo-analysis-group:last-child {
    margin-bottom: 0;
}

.unifiedsmb-seo-analysis-group-title,
.unifiedsmb-seo-analysis-group-label,
#unifiedsmb-seo-analysis h4,
#unifiedsmb-seo-analysis h5 {
    margin: 0 0 10px 0;
    padding: 0 0 8px 0;
    border-bottom: 1px solid var(--usmb-light-grey);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--usmb-dark-grey);
}

.unifiedsmb-seo-analysis-list,
.unifiedsmb-seo-check-list,
#unifiedsmb-seo-analysis ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.unifiedsmb-seo-analysis-item,
.unifiedsmb-seo-check,
#unifiedsmb-seo-analysis li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 6px 0;
    line-height: 1.5;
    border-bottom: 1px solid #f2f4f6;
}

.unifiedsmb-seo-analysis-item:last-child,
.unifiedsmb-seo-check:last-child,
#unifiedsmb-seo-analysis li:last-child {
    border-bottom: 0;
}

/* Status bullet. Rendered as a ::before dot when the JS does not output an
   explicit bullet element of its own. */
#unifiedsmb-seo-analysis li::before {
    content: "";
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--usmb-light-grey);
}

#unifiedsmb-seo-analysis li:has(.unifiedsmb-seo-analysis-bullet)::before,
#unifiedsmb-seo-analysis li:has(.unifiedsmb-seo-bullet)::before {
    display: none;
}

/* editor.js always renders its own .unifiedsmb-seo-check-status span, so the
   ::before fallback above must not draw a second dot next to it. Kept free of
   :has() so it also holds on browsers without support for it. */
#unifiedsmb-seo-analysis li.unifiedsmb-seo-check::before {
    content: none;
    display: none;
}

.unifiedsmb-seo-analysis-bullet,
.unifiedsmb-seo-bullet,
.unifiedsmb-seo-check-status {
    flex: 0 0 auto;
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--usmb-light-grey);
}

/* Good */
#unifiedsmb-seo-analysis li.unifiedsmb-seo-analysis-item--good::before,
#unifiedsmb-seo-analysis li[data-status="good"]::before,
.unifiedsmb-seo-analysis-item--good .unifiedsmb-seo-analysis-bullet,
[data-status="good"] .unifiedsmb-seo-analysis-bullet,
.unifiedsmb-seo-analysis-bullet--good,
.unifiedsmb-seo-bullet--good,
.unifiedsmb-seo-check-status--good,
.unifiedsmb-seo-check--good .unifiedsmb-seo-check-status {
    background: var(--usmb-green);
}

/* Ok */
#unifiedsmb-seo-analysis li.unifiedsmb-seo-analysis-item--ok::before,
#unifiedsmb-seo-analysis li[data-status="ok"]::before,
.unifiedsmb-seo-analysis-item--ok .unifiedsmb-seo-analysis-bullet,
[data-status="ok"] .unifiedsmb-seo-analysis-bullet,
.unifiedsmb-seo-analysis-bullet--ok,
.unifiedsmb-seo-bullet--ok,
.unifiedsmb-seo-check-status--ok,
.unifiedsmb-seo-check--ok .unifiedsmb-seo-check-status {
    background: var(--usmb-orange);
}

/* Bad */
#unifiedsmb-seo-analysis li.unifiedsmb-seo-analysis-item--bad::before,
#unifiedsmb-seo-analysis li[data-status="bad"]::before,
.unifiedsmb-seo-analysis-item--bad .unifiedsmb-seo-analysis-bullet,
[data-status="bad"] .unifiedsmb-seo-analysis-bullet,
.unifiedsmb-seo-analysis-bullet--bad,
.unifiedsmb-seo-bullet--bad,
.unifiedsmb-seo-check-status--bad,
.unifiedsmb-seo-check--bad .unifiedsmb-seo-check-status {
    background: var(--usmb-red);
}

.unifiedsmb-seo-analysis-text,
.unifiedsmb-seo-check-text,
#unifiedsmb-seo-analysis li > span:last-child {
    min-width: 0;
    overflow-wrap: break-word;
}

.unifiedsmb-seo-check-text strong,
.unifiedsmb-seo-analysis-text strong {
    font-weight: 700;
    color: var(--usmb-black);
}

/* === Checkboxes === */

.unifiedsmb-seo-checkbox {
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid var(--usmb-light-grey);
    border-radius: var(--radius-md);
    background: var(--usmb-white);
}

.unifiedsmb-seo-checkbox:last-child {
    margin-bottom: 0;
}

.unifiedsmb-seo-checkbox--highlight {
    background: var(--usmb-light-orange);
    border-color: var(--usmb-orange);
}

.unifiedsmb-seo-checkbox > label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-weight: 600;
    color: var(--usmb-black);
    cursor: pointer;
}

.unifiedsmb-seo-checkbox > label input[type="checkbox"] {
    flex: 0 0 auto;
    margin: 2px 0 0 0;
}

.unifiedsmb-seo-checkbox .description {
    margin: 6px 0 0 26px !important;
}

/* === Backoffice reference list === */

.unifiedsmb-seo-bo-list {
    margin: 0;
    padding: 10px 12px;
    list-style: none;
    background: #fafbfc;
    border: 1px solid var(--usmb-light-grey);
    border-radius: var(--radius-md);
}

.unifiedsmb-seo-bo-list li {
    margin: 0 0 6px 0;
    line-height: 1.5;
    overflow-wrap: break-word;
}

.unifiedsmb-seo-bo-list li:last-child {
    margin-bottom: 0;
}

.unifiedsmb-seo-bo-list strong {
    color: var(--usmb-black);
}

/* === Responsive / narrow containers === */

@media (max-width: 782px) {
    .unifiedsmb-seo-header {
        align-items: flex-start;
    }

    .unifiedsmb-seo-header-score {
        margin-left: 0;
    }

    .unifiedsmb-seo-preview {
        padding: 10px;
    }

    .unifiedsmb-seo-preview-head {
        align-items: flex-start;
    }

}

@media (max-width: 600px) {    .unifiedsmb-seo-serp-title,
    .unifiedsmb-seo-serp__title {
        font-size: 17px;
    }
}

/* The Gutenberg metabox area and the term-edit <td> are both narrow columns;
   container queries let the panel adapt to the box instead of the viewport. */
@supports (container-type: inline-size) {
    .unifiedsmb-seo-metabox,
    .unifiedsmb-seo-term-row > td,
    .unifiedsmb-seo-term-field {
        container-type: inline-size;
    }

    @container (max-width: 520px) {        .unifiedsmb-seo-header-score {
            margin-left: 0;
        }
    }
}

/* === JS-only elements =================================================== */

/* serp-preview.js draws a lettered circle until the real favicon loads. */
.unifiedsmb-seo-serp-favicon--fallback {
    background: var(--usmb-blue);
}

.unifiedsmb-seo-serp-favicon-letter {
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    color: var(--usmb-white);
}

/* Shown by editor.js when a group has no applicable checks. */
.unifiedsmb-seo-analysis-empty {
    margin: 0;
    padding: 4px 0;
    font-style: italic;
    color: var(--usmb-dark-grey);
}

/* === SEO settings page ================================================== */

/* A button or image toggled with the hidden attribute: .button sets an
   explicit display, which would otherwise win over the UA [hidden] rule. */
.unifiedsmb [hidden] {
    display: none !important;
}

.unifiedsmb-seo-warning {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 6px;
    border-left: 4px solid var(--usmb-orange);
    background: var(--usmb-light-orange);
    box-shadow: var(--shadow-sm);
}

.unifiedsmb-seo-warning-error {
    border-left-color: var(--usmb-red);
    background: var(--usmb-light-red);
}

.unifiedsmb-seo-warning .dashicons {
    flex: 0 0 auto;
    color: var(--usmb-orange);
}

.unifiedsmb-seo-warning-error .dashicons {
    color: var(--usmb-red);
}

.unifiedsmb-seo-warning-body p {
    margin: 0 0 8px;
}

.unifiedsmb-seo-warning-body > :last-child {
    margin-bottom: 0;
}

.unifiedsmb-seo-status-table th {
    width: 220px;
    text-align: left;
    font-weight: 600;
}

.unifiedsmb-status-error {
    color: var(--usmb-red);
    font-weight: 500;
}

.unifiedsmb-seo-toggle label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
}

.unifiedsmb-seo-toggle .description {
    margin: 4px 0 0 26px;
    max-width: 640px;
}

.unifiedsmb-seo-inline {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin-right: 20px;
    cursor: pointer;
}

.unifiedsmb-seo-separators {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.unifiedsmb-seo-separator {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 8px 10px;
    border: 1px solid var(--usmb-light-grey);
    border-radius: 6px;
    background: var(--usmb-white);
    cursor: pointer;
}

.unifiedsmb-seo-separator:has(input:checked) {
    border-color: var(--usmb-blue);
    box-shadow: inset 0 0 0 1px var(--usmb-blue);
}

.unifiedsmb-seo-separator span {
    font-size: 16px;
    line-height: 1;
}

.unifiedsmb-seo-logo-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.unifiedsmb-seo-logo-picker img {
    max-width: 120px;
    max-height: 120px;
    height: auto;
    border: 1px solid var(--usmb-light-grey);
    border-radius: 4px;
    background: var(--usmb-white);
}

/* === List table column ================================================== */

/* WordPress gives unknown columns no width, so the "SEO score" column gets
   squeezed until its title and value break letter by letter. */
.wp-list-table .column-unifiedsmb_seo {
    width: 100px;
    white-space: nowrap;
}

.unifiedsmb-seo-column {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.unifiedsmb-seo-column-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.unifiedsmb-seo-column-empty {
    color: #787c82;
}

/* A server-side estimate: hollow dot and muted number until the editor has
   scored the item itself. */
.unifiedsmb-seo-column-estimate .unifiedsmb-seo-column-dot {
    background-color: transparent;
}

.unifiedsmb-seo-column-estimate .unifiedsmb-seo-column-score {
    color: #646970;
}
