@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__dialog {
    position: fixed;
    left: 0;
    right: 0;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-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__close {
    position: absolute;
    right: .26rem;
    top: .18rem;

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

  .press__title,
  .press__title--prompt {
    position: absolute;
    left: .56rem;
    top: .18rem;
    // font-family: 'MStiffHeiPRC';
    font-size: $font-m;
    color: #2e3438;
    text-shadow: 1px 2px 1px rgba(0, 0, 0, .10);
    padding: 0;
  }

  .press__box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: .64rem .8rem 0;
    text-align: center;
    height: 2.04rem;
  }

  .press__pic-wrap {
    .press__store-pic {
      display: flex;
      width: .96rem;
      height: .96rem;
      margin: 0 auto;
    }

    .press__store-name {
      margin-top: .12rem;
      color: #212124;
      font-size: .2rem;
    }
  }

  .press__notice {
    font-size: $font-s;
    line-height: .36rem;
    color: #737a80;
    word-wrap: break-word;
    word-break: normal;
  }

  .press__text {
    padding: 0 .2rem;
    font-size: $font-xxs;
    line-height: .24rem;
    color: #737a80;
    max-height: 1.9rem;
    overflow-x: hidden;
    overflow-y: auto;
    text-align: left;
    white-space: pre-wrap;
  }

  .tip-comp-dialog--prompt-btn {
    display: flex;
    margin: 0 .6rem;
  }

  .press__button-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: .21rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }

  .press__btn--cancel {
    // margin-right: .4rem;
  }

  .tip-comp-dialog--prompt-btn-sure {
    display: block;
    width: 1.72rem;
    height: .6rem;
    line-height: .6rem;
    font-size: $font-xs;
    color: #5a350a;
    text-align: center;
    background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/gp2.0/img/primary-large-btn-bg.png) no-repeat center center;
    background-size: contain;
  }

  //  按钮覆盖
  .press__dialog--prompt {
    .press__button-wrap {
      a {
        display: flex;
        margin-right: .4rem;

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

      .press__btn--cancel {
        display: block;
        width: 1.72rem;
        height: .6rem;
        line-height: .6rem;
        font-size: .22rem;
        color: #d6d7d8;
        text-align: center;
        background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/gp2.0/img/secondary-large-btn-bg.png) no-repeat center center;
        background-size: contain;
      }

      .press__btn--medium-primary {
        display: block;
        width: 1.72rem;
        height: .6rem;
        line-height: .6rem;
        font-size: $font-xs;
        color: #5a350a;
        text-align: center;
        background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/gp2.0/img/primary-large-btn-bg.png) no-repeat center center;
        background-size: contain;
      }
    }
  }

  .press__empty {
    display: none;
  }

  .tip-qqhongbao-prompt {
    .press__notice {
      text-align: left;
      font-size: .2rem;
      margin-bottom: .2rem;
    }

    .press__text {
      margin-top: -.2rem;
      white-space: pre-line;
      text-align: left;
    }
  }
}