/* Portable component styles; host themes can override the custom properties. */
.mcsite-language-switcher {
  position: relative;
  list-style: none;
  color: var(--mcsite-language-color, #124265);
  font: inherit;
}
.mcsite-language-switcher .mcsite-language-switcher__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  cursor: pointer;
  list-style: none;
  border-radius: 4px;
}
.mcsite-language-switcher__toggle::-webkit-details-marker { display: none; }
.mcsite-language-switcher__arrow {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.mcsite-language-switcher__details[open] .mcsite-language-switcher__arrow {
  transform: translateY(2px) rotate(225deg);
}
.mcsite-language-switcher .mcsite-language-switcher__flag {
  display: block;
  width: 24px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}
.mcsite-language-switcher .mcsite-language-switcher__panel {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 100;
  min-width: 170px;
  max-width: calc(100vw - 40px);
  padding: 8px 0;
  background: var(--mcsite-language-background, #fff);
  border-radius: 4px;
  box-shadow: 0 5px 30px rgb(0 0 0 / 12%);
}
.mcsite-language-switcher .mcsite-language-switcher__link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 16px;
  color: inherit;
  font: inherit;
  font-size: 15px;
  text-decoration: none;
  white-space: normal;
}
.mcsite-language-switcher__toggle:hover,
.mcsite-language-switcher .mcsite-language-switcher__link:hover,
.mcsite-language-switcher .mcsite-language-switcher__link[aria-current="page"] {
  color: var(--mcsite-language-accent, #2487ce);
  background: var(--mcsite-language-highlight, #f3f8fc);
}
.mcsite-language-switcher__toggle:focus-visible,
.mcsite-language-switcher__link:focus-visible {
  outline: 2px solid var(--mcsite-language-accent, #2487ce);
  outline-offset: -2px;
}
