.site-switcher {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
}

.site-switcher__toggle {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink, #141821);
  text-align: left;
}

.site-switcher__toggle:hover,
.site-switcher__toggle[aria-expanded="true"] {
  color: var(--accent-2, #155e75);
}

.site-switcher__toggle:focus-visible {
  outline: 2px solid var(--accent-2, #155e75);
  outline-offset: 5px;
}

.site-switcher__caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line, #dbe4ec);
  border-radius: 50%;
  background: #fff;
  color: var(--muted, #536173);
  transition: transform .2s ease, color .2s ease, background .2s ease;
}

.site-switcher__caret svg {
  width: 14px;
  height: 14px;
}

.site-switcher.is-open .site-switcher__caret {
  transform: rotate(180deg);
  border-color: #b9d5dc;
  background: #eaf4f6;
  color: var(--accent-2, #155e75);
}

.site-switcher__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 30;
  width: min(380px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 112px));
  max-height: min(560px, calc(100dvh - 112px));
  padding: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  border: 1px solid var(--line, #dbe4ec);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .16), 0 3px 10px rgba(15, 23, 42, .06);
}

.site-switcher__menu[hidden] {
  display: none;
}

.site-switcher__heading {
  padding: 5px 8px 8px;
  color: var(--muted, #536173);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-switcher__heading--providers {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #e7edf1;
}

.site-switcher__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink, #141821);
  text-decoration: none;
}

.site-switcher__item + .site-switcher__item {
  margin-top: 3px;
}

.site-switcher__item:hover,
.site-switcher__item:focus-visible {
  border-color: #c7dde2;
  background: #f0f7f8;
  color: var(--accent, #113d45);
}

.site-switcher__item:focus-visible {
  outline: 2px solid var(--accent-2, #155e75);
  outline-offset: -2px;
}

.site-switcher__item[aria-current="page"] {
  margin-bottom: 8px;
  border-color: #c7dde2;
  background: #eaf4f6;
}

.site-switcher__logo {
  display: block;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 5px;
  border: 1px solid #e2e8ee;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.site-switcher__copy {
  display: grid;
  flex: 1 1 auto;
  gap: 3px;
  min-width: 0;
}

.site-switcher__copy strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.site-switcher__copy small {
  color: var(--muted, #536173);
  font-size: 12px;
  line-height: 1.3;
}

.site-switcher__current {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #d7e9ed;
  color: var(--accent, #113d45);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .site-switcher__caret {
    transition: none;
  }
}
