@import '../../common/style/act/button/_button-game-life-vertical.scss';

.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: #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: 0 auto;
    width: 6.8rem;
    height: 1.08rem;
    line-height: 1.08rem;
    color: $color-gray-1;
    font-size: $font-xl;
    text-align: center;
    font-weight: bold;
    border-bottom: .02rem solid #e2e3f1;
    z-index: 1;
  }

  .press__close {
    position: absolute;
    width: .48rem;
    height: .48rem;
    top: .32rem;
    left: .24rem;
    background: url(https://image-1251917893.file.myqcloud.com/igame/common/image/close-icon.png) center center no-repeat;
    background-size: .32rem .32rem;
    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/component/dialog--select-award/game-life-check-false.png) center/100% 100%;
  }

  .press__award-item--active .press__select-button {
    border-color: transparent;
    background: url(https://image-1251917893.file.myqcloud.com/igame/component/dialog--select-award/game-life-check-true-2.png) center/100% 100%;
  }

  .press__box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1.04rem;
    height: 1.04rem;
    background-color: #f6f6f6;
  }

  .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: $font-m;
    color: $color-gray-2;
  }

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

  .press__buttons {
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
  }

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

  .press__award-list::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 1rem;
    transform: translateY(-160%);
    background-image: linear-gradient(to top, #fff 30%, rgba(255, 255, 255, 0) 100%);
  }

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

  .press__tip {
    margin-top: .12rem;
    font-size: $font-s;
    line-height: .3rem;
    color: $color-gray-4;
  }

  .press__btn.press__btn--disabled {
    border-radius: 0;
    color: #fff;
    mix-blend-mode: luminosity;
    filter: grayscale(100%);
  }

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

  &.press__cover .press__btn.press__btn--maxlarge-primary {
    margin: 0 auto;
  }
}