.wechat-login-dialog {
  box-sizing: border-box;
  width: min(556px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid #e2e9f5;
  border-radius: 8px;
  background: #fff;
  color: #1f2329;
  box-shadow: 0 20px 56px rgb(31 56 96 / 15%), 0 3px 12px rgb(31 56 96 / 6%);
  font: 14px/1.5 var(--feishu-font-family, -apple-system, "PingFang SC", sans-serif);
}
.wechat-login-dialog::backdrop {
  background: rgb(31 53 87 / 20%);
  backdrop-filter: blur(5px);
}
.wechat-dialog-layout {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
}
.wechat-dialog-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 16px;
  text-align: center;
  background: radial-gradient(ellipse at 74% 15%, #dbeaff, transparent 66%),
    linear-gradient(155deg, #eaf3ff, #f1f5ff 65%, #ecebff);
}
.wechat-dialog-brand img {
  width: 104px;
  height: 104px;
  object-fit: contain;
}
.wechat-dialog-brand-name {
  margin: 0;
  color: #18345c;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.wechat-dialog-brand-description {
  margin: 6px 0 0;
  color: #4d6485;
  font-size: 13px;
}
.wechat-dialog-header h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.25;
}
.wechat-dialog-header h2:focus { outline: none; }
.wechat-dialog-content {
  min-width: 0;
  padding: 14px 17px 10px;
  text-align: center;
}
.wechat-dialog-header {
  position: relative;
  display: grid;
  min-height: 30px;
  padding-inline: 32px;
  place-items: center;
}
.wechat-dialog-close {
  position: absolute;
  inset: 0 0 auto auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #586981;
  cursor: pointer;
  font: 22px/1 system-ui, sans-serif;
}
.wechat-dialog-close:hover { background: #eef2f7; }
.wechat-login-dialog :is(a, button):focus-visible { outline: 2px solid #578aeb; outline-offset: 2px; }
.wechat-dialog-stage {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  height: 248px;
}
.wechat-dialog-frame,
.wechat-dialog-feedback { grid-area: 1 / 1; }
.wechat-dialog-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.wechat-dialog-feedback {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  overflow: auto;
  padding: 16px;
  background: #fff;
}
.wechat-dialog-stage:has(.wechat-dialog-feedback:not([hidden])) .wechat-dialog-frame { visibility: hidden; }
.wechat-dialog-feedback[hidden],
.wechat-dialog-refresh[hidden] { display: none; }
.wechat-dialog-status { margin: 0; color: #4b5f7d; }
.wechat-dialog-refresh {
  padding: 5px 12px;
  border: 0;
  border-radius: 8px;
  background: #f0f5ff;
  color: #285aa6;
  font: inherit;
  cursor: pointer;
}
@media (max-width: 540px) {
  .wechat-dialog-layout { grid-template-columns: minmax(0, 1fr); }
  .wechat-dialog-brand {
    flex-direction: row;
    gap: 8px;
    padding: 12px 16px;
    text-align: left;
  }
  .wechat-dialog-brand img { width: 48px; height: 48px; }
  .wechat-dialog-brand-name { font-size: 18px; }
  .wechat-dialog-brand-description { margin-top: 2px; font-size: 12px; }
  .wechat-dialog-content { padding-top: 10px; }
}
