.language-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid #e6e8ee;
  border-radius: 999px;
  background: #f3f4f7;
  color: #2f2b4a;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.language-control:hover {
  background: #eceef3;
  border-color: #d8dbe3;
}

.language-control:focus-within {
  border-color: #c9ccd6;
  box-shadow: 0 0 0 3px rgba(47, 43, 74, 0.08);
}

.language-control .language-icon {
  position: static;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #2f2b4a;
  pointer-events: none;
}

.language-control .language-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.language-control select {
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  max-width: none;
  min-width: 5.5rem;
  min-height: 38px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0;
  color: #2f2b4a;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
}

.language-control select:hover {
  border-color: transparent;
  background: transparent;
}

.language-control select:focus {
  outline: none;
}

.language-control .select-arrow {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid #2f2b4a;
  border-bottom: 1.6px solid #2f2b4a;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

@media (max-width: 520px) {
  .language-control {
    min-height: 36px;
    padding: 0 30px 0 10px;
  }

  .language-control select {
    min-width: 4.75rem;
    min-height: 34px;
    font-size: 0.82rem;
  }
}
