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

.press__share-dialog {
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  background-color: rgba(13, 19, 32, .85);
  background-image: linear-gradient(180deg, rgba(#10315e, 0) 69.79%, rgba(#10315e, .85) 100%);
  z-index: 999;
}

.press__share-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .36rem .24rem 0;
}

.press__share-info {
  position: relative;
  width: 8.72rem;
  height: 4rem;
  padding-left: 4.8rem;
  padding-right: .2rem;
}

.press__share-info-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
}

.press__share-title {
  position: relative;
  z-index: 1;
  font-family: 'hok-title';
  max-height: .8rem;
  font-size: .28rem;
  color: #3a3d43;
  font-weight: 700;
  margin-top: .2rem;
  margin-bottom: .32rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.press__share-desc {
  position: relative;
  z-index: 1;

  .press__share-tip {
    &:last-child {
      padding-bottom: 0;

      &::after {
        display: none;
      }
    }
  }
}

.press__share-tip {
  position: relative;
  font-size: .2rem;
  color: #a6a6a6;
  padding-bottom: .38rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  &::after {
    position: absolute;
    left: 0;
    bottom: .08rem;
    content: '';
    width: .24rem;
    height: .24rem;
    @include bgUrl('pwd/enter.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
  }
}

.press__share-pwd {
  position: absolute;
  z-index: 1;
  left: 4.8rem;
  bottom: .16rem;
  right: .2rem;
  display: flex;
  align-items: center;
  height: .64rem;
  padding: 0 .16rem;
  border-radius: .08rem;
  background-color: rgba(0, 0, 0, .05);
}

.press__share-pwd-label {
  font-size: .2rem;
  color: #a6a6a6;
}

.press__share-pwd-value {
  flex: 1;
  font-size: .24rem;
  color: #000;
  text-align: right;
  overflow: hidden;
  word-break: break-word;
  line-height: 1;
}

.press__share-way {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 1.84rem;
  background: #000;

  .press__share-item {
    &:last-child {
      margin-right: 0;
    }
  }
}

.press__share-item {
  width: .88rem;
  height: .88rem;
  margin-right: 1.08rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.press__share-item--facebook {
  @include bgUrl('pwd/facebook.png');
}

.press__share-item--whatsapp {
  @include bgUrl('pwd/whatsapp.png');
}

.press__share-item--instagram {
  @include bgUrl('pwd/Instagram.png');
}

.press__share-item--link {
  @include bgUrl('pwd/share-link.png');
}

.press_close {
  position: absolute;
  top: .4rem;
  right: 3rem;
  width: .48rem;
  height: .49rem;
  @include bgUrl('close.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.press__share-code {
  position: absolute;
  z-index: 1;
  right: .2rem;
  bottom: 1.06rem;
  width: 1.08rem;
  height: 1.08rem;
}

.press__share-save {
  padding-top: .12rem;
  font-size: .24rem;
  color: #ffc256;
}

.press__share-copy {
  position: absolute;
  left: calc(100% - 3.58rem);
  bottom: 2.98rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.24rem;
  height: .4rem;
  font-size: .2rem;
  color: #b0d3fd;
  padding-right: .08rem;
  padding-left: .36rem;
  background: rgba(#1c427c, .85);
  border-radius: .04rem;
  border: .02rem solid rgba(#3472d1, .52);
  white-space: nowrap;

  &::before {
    position: absolute;
    left: .08rem;
    top: 0;
    bottom: 0;
    margin: auto;
    content: '';
    width: .24rem;
    height: .24rem;
    @include bgUrl('pwd/copy-icon.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }
}

.press__share-info--image {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
