@import './base.scss';

@font-face {
  font-family: 'rxnf';
  src: url('https://image-1251917893.file.myqcloud.com/igame/merchant/igame-dnf/font/rxnf.TTF') format('truetype');
}

.press-act:not(.press-act--hidden-tip) {
  &.press__cover {
    ::v-deep .uni-textarea-textarea,
    ::v-deep .uni-input-placeholder {
      padding-right: .08rem;
      padding-left: .08rem;
      color: #727272;
      background: #333;
      text-align: left;
    }

    ::v-deep .uni-input-input {
      padding-right: .08rem;
      padding-left: .08rem;
      color: #727272;
      background: #333;
      font-size: .28rem;
      text-align: left;
    }
  }

  .press__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 99;
    width: 6rem;
    min-height: 3.2rem;
    height: auto;
    background-image: url(https://image-1251917893.file.myqcloud.com/igame/merchant/igame-dnf/dialog/dia-content.png);
    background-repeat: no-repeat;
    background-position-y: .4rem;
    background-size: 100% 100%;
    transform: translate(-50%, -50%);

    &::before {
      content: '';
      position: absolute;
      top: 0;
      z-index: -1;
      width: 6rem;
      height: .9rem;
      background-image: url(https://image-1251917893.file.myqcloud.com/igame/merchant/igame-dnf/dialog/dia-top.png);
      background-repeat: repeat;
      background-size: 100% 100%;
    }

    &::after {
      content: '';
      position: absolute;
      bottom: -.4rem;
      z-index: 0;
      width: 6rem;
      height: .9rem;
      background-image: url(https://image-1251917893.file.myqcloud.com/igame/merchant/igame-dnf/dialog/dia-bottom.png);
      background-repeat: repeat;
      background-size: 100% 100%;
    }
  }

  .press__close {
    position: absolute;
    bottom: -1.8rem;
    left: 50%;
    display: block;
    width: .81rem;
    height: .81rem;
    margin-left: -.3rem;
    background: url(https://image-1251917893.file.myqcloud.com/igame/merchant/igame-dnf/dia-close.png) no-repeat;
    background-size: 100% 100%;
  }

  .press__title {
    padding: .26rem 0 .32rem;
    font-family: 'rxnf', sans-serif;
    font-size: .35rem;
    font-weight: bold;
    line-height: .38rem;
    text-align: center;
    background: linear-gradient(to bottom, #fffdf1 40%, #fe8 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .press__content {
    margin: auto;
    text-align: center;
    margin-bottom: 1.2rem;
  }

  .press__box input {
    display: block;
    width: 4.64rem;
    height: .72rem;
    padding: 0 .2rem;
    margin: .32rem auto .2rem;
    font-size: .28rem;
    line-height: .72rem;
    color: #727272;
    background: #333;
    border: .02rem solid #a9262f;
    border-radius: .08rem;
  }

  .press__message {
    width: 100%;
    padding: 0 .8rem;
    color: #838383;
    font-size: .24rem;
    line-height: 1.2;
    text-align: center;
  }

  .press__treaty-wrap {
    display: flex;
    align-items: flex-start;
    padding: 0 .8rem;
    margin-top: .1rem;
    color: #999;
    font-size: .24rem;
    line-height: .34rem;
  }

  .press__act-checkbox {
    display: inline-block;
    width: .3rem;
    height: .3rem;
    margin: 0 .12rem;
    background: url(https://image-1251917893.file.myqcloud.com/igame/merchant/igame-dnf/detail-check.png) no-repeat center center;
    background-size: contain;
    cursor: pointer;

    &.press__act-checkbox--checked {
      background: url(https://image-1251917893.file.myqcloud.com/igame/merchant/igame-dnf/detail-checked.png) no-repeat center center;
      background-size: contain;
    }
  }

  .press__treaty-terms {
    color: #fff;
    font-size: .24rem;
    line-height: 1.4;
  }

  .press__treaty-desc {
    color: #b72e34;
    font-size: .24rem;
    text-decoration: underline;
    text-underline-offset: .04rem;
  }

  .press__box {
    margin-top: .32rem;

    .press__code-wrap {
      position: relative;

      input {
        padding-right: 1.8rem;
      }
    }

    .press__code-btn {
      position: absolute;
      top: 0;
      right: .84rem;
      display: inline-block;
      width: 1.8rem;
      color: #b72e34;
      font-size: .28rem;
      text-decoration: underline;
      text-underline-offset: .04rem;
      line-height: .72rem;
      text-align: right;
    }
  }

  .press__button-wrap {
    position: absolute;
    right: 0;
    bottom: -.2rem;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 5rem;
    padding: 0;
    margin: .2rem auto;
    font-family: 'rxnf', sans-serif;
  }

  .press__button-wrap .press__btn--medium-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    width: 2.1rem;
    height: .8rem;
    font-size: .32rem;
    font-weight: 900;
    line-height: .7rem;
    text-align: center;
    background: url(https://image-1251917893.file.myqcloud.com/igame/merchant/igame-dnf/dialog/sure-btn.png)
    no-repeat center center;
    background-size: contain;

    .press__btn-text {
      color: #654317;
    }
  }

  .press__button-wrap .press__btn--medium-secondary {
    display: none;
  }

  .press__btn--medium-primary.press__btn--disabled {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    width: 2.1rem;
    height: .8rem;
    font-size: .32rem;
    font-weight: 900;
    line-height: .7rem;
    text-align: center;
    background: url(https://image-1251917893.file.myqcloud.com/igame/merchant/igame-dnf/dialog/sure-btn.png)
    no-repeat center center;
    background-size: contain;
    filter: grayscale(90%);

    .press__btn-text {
      color: #654317;
    }
  }
}

.press__box {
  ::v-deep {
    .uni-input-placeholder,
    .input-placeholder {
      color: #727272;
      font-size: .28rem;
    }

    .uni-input-input,
    .uni-textarea-textarea,
    .press__input-area--placeholder {
      font-size: .28rem;
      color: #727272;
      background: #333;
    }
  }
}
