/* ─── CarSearch AI Partners — Dealerships + partner Components pages ───────── */
.dlr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.dlr-chips .badge[data-chip] { display: inline-flex; align-items: center; gap: 6px; }
.dlr-chips .badge[data-chip] [data-x] { opacity: .6; }
.dlr-chips .badge[data-chip] [data-x]:hover { opacity: 1; }

/* Partner Components page — live preview iframe / static fallback */
.pcm-preview { width: 100%; min-height: 220px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pcm-preview iframe { width: 100%; height: 320px; border: 0; display: block; }
.pcm-preview .pcm-static { padding: 28px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* Partner API page */
.pak-usage-table td, .pak-usage-table th { white-space: nowrap; }
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr !important; }
}

/* ── Add-dealership modal: viewport-bounded, header + footer fixed, only the
   body (paste box + parsed preview rows) scrolls. Without this a multi-
   dealership paste grows the modal past the viewport and the "Add dealership"
   heading scrolls off-screen with it. ─────────────────────────────────────── */
.dlr-add-modal { display: flex; flex-direction: column; max-height: min(86vh, 760px); padding-bottom: 0; }
.dlr-add-modal .crm-modal-h { flex: 0 0 auto; }
.dlr-add-modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 2px 2px 4px; margin: 0 -2px; }
.dlr-add-modal .crm-modal-foot { flex: 0 0 auto; padding: 12px 0 20px; margin: 4px -22px -20px; border-top: 1px solid var(--border); background: var(--surface); }
@media (max-width: 480px) {
  .dlr-add-modal { max-height: 92vh; }
  .dlr-add-modal .crm-modal-foot { padding-left: 22px; padding-right: 22px; }
}

/* Inline domain-conflict message under the domain chips (409 from create/PUT —
   not a toast-only, so it points at the field that needs fixing). */
.dlr-inline-error { color: var(--danger); font-size: 12.5px; margin: 4px 0 2px; }

/* ── "Next steps" card — replaces a preview row once its dealership exists. */
.dlr-next { display: flex; flex-direction: column; gap: 12px; }
.dlr-next-h { font-weight: 700; color: var(--text); }
.dlr-next-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dlr-next-close { display: flex; justify-content: flex-end; }
