.#{$prefix}select {
  width: 100%;
  position: relative;
  background-color: $nothing-color;
  border-radius: $radius-size;

  &::after {
    content: ' ';
    border-color: transparent;
    border-style: solid;
    width: 0;
    height: 0;
    position: absolute;
    margin-bottom: -3px;
  }

  &-top {
    &::after {
      @include arrow(bottom);
      @include arrowColor(bottom);

      top: 40%;
      right: 8px;
    }
  }

  &-bottom {
    &::after {
      @include arrow(top);
      @include arrowColor(top);

      bottom: 50%;
      right: 8px;
    }
  }

  &-selectBox {
    display: flex;
    align-items: center;

    &-tipSelect {
      width: 240px;
    }
  }

  &-tooltip {
    margin-left: 8px;
  }

  &-input {
    @include border(all);

    box-sizing: border-box;
    width: 100%;
    height: 32px;
    background: $nothing-color;
    border-radius: 4px;
    padding: 8px;
    font-size: 14px;
    color: $title-color;
    letter-spacing: 1px;
    line-height: 14px;
    transition: border 0.2s ease-in-out;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 20px;
    cursor: pointer;

    &::-webkit-input-placeholder {
      color: $text-color;
      letter-spacing: 1.08px;
      line-height: 16px;
      font-size: 14px;
    }

    &-error {
      @include border(all,$color-danger);
    }

    &:focus {
      @include border(all,$btn-color);

      background: $nothing-color;
      outline: none;
    }

    &[disabled] {
      background-color: $input-disable-color;
      opacity: 1;
      cursor: not-allowed;
      color: $input-disable-text-color;
    }
  }

  &-error {
    position: absolute;
    left: 8px;
    bottom: -15px;
    font-size: 12px;
    color: $color-danger;
    letter-spacing: 1.08px;
    line-height: 12px;
  }

  &-checkout {
    &-box {
      position: absolute;
      right: 8px;
      top: 50%;
      margin: -8px 0 0;
    }

    &-inner {
      @include border();

      width: 16px;
      height: 16px;
      border-radius: $radius-size;
      background: $background-color-write;
      display: block;

      &-checked {
        @include border(all, $border-on-color);

        background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAYAAADA+m62AAAAAXNSR0IArs4c6QAAAIRJREFUGBl9kE0KgzAUhCOCqBF6BRc9Rg/jHbxkqejOCnqObrowfiMJCv48+JK8N5MJxJibcs4l8IVHfOVDTNFGeEIJxjDM1oNf6HNo4Od3K1MFKt1UL9MHNpMXaoYzvGFvaumtf2RNiBgM8IcJlNTBZgpuhi9QKVlJRdAOO2IPqtOfWADjgJGjYN/vtgAAAABJRU5ErkJggg==) $background-active-color no-repeat center center;
      }

      &-disable {
        @include border(all, $border-color);

        background: $background-color-disable;
      }
    }

    &-status {
      width: 16px;
      height: 16px;
      display: block;
      margin: -8px 0 0;
      position: absolute;
      left: 1px;
      top: 50%;
      opacity: 0;
      filter: alpha(opacity=0);
    }
  }

  &-btn {
    width: 100%;
    height: 32px;
    display: block;
    cursor: pointer;
    text-indent: 10px;
    padding: 0 30px 0 0;
    border: 1px solid $border-color;
    border-radius: $radius-size;

    &::-webkit-input-placeholder {
      color: $text-color;
      font-size: 14px;
    }
  }

  &-label {
    @include clearfix();

    height: 32px;
    cursor: pointer;
    line-height: 32px;
    margin: 0;
    display: block;
    padding-left: 8px;
    position: relative;
    font-size: 14px;

    &:hover {
      background: $background-on-color;
    }

    &[disabled] {
      cursor: not-allowed;
    }

    &-disabled {
      color: $text-color;

      &:hover {
        cursor: not-allowed;
      }
    }

    &-text {
      display: inline-block;
      width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    &-more {
      height: 28px;
      line-height: 28px;
      font-size: 12px;
      text-align: center;
      color: #1996f9;
      cursor: pointer;
    }
  }

  &-delabel {
    padding: 0 8px;
    color: $text-color-default;
  }

  &-text {
    height: 32px;
    line-height: 32px;
    display: inline-block;
    max-width: 76%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: $text-color-default;
  }

  &-flag {
    position: absolute;
    width: 100%;
    left: 0;
    background-color: $nothing-color;
    z-index: 3; // 3 修复表单层级问题  http://form.evente.cn/1000039
    font-size: 12px;
    padding: 3px 0;
    border-top: none;
    border-radius: $radius-size;
    box-shadow: 0 5px 10px $shadow-color;

    &-top {
      bottom: 32px;
      box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    }

    &-bottom {
      top: 32px;
      box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    &-scroll {
      max-height: 160px;
      overflow: auto;
    }

    &-nothing {
      height: 100px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }

  &-custab {
    @include clearfix();

    padding: 5px 10px;
    line-height: 32px;
    position: relative;

    &-inp {
      text-indent: 10px;
      height: 32px;
      border-radius: $radius-size;
      border: 1px solid $border-color;
      position: relative;
      width: 100%;
      margin: 5px 0;
      left: 0;
      top: 0;
      z-index: 2;
    }

    &-btn {
      color: $background-active-color;
      float: right;
      cursor: pointer;
      position: absolute;
      top: 5px;
      right: 20px;
      z-index: 3;
      font-size: 14px;
    }
  }

  &-icon {
    float: left;
    height: 25px;
    width: 38px;
    margin: 3px 0 0;

    &-piece {
      float: left;
      padding-left: 8px;
    }

    &-tel {
      float: right;
    }
  }
}
