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

$dialog-close_bg: 'https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/gp2.0/img/popup-close.png';

.press-act:not(.press-act--hidden-tip) {
  .press__close {
    position: absolute;
    right: .26rem;
    top: .18rem;

    @include icon_img(.42rem, .36rem, $dialog-close_bg, center center, contain);
  }

  .press__dialog {
    position: fixed;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transform: translateY(-50%);
    transform: translateY(-50%);
    width: 6.54rem;
    height: 3.58rem;
    line-height: 1;
    margin: auto;
    text-align: center;
    background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/gp2.0/img/popup-small-bg.png) no-repeat center center;
    background-size: contain;
    z-index: 99;
    overflow: hidden;
  }

  .press__title {
    position: absolute;
    left: .52rem;
    top: .24rem;
    font-family: 'MStiffHeiPRC';
    font-size: $font-m;
    color: #2e3438;
  }

  .press__content {
    margin: 0 auto;
    text-align: center;
    min-height: 2rem;
  }

  .press__name {
    font-size: $font-s;
    color: #2e3438;
    margin: .74rem auto 0;
  }

  .press__user {
    font-size: $font-xxs;
    color: #737a80;
    padding: .12rem .4rem 0;
  }

  .press__progress-wrap {
    width: 5.4rem;
    padding: .28rem;
    margin: .12rem auto .22rem;
    text-align: center;
    background: rgba(46, 52, 56, .7);
  }

  .press__progress {
    font-size: $font-xxs;
    color: #fcfcfc;
  }

  .press__progress span {
    color: #fcfcfc;
  }

  .press__num {
    display: inline;
  }

  .press__progress-bar {
    display: block;
    width: 2.14rem;
    height: .12rem;
    margin: .18rem auto 0;
    transform: skew(-10deg);
    background: #2e3438;
    overflow: hidden;
  }

  .press__progress-bar i {
    display: block;
    height: .12rem;
    width: 20%;
    background-image: linear-gradient(270deg, #b5ddde 0%, #91a4d5 100%);
  }

  .press__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}