/* Shared language control: Ghost Gate, registration and desktop settings. */
select[data-entry-locale],
select[data-settings-locale] {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 42px 10px 14px;
  border: 1px solid #318b51;
  border-radius: 3px;
  background-color: #031109;
  background-image:
    linear-gradient(45deg, transparent 50%, #39ff80 50%),
    linear-gradient(135deg, #39ff80 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  color: #d7ffe0;
  color-scheme: dark;
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

select[data-entry-locale]:hover:not(:disabled),
select[data-settings-locale]:hover:not(:disabled) {
  border-color: #39ff80;
  box-shadow: inset 0 0 12px rgb(57 255 128 / 8%);
}

select[data-entry-locale]:focus-visible,
select[data-settings-locale]:focus-visible {
  border-color: #39ff80;
  outline: 2px solid #39ff80;
  outline-offset: 3px;
  box-shadow: 0 0 14px rgb(57 255 128 / 18%);
}

select[data-entry-locale]:disabled,
select[data-settings-locale]:disabled {
  opacity: 0.55;
  cursor: wait;
}

select[data-entry-locale] option,
select[data-settings-locale] option {
  background: #031109;
  color: #d7ffe0;
}

@media (max-width: 600px) {
  select[data-entry-locale],
  select[data-settings-locale] {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  select[data-entry-locale],
  select[data-settings-locale] {
    transition: none;
  }
}

@media (forced-colors: active) {
  select[data-entry-locale],
  select[data-settings-locale] {
    appearance: auto;
    background-image: none;
  }
}
