.cbu-language-switcher,
.cbu-language-switcher * {
  box-sizing: border-box;
}

.cbu-language-switcher {
  position: fixed;
  z-index: 99990;
  left: max(18px, env(safe-area-inset-left));
  bottom: calc(48px + env(safe-area-inset-bottom));
  width: max-content;
  max-width: calc(100vw - 36px);
  color: #172033;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.cbu-language-switcher__toggle {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #003399;
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .24);
  font: 650 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  cursor: pointer;
  transition: background-color .16s ease, transform .16s ease;
}

body .cbu-language-switcher .cbu-language-switcher__toggle:hover,
body .cbu-language-switcher .cbu-language-switcher__toggle:focus,
body .cbu-language-switcher .cbu-language-switcher__toggle:focus-visible,
body .cbu-language-switcher .cbu-language-switcher__toggle:active,
body .cbu-language-switcher .cbu-language-switcher__toggle[aria-expanded="true"] {
  background: #6699FF !important;
  border-color: #FFFFFF !important;
  color: #071226 !important;
}

.cbu-language-switcher__toggle:focus-visible,
.cbu-language-switcher__option:focus-visible {
  outline: 3px solid #7FA8FF;
  outline-offset: 3px;
}

.cbu-language-switcher__toggle:disabled {
  cursor: progress;
  opacity: .88;
}

.cbu-language-switcher__toggle svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cbu-language-switcher__chevron {
  margin-left: 2px;
  font-size: 18px;
  line-height: 1;
  transform: rotate(180deg);
}

.cbu-language-switcher__menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: 224px;
  max-width: calc(100vw - 36px);
  padding: 7px;
  border: 1px solid rgba(0, 51, 153, .18);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(6, 20, 48, .22);
}

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

.cbu-language-switcher__option {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #172033;
  text-align: left;
  font: 500 14px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  cursor: pointer;
}

.cbu-language-switcher__option:hover {
  background: #edf3ff;
  color: #3366CC;
}

.cbu-language-switcher__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .cbu-language-switcher {
    left: max(12px, env(safe-area-inset-left));
    bottom: calc(48px + env(safe-area-inset-bottom));
  }

  .cbu-language-switcher__toggle {
    min-height: 46px;
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cbu-language-switcher__toggle {
    transition: none;
  }
}
