.discount-coupon {
  line-height: 1;
  display: flex;
  width: 330rpx;
  position: relative;

  .watermark {
    border: 10rpx solid rgba(247, 247, 247, 0.31);
    width: 185rpx;
    height: 185rpx;
    box-sizing: border-box;
    border-radius: 50%;
    font-size: 32rpx;
    font-weight: bold;
    position: absolute;
    top: 30rpx;
    left: 70rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(234, 234, 234, 0.53);
    transform: rotate(50deg);
  }

  .background {
    width: 100%;
    height: 218rpx;
    border-radius: 30rpx;

    // border-top: 1rpx 0 transparent;
    .coupon-title {
      border-radius: 10rpx;
      height: 91rpx;
      margin: 0 39rpx;
      text-align: center;
      box-sizing: border-box;
      padding-top: 22rpx;
      margin-top: -25rpx;

      .text {
        font-size: 25rx;
        font-weight: 600;
        text-align: center;
      }
    }
  }

  .content {
    display: flex;
    flex-wrap: wrap;
    // align-items: center;
    // width: 328rpx;
    width: 100%;
    height: 168rpx;
    box-sizing: border-box;
    padding: 20rpx 0rpx 11rpx 17rpx;
    // padding: 0rpx ​8rpx 9rpx 13rpx;
    position: absolute;
    top: 50rpx;
    border-radius: 0rpx 0rpx 30rpx 30rpx;

    .info {
      display: flex;
      flex-wrap: wrap;
      box-sizing: border-box;

      .money {
        display: flex;
        align-items: center;
        justify-content: space-between;

        .type {
          width: 25rpx;
          font-size: 25rpx;
          font-weight: 600;
        }

        .value {
          font-size: 52rpx;
          font-weight: 600;
        }
      }

      .discount {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 5rpx;

        .value {
          font-size: 50rpx;
          font-weight: 600;
        }
      }

      .rule {
        width: 100%;
        font-size: 18rpx;
        font-weight: 400;
        margin-top: 10rpx;

        .label {
          flex-shrink: 0;
        }

        .value {
          line-height: 1;

          &:first-child {
            margin-bottom: 6rpx;
          }
        }

        .text {
          display: flex;
          align-items: center;
        }
      }
    }

    .tip-box {
      position: absolute;
      right: 13rpx;
      top: 20rpx;
      width: 130rpx;
      height: 100%;
      // flex-shrink: 0;
      // align-items: flex-end;
      justify-content: flex-end;
      flex-wrap: wrap;
      font-size: 20rpx;
      font-weight: 600;

      .tip {
        display: flex;
        width: 100%;
        justify-content: flex-end;
        margin-bottom: 10rpx;
      }

      .button {
        width: 120rpx;
        height: 47rpx;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22rpx;
        border-radius: 23.5rpx;
        margin-left: 15rpx;
      }

      .radio {
        display: flex;
        justify-content: flex-end;
      }
    }

    .validity {
      display: flex;
      align-items: center;
      width: 100%;
      font-size: 18rpx;

      .date {
        margin: 0 8rpx;
      }
    }
  }
}

.red-card {
  .background {
    background: linear-gradient(135deg, rgb(255, 99, 93) 0%, rgb(255, 58, 65) 100%);
    // box-shadow: 0rpx -2rpx 15rpx rgba(255, 98, 93, 0.5);

    .coupon-title {
      background: linear-gradient(135deg, rgb(255, 245, 231) 0%, rgb(255, 239, 227) 100%);

      .text {
        color: #902500;
      }
    }
  }

  .content {
    // background: linear-gradient(135.29deg, rgb(255, 127, 101) 0.958%, rgb(251, 59, 76) 100%);
    background: linear-gradient(135.29deg, rgb(255, 133, 108) 0.958%, rgb(255, 81, 97) 100%);
    box-shadow: 0rpx -2rpx 15rpx rgba(255, 98, 93, 0.5);

    .info {
      .money {
        .type {
          color: #fff;
        }

        .value {
          color: #fff;
        }
      }

      .discount {
        color: #fff;
      }

      .rule {
        color: #fff5db;
      }
    }

    .tip-box {
      color: #fff5db;

      .button {
        color: #ff515f;
        background: linear-gradient(136.95deg,
            rgb(255, 251, 245) 14.359%,
            rgb(255, 196, 178) 100%);
        box-shadow: 0px 2rpx 5rpx rgb(255, 46, 53);

      }

      .hover-class-opacity {
        opacity: .8;
      }

      .disabled {
        background: rgb(178, 185, 192);
        box-shadow: 0px 2px 8px rgb(251, 17, 25);
        color: #ffffff;
      }
    }

    .validity {
      color: #fff5db;
    }
  }
}