@charset "UTF-8";

$headHeight : 1.2rem;
$liHeight : 1rem;
$fontSize: 0.45rem;
$styleColor : rgba(218, 218, 218, .7);

* {
  padding: 0;
  margin: 0;
  font-weight: 400;
}

.multi-picker-locked  {
  height: 100%!important;
  overflow: hidden!important;
}

.multi-picker-bg-delay {
  z-index: 999!important;
}

.multi-picker-bg {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(75,75,75,0);
  height: 100%;
  width: 100%;
  overflow: hidden;
  transition: all .3s ease;
  -webkit-transition: all .3s ease;
  z-index: -1;
}
.multi-picker-bg-up {
  z-index: 999!important;
  background: rgba(75,75,75,.65)!important;
}

.multi-picker-container {
  width: 100%;
  height: ($liHeight * 5 + $headHeight);
  position: absolute;
  bottom: 0;
  transform: translate3d(0,101%,0);
  -webkit-transform: translate3d(0,101%,0);
  left: 0;
  background-color: #FFF;
  transition: transform .3s ease;
  -webkit-transition: -webkit-transform .3s ease;
  z-index: -1;
}
.multi-picker-container-up {
  transform: translate3d(0,0,0)!important;
  -webkit-transform: translate3d(0,0,0)!important;
}

.multi-picker-btn-box {
  display: block;
  position: absolute;
  text-align: center;
  width: 100%;
  height: $headHeight;
  line-height: $headHeight;
  background: $styleColor;
  z-index: 10;
  & .multi-picker-btn {
    position: absolute;
    display: inline-block;
    margin: 0 20px;
    color: #fff;
    right: 0;
  }
  & .multi-picker-btn:nth-child(1){
    left: 0;
    right: initial;
  }
}

.multi-picker-content {
  position: absolute;
  width: 100%;
  background: #fff;
  font-size: 0;
  top: $headHeight;
  z-index: 10;
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  transition: transform .3s ease;
  -webkit-transition: -webkit-transform .3s ease;
  & .multi-picker {
    display: inline-block;
    height: $liHeight * 5;
    overflow: hidden;
    position: relative;
    z-index: -1;
    transition: width .3s ease;
    vertical-align: top;
    top: 0;
  }

  & ul::-webkit-scrollbar {
    display: none;
  }

  & li {
    height: $liHeight;
    text-align: center;
    font-size: $fontSize;
    line-height: $liHeight;
    list-style: none;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  & .multi-picker-up-shadow, .multi-picker-down-shadow {
    position: absolute;
    width: 100%;
    height: $liHeight * 2;
    pointer-events: none;
  }

  & .multi-picker-up-shadow {
    top: 0;
    background-image: linear-gradient(to bottom, #FFF, rgba(255, 255, 255, 0));
    z-index: 50;
  }
  & .multi-picker-down-shadow {
    bottom: $liHeight * -5;
    z-index: 50;
    background-image: linear-gradient(to top, #FFF, rgba(255, 255, 255, 0));
  }

  .multi-picker-line {
    width: 95%;
    height: $liHeight;
    position: absolute;
    top: $liHeight * 2;
    left: 50%;
    pointer-events: none;
    box-sizing: border-box;
    border-top: 1px solid #DCDCDC;
    border-bottom: 1px solid #DCDCDC;
    transform: translate3d(-50%,0,0);
    -webkit-transform: translate3d(-50%,0,0);
  }
}

