:root {
  --website-locale-switcher-bg: rgba(17, 18, 20, 0.9);
  --website-locale-switcher-border: rgba(255, 255, 255, 0.14);
  --website-locale-switcher-text: #f4f7f6;
  --website-locale-switcher-muted: #b7c3bf;
  --website-locale-switcher-accent: #00c4b4;
}

.website-locale-switcher {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;
}

.website-locale-switcher[open] {
  z-index: 1001;
}

.website-locale-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--website-locale-switcher-border);
  border-radius: 999px;
  background: var(--website-locale-switcher-bg);
  color: var(--website-locale-switcher-text);
  backdrop-filter: blur(12px);
  cursor: pointer;
  list-style: none;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.website-locale-switcher__toggle::-webkit-details-marker {
  display: none;
}

.website-locale-switcher__icon {
  font-size: 1rem;
}

.website-locale-switcher__current {
  font-size: 0.95rem;
  font-weight: 700;
}

.website-locale-switcher__menu {
  margin-top: 10px;
  min-width: 160px;
  border: 1px solid var(--website-locale-switcher-border);
  border-radius: 18px;
  background: rgba(26, 28, 31, 0.96);
  backdrop-filter: blur(14px);
  padding: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

.website-locale-switcher__option {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--website-locale-switcher-text);
  text-decoration: none;
  font-size: 0.95rem;
}

.website-locale-switcher__option:hover,
.website-locale-switcher__option:focus-visible,
.website-locale-switcher__option.is-active {
  background: rgba(0, 196, 180, 0.14);
  color: var(--website-locale-switcher-accent);
}

.website-locale-switcher.is-inline {
  position: relative;
  top: auto;
  right: auto;
}

.website-locale-switcher.is-inline .website-locale-switcher__toggle {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(17, 19, 22, 0.96) 0%, rgba(10, 11, 13, 0.96) 100%);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.website-locale-switcher.is-inline .website-locale-switcher__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  margin-top: 0;
}

.website-locale-switcher.is-home-nav .website-locale-switcher__toggle {
  gap: 0.5rem;
  min-height: 40px;
}

.website-locale-switcher.is-home-nav .website-locale-switcher__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(0, 196, 180, 0.14);
  color: var(--website-locale-switcher-accent);
  font-size: 0.9rem;
}

.website-locale-switcher.is-home-nav .website-locale-switcher__current {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--website-locale-switcher-muted);
}

.website-locale-switcher.is-home-nav[open] .website-locale-switcher__current,
.website-locale-switcher.is-home-nav .website-locale-switcher__toggle:hover .website-locale-switcher__current {
  color: var(--website-locale-switcher-text);
}

@media (max-width: 640px) {
  .website-locale-switcher {
    top: 12px;
    right: 12px;
  }

  .website-locale-switcher__toggle {
    padding: 9px 12px;
  }

  .website-locale-switcher.is-inline .website-locale-switcher__menu {
    left: auto;
    right: 0;
  }
}
