/* 底部固定按钮 */
.dec-bottom-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  flex-shrink: 0;
  background: rgba(#000, 0.2);
  padding: 10px 0 10px 340px;
  button + button {
    margin-left: 16px;
  }
}
/* 公用的商品样式设置 */
.dec-flex-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  .shrink0 {
    flex-shrink: 0;
  }
}
.dec-flex-between {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
/* 多行省略样式 */
.dec-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  white-space: nowrap;
  display: block;
}
.dec-truncate2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.dec-truncate1 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box !important;
  -webkit-line-clamp: 1;
  white-space: nowrap;
  -webkit-box-orient: vertical;
}
/* 文字输入的flex布局 */
.dec-flex-list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin: 20px 0;
  &.middle {
    align-items: center;
  }
  &.side {
    align-items: center;
    justify-content: space-between;
    .d-left {
      margin-right: 0;
      width: auto;
    }
    .d-right {
      text-align: right;
    }
  }
  &.wrap {
    flex-wrap: wrap;
  }
  + .error {
    padding-left: 100px;
  }
  + .pl80 {
    padding-left: 80px;
  }
  .d-left {
    display: inline-block;
    flex-shrink: 0;
    text-align: right;
    margin-right: 10px;
    color: #333;
    &.big {
      font-size: 16px;
      color: #000;
    }
    &.is-empty {
      color: #f44444;
    }
  }
  .d-right {
    width: 100%;
    .dec-radio .ant-radio-wrapper {
      width: 90px;
      margin-bottom: 6px;
    }
    .dec-checkbox {
      margin-bottom: 6px;
    }
    .dec-radio2 {
      padding-left: 22px;
      .ant-radio-wrapper {
        width: 100px;
        margin-bottom: 6px;
      }
    }
    &.border {
      background-color: #fff;
      border: 1px solid #ddd;
      border-radius: 4px;
    }
  }
}
/* 左边设置区的公用样式 */
.dec-row-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  &.a-bottom {
    align-items: flex-end;
  }
  &.j-between {
    justify-content: space-between;
  }
  &.j-right {
    justify-content: flex-end;
  }
  .shrink0 {
    flex-shrink: 0;
  }
  .shrinkimg {
    flex-shrink: 0;
    width: 140rpx;
    height: 140rpx;
    position: relative;
    overflow: hidden;
    image {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 100%;
      transform: translate(-50%, -50%);
    }
  }
  .shrink1 {
    width: 100%;
  }
}
.pdl10 {
  padding-left: 10px;
}
.pdl20 {
  padding-left: 20px;
}
.pdl30 {
  padding-left: 30px;
}
.mt-10 {
  margin-top: -10px;
}
.mt-15 {
  margin-top: -15px;
}
.pdr20 {
  padding-right: 20px;
}
