@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__cover {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .6);
    z-index: 110;
  }

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

  .press__close {
    position: absolute;
    right: .24rem;
    top: .18rem;

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

  .press__title--explain {
    position: absolute;
    left: .56rem;
    top: .22rem;
    font-family: 'MStiffHeiPRC';
    font-size: $font-m;
    text-indent: 0;
    color: #2e3438;
    padding: 0;
    margin: 0;
    height: auto;
    width: 100%;
    min-width: 100%;
    background: none;
    text-align: left;
    white-space: nowrap;
    word-break: break-all;

  }

  .press__title {
    position: absolute;
    left: .56rem;
    top: .22rem;
    font-family: 'MStiffHeiPRC';
    font-size: .26rem;
    text-indent: 0;
    color: #2e3438;
    padding: 0;
    margin: 0;
    height: auto;
    width: 100%;
    min-width: 100%;
    background: none;
    text-align: left;
    white-space: nowrap;
    word-break: break-all;

  }

  .press__detail {
    height: 3.2rem;
    width: auto;
    line-height: .28rem;
    font-size: $font-xxs;
    word-break: break-all;
    margin: .8rem .4rem 0 .52rem;
    padding-right: .14rem;
    color: #737a80;
    text-align: left;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    white-space: pre-wrap;

    &::-webkit-scrollbar {
      width: .06rem;
    }

    /*滚动条里面小方块*/
    &::-webkit-scrollbar-thumb {
      width: .06rem;
      height: 1.04rem;
      border-radius: .06rem;
      background-color: rgba(62, 74, 79, .58);
    }

    /*滚动条里面轨道*/
    &::-webkit-scrollbar-track {
      box-shadow: transparent;
      background-color: transparent;
    }
  }

  .press__detail p {
    margin-bottom: .1rem;

    span {
      display: block;
      padding-left: .2rem;
      margin-top: .1rem;
    }
  }

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