@import '../../style/hairline.less';

@prefixs: bs-modal;

.@{prefixs} {
  .@{prefixs}-shadow {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 98;
    background-color: rgba(0, 0, 0, 0.5);
  }
}

.@{prefixs}-wrapper  {
  border-radius: 5px;
}

// .bs-modal-textare-content:empty:before {
//   content: attr(placeholder);
//   color: #bbb;
// }
// .bs-modal-textare-content:focus{
//   content: none;
// }
.bs-modal-textare-content{
  line-height: 22px;
  font-weight: 400;
}
.button-style() {
  display: inline-block;
  text-align: center;
  // border: 1px solid #fff;
  .hairline('all', #fff, 100px);
  //border-radius: 100px;
  width: 120px;
  height: 34px;
  left: 28px;
}

.btn-text-style() {
  font-size:16px;
  color:#fff;
  line-height: 34px;
}

.@{prefixs}-wrapper {
  width: 100%;
  position: fixed;
  z-index: 99;
  top: 50%;
  left: 50%;
  background-image: linear-gradient(-180deg, #4ba7ff 0%, #5374ff 100%);
  transform: translate(-50%,-50%);
  .@{prefixs}-img {
    border-radius: 5px;
    width: 100%;
  }
  .@{prefixs}-textare-wrapper {
    position: absolute;
    width: 90%;
    bottom: 84px;
    left: 50%;
    margin-left: -3px;
    transform: translateX(-50%);
    .@{prefixs}-textare-content {
      resize: none;
      margin-bottom: 20px;
      width: 100%;
      height: 86px !important;
      background-color: #fff;
      border-top-right-radius: 3px;
      border-top-left-radius: 3px;
      border-bottom-right-radius: 0;
      border-bottom-left-radius: 0;
      padding: 12px 3px 0 3px;
      outline: 0;
      border: 1px solid #a0b3d6;
      border-bottom-color: #fff;
      font-size: 16px;
      word-wrap: break-word;
      overflow-x: hidden;
      overflow-y: auto;
      padding-top: 10px !important;
    }
    .@{prefixs}-textare-text-num {
      width: 100%;
      background: #fff;
      position: absolute;
      text-align: right;
      border: 1px solid #a0b3d6;
      border-top-width: 0px;
      padding-right: 1px;
      padding: 3px;
      border-bottom-left-radius: 3px;
      border-bottom-right-radius: 3px;
      bottom: -2px;
      height: 20px;
      span {
        font-size: 12px;
        color: #bfc4c7;
        line-height: 14px;
        text-align: right;
        margin-right: 12px;
      }
    }
  }
  .@{prefixs}-button-wrapper {
    position: absolute;
    width: 100%;
    bottom: 25px;
    // text-align: center;
    .@{prefixs}-button-1 {
      margin-right: 14px;
      .button-style();
      span {
        .btn-text-style();
      }
    }
    .@{prefixs}-button-2 {
      margin-left: 14px;
      .button-style();
      span {
        .btn-text-style();
      }
    }
  }
}
.@{prefixs}-close-btn-con{
  text-align: center;
  margin-top: 24px;
}
.@{prefixs}-close-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #fff;
  border-radius: 100%;
  display: inline-block;
  position: relative;
  z-index: 99;
  color: #fff;
  font-size: 22px;
  line-height: 36px;
}
.bs-modal-textare-content {
  user-select: auto;
  -webkit-user-select: auto;
}
