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

@import '../../common/style/act/layout/_layout-smoba.scss';

.press-act:not(.press-act--hidden-tip) {
  &.press__cover {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .7);
    z-index: 999;
  }

  .press__dialog-update {
    width: 5.6rem;
    border-radius: .16rem;
    background: #fff;
  }

  .press__close {
    display: none;
  }

  .press__title {
    font-size: .32rem;
    font-weight: 600;
    color: $color-black;
    text-align: center;
    margin-top: .48rem;
  }

  .press__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .48rem;

    input {
      display: block;
      width: 100%;
      height: .72rem;
      color: $color-black;
      font-size: $font-xm;
      line-height: .72rem;
      margin: 0 auto .2rem;
      padding: 0 .24rem;
      border-radius: 4px;
      border: 0;
      background-color: $color-bg;

      &::placeholder {
        color: $color-gray;
      }
    }

    .press__code-wrap {
      display: flex;
      align-items: center;
      margin: 0 auto;
      margin-bottom: .48rem;
    }

    .press__code-number {
      width: 2.84rem;
      margin-bottom: 0;
    }

    .press__code-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      height: .72rem;
      font-size: .24rem;
      color: $color-primary;
      padding: 0 .22rem;
      margin-left: .12rem;
      white-space: nowrap;
      border-radius: .08rem;
      border: .02rem solid $color-gray-3;
    }

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

  .press__button-wrap {
    display: flex;
    align-items: center;

    .press__btn--cancel,
    .press__btn--sure {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 2rem;
      height: .72rem;
      text-align: center;
      font-size: $font-l;
      color: $color-white;
      padding: 0 .16rem;
      border-radius: .08rem;
      background-image: $color-primary-btn;

      &:active {
        background: $color-blue;
      }
    }

    .press__btn--cancel {
      color: $color-black;
      background: $color-secondary-btn;
      margin-right: .32rem;

      &:active {
        background: $color-gray-3;
      }
    }

    .press__btn--sure {
      position: relative;

      &::after {
        position: absolute;
        top: .08rem;
        right: 0;
        content: '';
        width: 1.52rem;
        height: .3rem;
        background: url(https://image-1251917893.file.myqcloud.com/Esports/new/user/btn-bg-r.png) no-repeat center;
        background-size: contain;
        pointer-events: none;
      }

      &::before {
        position: absolute;
        bottom: 0;
        left: 0;
        content: '';
        width: 1.26rem;
        height: .3rem;
        background: url(https://image-1251917893.file.myqcloud.com/Esports/new/user/btn-bg-r.png) no-repeat center;
        background-size: contain;
        pointer-events: none;
      }

      &:active {
        background: $color-blue;
      }
    }
  }
}