@import '../../app.less';

.answer-select {
  position: relative;
  display: inline-block;

  .mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
  }

  .select-warp {
    line-height: 25px;
    display: inline-block;
    position: relative;

    .text {
      display: inline-block;
      border: 1px solid rgba(216, 216, 216, 1);
      background: rgba(248, 248, 248, 1);
      border-radius: 6px;
      cursor: pointer;
      min-width: 100px;
      padding-right: 20px;
      text-align: right;

      .assets {
        position: absolute;
        right: 5px;
        top: 8px;
      }
    }
  }

  .select-body {
    overflow: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(216, 216, 216, 1);
    border-radius: 6px;
    box-sizing: border-box;
    opacity: 0;
    z-index: 2;
    transform: translateY(100%);

    .select-option {
      height: 0;
      line-height: 25px;
      padding-left: 10px;
      font-size: 12px;
      cursor: pointer;
      transition: all 0.3s;
    }

    .select-option:hover {
      color: #fff;
      background: #006DAA;
    }

    .select-option:last-child {
      border-bottom: none;
    }
  }

  .select-body.select {
    opacity: 1;

    .select-option {
      height: auto;
    }
  }
}