/*
 * TRUST-PUBLIC-BADGE-SURFACE-CLOSURE-1C
 * Canonical Trust badge — Services archive cards, homepage listing cards,
 * and the map popup badge line. Deliberately unscoped by any body/page
 * class (unlike apt-services.css's .apt-service-card__badge rules) so the
 * same compact fragment renders identically wherever it is injected.
 * Color communicates tier as a secondary cue only — the badge label text
 * ("Verified Business" / "Fully Verified Business") is always the primary,
 * text-based signal, never color alone.
 */

.apt-trust-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 4px 0;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.apt-trust-badge__main {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  background: #E8F0FE;
  color: #1450C7;
}

.apt-trust-badge--fully_verified .apt-trust-badge__main {
  background: #E6F6EC;
  color: #1B7A3D;
}

.apt-trust-badge__main i {
  font-size: 0.75em;
}

.apt-trust-badge__detail {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: #FBF3DA;
  color: #8A6A11;
}

.apt-trust-badge__link {
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: underline;
  color: inherit;
}

.apt-trust-badge__link:focus-visible,
.apt-trust-badge__main:focus-visible {
  outline: 2px solid #1450C7;
  outline-offset: 2px;
}

/* Map popup variant — one compact line, no wrapping detail pills. */
.apt-popup__trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  font-size: 0.75rem;
}

.apt-popup__trust-badge .apt-trust-badge__main {
  padding: 1px 8px;
  font-size: 0.6875rem;
}

@media (max-width: 480px) {
  .apt-trust-badge {
    gap: 4px 6px;
  }

  .apt-trust-badge__main,
  .apt-trust-badge__detail {
    font-size: 0.6875rem;
  }
}
