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

.cap-ump-seckill--small {
  margin-top: 7px;
  padding: 0 7px;

  @mixin clearfix;

  .cap-ump-seckill-goods {
    float: left;
    width: 50%;
    padding: 3px;
    box-sizing: border-box;
    background-color: transparent;

    &--soldout,
    &--end {

      .cap-ump-seckill-goods__mask {
        &:after {
          width: 88px;
          height: 88px;
        }
      }
    }

    &--not-start {

      .cap-ump-seckill-goods__tag-countdown {
        background: rgba(68, 187, 0, .7);

        .cap-countdown--white {
          color: $green;
        }

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

    &__header {
      background: $white;
    }

    &__title {
      height: 36px;
      line-height: 18px;
      font-size: 12px;

      .cap-ump-seckill-goods__discount {
        display: inline-block;
      }
    }

    &__info {
      display: none;
    }

    &__content {
      padding: 5px 10px 10px;
      background: $white;
    }

    &__price {
      margin: 5px 5px 0 0;
      font-size: 12px;

      &-yuan,
      &-cent {
        font-size: 18px;
      }
    }

    &__origin-price {
      margin-top: 5px;
      font-size: 10px;
    }

    &__tag-countdown {
      padding: 2px 0;
      background: rgba(255, 68, 68, .8);
      color: $white;
      text-align: center;
      font-size: 10px;

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

    &__action {
      float: right;
    }

    &__stock {
      line-height: 10px;
    }

    &__bottom {
      margin-top: 12px;
      overflow: hidden;

      .cap-ump-seckill-goods__stock {
        line-height: 10px;
      }

      &--hide-stock {

        .cap-ump-seckill-goods__action {
          width: 100%;
        }
      }

      .cap-ump-seckill-goods__stock {
        float: left;
        margin: 8px 0 0 0;
        color: $gray-dark;
        font-size: 10px;
      }
    }
  }
}
