/* Equal frames keep square and horizontal provider marks legible without stretching. */
.provider-tabs {
  align-items: stretch;
  gap: 10px;
  padding: 5px 3px 12px;
  scrollbar-width: thin;
  scrollbar-color: #53677d transparent;
}
.provider-tab {
  flex: 0 0 122px;
  min-width: 0;
  padding: 9px 6px 8px;
  gap: 8px;
  border: 1px solid #253346;
  border-radius: 12px;
  background: #0c1623;
  color: #dce5ee;
  transition: border-color .15s ease, background-color .15s ease;
}
.provider-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 72px;
  width: 108px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.provider-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.provider-logo--light {
  padding: 7px;
  border-radius: 9px;
  background: #f4f6f9;
}
.provider-logo--zoom { overflow: hidden; }
.provider-logo--zoom img {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
}
.provider-tab > span:last-child {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  max-width: 108px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .035em;
  overflow-wrap: anywhere;
  text-align: center;
}
.provider-logo-fallback {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid #365367;
  border-radius: 16px;
  background: #142b3c;
  color: #f0c76c;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: .02em;
}
.provider-tab:hover, .provider-tab.active {
  border-color: #e8bd5c;
  background: #172438;
  color: #fff;
}
.provider-tab:hover .provider-logo, .provider-tab.active .provider-logo {
  border: 0;
  box-shadow: none;
}
.provider-tab:focus-visible {
  outline: 2px solid #ebc771;
  outline-offset: 2px;
}
@media (max-width: 820px) {
  .provider-tabs { gap: 8px; padding-bottom: 9px; }
  .provider-tab { flex-basis: 102px; padding: 8px 5px 7px; gap: 6px; }
  .provider-logo { width: 90px; height: 62px; flex-basis: 62px; }
  .provider-tab > span:last-child { max-width: 90px; font-size: 9px; min-height: 26px; }
  .provider-logo-fallback { width: 56px; height: 56px; font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .provider-tab { transition: none; }
}
