@import '../../common/style/gp-match/palette-1.scss';
@import '../../common/style/gp-match/mixin.scss';

$horizon: 'https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/horizon';

.gp-match-popup {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
}

.gp-match-mask {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, .7);
}

.gp-match-popup-content {
  position: relative;
  width: 7.32rem;
  min-height: 3.8rem;
  height: auto;
  background: url(#{$horizon}/popup-bg-s.png) no-repeat;
  background-size: 100% 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gp-match-mini-popup {
  min-height: 3.28rem;
  background: url(#{$horizon}/popup-bg-s.png) no-repeat;
  background-size: 100% 100%;
}

.gp-match-popup-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: .4rem;
  margin-top: .24rem;
}

.gp-match-popup-title {
  font-size: $font-m;
  color: $color-dark-3;
  line-height: .26rem;
  margin-left: .56rem;
  font-family: 'MStiffHeiPRC';
  width: 100%;
  text-align: center;
}

.gp-match-popup-close {
  width: .44rem;
  height: .4rem;
  background: url(#{$horizon}/close.png) no-repeat;
  background-size: 100%;
  margin-right: .24rem;
}

//主内容
.gp-match-popup-content-box {
  flex: 1;
}

// 按钮组
.gp-match-popup-btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .48rem;
}

.gp-match-popup-btn-secondary {
  @include secondary-btn-s();
  margin-right: .24rem;
  position: relative;
}

.gp-match-popup-btn-primary {
  @include primary-btn-s();
}

.overflow-visible {
  overflow: visible;
}

//按钮提示
.btn-tips {
  position: absolute;
  top: -.46rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: 'generic-family';

  p {
    padding: 0 .32rem;
    height: .36rem;
    line-height: .36rem;
    text-align: center;
    font-size: .2rem;
    color: #fff;
    background: #000;
    white-space: nowrap;
    clip-path: polygon(3% 0%, 100% 0%, 97% 100%, 0% 100%);
  }

  &::after {
    content: '';
    position: absolute;
    bottom: -.18rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border: .1rem solid transparent;
    border-top: .1rem solid #000;
  }
}
