body.wechat-contact-open {
  overflow: hidden;
}

.wechat-contact {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: #fff;
  background: #000;
  border: 1px solid #333;
  border-radius: 20px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.6);
  font-family: inherit;
  text-align: center;
}

.wechat-contact::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(7px);
}

.wechat-contact [hidden] {
  display: none !important;
}

.wechat-contact__content {
  position: relative;
  padding: 34px 24px 24px;
}

.wechat-contact__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.wechat-contact__close:hover {
  background: #1a1a1a;
}

.wechat-contact__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.wechat-contact__title {
  margin: 12px 8px 16px;
  font-size: clamp(20px, 5vw, 26px);
  line-height: 1.3;
}

.wechat-contact__name {
  margin: -6px 0 20px;
  color: #ccc;
  overflow-wrap: anywhere;
}

.wechat-contact__image-frame {
  box-sizing: border-box;
  width: min(100%, 310px);
  margin: 0 auto 18px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
}

.wechat-contact__image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  -webkit-touch-callout: default;
  user-select: auto;
  -webkit-user-select: auto;
}

.wechat-contact__instructions p,
.wechat-contact__status {
  margin: 12px 0;
  line-height: 1.6;
}

.wechat-contact__id {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.wechat-contact__id-value {
  color: #fff;
  user-select: text;
  -webkit-user-select: text;
}

@media (max-width: 380px) {
  .wechat-contact__content {
    padding: 34px 18px 20px;
  }
}
