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

//  弹框背景--start
%dialog-bg-small {
  width: 8.15rem;
  height: 5.18rem;
  padding: .24rem .12rem .2rem .12rem;
  background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/get-coupon/guandan/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: .34rem;
    right: .38rem;
    width: .36rem;
    height: .36rem;
    background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/get-coupon/guandan/close.png) no-repeat;
    background-size: 100%;
  }

  .press__title {
    width: 100%;
    height: .56rem;
    line-height: .56rem;
    text-align: center;
    color: #ab5211;
    font-size: .36rem;
    font-weight: 700;
  }

  .press__content {
    width: 5.08rem;
    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: .48rem;
      font-size: .2rem;
      color: rgba(255, 255, 255, .4);
      font-weight: 600;
      padding: 0 .14rem;
      border: .02rem solid rgba(255, 223, 142, .80);;
      background: rgba(255, 218, 147, .25);
    }

    .uni-input-input {
      color: #655342;
    }

    .input-placeholder {
      font-size: .2rem;
      color: rgba(167, 102, 45, .50);
    }
  }

  .press__code-btn {
    width: 1.48rem;
    height: .48rem;
    line-height: .48rem;
    text-align: center;
    font-size: .2rem;
    flex-shrink: 0;
    margin-left: .16rem;
    color: #a7662d;
    border: .02rem solid #ffdf8e;
  }

  .press__message {
    color: #655342;
    font-size: .2rem;
    margin-top: .16rem;
  }

  .press__button-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: .4rem;
    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 {
        width: 2.21rem;
        height: .76rem;
        font-size: 0;
        background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/get-coupon/guandan/btn-cancel.png) no-repeat center center;
        background-size: contain;
      }

      .press__btn--sure {
        width: 2.21rem;
        height: .76rem;
        font-size: 0;
        background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/get-coupon/guandan/btn-confirm.png) no-repeat center center;
        background-size: contain;
      }
    }
  }

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

    .press__act-checkbox {
      width: .40rem;
      height: .40rem;
      background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/get-coupon/guandan/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/guandan/icon-checked.png);
      }
    }
  }

  .press__treaty-terms {
    font-size: .2rem;
    color: #a7662d;
    line-height: 1.2;
  }

  .press__treaty-desc {
    font-size: .2rem;
    color: #a7662d;
  }
}
