@import "~antd/lib/style/themes/default.less";

.goodsListBox {
  .goodsNumUnit {
    position: absolute;
    right: 0;
    top: 0;
  }
  .goodsOpt {
    display: inline-block;
    width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
  }
  .valBox {
    display: inline-block;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .fontRed {
    color: #e14c46;
    display: inline-block;
  }
  // .unitBox {
  //   display: inline-block;
  //   text-align: left;
  //   width: 42px;
  // }
  .em {
    font-size: 12px;
    padding-left: 5px;
    color: #999;
  }
  .delBtn {
    display: none;
    color: #e14c46;
    float: right;
    cursor: pointer;
    padding-right: 5px;
  }
  .goodsListGrid table tbody tr {
    &:hover {
      .delBtn {
        display: block;
      }
      td:first-child {
        border-left: 3px solid #e14c46;
      }
    }
  }
  .orderPriceCutTitle {
    margin: 15px 0;
    font-size: 14px;
    background: #fffbf5;
    box-shadow: 0 0 1px 0 #e6e6e6, 0 0 0 0 #e6e6e6;
    height: 30px;
    line-height: 30px;
    .priceTip {
      margin-right: 10px;
      padding: 1px 6px;
      border: 1px solid #e75a55;
      border-radius: 2px;
      color: #e75a55;
    }
  }
  :global {
    thead > tr > th {
      text-align: center;
      &.alignRight {
        text-align: right;
      }
    }
    tbody .alignRight {
      text-align: right !important;
      & > span {
        display: inline-block;
        width: 100%;
      }
    }
  }
  .expandedTop {
    font-size: 12px;
    margin-top: 5px;
    .giftTip {
      padding: 1px 6px;
      border: 1px solid #e75a55;
      border-radius: 2px;
      color: #e75a55;
      margin: 0 10px;
    }
  }
}
// 促销方式选择
.radioGroup {
  margin-top: 20px;
  .radioRight40 {
    padding-right: 40px;
  }
}
// 促销赠品选择
.promotionGiftBox {
  .promotionActivtyRow {
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 20px;
    .activtyTitle {
      margin: 10px 0;
      padding-left: 15px;
      font-size: 12px;
      .giftTip {
        margin-right: 10px;
        padding: 1px 6px;
        border: 1px solid #e75a55;
        border-radius: 2px;
        color: #e75a55;
      }
    }
    .activityContent {
      padding-left: 13px;
      .cardImage {
        border: 1px solid #eee;
      }
      .goodsDisplayName {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
      }
      .selectedGiftTable {
        :global {
          .ant-table-tbody > tr > td {
            padding: 10px 0;
          }
        }
        .giftsImgBox {
          float: left;
          width: 60px;
          height: 60px;
          & img {
            height: 60px;
            width: 60px;
          }
        }
        .giftsInfo {
          margin-left: 75px;
          height: 60px;
          line-height: 60px;
        }
        .giftsDelBtn {
          color: #e75a55;
          cursor: pointer;
        }
      }
    }
    :global {
      .ant-card-body {
        padding: 4px !important;
      }
      .ant-checkbox {
        position: absolute;
        top: 4px;
        .ant-checkbox-inner {
          width: 26px !important;
          height: 26px !important;
          &::after {
            left: 6px;
            width: 10px;
            height: 16px;
          }
        }
      }
      .ant-checkbox + span {
        padding: 0 !important;
      }
    }
  }
}
// 列表
.imgBox {
  float: left;
  width: 60px;
  height: 60px;
  & img {
    height: 60px;
    width: 60px;
  }
}
.goodsInfo {
  float: left;
  height: 60px;
  padding-top: 1px;
  padding-left: 10px;
}
.goodsTitleName {
  color: #333;
  width: 200px;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin: 0;
}
.goodsCode {
  font-size: 12px;
  color: #999;
  margin: 0;
}
.goodsStatus {
  display: block;
  width: 16px;
  height: 16px;
  background: #59c152;
  border-radius: 2px;
  color: #fff;
  text-align: center;
  line-height: 16px;
}
.goodsStatusTxt {
  font-size: 10px;
  transform: scale(0.8);
  margin: 0;
}
