/* Fitting centres: search results (centres page + homepage form) and checkout picker. */

.fitting .fitting__status.is-error { color: #b42318; background: #fef3f2; border-color: #fecdca; }
.fitting .fitting__status[hidden] { display: none; }
.fitting .fitting__status { margin-top: 14px; }

.fitting-results {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 2px;
}
.fitting-results:empty { display: none; }

.fitting-result {
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: var(--radius-md, 10px);
  background: var(--color-surface-subtle, #f8fafc);
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-text-main, #0f172a);
}
.fitting-result p { margin: 0 0 4px; }
.fitting-result__name { margin: 0 0 4px; font-size: 1rem; font-weight: 800; color: var(--blue-900, #0a2a66); }
.fitting-result__tel a { font-weight: 700; color: var(--blue-700, #1654c9); text-decoration: none; }
.fitting-result__tel a:hover { text-decoration: underline; }
.fitting-result__tag { display: inline-block; font-size: 0.75rem; font-weight: 700; color: #475467; background: #eaecf0; border-radius: 999px; padding: 1px 8px; }
.fitting-result__svc { font-size: 0.82rem; color: var(--color-text-muted, #64748b); }
.fitting-result__note { font-size: 0.82rem; font-style: italic; color: var(--color-text-muted, #64748b); }

/* Checkout picker */
.bp-centre-picker { grid-column: 1 / -1; margin: 0 0 14px; }
.bp-centre-picker__alert {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fef3f2; border: 1px solid #fecdca; color: #8c221c;
  border-radius: 10px; padding: 10px 12px; font-size: 0.875rem; line-height: 1.45; margin-bottom: 12px;
}
.bp-centre-picker__alert .icon { flex: 0 0 18px; margin-top: 2px; }
.bp-centre-picker__tel { white-space: nowrap; }
.bp-centre-picker label { display: block; font-weight: 600; margin-bottom: 6px; }
.bp-centre-picker .select2-container { width: 100% !important; }

/* When results are shown the card gets taller than the left column: align both to the top instead of centring. */
.fitting__in:has(.fitting-results:not(:empty)) { align-items: start; }

/* Manual entry of a centre at checkout */
.bp-centre-manual-toggle label { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.bp-centre-manual-toggle input { margin-top: 4px; }
.bp-centre-manual { margin: 0 0 8px; padding: 12px; border: 1px dashed var(--color-border-hover, #cbd5e1); border-radius: 10px; background: var(--color-surface-subtle, #f8fafc); }
.bp-centre-manual[hidden] { display: none; }
.bp-centre-manual__help { margin: 0 0 10px; font-size: 0.875rem; color: var(--color-text-muted, #64748b); }
#bp-centre-select-row.is-disabled { opacity: .5; pointer-events: none; }
