/**
 * Compat NiceSelect2 (header language) with jquery-nice-select CSS (forms).
 * jquery-nice-select styles `ul.list` as the dropdown; NiceSelect2 wraps it in
 * `.nice-select-dropdown`. These rules restore open/close without breaking forms.
 */
.nice-select .nice-select-dropdown {
  margin-top: 4px;
  background-color: transparent;
  border-radius: 5px;
  box-shadow: none;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  transform-origin: 50% 0;
  transform: scale(0.75) translateY(19px);
  transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out;
  z-index: 99;
  opacity: 0;
}

.nice-select.open .nice-select-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

/* Nested list must not inherit jquery-nice-select absolute/opacity rules */
.nice-select .nice-select-dropdown > .list {
  opacity: 1 !important;
  pointer-events: auto !important;
  position: static !important;
  transform: none !important;
  margin-top: 0 !important;
  box-shadow: none !important;
  max-height: none !important;
  overflow: visible !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
}
