@import '../../common/var';

.cap-ump-limitdiscount--list {
  position:relative;
  margin-bottom: 10px;
  padding: 0 0 0 15px;
  background: $white;

  .cap-ump-limitdiscount-goods {
    display: block;
    position: relative;
    padding: 10px 0;

    &::after {
      @mixin border-retina (bottom);
    }

    &:last-child {
      &::after {
        border: 0;
      }
    }

    &__header {
      float: left;
      margin-right: 10px;
      width: 110px;
      height: 110px;
    }

    &__content {
      position: relative;
      padding: 0;
      padding-right: 15px;
      height: 110px;
      overflow: hidden;
    }

    &__detail {
      position: absolute;
      bottom: 0;
      left: 0;
    }

    &__title {
      max-height: 36px;
      line-height: 18px;
    }

    &__price-symbol {
      font-size: 12px;
    }

    &__price-yuan {
      font-size: 16px;
    }

    &__price-cent {
      font-size: 16px;
    }

    &__price {
      display: inline-block;
      margin-right: 5px;
    }

    &__origin-price {
      display: inline-block;
      font-size: 10px;
      line-height: 10px;

      @media only screen and (max-width: 320px) {
        display: block;
      }
    }

    &__countdown {
      margin-left: 0;
    }

    &__sales-wrap {
      /* margin-right: 35px; */
    }

    &__tag-countdown {
      background: rgba(0, 0, 0, .34);
      color: $white;
      text-align: center;
      font-size: 12px;

      .cap-countdown__day,
      .cap-countdown__hour,
      .cap-countdown__minute,
      .cap-countdown__second,
      .cap-countdown__time-text {
        padding: 0;
        margin: 0;
      }

      /* 防止小程序倒计时跳动 */
      .cap-countdown__second {
        min-width: 15px;
        text-align: center;
      }
    }

    &__countdown--mirco {
      position: absolute;
      bottom: 27px;
      right: 8px;

      .cap-countdown__day,
      .cap-countdown__hour,
      .cap-countdown__minute,
      .cap-countdown__second,
      .cap-countdown__time-text {
        padding: 0;
        margin: 0;
        font-size: 10px;
        color: $gray-dark;
      }

      /* 防止小程序倒计时跳动 */
      .cap-countdown__second {
        min-width: 12px;
        text-align: center;
      }
    }

    &__action {
      position: absolute;
      bottom: 0;
      right: 15px;
    }

    &--soldout,
    &--end {
      .cap-ump-limitdiscount-goods__mask::after {
        width: 60px;
        height: 60px;
      }
    }
  }
}
