@import './common/var.css';

.van-picker {
  overflow: hidden;
  user-select: none;
  position: relative;
  background-color: $white;
  -webkit-text-size-adjust: 100%; /* avoid iOS text size adjust */

  &__toolbar {
    display: flex;
    height: 40px;
    line-height: 40px;
    justify-content: space-between;
  }

  &__cancel,
  &__confirm {
    color: $blue;
    padding: 0 15px;

    &:active {
      background-color: $active-color;
    }
  }

  &__title {
    max-width: 50%;
    text-align: center;
  }

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

  &__loading {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    position: absolute;
    background-color: rgba(255,255,255,.9);

    circle {
      stroke: $blue;
    }
  }

  &__loading .van-loading,
  &__frame {
    top: 50%;
    left: 0;
    width: 100%;
    z-index: 1;
    position: absolute;
    pointer-events: none;
    transform: translateY(-50%);
  }

  &-column {
    flex: 1;
    overflow: hidden;
    font-size: 17px;
    text-align: center;

    &__item {
      padding: 0 5px;
      color: $gray-darker;

      &--selected {
        color: $black;
      }

      &--disabled {
        opacity: .3;
      }
    }
  }
}
