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

.press-act:not(.press-act--hidden-tip) {
  .press__full-page {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 19, 32, .8);
    background-image: linear-gradient(180deg, rgba(25, 48, 91, 0) 73%, #19305b 100%);
  }

  .press__content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 4rem;
    background: url(https://image-1251917893.file.myqcloud.com/2020/Tip-wsq/V3.0/img/dialog/dialog_fullpage_bg.png) no-repeat center center;
    background-size: auto 100%;
    padding-top: .1rem;
    margin: 0;
    z-index: 100;
  }

  .press__content--get::before {
    position: absolute;
    left: 0;
    right: 0;
    top: -1.08rem;
    content: '恭喜获得';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.7rem;
    height: 1.22rem;
    font-family: 'GAMEFONT';
    color: #fff;
    font-size: .36rem;
    margin: auto;
    background: url(https://image-1251917893.file.myqcloud.com/2020/Tip-wsq/V3.0/img/dialog/dialog_title_bg.png) no-repeat center center;
    background-size: auto 100%;
  }

  .press__content--received::before {
    position: absolute;
    left: 0;
    right: 0;
    top: -1.08rem;
    content: '您已获得';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.7rem;
    height: 1.22rem;
    font-family: 'GAMEFONT';
    color: #fff;
    font-size: .36rem;
    margin: auto;
    background: url(https://image-1251917893.file.myqcloud.com/2020/Tip-wsq/V3.0/img/dialog/dialog_title_bg.png) no-repeat center center;
    background-size: auto 100%;
  }

  .press__content--task::before {
    position: absolute;
    left: 0;
    right: 0;
    top: -1.08rem;
    content: '任务完成 恭喜获得';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 7.44rem;
    height: 1.22rem;
    font-family: 'GAMEFONT';
    color: #fff;
    font-size: .36rem;
    margin: auto;
    background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/get-coupon/pvp/get-award-title.png) no-repeat center center;
    background-size: auto 100%;
  }

  .press__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: safe center;
    flex-wrap: wrap;
    width: 10.8rem;
    height: 3.8rem;
    overflow-x: auto;
    margin: 0 auto;
  }

  .press__center-layout {
    flex-direction: row;

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

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

    .press__goods-name,
    .press__goods-desc {
      width: 1.8rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

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

    img {
      width: 1.28rem;
      height: 1.28rem;
      border-radius: .08rem;
    }

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

  .press__base-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    color: #425365;
  }

  .press__goods-name,
  .press__goods-desc {
    line-height: .28rem;
    color: #d6eaff;
    text-align: center;
    font-size: .2rem;
  }

  .press__goods-limit {
    span {
      color: #f5b74c;
    }
  }

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

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

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

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

  .press__tips {
    color: #d6eaff;
    text-align: center;
    margin-top: .3rem;
    font-size: .2rem;

    span {
      color: #f5b74c;
    }
  }

  .press__button-wrap {
    display: flex;
    justify-content: space-around;
    font-weight: bold;
    width: 6.4rem;
    height: .72rem;
    margin: auto;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1rem;
  }

  .press__sub-wrap {
    position: absolute;
    bottom: -.74rem;
    right: .26rem;
    display: flex;
    align-items: center;
    font-size: .22rem;
    color: #d6eaff;
  }

  .press__btn--medium-secondary {
    background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/pvp3.0/image/btn/btn-large-secondary.png) no-repeat center center;
    background-size: contain;
    @include btn-style(2.24, .56);
  }

  .press__sub {
    display: block;
    appearance: none;
    width: .4rem;
    height: .4rem;
    outline: none;
    border: 0;
    background: url(https://image-1251917893.file.myqcloud.com/2020/Tip-wsq/V3.0/img/dialog/check.png) no-repeat center center;
    background-size: contain;
    margin-right: .08rem;
    cursor: pointer;
    visibility: visible;
  }

  .press__sub:checked,
  .press__sub.press__sub--checked {
    background: url(https://image-1251917893.file.myqcloud.com/2020/Tip-wsq/V3.0/img/dialog/checked.png) no-repeat center center;
    background-size: contain;
    visibility: visible;
  }

  // 兼容 uni-app 新的 checkbox
  .press__act-checkbox {
    display: block;
    -webkit-appearance: none;
    width: .4rem;
    height: .4rem;
    margin-right: .08rem;
    flex-shrink: 0;
    outline: none;
    border: 0;
    background: url(https://image-1251917893.file.myqcloud.com/2020/Tip-wsq/V3.0/img/dialog/check.png) no-repeat center center;
    background-size: contain;
    cursor: pointer;
    visibility: visible;

    &--checked {
      background: url(https://image-1251917893.file.myqcloud.com/2020/Tip-wsq/V3.0/img/dialog/checked.png) no-repeat center center;
      background-size: contain;
    }
  }

  .press__sub:checked+label {
    color: #d6eaff;
  }

  .press__stay-out-new {
    display: none;
  }

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