
.nut-picker {
  background-color: $background-color3;
  width: 100%;

  &__control {
    display: flex;
    height: 56px;
    font-size: 16px;
    align-items: center;
    justify-content: space-between;
    padding: $picker-bar-button-padding;
  }

  &__cancel-btn {
    color: $picker-bar-cancel-color;
    font-size: $picker-bar-cancel-font-size;
  }

  &__confirm-btn {
    color: $picker-bar-ok-color;
    font-size: $picker-bar-ok-font-size;
  }

  &__title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    color: $picker-bar-title-color;
    font-size: $picker-bar-title-font-size;
    font-weight: $picker-bar-title-font-weight;
  }

  &__panel {
    display: flex;
    position: relative;
  }

  &-indicator {
    position: absolute;
    top: 108px;
    height: $picker-item-height;
    width: 100%;
    border: $picker-item-active-line-border;
    border-left: 0;
    border-right: 0;
    color: $picker-item-text-color;
    font-size: $picker-item-text-font-size;
    z-index: 3;
  }

  &-list {
    flex: 1;
    position: relative;
    height: $picker-list-height;
    overflow: hidden;
    text-align: center;
  }

  &-list-panel {
    transform-style: preserve-3d;
  }

  &-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: $picker-mask-bg-img;
    background-position: top, bottom;
    background-size: 100% 108px;
    background-repeat: no-repeat;
    z-index: 3;
  }

  &-view-panel {
    height: $picker-list-height;
    flex-grow: 1;
  }

  &-content,
  &-roller {
    position: absolute;
    top: 108px;
    width: 100%;
    height: $picker-item-height;
  }

  &-content {
    background: #fff;
    z-index: 2;
    overflow: hidden;
  }

  &-item,
  &-roller-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: $picker-item-height;
    line-height: $picker-item-height;
    color: $picker-item-text-color;
    font-size: $picker-item-text-font-size;
    text-align: center;
  }

  &-item {
    font-size: 16px;
    background: #fff;
  }

  &-roller {
    z-index: 1;
    transform-style: preserve-3d;
  }

  &-roller-item {
    backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    position: absolute;
    top: 0;
    width: 100%;
    color: $gray1;
  }

  &-roller-item-title {
    display: block;
    width: 100%;
    height: 36px;
    line-height: 36px;
    text-align: center;
    color: $gray1;
    font-size: $picker-bar-title-font-size;
  }

  &-roller-item-hidden {
    visibility: hidden;
    opacity: 0;
  }

  &-placeholder {
    height: 1px;
  }
}
