.wx-pay-mask[hidden] { display: none !important; }
.wx-pay-mask {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}
.wx-pay-panel {
    width: min(360px, 100%);
    padding: 22px 24px;
    border-radius: 24px;
    text-align: center;
    color: #0f1115;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 4px 0 rgba(0, 0, 0, 0.02), 0 12px 32px 0 rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 22px;
}
.wx-pay-head {
    display: flex;
    align-items: center;
    min-height: 24px;
    margin: 0 0 12px;
}
.wx-pay-x {
    flex: none;
    width: 24px;
    height: 24px;
    margin-top: -2px;
    margin-right: -3px;
    border: 0;
    background: none;
    color: #61666b;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}
.wx-pay-x:hover { color: #0f1115; }
.wx-pay-brand {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}
.wx-pay-brand img {
    display: block;
    height: 24px;
    width: auto;
}
.wx-pay-scan {
    font-size: 14px;
    line-height: 22px;
    color: #0f1115;
}
.wx-pay-amount {
    margin: 12px 0 28px;
    color: #0f1115;
    font-size: 32px;
    font-weight: 700;
    line-height: 28px;
}
.wx-pay-qr {
    box-sizing: content-box;
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.wx-pay-qr-clip {
    width: 160px;
    height: 160px;
    overflow: hidden;
}
.wx-pay-qr img {
    display: block;
    width: 160px;
    height: 160px;
    transform: scale(1.21);
    transform-origin: center;
}
.wx-pay-fail {
    padding: 48px 8px;
    font-size: 12px;
    line-height: 21px;
    color: #61666b;
}
.wx-pay-note {
    margin: 0 0 16px;
    font-size: 12px;
    line-height: 21px;
    color: #61666b;
    white-space: pre-line;
}
.wx-pay-panel.is-alert {
    width: min(420px, 100%);
    padding: 22px 26px 20px;
    border-radius: 20px;
    text-align: left;
}
.wx-pay-alert-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.wx-pay-alert-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.08em;
    color: #111;
}
.wx-pay-alert-x {
    flex: none;
    width: 28px;
    height: 28px;
    border: 0;
    background: none;
    padding: 0;
    color: #222;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.wx-pay-alert-x:hover { color: #000; }
.wx-pay-alert-msg {
    margin-top: 22px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.06em;
    color: #3a3a3a;
}
.wx-pay-alert-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 48px;
}
.wx-pay-alert-ok {
    border: 0;
    border-radius: 999px;
    padding: 9px 26px;
    background: #1c1c1e;
    color: #fff;
    font: inherit;
    font-size: 15px;
    letter-spacing: 0.08em;
    line-height: 1.2;
    cursor: pointer;
}
.wx-pay-alert-ok:hover { background: #000; }
