@import '../../common/style/act/button/_button-game-life-vertical.scss';
@font-face {
  font-family: 'rxnf';
  src: url('https://image-1251917893.file.myqcloud.com/igame/merchant/igame-dnf/font/rxnf.TTF') format('truetype');
}

.press-act:not(.press-act--hidden-tip) {
  &.press__cover {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, .7);
    z-index: 99;
  }

  /* 物品自选底部弹层 start */
  .press__dialog {
    width: 100%;
    background: #281617;
    color: #fff;
    min-height: 50vh;
    max-height: 90vh;
    position: absolute;
    bottom: 0;
    padding-bottom: env(safe-area-inset-bottom);
    padding-bottom: .4rem;
    border-top-left-radius: .2rem;
    border-top-right-radius: .2rem;
    z-index: 1000;
  }

  .press__title {
    position: relative;
    margin: .9rem auto 0;
    width: 5.54rem;
    height: .7rem;
    line-height: 1.08rem;
    color: #fff;
    font-size: .32rem;
    text-align: center;
    text-indent: -1000rem;
    font-weight: bold;
    z-index: 1;
    background: url(https://image-1251917893.file.myqcloud.com/igame/merchant/igame-dnf/title-bg.png) center/100% auto no-repeat;
  }

  .press__close {
    position: absolute;
    width: .48rem;
    height: .48rem;
    top: .32rem;
    right: .24rem;
    background: url(https://image-1251917893.file.myqcloud.com/igame/merchant/igame-dnf/dia-close.png) center/100% 100% no-repeat;
    z-index: 2;
  }

  .press__content {
    width: 6.8rem;
    height: 7.80rem;
    overflow-y: auto;
    margin: 0 auto;
  }

  .press__left {
    display: flex;
    align-items: center;
  }

  .press__select-button {
    text-indent: -100rem;
    width: .32rem;
    height: .32rem;
    background: url(https://image-1251917893.file.myqcloud.com/igame/merchant/igame-dnf/check.png) center/100% 100%;
  }

  .press__award-item--active .press__select-button {
    border-color: transparent;
    background: url(https://image-1251917893.file.myqcloud.com/igame/merchant/igame-dnf/checked.png) center/100% 100%;
  }

  .press__box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1.04rem;
    height: 1.04rem;
    border: .02rem solid #931716;
    border-radius: .12rem;
    background-color: #000;
  }

  .press__image {
    margin: auto;
    width: 1.04rem;
    height: 1.04rem;
    object-fit: contain;
  }

  .press__name {
    max-width: 3.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-all;
    box-sizing: border-box;
    font-size: .3rem;
    color: #fff;
  }

  .press__award-item {
    width: 6.8rem;
    margin: 0 auto;
    padding: .2rem .12rem .2rem .08rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: .02rem solid #4f4041;
    box-sizing: border-box;
  }

  .press__buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'rxnf', sans-serif;
  }

  .press__award-list {
    height: 7.2rem;
    overflow-y: auto;
    margin-bottom: .40rem;
  }

  .press__award-list::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6.5rem;
    background: url(https://image-1251917893.file.myqcloud.com/igame/merchant/igame-dnf/bottom-dec.png) bottom/100% auto no-repeat;
    background-position-y: .3rem;
    z-index: -1;
  }

  .press__info-wrap {
    width: 3.8rem;
    margin-left: .2rem;
  }

  .press__tip {
    margin-top: .12rem;
    font-size: .24rem;
    line-height: .3rem;
    color: #fff;
  }

  .press__btn.press__btn--disabled {
    filter: grayscale(90%);
  }

  .press__bottom,
  .press__btn--close {
    display: none;
  }

  &.press__cover .press__btn.press__btn--maxlarge-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.8rem;
    height: 1rem;
    margin: auto;
    font-size: .4rem;
    color: #654317;
    font-weight: 900;
    line-height: .7rem;
    text-align: center;
    background: url(https://image-1251917893.file.myqcloud.com/igame/merchant/igame-dnf/dialog/sure-btn.png) no-repeat center/100% 100%;
    background-size: contain;
  }
}