.nfa-language {
  position: relative;
  flex: 0 0 auto;
  color: #e8e1e6;
}

.nfa-language[open] {
  z-index: 20;
}

.nfa-language > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 46px;
  min-height: 36px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  font-size: .78rem;
  font-weight: 750;
  line-height: 1;
}

.nfa-language > summary::-webkit-details-marker {
  display: none;
}

.nfa-language[open] > summary, .nfa-language > summary:hover {
  border-color: #58313d;
  background: #21151c;
}

.nfa-language-chevron {
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}

.nfa-language[open] .nfa-language-chevron {
  transform: translateY(1px) rotate(225deg);
}

.nfa-language-options {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 156px;
  margin: 0;
  padding: 5px;
  border: 1px solid #55404b;
  border-radius: 10px;
  background: #161219;
  box-shadow: 0 14px 30px #0009;
  list-style: none;
}

.nfa-language-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #e8e1e6;
  cursor: pointer;
  font: inherit;
  font-size: .85rem;
  text-align: start;
}

.nfa-language-options button:hover, .nfa-language-options button[aria-pressed="true"] {
  background: #2a1c25;
}

.nfa-language-options button[aria-pressed="true"]::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #ff7e98;
  border-bottom: 2px solid #ff7e98;
  transform: rotate(-45deg);
}

.nfa-language :is(summary, button):focus-visible {
  outline: 2px solid #ff7e98;
  outline-offset: -2px;
}

@media (max-width: 540px) {
  .nfa-language > summary {
    min-width: 37px;
    gap: 5px;
    padding-inline: 5px;
  }
}
