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

.press-act:not(.press-act--hidden-tip) {
  .press__full-page {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 14, 22, .8);
    background-image: linear-gradient(
      180deg,
      rgba(25, 48, 91, 0) 73%,
      rgba(255,255,255,.1) 100%
    );
  }

  .press__content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 4rem;
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/lgame/ingame-lolm/2024/get-award-dialog-bg.png) no-repeat center center;
    background-size: auto 100%;
    padding-top: .54rem;
    margin: 0;
    z-index: 100;
  }

  .press__content--get::before {
    position: absolute;
    left: 0;
    right: 0;
    top: -1.08rem;
    content: '恭喜获得';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.7rem;
    height: 1.22rem;
    color: #f0e6d2;
    font-size: .36rem;
    margin: auto;
  }

  .press__content--received::before {
    position: absolute;
    left: 0;
    right: 0;
    top: -1.08rem;
    content: '您已获得';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.7rem;
    height: 1.22rem;
    color: #f0e6d2;
    font-size: .36rem;
    margin: auto;
  }

  .press__center {
    width: 10rem;
    text-align: center;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: safe center;
    overflow-x: auto;
  }

  .press__center-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: .2rem;

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

    img {
      display: block;
      width: 1.8rem;
      height: 1.8rem;
      margin: 0 auto;
    }
  }

  .press__base-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    color: #425365;
  }

  .press__goods-name {
    margin-top: .3rem;
    line-height: .28rem;
    color: #cdbe91;
    text-align: center;
    font-size: .2rem;
    width: 1.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .press__goods-desc {
    margin-top: .12rem;
    line-height: .28rem;
    color: #cdbe91;
    text-align: center;
    font-size: .2rem;
    width: 1.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tip-comp-dialog--fullpage-waiting-issue {
    height: .35rem;
    line-height: .35rem;
    position: relative;
    margin: .1rem 0 .2rem;
    text-align: center;
    color: #4b5b6c;

    &::after,
    &::before {
      position: absolute;
      content: '';
      display: block;
      width: 2rem;
      height: 1px;
      background: #4b5b6c;
      top: .16rem;
    }

    &::before {
      left: .4rem;
    }

    &:after {
      right: .4rem;
    }
  }

  .press__tips {
    color: #cdbe91;
    text-align: center;
    margin-top: .3rem;
    font-size: .2rem;

    span {
      color: #f5b74c;
    }
  }

  .press__button-wrap {
    display: flex;
    justify-content: space-around;
    font-weight: bold;
    width: 6.4rem;
    height: .72rem;
    margin: auto;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1rem;
  }

  .press__sub-wrap {
    position: absolute;
    bottom: -.74rem;
    right: .26rem;
    display: flex;
    align-items: center;
    font-size: .22rem;
    color: #cdbe91;
  }

  // checkbox
  .press__sub {
    display: block;
    appearance: none;
    width: .4rem;
    height: .4rem;
    outline: none;
    border: 0;
    background: url(https://image-1251917893.file.myqcloud.com/2020/Tip-wsq/V3.0/img/dialog/check.png) no-repeat center center;
    background-size: contain;
    margin-right: .08rem;
    cursor: pointer;
    visibility: visible;
  }

  .press__sub:checked,
  .press__sub.press__sub--checked {
    background: url(https://image-1251917893.file.myqcloud.com/2020/Tip-wsq/V3.0/img/dialog/checked.png) no-repeat center center;
    background-size: contain;
    visibility: visible;
  }

  // 兼容 uni-app 新的 checkbox
  .press__act-checkbox {
    display: block;
    -webkit-appearance: none;
    width: .4rem;
    height: .4rem;
    margin-right: .08rem;
    flex-shrink: 0;
    outline: none;
    border: 0;
    background: url(https://image-1251917893.file.myqcloud.com/2020/Tip-wsq/V3.0/img/dialog/check.png) no-repeat center center;
    background-size: contain;
    cursor: pointer;
    visibility: visible;

    &--checked {
      background: url(https://image-1251917893.file.myqcloud.com/2020/Tip-wsq/V3.0/img/dialog/checked.png) no-repeat center center;
      background-size: contain;
    }
  }

  .press__sub:checked+label {
    color: #cdbe91;
  }

  .press__stay-out-new {
    display: none;
  }

  .press__btn--large-primary {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #f0e6d2;
    width: 2.1rem;
    height: .6rem;
    line-height: normal;
    font-size: .24rem;
    border: .02rem solid;
    border-image: linear-gradient(to bottom, #eee2cc, #c39d53) 1 10;
    background-image: none;
    background: linear-gradient(to bottom, #151b21 0%, #3a382d 100%);
    font-family: inherit;
  }

  .press__btn--medium-secondary {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #cdbe91;
    width: 2.1rem;
    height: .6rem;
    line-height: normal;
    font-size: .24rem;
    border: .02rem solid;
    border-image: linear-gradient(to bottom, #bea369, #5f5033) 1 10;
    background-image: linear-gradient(180deg, #14181c 0%, #212325 100%);
    font-family: inherit;
  }
}
