/*
 * 微信扫码二维码框（resources/views/partials/wechat-qr-box.blade.php，脚本 public/js/wechat-qr.js）：
 * 登录页卡片左侧「微信扫码登录」与账户管理 › 微信登录共用。白底细边框、4px 圆角，失效时白色遮罩 + 刷新按钮。
 */

.wq-box {
    position: relative;
    display: grid;
    width: 180px;
    height: 180px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #ffffff;
}

.wq-img {
    display: block;
    width: 168px;
    height: 168px;
    object-fit: contain;
    user-select: none;
}

.wq-img[hidden],
.wq-mask[hidden],
.wq-loading[hidden] {
    display: none;
}

.wq-loading {
    padding: 0 16px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.wq-mask {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: rgba(255, 255, 255, .94);
    text-align: center;
}

.wq-mask-text {
    margin: 0;
    color: #1f2329;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.wq-refresh {
    min-height: 32px;
    padding: 0 14px;
    border: 1px solid #2563eb;
    border-radius: 4px;
    background: #2563eb;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
}

.wq-refresh:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
}

.wq-refresh:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.wq-refresh[hidden] {
    display: none;
}

.wq-status {
    margin: 10px 0 0;
    color: #374151;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

@media (pointer: coarse) {
    .wq-refresh {
        min-height: 44px;
        padding: 0 18px;
        font-size: 15px;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .wq-mask {
        background: #ffffff;
    }
}
