/* 微信扫码支付弹窗（local/shop 购买流程） */

.wxpay-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wxpay-mask {
    position: absolute;
    inset: 0;
    background: rgba(23, 32, 51, .45);
}

.wxpay-dialog {
    position: relative;
    width: 340px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border: 1px solid #e8ebf2;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(38, 52, 94, .2);
    padding: 26px 24px 20px;
    text-align: center;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.wxpay-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: none;
    font-size: 22px;
    line-height: 1;
    color: #7b8497;
    cursor: pointer;
}

.wxpay-close:hover {
    color: #172033;
}

.wxpay-dialog h3 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #172033;
}

.wxpay-amount {
    margin-bottom: 16px;
    color: #5267d8;
    font-size: 22px;
    font-weight: 700;
}

.wxpay-dialog #wxpay-qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 220px;
}

#wxpay-qrcode img {
    display: block;
}

.wxpay-hint {
    margin: 12px 0 0;
    color: #7b8497;
    font-size: 12px;
}

/* 微信接口报错：二维码不显示，改为提示 */
.wxpay-error {
    padding: 30px 12px;
    color: #eb7184;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 600;
    background: #fdeef1;
    border-radius: 12px;
    word-break: break-all;
    white-space: pre-wrap;
}

.wxpay-status {
    margin-top: 12px;
    color: #7b8497;
    font-size: 12px;
    min-height: 16px;
}
