@import '../../common/style/act/mixin/mixin.scss';

//  弹框背景--start
%dialog-bg-small {
  width: 9.1rem;
  height: 6.06rem;
  padding-left: .92rem;
  padding-top: .4rem;
  padding-right: .4rem;
  background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/get-coupon/x5m/bg-task-prompt.png) no-repeat center center;
  background-size: contain;
}

.press-act:not(.press-act--hidden-tip) {
  &.press__cover {
    background-color: rgba(0, 0, 0, .75);
  }

  .press__dialog {
    overflow: hidden;
    position: fixed;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transform: translateY(-50%);
    transform: translateY(-50%);
    z-index: 99;
    margin: auto;
    min-height: unset;
  }

  .press__close {
    position: absolute;
    top: 0;
    right: 0;
    width: .71rem;
    height: .7rem;
    background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/get-coupon/x5m/close.png) no-repeat;
    background-size: 100%;
  }

  .press__title {
    width: 3.1rem;
    height: .48rem;
    font-size: 0;
    margin-left: .12rem;
    background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/get-coupon/x5m/title-phone.png) no-repeat;
    background-size: 100%;
  }

  .press__content {
    width: 5.88rem;
    margin: .24rem auto 0;
  }

  .press__code-wrap {
    display: flex;
    justify-content: space-between;

    &+.press__code-wrap {
      margin-top: .12rem;
    }
  }

  .press__box::v-deep {
    input {
      display: block;
      width: 100%;
      height: .64rem;
      font-size: .18rem;
      color: rgba(255, 255, 255, .4);
      font-weight: 600;
      padding: 0 .32rem;
      border-radius: 0 .4rem;
      border: .02rem solid #f4f1ff;
      background: linear-gradient(91deg, rgba(121, 85, 238, .40) .02%, rgba(110, 77, 217, .40) 99.98%);
    }

    .uni-input-input {
      color: #8a7fd7;
    }

    .input-placeholder {
      color: rgba(255, 255, 255, .4);
    }
  }

  .press__code-btn {
    width: 2.04rem;
    height: .72rem;
    line-height: .72rem;
    text-align: center;
    font-size: .28rem;
    flex-shrink: 0;
    margin-left: .2rem;
    color: rgba(255, 255, 255, .6);
    background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/get-coupon/x5m/btn-code.png) no-repeat;
    background-size: 100%;
  }

  .press__message {
    color: #8a7fd7;
    font-size: .24rem;
    margin-top: .12rem;
  }

  .press__button-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: .92rem;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: .92rem;
    padding-right: .4rem;
  }

  .press__dialog-phone {
    @extend %dialog-bg-small;

    .press__button-wrap {
      a {
        display: block;
        margin-right: .24rem;

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

      .press__btn--cancel {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.8rem;
        height: .76rem;
        line-height: normal;
        font-size: .38rem;
        color: #e1d8ff;
        background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/get-coupon/x5m/btn-exchange-l.png) no-repeat center center;
        background-size: contain;
      }

      .press__btn--sure {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.8rem;
        height: .76rem;
        line-height: normal;
        font-size: .38rem;
        color: #603400;
        background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/get-coupon/x5m/btn-get-l.png) no-repeat center center;
        background-size: contain;
      }
    }
  }

  /* 协议 */
  .press__treaty-wrap {
    display: flex;
    align-items: center;
    margin-top: .24rem;

    .press__act-checkbox {
      width: .43rem;
      height: .43rem;
      background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/get-coupon/x5m/icon-check.png) no-repeat;
      background-size: 100%;

      &.press__act-checkbox--checked {
        background-image: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/get-coupon/x5m/icon-checked.png);
      }
    }
  }

  .press__treaty-terms {
    font-size: .24rem;
    color: #8a7fd7;
    line-height: 1.2;
  }

  .press__treaty-desc {
    font-size: .24rem;
    color: #8a7fd7;
  }
}
