@import "../../../style/CommonStyle.module.less";
@import "../../../style/utils.module.less";

.tag-default(@backgroundColor,@fontColor) {
  display: block;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: bold;
  font-size: 24px;
  background-color: @backgroundColor;
  color: @fontColor;
  text-align: center;
}

.ProductBadge {
  margin-left: auto;
  height: 42px;
  > span {
    height: 42px;
    line-height: 42px;
    padding: 0 10px;
  }

  .flex(@justifyCenter:flex-start);
  .specialValue {
    .tag-default(@backgroundColor:@PRIMARY_COLOR_RED, @fontColor:@COLOR_WHITE);
    height: 42px;
  }

  .freeShipping {
    display: block;
    border-radius: 4px;
    margin-left: 6px;
    background-color: rgba(199, 8, 80, 0.1);
    color: @PRIMARY_COLOR_RED;
    text-align: center;
    font-weight: bold;
    font-size: 24px;
  }

  .bigSale {
    .tag-default(@backgroundColor:@COLOR_WHITE, @fontColor:@PRIMARY_COLOR_RED);
    .border-solid(@size:3px,@color:@PRIMARY_COLOR_RED);
    line-height: 36px;
  }

  .coupon {
    background: #7a808d;
    border-radius: 4px;
    color: @COLOR_WHITE;
    margin-left: 6px;
    text-align: center;
    font-weight: bold;
    font-size: 24px;
  }
}
