/* Galaxy Mods style language selector */
.language-selector {
  position: relative;
}

.language-selector .choices {
  margin-bottom: 0 !important;
  min-width: 144px;
}

.language-selector .choices__inner {
  min-height: 44px !important;
  height: 44px;
  padding: 0 14px !important;
  display: flex;
  align-items: center;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0 !important;
}

.language-selector .choices__list--single {
  padding: 0 !important;
}

.language-selector .choices__list--single .choices__item {
  display: flex !important;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

/* Selected item: flag + code only */
.language-selector .choices__list--single .name {
  display: none !important;
}

.language-selector .choices__list--single .code {
  display: inline-block !important;
  font-weight: 600;
}

/* Flag */
.language-selector .flag {
  width: 30px !important;
  height: 20px !important;
  min-width: 30px;
  display: inline-block !important;
  object-fit: cover;
}

/* Dropdown */
.language-selector .choices__list--dropdown,
.language-selector .choices__list[aria-expanded] {
  width: 280px !important;
  min-width: 280px !important;
  right: 0 !important;
  left: auto !important;

  background: rgb(var(--cl-background)) !important;
  border: 1px solid rgba(var(--cl-accent), 0.55) !important;
  border-radius: 0 !important;

  z-index: 9999;
}

/* Every language row */
.language-selector .choices__list--dropdown .choices__item,
.language-selector .choices__list[aria-expanded] .choices__item {
  display: flex !important;
  align-items: center !important;

  gap: 12px !important;
  min-height: 48px;

  padding: 10px 12px !important;

  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;

  background: transparent !important;
  color: rgb(var(--cl-t-primary)) !important;
}

/* Hide codes in dropdown like Galaxy Mods */
.language-selector .choices__list--dropdown .code,
.language-selector .choices__list[aria-expanded] .code {
  display: none !important;
}

/* Keep language name visible */
.language-selector .choices__list--dropdown .name,
.language-selector .choices__list[aria-expanded] .name {
  display: inline-block !important;
  white-space: nowrap !important;
}

/* Highlighted / hovered language */
.language-selector .choices__list--dropdown .choices__item--selectable.is-highlighted,
.language-selector .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
  background: rgba(var(--cl-accent), 0.6) !important;
  color: rgb(var(--cl-t-primary)) !important;
}

/* Dropdown arrow */
.language-selector .choices[data-type*="select-one"]::after {
  border-color: rgba(var(--cl-t-primary), 0.45) transparent transparent !important;
}

/* Mobile */
.language-selector.xs .choices {
  min-width: 92px;
}

.language-selector.xs .choices__inner {
  height: 40px;
  min-height: 40px !important;
  padding: 0 10px !important;
}

.language-selector.xs .flag {
  width: 25px !important;
  height: 17px !important;
  min-width: 25px;
}

.language-selector .choices__list--single .choices__item,
.language-selector .choices__list--single .choices__item > span,
.language-selector .choices__list--single .choices__item span.flex {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

.language-selector .choices__list--dropdown .choices__item,
.language-selector .choices__list--dropdown .choices__item > span,
.language-selector .choices__list--dropdown .choices__item span.flex {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

@media (min-width: 768px) {
  .hero-title {
    white-space: nowrap;
    max-width: none;
  }

body,
body * {
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}