/* Waterfall reverse phone lookup widget (shared by both brands) */
.waterfall-lookup {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.waterfall-lookup > h3,
.waterfall-lookup > h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.waterfall-intro {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 0.95rem;
}

.waterfall-run-btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  cursor: pointer;
}

.waterfall-run-btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

ol[data-waterfall-steps] {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.waterfall-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px dashed #e5e7eb;
  animation: waterfall-fade-in 0.25s ease;
}

@keyframes waterfall-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.waterfall-step-icon {
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: #e5e7eb;
  color: #374151;
}

.waterfall-step-found .waterfall-step-icon { background: #d1fae5; color: #047857; }
.waterfall-step-no_match .waterfall-step-icon { background: #fee2e2; color: #b91c1c; }
.waterfall-step-skipped { opacity: 0.55; }
.waterfall-step-error .waterfall-step-icon { background: #fef3c7; color: #b45309; }

.waterfall-step-body { display: flex; flex-direction: column; }
.waterfall-step-label { font-weight: 600; }
.waterfall-step-status { color: #6b7280; }

div[data-waterfall-result] {
  margin-top: 16px;
  padding: 16px;
  border-radius: 10px;
  background: #eff6ff;
}

.waterfall-result-title { margin: 0 0 8px; font-size: 1.05rem; }
.waterfall-result-name { font-size: 1.3rem; font-weight: 700; margin: 0 0 4px; }
.waterfall-result-line { margin: 0 0 4px; }
.waterfall-result-confidence { font-weight: 600; margin: 6px 0 0; }
.waterfall-confidence-high { color: #047857; }
.waterfall-confidence-medium { color: #1d4ed8; }
.waterfall-confidence-low { color: #b45309; }
.waterfall-result-meta { margin: 10px 0 0; font-size: 0.85rem; color: #6b7280; }

.waterfall-last-result {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #eff6ff;
}

/* RTL brands: flip nothing — flex + logical spacing works in both directions */
[dir="rtl"] .waterfall-lookup { text-align: right; }
