@import '../../common/style/act/mixin/mixin.scss';
@import '../../common/style/act/layout/_layout-gp.scss';
@import '../../common/style/act/button/_button-gp.scss';

.press-act:not(.press-act--hidden-tip) {
  .press__full-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba($color: #000, $alpha: .8);
    z-index: 99;
    animation-name: scaleDraw;

    /*关键帧名称*/
    animation-timing-function: ease-in-out;

    /*动画的速度曲线*/
    animation-duration: 1s;

    /*动画所花费的时间*/
  }

  /* 放大出现 */
  @keyframes scaleDraw {
    /*定义关键帧、scaleDrew是需要绑定到选择器的关键帧名称*/
    0% {
      transform: scale(0);
      opacity: 0;

      /*开始为原始大小*/
    }

    50% {
      transform: scale(1.1);
      opacity: 1;
    }

    100% {
      transform: scale(1);
      opacity: 1;
    }
  }

  .press__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .press__content--task,
  .press__content--received,
  .press__content--get {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 6rem;
    background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/get-coupon/guandan/bg-get-award.png) no-repeat;
    background-size: auto 100%;
    background-position: center;
    margin: 0;
    z-index: 100;
  }

  .press__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: safe center;
    overflow-x: auto;
    width: 10rem;
  }

  .press__center-layout {
    flex-direction: row;

    .press__center-item {
      &:first-child {
        margin-left: auto;
      }

      &:last-child {
        margin-right: auto;
      }
    }
  }

  .press__center-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: .2rem;
    flex-shrink: 0;

    &:first-child {
      margin-left: 0;
    }

    img {
      width: 1.04rem;
      height: 1.04rem;
    }
  }

  .press__base-info {
    line-height: 1;
  }

  .press__goods-name {
    font-size: $font-m;
    color: #785d45;
    margin-top: .16rem;
    margin: 0 auto;
    text-align: center;
    width: 2rem;
    height: .64rem;
    line-height: .32rem;
    margin: .1rem auto 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-all;
  }

  .press__goods-desc {
    font-size: $font-xxs;
    color: #785d45;
    margin-top: .08rem;
    text-align: center;
    width: 2rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;

    span {
      color: #b5ddde;
    }
  }

  .press__goods-limit {
    width: auto;
  }

  .tip-comp-dialog--fullpage-waiting-issue {
    display: none;
    height: .35rem;
    line-height: .35rem;
    position: relative;
    margin: .1rem 0 .2rem;
    text-align: center;
    color: white;

    &::after,
    &::before {
      position: absolute;
      content: '';
      display: block;
      width: 2rem;
      height: 1px;
      background: #4b5b6c;
      top: .16rem;
    }

    &::before {
      left: .4rem;
    }

    &:after {
      right: .4rem;
    }
  }

  .press__tips {
    font-size: $font-xxs;
    color: #cdd1d6;
    margin-top: .14rem;

    span {
      color: #e4b853;
    }
  }

  .press__button-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    a {
      margin-right: 1.2rem;

      &:last-child {
        margin-right: 0;
      }
    }

    .press__btn--medium-secondary {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 2.2rem;
      height: .75rem;
      font-size: .3rem;
      color: #fff;
      font-weight: 600;
      padding-bottom: .06rem;
      background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/get-coupon/guandan/btn-secondary-n.png) no-repeat;
      background-size: 100%;
    }

    .press__btn--large-primary {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 2.2rem;
      height: .75rem;
      font-size: .3rem;
      color: #fff;
      font-weight: 600;
      padding-bottom: .06rem;
      background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/get-coupon/guandan/btn-primary-n.png) no-repeat;
      background-size: 100%;
    }
  }

  .press__stay-out-new,
  .press__sub-wrap {
    display: none;
  }

  .press__waters-desc {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.6rem;
    color: #cdd1d6;
    font-size: .2rem;
    text-align: center;
  }
}
