/* Full-screen language list (reference: black UI, flag + native name + chevron) */
.prx-lang-modal {
  direction: ltr;
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: #000;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s ease, visibility 0.22s;
}

.prx-lang-modal.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.prx-lang-modal__header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 8px 12px;
  flex-shrink: 0;
  border-bottom: 1px solid #1a1a1a;
}

.prx-lang-modal__back {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
}

.prx-lang-modal__back:active {
  opacity: 0.75;
}

.prx-lang-modal__title {
  margin: 0;
  font-family: 'Sora', 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  text-align: center;
}

.prx-lang-modal__list {
  list-style: none;
  margin: 0;
  padding: 0 0 calc(12px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.prx-lang-modal__item {
  display: grid;
  grid-template-columns: 40px 1fr 28px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: 'Nunito', sans-serif;
  -webkit-tap-highlight-color: transparent;
  border-bottom: 1px solid #1f1f1f;
}

.prx-lang-modal__item:active {
  background: rgba(255, 255, 255, 0.06);
}

.prx-lang-modal__flag {
  width: 36px;
  height: 26px;
  border-radius: 3px;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: 28px;
  line-height: 26px;
  text-align: center;
}

.prx-lang-modal__chevron {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  font-weight: 300;
  justify-self: end;
}

body.prx-lang-modal-open {
  overflow: hidden;
}
