/**
 * AIEO Related-tab — chip-picker styles. Reuses the visual language of
 * the existing Category Extras chip picker so admin operators see one
 * consistent UI across Category, Brand, Need, Tag term editors.
 */

.aieo-tr-panel { display: flex; flex-direction: column; gap: 18px; }

.aieo-tr-field { position: relative; }

.aieo-tr-label {
    display: block;
    font-weight: 600;
    color: var(--aieo-foreground, #1f2937);
    margin-bottom: 6px;
    font-size: 13px;
}

.aieo-tr-search-input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--aieo-input, #c6cbd2);
    border-radius: 6px;
    font-size: 13px;
}
.aieo-tr-search-input:focus {
    border-color: var(--aieo-primary, #3b82f6);
    outline: 2px solid color-mix(in srgb, var(--aieo-primary, #3b82f6) 25%, transparent);
    outline-offset: 0;
}

.aieo-tr-search-results {
    position: absolute;
    z-index: 9000;
    left: 0;
    right: 0;
    margin: 4px 0 0 0;
    padding: 4px 0;
    background: var(--aieo-card, #fff);
    border: 1px solid var(--aieo-border, #c6cbd2);
    border-radius: 6px;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--aieo-foreground, #000) 8%, transparent);
    max-height: 240px;
    overflow-y: auto;
    list-style: none;
}
.aieo-tr-search-result {
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--aieo-foreground, #1f2937);
}
.aieo-tr-search-result:hover { background: var(--aieo-primary-soft, #eef2ff); }

.aieo-tr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 8px 0 0 0;
    list-style: none;
}
/* THE LOOK IS THE CHROME'S on a chrome screen (admin chrome 0.30.0, adopt/rooster-one.css, UI-PLAN Phase 3, D3b); these
   rules stay for core's screens (the term and product editors), where the chrome is absent. */
.aieo-tr-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 4px 3px 10px;
    border: 1px solid var(--aieo-primary-soft, #c7d2fe);
    background: var(--aieo-primary-soft, #eef2ff);
    color: var(--aieo-primary-soft-fg, #1e40af);
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.5;
}
.aieo-tr-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: none;
    background: transparent;
    color: var(--aieo-muted-fg, #6b7280);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    border-radius: 50%;
}
.aieo-tr-chip-remove:hover { background: var(--aieo-destructive-soft, rgba(220, 38, 38, 0.12)); color: var(--aieo-tone-danger, #b91c1c); }
.aieo-tr-chip-label { white-space: nowrap; }
/* The post editor's note under the pickers (it was a style attribute; the cleanup, package M1, 7 Nov 2026). */
.aieo-tr-panel-note,
.description.aieo-tr-panel-note { margin-top: 8px; } /* paired with WordPress's p.description, whose margin would win */
