$namespace: "coupon";

.coupon {
  background-color: #f9f9f9;

  .x-header {
    background-color: #fff;
  }
}

@include b(list) {
  padding: 0.26rem 0;
  min-height: 80vh;
  box-sizing: border-box;
}

@include b(item) {
  background-image: url('../../assets/coupon_bg1.png');
  background-size: cover;
  width: 6.88rem;
  height: 1.6rem;
  margin: 0 auto .26rem;
  display: flex;
  box-shadow: 0px 5px 7px 0px rgba(242, 242, 242, 0.6);

  &.disable-2 {
    background-image: url('../../assets/coupon_expire.png');
  }

  &.disable-1 {
    background-image: url('../../assets/coupon_diabled.png');
  }

  &.disabled {
    .title {
      color: #999 !important;
    }
  }

  @include e(amount) {
    line-height: 1.6rem;
    font-size: .68rem;
    font-weight: bold;
    color: #fff;
    width: 1.88rem;
    text-align: center;

    span {
      font-size: .44rem;
    }
  }


  @include e(info) {
    display: flex;
    flex: 1;
    align-items: center;
    padding: 0 .24rem 0 .38rem;
    justify-content: space-between;

    .info-amount {
      text-align: center;

      .title {
        color: #000;
        font-size: .3rem;
        margin-bottom: .3rem;
      }

      .desc {
        color: #999;
        font-size: .24rem;
      }
    }

    .info-button {
      width: 1.4rem;
      height: .54rem;
      line-height: .54rem;
      background-color: #FD6260;
      border-radius: .27rem;
      font-size: .24rem;
      text-align: center;
      color: #fff;
    }
  }
}

.show-disabled {
  height: calc(20vh - 1.04rem);
  background: #f9f9f9;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: .26rem;
  color: #3C9FF3;
}

.pop-page {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  background-color: #f9f9f9;

  .coupon-list {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    min-height: calc(100vh - 1.04rem);
    height: calc(100vh - 1.04rem);
  }
}

.pop-coupon {
  width: 100vw;
  height: 50vh;
  background-color: #f9f9f9;
  padding: 0.48rem 0;
  box-sizing: border-box;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;

  .coupon-list {
    min-height: auto;
  }
}

.no-coupon {
  img {
    width: 60%;
    display: block;
    margin: 30% auto 0;
  }
}