/* Uniform, bounded provider cards for all five skins. Logo pixels never size
   the rail: SVG viewBox, explicit boxes and contain preserve the actual mark. */
#providerTabs {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  padding: 12px 4px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #b89bce66 transparent;
  scroll-snap-type: x proximity;
}
#providerTabs .provider-tab {
  box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-rows: 58px minmax(28px, 1fr);
  justify-items: center;
  align-items: center;
  align-content: center;
  flex: 0 0 124px;
  width: 124px;
  min-width: 124px;
  max-width: 124px;
  height: 106px;
  min-height: 106px;
  max-height: 106px;
  padding: 8px;
  gap: 4px;
  border: 1px solid #ffffff24;
  border-radius: 14px;
  background: linear-gradient(145deg, #24202e, #141219);
  color: #eee9f5;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
#providerTabs .provider-tab:hover { border-color: #d4b6f1; }
#providerTabs .provider-tab.active {
  border-color: var(--pink, var(--gold, #c997ff));
  background: linear-gradient(145deg, #443052, #22192d);
  box-shadow: inset 0 0 0 1px #ffffff12;
}
#providerTabs .provider-tab:focus-visible { outline: 3px solid #efccff; outline-offset: 2px; }
#providerTabs .provider-logo {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  grid-template-columns: minmax(0, 1fr);
  width: 106px;
  min-width: 0;
  max-width: 100%;
  height: 58px;
  min-height: 58px;
  max-height: 58px;
  margin: 0;
  padding: 4px 6px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #19161e;
}
#providerTabs .provider-logo img {
  display: block;
  width: 94px;
  height: 50px;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  filter: none;
}
#providerTabs .provider-logo-light { background: #f4f1f6; }
#providerTabs .provider-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  width: 100%;
  max-height: 29px;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  color: inherit;
  text-transform: none;
  overflow-wrap: anywhere;
}
#providerTabs .provider-tab[data-provider=""] { display: flex; justify-content: center; font-weight: 700; }
#providerTabs .provider-logo-fallback { background: #29232f; }
#providerTabs .provider-logo-fallback .provider-monogram { display: none; }
#providerTabs .provider-wordmark { color: inherit; font-size: 11px; line-height: 1.15; text-align: center; }
@media (max-width: 600px) {
  #providerTabs { gap: 8px; }
  #providerTabs .provider-tab { flex-basis: 110px; width: 110px; min-width: 110px; max-width: 110px; height: 102px; min-height: 102px; max-height: 102px; padding: 6px; }
  #providerTabs .provider-logo { width: 96px; padding: 4px; }
  #providerTabs .provider-logo img { width: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  #providerTabs { scroll-behavior: auto; }
  #providerTabs .provider-tab { transition: none; }
}
