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

.press-act:not(.press-act--hidden-tip) {

  //  弹框背景--start
  %dialog-bg-small {
    position: relative;
    padding: .24rem .32rem .4rem;
    width: 8.68rem;
    height: 5.52rem;
    @include bgUrl('dialog_small_bg.png');
    background-size: 100%;
    background-repeat: no-repeat;
  }

  &.press__cover {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    inset-inline-start: 0;
    background-color: rgba(13, 19, 32, .85);
    background-image: linear-gradient(180deg, rgba(#10315e,0) 69.79%, rgba(#10315e,.85) 100%);
    z-index: 999;
  }

  .press__dialog {
    overflow: hidden;
    position: fixed;
    inset-inline-start: 0;
    inset-inline-end: 0;
    top: 50%;
    min-height: auto;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    z-index: 99;
    margin: auto;
    text-align: center;
  }

  .press__close {
    width: .48rem;
    height: .49rem;
    position: absolute;
    inset-inline-end: .52rem;
    top: .34rem;
    @include bgUrl('close.png');
    background-size: 100%;
    background-repeat: no-repeat;
  }

  .press__title {
    line-height: .64rem;
    padding-inline-start: .2rem;
    font-size: .28rem;
    color: #fff;
    text-align: start;
    text-shadow: 0 0 .04rem #2668b9;
  }

  // 7提示弹窗--start
  .press__box {
    text-align: center;
  }

  .press__notice {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    color: #fff;
    font-family: sans-serif;
    font-size: .24rem;
    max-width: 6.2rem;
    word-wrap: break-word;
    word-break: normal;
    margin: 0 auto .24rem;
    text-align: center;
  }

  .press__text {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    color: #68a9e4;
    font-size: .24rem;
    margin: 0 .8rem;
    max-height: 2.4rem;
    overflow-x: hidden;
    overflow-y: auto;
    text-align: center;
    white-space: pre-line;

    &.press__text--gold {
      color: #68a9e4;
    }
  }

  .press__button-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset-inline-start: .32rem;
    bottom: 1.24rem;
    z-index: 2;
    padding: 0;
    width: 8.04rem;
  }

  // 7提示弹窗--end

  //  按钮覆盖
  .press__dialog--prompt {
    @extend %dialog-bg-small;

    .press__button-wrap {
      a {
        display: flex;
        margin-inline-end: .6rem;

        &:last-child {
          margin-inline-end: 0;
        }
      }

      .press__btn--cancel {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.24rem;
        height: .56rem;
        line-height: .56rem;
        font-size: .24rem;
        line-height: normal;
        color: #fff;
        text-shadow: 0 .02rem .04rem rgba(31, 48, 112, .3);
        @include bgUrl('btn-secondary.png');
        background-size: 100%;
        background-repeat: no-repeat;
      }

      .press__btn--medium-primary {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.24rem;
        height: .56rem;
        line-height: .56rem;
        font-size: .28rem;
        line-height: normal;
        color: #fff;
        text-shadow: 0 .02rem .04rem rgba(31, 48, 112, .3);
        @include bgUrl('btn-primary.png');
        background-size: 100%;
        background-repeat: no-repeat;
      }
    }
  }

  // 2填写手机号]

  .press__empty {
    display: none;
  }

  .press__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100% - 2rem);
  }

  .press__pic-wrap {
    img {
      display: block;
      width: 1.04rem;
      height: 1.04rem;
      border: .02rem solid #35669e;
      margin: 0 auto;
    }

    p {
      font-size: .24rem;
      color: #fff;
      text-shadow: 0px 0px 8px rgba(95, 147, 234, .685533);
      font-weight: 600;
      padding: .16rem 0;
    }
  }

  .tip-qqhongbao-prompt {
    .press__text {
      margin-top: -.2rem;
      width: 4.6rem;
      white-space: pre-line;
      text-align: start;
    }
  }

  @media screen and (orientation: portrait) {
    .press__dialog {
      width: 6.944rem;
      height: 4.416rem;
    }

    .press__button-wrap {
      bottom: .9rem;
      width: 6.3rem;
    }
  }
}
