/* ============================================================
   CarZoon — AI Vehicle Features Generator
   Loads after carzoon-dvla.css and reuses its palette:
   navy #0d1f3c / #0f2744, blue accent #1e4fc2, card #fff radius 16px.
   ============================================================ */

.cz-ai-features-card { position: relative; }

/* ── Loading state ── */
.cz-ai-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: #5b6b85;
    padding: 10px 0 16px;
}
.cz-ai-spinner {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2.5px solid #dce4f2;
    border-top-color: #1e4fc2;
    animation: cz-ai-spin .7s linear infinite;
    flex-shrink: 0;
}
@keyframes cz-ai-spin { to { transform: rotate(360deg); } }

/* ── Error state ── */
.cz-ai-error {
    font-size: 13px;
    color: #c0392b;
    background: #fdecea;
    border: 1px solid #f5c6c0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

/* ── Success banner ── */
.cz-ai-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    background: #eef3ff;
    border: 1px solid #d3e0fb;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
}
.cz-ai-banner-text {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 700;
    color: #1e4fc2;
}
.cz-ai-banner-text svg { flex-shrink: 0; }
.cz-ai-regenerate-btn {
    background: none;
    border: 1px solid #1e4fc2;
    color: #1e4fc2;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 99px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.cz-ai-regenerate-btn:hover { background: #1e4fc2; color: #fff !important; }

/* ── AI-suggested items that don't match the predefined list ── */
.cz-ai-extra-wrap { margin-bottom: 18px; }
.cz-ai-extra-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #7a8aa8;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin: 0 0 8px;
}
.cz-ai-extra-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cz-ai-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #4c2a8f;
    background: #f3e8ff;
    border: 1px solid #ddd0fb;
    border-radius: 99px;
    padding: 6px 8px 6px 12px;
}
.cz-ai-chip-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #7c4fd1;
    font-size: 15px;
    line-height: 1;
    padding: 0 4px;
    font-family: inherit;
}
.cz-ai-chip-remove:hover { color: #4c2a8f; }

/* ── "AI" badge on checkboxes injected into an existing group ── */
.cz-ai-added-feature { position: relative; }
.cz-ai-badge {
    font-size: 10px;
    font-weight: 700;
    color: #7c4fd1;
    background: #f3e8ff;
    border: 1px solid #ddd0fb;
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 2px;
    flex-shrink: 0;
}

/* ── AI Generate Description — underline-only text link ── */
.cz-field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.cz-field-label-row .cz-field-label { margin-bottom: 0; }

.cz-ai-underline-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #1e4fc2;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    white-space: nowrap;
}
.cz-ai-underline-btn:hover { color: #0f2744; }
.cz-ai-underline-btn:disabled { color: #9aa9c4; cursor: not-allowed; text-decoration: underline; }

.cz-ai-desc-error {
    font-size: 12.5px;
    color: #c0392b;
    background: #fdecea;
    border: 1px solid #f5c6c0;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 8px;
}
