@import './slider-gesture-ani.scss';
@import './coupon-time-ani.scss';
@import './title-ani.scss';

.press-write-off {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  padding-top: 16%;
  background: rgba(0, 0, 0, .7);
  z-index: 1000;

  &__title-wrap {
    position: relative;
    width: 5.82rem;
    height: 3.76rem;
    margin: 0 auto -.96rem;
    z-index: 2;
  }

  &__dialog-title {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/writeoff/coupon-title.png) no-repeat center/contain;
    opacity: 1;
  }

  &__coupon-wrap {
    position: relative;
    width: 3.46rem;
    height: 5.74rem;
    text-align: center;
    margin: 0 auto;
    padding: .6rem .26rem 0;
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/writeoff/coupon-bg-v.png) no-repeat center top/contain;
    z-index: 2;
  }

  &__coupon-name {
    font-size: .32rem;
    color: rgba(0, 0, 0, .9);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  &__coupon-img {
    display: block;
    width: 1.6rem;
    height: 1.6rem;
    margin: .32rem auto;
  }

  &__coupon-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    word-break: break-all;
    font-size: .4rem;
    color: #f16253;
  }

  &__coupon-time {
    position: absolute;
    left: 0;
    bottom: .02rem;
    width: 3.46rem;
    height: 1.26rem;
    font-size: .28rem;
    color: rgba(0, 0, 0, .6);
    text-align: center;
    padding-top: .36rem;
    margin: 0 auto;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/writeoff/coupon-bottom-v.png) no-repeat center/contain;
  }

  &__checked-title {
    position: absolute;
    left: 0;
    top: 1rem;
    right: 0;
    margin: auto;
    width: 2.83rem;
    height: 1.66rem;
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/writeoff/success-result.png) no-repeat center/contain;
    transform-style: preserve-3d;
    transform: scale(1.38, 1.38);
    transform-origin: 50% 50%;
    opacity: 0;
  }

  &__tip {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    bottom: 3rem;
    font-size: .24rem;
    color: #fff;
    text-align: center;
  }

  &__gesture {
    position: relative;
    width: 100%;
    height: 4rem;
    margin-top: -1.4rem;
    z-index: 3;
  }

  &__light-bg--ani {
    position: absolute;
    left: 50%;
    top: -.68rem;
    width: 15rem;
    height: 15rem;
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/writeoff/light.webp) no-repeat center/contain;
    transform: translateX(-50%);
    opacity: 0;
    animation: light .2s ease-in-out 1.3s both;
  }
}

@keyframes light {
  to {
    opacity: 1;
  }
}

/* #ifdef H5 */
@import './hori.scss';

/* #endif */
