.wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}
.wechat-modal[hidden] { display: none !important; }
.wechat-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(9,10,8,.76);
  cursor: pointer;
}
.wechat-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  padding: 34px 28px 26px;
  color: #111210;
  background: #f0efe9;
  border: 1px solid rgba(17,18,16,.18);
  box-shadow: 0 30px 80px rgba(0,0,0,.38);
  text-align: center;
}
.wechat-modal-close {
  position: absolute;
  top: 9px;
  right: 12px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  color: #77786f;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.wechat-modal-kicker { margin: 0 0 9px; color: var(--accent, #0071e3); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.wechat-modal-panel h2 { margin: 0 0 20px; font-size: 27px; line-height: 1.25; letter-spacing: -.04em; }
.wechat-modal-qr { width: fit-content; margin: 0 auto 15px; padding: 13px; background: white; border: 1px solid rgba(17,18,16,.18); }
.wechat-modal-qr img { display: block; width: 190px; height: 190px; }
.wechat-modal-id { margin: 0 0 6px; font-size: 14px; }
.wechat-modal-id strong { letter-spacing: .04em; }
.wechat-modal-note { margin: 0 0 19px; color: #707069; font-size: 12px; }
.wechat-modal-actions { display: flex; justify-content: center; gap: 9px; }
.wechat-modal-actions button { min-width: 128px; padding: 13px 15px; border: 1px solid rgba(17,18,16,.18); color: #111210; background: transparent; font-weight: 750; cursor: pointer; }
.wechat-modal-actions a { min-width: 128px; padding: 13px 15px; color: white; background: var(--accent, #0071e3); border: 1px solid var(--accent, #0071e3); font-weight: 750; text-decoration: none; }
.wechat-modal-actions .wechat-copy { color: white; background: var(--accent, #0071e3); border-color: var(--accent, #0071e3); }
.wechat-modal-actions a + .wechat-copy { color: #111210; background: transparent; border-color: rgba(17,18,16,.18); }
.contact-platform-mark { display: grid; place-items: center; width: 190px; height: 190px; color: white; font-weight: 900; }
.contact-platform-mark-telegram { background: #229ed9; font-size: 78px; }
.contact-platform-mark-line { background: #06c755; font-size: 38px; letter-spacing: -.06em; }
.wechat-modal-qr .contact-platform-photo { object-fit: cover; object-position: center 62%; }
.wechat-modal-qr .contact-platform-photo-line { object-fit: contain; object-position: center; }
.wechat-modal-status { min-height: 18px; margin: 12px 0 0; color: var(--accent-deep, #0058b0); font-size: 12px; font-weight: 650; }
body.wechat-modal-open { overflow: hidden; }

@media (max-width: 520px) {
  .wechat-modal { align-items: end; padding: 14px; }
  .wechat-modal-panel { width: 100%; padding: 30px 18px 21px; }
  .wechat-modal-qr img, .contact-platform-mark { width: 176px; height: 176px; }
  .wechat-modal-actions { flex-wrap: wrap; }
}
