.shipping-coupon {
  line-height: 1;
  display: flex;
  width: 328rpx;
  position: relative;

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

    .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: 100%;
    height: 155rpx;
    box-sizing: border-box;
    padding: 13rpx 8rpx 9rpx 17rpx;
    position: absolute;
    top: 50rpx;
    border-radius: 0rpx 0rpx 30rpx 30rpx;

    .content-box {
      width: 100%;
      height: 80rpx;
      display: flex;
      align-items: center;
      justify-content: space-between;

      .left {
        height: 100%;
        padding-top: 8rpx;
        box-sizing: border-box;
        flex: 1;
        color: #fff;
        font-size: 40rpx;
        font-weight: 600;
      }

      .right {
        display: flex;
        align-items: center;
        width: 120rpx;
        height: 100%;
        font-size: 20rpx;
        font-weight: 600;

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

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

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

.red-card {
  .background {
    background: linear-gradient(135deg, rgb(81, 178, 252) 0%, rgb(28, 127, 249) 100%);

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

      .text {
        color: #333333;
      }
    }
  }

  .content {
    background: linear-gradient(135deg, rgb(116, 213, 254), rgb(20, 119, 249) 100%);
    box-shadow: 0px -2px 15px rgba(71, 169, 251, 0.5);

    .content-box {
      .left {
        .money {
          .type {
            color: #fff;
          }

          .value {
            color: #fff;
          }
        }

        .rule {
          color: #fff5db;
        }
      }

      .right {
        .button {
          color: #197cf9;
          background: linear-gradient(128.74deg,
              rgb(255, 255, 255) 5.848%,
              rgb(195, 233, 255) 94.497%);
          box-shadow: 0px 2px 8px rgb(0, 107, 239);
        }

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

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

    .validity {
      color: #fff5db;
    }
  }
}