@import '../../common/style/act/mixin/mixin.scss';
@import '../../common/style/act/layout/_layout-majiang.scss';
@import '../../common/style/act/button/_button-majiang.scss';

.press-act:not(.press-act--hidden-tip) {
  .press__close {
    display: block;
    position: absolute;
    top: .28rem;
    right: .32rem;
    width: .36rem;
    height: .36rem;
    background: url(https://image-1251917893.file.myqcloud.com/2020/a20200423mahjong/btn-close.png) no-repeat;
    background-size: 100%;
  }

  // 1填写收货地址start
  .press__dialog {
    width: 8.14rem;
    overflow: hidden;
    position: fixed;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    color: $color-blue-6;
    margin: auto;
    min-height: 5rem;
    padding: 0 .34rem .34rem;
    box-sizing: border-box;
    background: url(https://image-1251917893.file.myqcloud.com/2020/a20200423mahjong/pop-bg1.png) no-repeat top center;
    background-size: contain;
  }

  .press__title {
    font-size: .52rem;
    color: #c87634;
    text-shadow: 0 .02rem 0 #fff7b3;
    text-indent: 0;
    background: none;
    font-family: 'FZCKJW';
    margin-top: .14rem;
    height: .66rem;
    line-height: .64rem;
  }

  .press__title--phone {
    color: #c87634;
    font-size: .52rem;
    text-indent: unset;
    text-align: center;
  }

  .press__content {
    width: 5.56rem;
  }

  .press__box input {
    display: block;
    width: 100%;
    height: .64rem;
    border: 0;
    border-radius: .08rem;
    background: linear-gradient(180deg, #d7e3fd 0%, #e9effb 100%);
    font-size: .28rem;
    color: #a1b6d5;
    letter-spacing: 0;
    text-align: center;
  }

  .press__message {
    color: #5668a1;
    font-size: .24rem;
    line-height: .34rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .press__button-wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    justify-content: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    position: absolute;
    left: 0;
    right: 0;
    bottom: .44rem;
    z-index: 2;
    padding: 0 1rem;
    justify-content: center;

    .press__btn--cancel {
      margin-right: .32rem;
    }
  }

  .press__treaty-wrap {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-top: .12rem;
  }

  .press__treaty-check {
    width: .24rem;
    height: .24rem;
    flex-shrink: 0;
    margin: .03rem .06rem 0 0;
    background: rgba(125, 165, 181, .6);

    &.press__act-checkbox--checked {
      background: url(https://image-1251917893.file.myqcloud.com/2020/a20200423mahjong/icon-selected.png) no-repeat rgba(#7da5b5, .6);
      background-size: .2rem .2rem;
      background-position: center center;
    }

    ::v-deep .van-checkbox__icon {
      .van-icon {
        width: .24rem;
        height: .24rem;
        border: 0 none;
      }
    }

    ::v-deep .van-checkbox__icon--checked {
      .van-icon {
        background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/majiang/image/icon/mj-gou.png) no-repeat 50%;
        background-size: contain;
      }
    }
  }

  ::v-deep .van-checkbox__icon--checked .van-icon-success:before {
    content: '';
  }

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

  .press__treaty-desc {
    font-size: .24rem;
    color: #5569a2;
  }


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

    ::v-deep {
      .uni-input-input {
        font-size: .24rem;
        color: #5668a1;
      }

      .uni-input-placeholder,
      .input-placeholder {
        font-size: $font-s;
      }
    }

    .press__phone-number {
      width: 100%;
      height: .64rem;
      font-size: $font-s;
      color: #5668a1;
      padding: 0 .16rem;
      background: linear-gradient(180deg, #d7e3fd 0%, #e9effb 100%);
      border-radius: .08rem;

      &::placeholder {
        color: #5668a1;
      }
    }

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

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

    .press__code-number {
      width: 100%;
      height: 100%;
      font-size: $font-s;
      color: #5668a1;
      padding: 0 .16rem;
      background: linear-gradient(180deg, #d7e3fd 0%, #e9effb 100%);
      border-radius: .08rem;

      &::placeholder {
        color: #5668a1;
      }
    }

    .press__code-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      height: .64rem;
      font-size: $font-s;
      color: #5769a2;
      padding: 0 .36rem;
      margin-left: .16rem;
      white-space: nowrap;
      border-radius: .08rem;
      border: 1px solid #d0e1f4;
    }

    .press__code-btn--disabled {
      color: gray;
    }
  }

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

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

  .press-act-award {
    position: relative;
    width: 1.52rem;
    height: 2.6rem;
    padding: 0 .04rem;
    margin-right: .32rem;
    background: url(https://image-1251917893.file.myqcloud.com/Tip-wss/award/majiang/bg.png) no-repeat center;
    background-size: 100% 2.26rem;

    &::after {
      position: absolute;
      right: -.32rem;
      top: 0;
      content: '';
      height: 100%;
      width: .02rem;
      background: #d0efef;
    }

    &__content {
      .press__content {
        width: 4.04rem;
        margin-left: .32rem;
      }
    }

    &__title {
      font-size: .24rem;
      color: #415264;
      text-align: center;
      padding-top: .18rem;
      padding-bottom: .16rem;
    }

    &__image {
      display: block;
      width: 1.08rem;
      height: 1.08rem;
      margin: 0 auto;
      margin-bottom: .06rem;
    }

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