.language-select--enhanced {
  display: none !important;
}

.language-picker {
  position: relative;
  z-index: 40;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  isolation: isolate;
  font: inherit;
}

.language-picker__trigger {
  display: inline-flex;
  min-width: 132px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid rgba(151, 181, 207, .76);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #e7f1fb 54%, #dceaf7 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .96), inset 0 -1px 0 rgba(113, 151, 185, .12), 0 2px 4px rgba(40, 77, 117, .08), 0 7px 17px rgba(40, 77, 117, .11);
  color: #24476a;
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 180ms cubic-bezier(.22,.75,.24,1), background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.language-picker__trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(117, 157, 190, .82);
  background: linear-gradient(180deg, #fbfdff 0%, #e4effa 55%, #d7e7f5 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .98), inset 0 -1px 0 rgba(105, 145, 181, .14), 0 3px 6px rgba(40, 77, 117, .1), 0 10px 21px rgba(40, 77, 117, .14);
}

.language-picker__trigger:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(66, 105, 145, .1), 0 1px 3px rgba(40, 77, 117, .08);
}

.language-picker__trigger:focus {
  outline: none;
}

.language-picker__trigger:focus-visible {
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .96), 0 0 0 3px rgba(71, 145, 161, .24), 0 0 0 5px rgba(126, 184, 191, .14), 0 7px 17px rgba(40, 77, 117, .11);
}

.language-picker__icon {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #557ba0;
}

.language-picker__icon--chevron {
  width: 13px;
  height: 13px;
  color: #6483a1;
  transition: transform 180ms ease;
}

.language-picker.is-open .language-picker__icon--chevron {
  transform: rotate(180deg);
}

.language-picker__label-full,
.language-picker__label-compact {
  overflow: hidden;
  color: #24476a;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-picker__label-full {
  max-width: 154px;
}

.language-picker__label-compact {
  display: none;
}

.language-picker__menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 41;
  width: max-content;
  min-width: 216px;
  max-width: min(250px, calc(100vw - 24px));
  max-height: min(340px, calc(100vh - 96px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 7px;
  border: 1px solid rgba(151, 181, 207, .72);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(249, 252, 255, .98) 0%, rgba(229, 240, 251, .98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .94), 0 16px 38px rgba(31, 65, 101, .17), 0 4px 10px rgba(48, 87, 128, .08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-7px) scale(.985);
  transform-origin: top right;
  transition: opacity 190ms ease, transform 190ms cubic-bezier(.22,.75,.24,1), visibility 190ms;
}

.language-picker.is-open .language-picker__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.language-picker__option {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #355675;
  font-family: inherit;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease, border-color 150ms ease;
}

.language-picker__option:hover {
  transform: translateX(2px);
  border-color: rgba(169, 196, 220, .5);
  background: linear-gradient(100deg, rgba(213, 232, 249, .86), rgba(242, 248, 255, .72));
  color: #1e4264;
}

.language-picker__option[aria-checked="true"] {
  background: linear-gradient(100deg, rgba(215, 232, 249, .9), rgba(239, 246, 253, .85));
  color: #1c4d76;
  font-weight: 700;
}

.language-picker__option:focus {
  outline: none;
}

.language-picker__option:focus-visible {
  outline: none;
  border-color: rgba(91, 151, 166, .42);
  background: #e4f0fa;
  box-shadow: inset 0 0 0 2px rgba(91, 151, 166, .16);
}

.language-picker__check {
  flex: 0 0 16px;
  color: #2d7280;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
}

.language-picker__option[aria-checked="true"] .language-picker__check {
  opacity: 1;
}

@media (max-width: 680px) {
  .language-picker__trigger {
    min-width: 84px;
    min-height: 44px;
    gap: 8px;
    padding-inline: 10px;
  }

  .language-picker__label-full {
    display: none;
  }

  .language-picker__label-compact {
    display: inline;
    max-width: 42px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .035em;
  }

  .language-picker__menu {
    min-width: 212px;
    max-height: min(320px, calc(100vh - 82px));
  }

  .language-picker__option {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-picker__trigger,
  .language-picker__icon--chevron,
  .language-picker__menu,
  .language-picker__option {
    transition: none !important;
  }

  .language-picker__trigger:hover,
  .language-picker__option:hover,
  .language-picker__menu,
  .language-picker.is-open .language-picker__menu {
    transform: none;
  }
}
