.ai-import-url {
    width: 100%;
}

.ai-import-textarea {
    min-height: 140px;
    width: 100%;
}

.ai-import-editor {
    min-height: 220px;
    width: 100%;
}

.ai-alert {
    margin-bottom: 0.75rem;
}

.ai-ai-note {
    color: #475569;
}

.ai-ingredient-preview {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
}

.ai-ingredient-group {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
}

.ai-ingredient-group-title {
    color: #0f172a;
    font-weight: 600;
}

.ai-ingredient-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-top: 1px solid #f1f5f9;
}

.ai-ingredient-row--matched {
    background: #dcfce7;
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid #22c55e;
}

.ai-ingredient-row:first-child {
    border-top: none;
}

.ai-ingredient-main {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ai-ingredient-name {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    color: #0f172a;
    font-weight: 500;
}

.ai-ingredient-unit--missing {
    background: #fee2e2;
    color: #ef4444;
    font-weight: 600;
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
}

.ai-ingredient-status {
    color: #475569;
    font-size: 0.85rem;
}

.ai-ingredient-controls {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ai-ingredient-controls .rz-stack.rz-display-flex.rz-flex-column.rz-align-items-normal.rz-justify-content-normal {
    flex-direction: row !important;
}

.ai-ingredient-actions {
    display: flex;
    flex-direction: row-reverse !important;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .ai-ingredient-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .ai-ingredient-controls {
        min-width: 280px;
    }
}
