.custom-language-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin-left: auto;
  padding: 4px;
  background: #f1f3f5;
  border: 1px solid #e5e7eb;
  border-radius: 30px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.custom-language-switcher .custom-lang-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 13px;
  border: none;
  border-radius: 25px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-language-switcher .custom-lang-btn:hover {
  color: #111827;
}

.custom-language-switcher .custom-lang-btn.active {
  background: #ffffff;
  color: #111827;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.custom-language-switcher .custom-lang-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.custom-language-switcher .custom-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.custom-language-switcher .lang-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  flex-shrink: 0;
}

.custom-language-switcher .custom-lang-btn:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.custom-language-switcher .custom-lang-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .custom-language-switcher {
    gap: 2px;
    padding: 3px;
    border-radius: 30px;
  }

  .custom-language-switcher .custom-lang-btn {
    min-height: 3px;
    min-width: 60px;
    padding: 8px 10px;
    font-size: 12px;
    gap: 6px;
    white-space: nowrap;
  }

  .custom-language-switcher .lang-flag {
    width: 19px;
    height: 14px;
  }
}
