@import '../../styles/mixins/text-ellipsis.scss';
@import '../overlay/overlay.scss';

.nut-picker-item__content {
  // padding: $picker-item-content-padding;
  max-height: $picker-item-content-max-height;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  background: $picker-item-content-bg-color;
  &--multi {
    height: $picker-item-content-multi-height;
    position: sticky;
    top: 0;
    box-sizing: border-box;
    padding: $picker-item-content-multi-padding;
    display: flex;
    width: 100%;
    z-index: 9;
    justify-content: space-between;
    background: $picker-item-content-bg-color;
    &-all-text {
      font-weight: 400;
      font-size: 14px;
      color: #595959;
      margin-right: 24px;
    }
  }
  &_fixed {
    width: 100%;
    opacity: 0;
    position: fixed;
  }
}

.nut-picker-item__option {
  color: $picker-item-option-color;
  font-size: $font-size-2;
  padding: $picker-item-option-padding;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height:  $picker-item-option-line-height;
  font-weight: 400;
  &.active {
    font-weight: 500;
    color: $picker-item-active-text-color;
    font-size: 14px;
  }
  
  &--description {
    @include text-ellipsis;
    max-width: 80vw;
    font-weight: 400;
    font-size: $picker-item-description-font-size;
    color: $picker-item-description-color;
  }
  &.disabled {
    color: $picker-item-disabled-text-color;
    .nut-picker-item__option--description {
      color: $picker-item-disabled-text-color;
    }
  }
  // i {
  //   margin-right: $picker-item-option-i-margin-right;
  //   display: inline-flex;
  //   align-items: center;
  // }
}

.nut-picker-item__wrap,
.nut-picker-item__wrap-up {
  // position: absolute;
  width: 100%;
  z-index: 2052;
  overflow: hidden;
}

.overlay-fade-enter-active.nut-picker__overlay {
  top: auto;
  z-index: 2052;
}

.nut-picker__pop.nut-popup {
  transition: all 0s ease 0s;
  transform: none;
}

.picker-item-enter {
  opacity: 0;
  transform: translate(0, -30px);
}

.picker-item-enter-done {
  opacity: 1;
  transform: translate(0, 0);
  transition: all 100ms;
}

.picker-item-exit {
  opacity: 1;
  transition: all 100ms;
}

.picker-item-exit-done {
  opacity: 0;
  transition: all 100ms;
}

.picker-item-up-enter {
  opacity: 0;
  transform: translate(0, 30px);
}

.picker-item-up-enter-done {
  opacity: 1;
  transform: translate(0, 0);
  transition: all 100ms;
}

.picker-item-up-exit {
  opacity: 1;
  transition: all 100ms;
}

.picker-item-up-exit-done {
  opacity: 0;
  transition: all 100ms;
}
