@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%);
    transform: translateY(-50%);
    width: 7.98rem;
    height: 5.02rem;
    line-height: 1;
    margin: auto;
    background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/gp2.0/img/popup-meduim-bg.png) no-repeat 50%;
    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 {
    position: absolute;
    left: .52rem;
    top: .2rem;
    font-size: $font-m;
    color: #2e3438;
  }

  .press__content {
    width: 4.84rem;
    height: 2.48rem;
    overflow-y: scroll;
  }

  .press__message {
    font-size: $font-xxxs;
    margin: .16rem auto 0;
    color: #737a80;
    line-height: .26rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

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

  .press__treaty-wrap {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    margin: .12rem auto 0;
  }

  .press__act-checkbox {
    flex-shrink: 0;
    width: .3rem;
    height: .3rem;
    margin: 0 .08rem 0 0;
    background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/gp2.0/img/choose_dark.png) center top no-repeat;
    background-size: .26rem .27rem;

    &.press__act-checkbox--checked {
      background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/gp2.0/img/choose_on_white.png) center top no-repeat;
      background-size: .26rem .27rem ;
    }
  }

  .press__treaty-terms {
    margin-top: .04rem;
    color: #737a80;
    font-size: $font-xxs;
    text-align: left;
  }

  .press__treaty-desc {
    font-size: $font-xxs;
    color: #91a4d5;
    line-height: 1.2;
  }

  .press__btn--cancel {
    display: none;
  }

  /* 验证码 */
  .press__box {
    position: relative;
    width: 100%;

    .press__phone-number {
      width: 100%;
      height: .52rem;
      font-size: $font-xxs;
      color: #737a80;
      padding: 0 .16rem;
      background: rgba(205, 209, 214, .5);
      border: 1px solid rgba(33, 33, 36, .15);

      &::placeholder {
        color: #737a80;
      }
    }

    .press__code-wrap {
      display: flex;
      align-items: center;
      width: 100%;
      margin-bottom: .08rem;
    }

    .press-act-input-wrap {
      flex: 1;
      height: .52rem;
    }

    .press__code-number {
      width: 100%;
      height: 100%;
      font-size: $font-xxs;
      color: #737a80;
      padding: 0 .16rem;
      background: rgba(205, 209, 214, .5);
      border: 1px solid rgba(33, 33, 36, .15);

      &::placeholder {
        color: #737a80;
      }
    }

    .press__code-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      height: .52rem;
      font-size: .2rem;
      color: #cdd1d6;
      padding: 0 .16rem;
      margin-left: .08rem;
      white-space: nowrap;
      background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/gp2.0/img/code-btn.png) no-repeat;
      background-size: 100% 100%;
    }

    .press__code-btn--disabled {
      color: #cdd1d6;
    }
  }

  &.press__cover {
    ::v-deep {
      .uni-input-placeholder,
      .uni-input-input,
      .uni-textarea-textarea {
        font-size: .2rem;
        color: #737a80;
      }
    }

    .press__button-wrap {
      margin: auto;
      padding: 0;
    }

    .press__box input {
      display: block;
      margin: auto;
      text-align: left;
    }
  }
  
  .press-act__container {
    display: flex;
    justify-content: center;
    padding-top: 1.2rem;
  }

  .press-act-award {
    width: 1.68rem;
    height: 2.68rem;
    padding: 0 .08rem .04rem;
    margin-right: .32rem;
    background: url(https://image-1251917893.file.myqcloud.com/Tip-wss/award/gp/bg.png) no-repeat center;
    background-size: 100% 100%;

    &__content {
      padding-top: .98rem;

      .press__content {
        width: 4.38rem;
        height: 2.68rem;
        padding-top: .2rem;
      }
    }

    &__title {
      font-size: .22rem;
      color: #fff;
      text-align: center;
      padding-top: .1rem;
      padding-bottom: .28rem;
    }

    &__image {
      display: block;
      width: 1.12rem;
      height: 1.12rem;
      margin: 0 auto;
      border: .01rem solid #fff;
      border-radius: .04rem;
      margin-bottom: .12rem;
    }

    &__name {
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
      text-overflow: ellipsis;
      font-size: .24rem;
      color: #e4b853;
      line-height: .32rem;
      text-align: center;
      word-break: break-all;
    }
  }
}