.tpm-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 1200;
}

.tpm-lang-switcher--nav {
  margin-left: 16px;
  flex: 0 0 auto;
}

.tpm-lang-switcher--floating {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: calc(env(safe-area-inset-right, 0px) + 12px);
}

.tpm-lang-switcher__btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  min-width: 42px;
  background: transparent;
  color: #5a5a60;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tpm-lang-switcher__btn:hover {
  background: rgba(0, 136, 204, 0.08);
  color: #0088cc;
}

.tpm-lang-switcher__btn.is-active {
  background: #0088cc;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 136, 204, 0.25);
}

.tpm-lang-switcher__btn:active {
  transform: scale(0.98);
}

@media (max-width: 640px) {
  .tpm-lang-switcher--nav {
    margin-left: 10px;
  }

  .tpm-lang-switcher--floating {
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    right: calc(env(safe-area-inset-right, 0px) + 10px);
  }

  .tpm-lang-switcher__btn {
    padding: 6px 9px;
    min-width: 38px;
    font-size: 11px;
  }
}
