/**
 * 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: #1f2937;
    margin-bottom: 6px;
    font-size: 13px;
}

.aieo-tr-search-input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #c6cbd2;
    border-radius: 6px;
    font-size: 13px;
}
.aieo-tr-search-input:focus {
    border-color: #3b82f6;
    outline: 2px solid rgba(59,130,246,0.25);
    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: #fff;
    border: 1px solid #c6cbd2;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    max-height: 240px;
    overflow-y: auto;
    list-style: none;
}
.aieo-tr-search-result {
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #1f2937;
}
.aieo-tr-search-result:hover { background: #eef2ff; }

.aieo-tr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 8px 0 0 0;
    list-style: none;
}
.aieo-tr-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 4px 3px 10px;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #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: #6b7280;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    border-radius: 50%;
}
.aieo-tr-chip-remove:hover { background: rgba(220,38,38,0.12); color: #b91c1c; }
.aieo-tr-chip-label { white-space: nowrap; }
