﻿.lang-switcher-host,
.auth-lang-row,
.workspace-language-switcher {
  display: flex;
  align-items: center;
}

.auth-lang-row {
  justify-content: flex-end;
  margin-bottom: 14px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid rgba(166, 202, 255, 0.18);
  background: rgba(7, 20, 35, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.cs-theme-light .lang-switcher {
  border-color: rgba(61, 99, 145, 0.18);
  background: rgba(255, 255, 255, 0.9);
}

.lang-switcher-btn {
  box-sizing: border-box;
  flex: 0 0 auto;
  min-width: 44px;
  height: 34px;
  margin: 0;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text, #edf5ff);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  letter-spacing: 0.01em;
  cursor: pointer;
  transform: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

body.cs-theme-light .lang-switcher-btn {
  color: #173554;
}

.lang-switcher-btn:hover {
  border-color: rgba(166, 202, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

body.cs-theme-light .lang-switcher-btn:hover {
  border-color: rgba(61, 99, 145, 0.2);
  background: rgba(15, 48, 83, 0.06);
}

.lang-switcher-btn:focus-visible {
  outline: 2px solid rgba(140, 181, 29, 0.42);
  outline-offset: 2px;
}

.lang-switcher-btn.is-active {
  border-color: rgba(211, 239, 137, 0.55);
  background: linear-gradient(135deg, #a5d12a 0%, #86b416 100%);
  color: #122008;
  box-shadow: 0 10px 22px rgba(138, 181, 29, 0.18);
}

.customer-head-right .workspace-language-switcher {
  margin-right: 2px;
}

@media (max-width: 680px) {
  .auth-lang-row {
    margin-bottom: 12px;
  }

  .lang-switcher-btn {
    min-width: 40px;
    height: 32px;
    padding: 0 10px;
  }
}

body.auth-login [data-lang-switcher],
body.auth-login .lang-switcher-host,
body.auth-login .auth-lang-row,
body.auth-login .workspace-language-switcher,
body.auth-login .lang-switcher {
  display: none !important;
}
