/* Competitive analysis */
.comp-kpi-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .comp-kpi-grid { grid-template-columns: repeat(2, 1fr); } }

.comp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }

.comp-table th, .comp-table td { white-space: nowrap; vertical-align: middle; }
.comp-table th.text-center, .comp-table td.text-center { text-align: center; }
.comp-table tbody td:first-child,
.comp-table thead th:first-child { position: sticky; left: 0; background: var(--color-card, #fff); z-index: 1; }
.comp-table tfoot td { font-weight: 600; background: #f8fafc; border-top: 2px solid var(--color-border); }
.comp-table tfoot td:first-child { position: sticky; left: 0; z-index: 1; }

.comp-cell { cursor: pointer; transition: background 120ms; }
.comp-cell:hover { background: #f1f5f9; }
.comp-cell-price { font-weight: 600; }
.comp-cell-gap { display: block; font-size: 11px; margin-top: 2px; font-weight: 400; }
.comp-pill { display: inline-block; border-radius: 999px; padding: 4px 10px; line-height: 1.25; }
.comp-pill.cheaper  { background: var(--color-success-light); color: #065f46; }
.comp-pill.pricier  { background: var(--color-danger-light);  color: #991b1b; }
.comp-pill.equal,
.comp-pill.unpriced,
.comp-pill.none     { background: #f1f5f9; color: #475569; }
.comp-pill.none     { color: #94a3b8; }

.comp-reco { white-space: normal !important; min-width: 220px; font-size: 12.5px; }
.comp-reco.cheaper { color: #065f46; }
.comp-reco.pricier { color: #991b1b; }

.comp-history-chart { position: relative; height: 240px; margin-bottom: 16px; }
.comp-list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.comp-list-row:last-child { border-bottom: none; }
.comp-list-name { font-weight: 600; }
.comp-list-notes { font-size: 12px; color: #64748b; }

/* Blacklist reason select: shown when confirming without a reason */
.commerce-blacklist-reason.is-invalid { border-color: var(--color-danger); }
.commerce-blacklist-reason, .commerce-blacklist-other { margin-top: 6px; width: 100%; }
