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

$dialog-close_bg: 'https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/gp2.0/img/popup-close.png';

.press-act:not(.press-act--hidden-tip) {
  .press__dialog {
    position: fixed;
    left: 0;
    right: 0;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 9rem;
    height: 5.4rem;
    line-height: 1;
    margin: auto;
    text-align: center;
    background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/gp2.0/img/popup-meduim-bg.png) no-repeat center center;
    background-size: 100% 100%;
    z-index: 99;
    overflow: hidden;
  }

  .press__title {
    position: absolute;
    left: .56rem;
    top: .26rem;
    font-size: $font-m;
    color: #2e3438;
  }

  .press__close {
    position: absolute;
    right: .24rem;
    top: .18rem;
    z-index: 20;

    @include icon_img(.42rem, .36rem, $dialog-close_bg, center center, contain);
  }

  .press__content {
    /*display: flex;*/
    position: relative;
    width: 100%;
    height: 100%;
    padding: .96rem .34rem .4rem .58rem;
  }

  .tip-comp-dialog--reward-box {
    position: absolute;
    top: .86rem;
    right: .56rem;
    width: 1.2rem;
    z-index: 2;
  }

  .tip-comp-dialog--reward-img {
    width: .96rem;
    height: .96rem;
    margin-bottom: .04rem;
    border: .01rem solid #3e4a4f;
  }

  .tip-comp-goods-detail--gift {
    display: block;
    font-size: $font-xxxs;
    color: #737a80;
    text-align: left;
    margin-top: .04rem;
  }

  .tip-comp-dialog--received-name {
    font-size: $font-xxs;
    color: #212124;
    text-align: center;
    line-height: .24rem;
    word-break: break-all;
  }

  .tip-comp-dialog--reward-data {
    display: none;
  }

  .tip-comp-dialog--reward-data a {
    font-size: $font-xxxs;
    color: #737a80;
    line-height: .24rem;
    word-break: break-all;
  }

  .tip-comp-dialog--reward-dividing-line {
    display: none;
  }

  .tip-comp-dialog--reward-context {
    width: 5.52rem;
    height: 100%;
    margin-right: .24rem;
    padding-right: .24rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    &::-webkit-scrollbar {
      width: .08rem;
    }

    /*滚动条里面小方块*/
    &::-webkit-scrollbar-thumb {
      width: .08rem;
      height: 1.58rem;
      border-radius: .08rem;
      background-color: rgba(115, 122, 128, 1);
    }

    /*滚动条里面轨道*/
    &::-webkit-scrollbar-track {
      -webkit-box-shadow: transparent;
      background-color: transparent;
    }
  }

  .tip-comp-dialog--reward-extragifts {}

  .tip-comp-dialog--reward-icon-limit {
    position: absolute;
    right: 0;
    top: 0;
    display: block;
    width: .7rem;
    height: .32rem;
    background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/gp2.0/img/limit-tag.png) no-repeat center center;
    background-size: contain;
    text-indent: -1000em;
  }

  .tip-comp-dialog--reward-subhead {
    font-size: .2rem;
    color: #cdd1d6;
    text-align: left;
    margin-bottom: .1rem;
  }

  .tip-comp-dialog--reward-goodinfo {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 0;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  .tip-comp-dialog--reward-goodimg {
    display: block;
    width: .72rem;
    height: .72rem;
    border: 1px solid rgba(255, 255, 255, .2);
    margin-right: .1rem;
  }

  .tip-comp-dialog--reward-baseinfo {
    width: auto;
    color: #f4f4f6;
    text-align: left;
    font-size: $font-xs;
    letter-spacing: 0;
    overflow: hidden;
  }

  .tip-comp-dialog--reward-available a {
    display: block;
    font-size: $font-xxxs;
    color: #d2d8dc;
    margin-top: .12rem;
    text-decoration: none;
  }

  .tip-comp-dialog--reward-rule {
    font-size: $font-xxs;
    color: #cdd1d6;
    line-height: .28rem;
    text-align: left;
    word-break: break-all;
  }

  .tip-comp-dialog--reward-rule-content {
    position: relative;
    width: 100%;
    padding: .22rem .22rem .14rem;
    margin-bottom: .1rem;
    background: rgba(46, 52, 56, .7);

    &::before {
      content: '';
      position: absolute;
      top: -.08rem;
      left: .48rem;
      bottom: -.14rem;
      left: .3rem;
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 0 .09rem .08rem .09rem;
      border-color: transparent transparent rgba(46, 52, 56, .7) transparent;
    }
  }

  .tip-comp-dialog--received-btn {
    display: none;
  }

  .tip-comp-dialog--reward-highlight {
    color: #f55e2f;
  }

  .tip-comp-dialog--reward-treasure-top {
    display: flex;
    flex-direction: row;
    align-items: center;

    .tip-comp-dialog--reward-treasure-img {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      width: .72rem;
      height: .72rem;
      margin-right: .1rem;
    }

    img {
      display: block;
      width: .72rem;
      height: .72rem;
      border: 1px solid rgba(255, 255, 255, .2);
    }
  }

  .tip-comp-dialog--reward-treasure-desc {
    flex: 1;

    p {
      text-align: left;
      padding-bottom: .12rem;
      font-size: $font-xxs;
      color: #cdd1d6;

      &:last-child {
        border-bottom: 1px solid rgba(33, 33, 36, .15);
      }
    }
  }

  .tip-comp-dialog--reward-treasure-detail {
    padding-left: .8rem;
    padding-top: .12rem;

    p {
      font-size: $font-xxxs;
      color: #d2d8dc;
      text-align: left;
      padding-top: .12rem;
    }
  }

  .tip-comp-dialog--reward-treasure-prize {
    display: flex;
    position: relative;
    align-items: center;
    flex-wrap: wrap;

    img {
      display: block;
      width: .72rem;
      height: .72rem;
      border: 1px solid rgba(255, 255, 255, .2);
      box-shadow: inset 0 1px 10px 0 rgba(0, 0, 0, .5);
    }
  }

  .tip-comp-dialog--reward-treasure-prize-img {
    position: relative;
    display: flex;
    align-items: center;
    width: .72rem;
    height: .72rem;
    margin-right: .04rem;
  }

  .tip-comp-dialog--reward-treasure-prize-hovertips {
    padding: .2rem .18rem;
    display: flex;
    position: absolute;
    top: .52rem;
    left: 0;
    background: rgba(42, 37, 29, .9);
    border-radius: .08rem;
    font-size: $font-xxs;
    color: white;
  }

  /*弹窗礼包*/
  .tip-comp-dialog--recommed-list {
    width: 5.06rem;
    display: inline-flex;
    overflow-x: scroll;
    overflow-y: hidden;
  }

  .tip-comp-dialog--merchant-recommend-item {
    position: relative;
    min-width: 3.04rem;
    height: 1.08rem;
    display: flex;
    flex-shrink: 0;
    margin-right: .12rem;
    font-size: 0;
    background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/gp2.0/img/card/bond-bg/dialog-bond.png) right center no-repeat;
    background-size: 3.04rem 1.08rem;

    &:nth-child(odd) {
      margin-bottom: .12rem;
    }

    &:nth-child(even) {
      margin-bottom: .12rem;
    }
  }

  .tip-comp-dialog--benefit-img {
    width: 1.08rem;
    height: 1.08rem;
    display: block;
    background: white;
  }

  .tip-comp-dialog--benefit-left-msg {
    flex-shrink: 0;
    width: 2.16rem;
    padding: .14rem .18rem;
  }

  .tip-comp-dialog--benefit-condition {
    max-width: 1.6rem;
    font-size: .18rem;
    line-height: .18rem;
    color: rgba(57, 57, 57, .4);
    text-align: left;

    @include text-overflow-line1;
  }

  .tip-comp-dialog--game-duty-line {
    margin-top: .08rem;
    color: #737a80;
    font-size: .18rem;
    line-height: .18rem;
    letter-spacing: -1px;
    text-align: left;
  }

  .tip-comp-dialog--benefit-right-msg {
    width: .88rem;
    height: 1.08rem;

    a {
      position: relative;
      display: block;
      width: .88rem;
      text-align: center;

      span {
        position: relative;
        line-height: 1.08rem;
        font-size: .2rem;
        z-index: 2;
      }
    }
  }

  .press__award-list {
    overflow-x: auto;
    width: 8rem;
    height: 2.88rem;
    display: flex;
    white-space: nowrap;
  }

  .press__award-item {
    display: inline-block;
    width: 1.8rem;
    height: 2.18rem;
    margin: .08rem;
  }

  .press__box {
    display: flex;
    box-sizing: border-box;
    width: 1.72rem;
    height: 1.72rem;
    justify-content: center;
    align-items: center;
    border: .02rem solid #cdd1d6;
    background-color: #f6f6f6;
  }

  .press__award-item.press__award-item--active {
    .press__box {
      border: .02rem solid #cdd1d6;
      box-shadow: 0 0 0 .1rem #e4b853;
    }

    .press__name {
      display: inline-block;
    }
  }

  .press__image {
    max-width: 1.54rem;
    max-height: 1.54rem;
  }

  .press__name {
    display: none;
    font-size: .24rem;
    line-height: .4rem;
    height: .4rem;
  }

  .press__buttons {
    position: absolute;
    left: 0;
    right: 0;
    bottom: .54rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }

  .press__right {
    display: none;
  }

  .press__btn.press__btn--disabled {
    mix-blend-mode: luminosity;
    filter: grayscale(100%);
  }

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

  .press__award-item.press__award-item--active {
    .press__bottom {
      position: fixed;
      padding-top: .46rem;
      left: .68rem;
      width: 7.8rem;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
    }
  }

  .press__name {
    width: auto;
    font-weight: bold;
  }

  .press__tip {
    font-size: .24rem;
    line-height: .3rem;
    opacity: .5;
  }
}