*{
    box-sizing:border-box;
}

.hc-pay-mask{
    position:fixed;
    inset:0;
    z-index:9999999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
    background:rgba(15,23,42,.66);
}

.hc-pay-modal{
    width:min(440px,100%);
    max-height:92vh;
    overflow:auto;
    background:#fff;
    border-radius:20px;
    padding:22px;
    box-shadow:0 30px 90px rgba(0,0,0,.28);
}

.hc-pay-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.hc-pay-title{
    font-size:20px;
    font-weight:900;
    color:#111827;
}

.hc-pay-close{
    width:36px;
    height:36px;
    border:0;
    border-radius:50%;
    cursor:pointer;
    background:#f3f4f6;
    font-size:22px;
}

.hc-pay-desc{
    margin-top:10px;
    color:#6b7280;
    font-size:13px;
    line-height:1.7;
}

.hc-pay-channel{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:18px;
}

.hc-pay-channel button{
    height:48px;
    border:1px solid #e5e7eb;
    border-radius:11px;
    background:#fff;
    cursor:pointer;
    font-size:15px;
    font-weight:800;
}

.hc-pay-channel button:hover{
    border-color:#ff5000;
}

.hc-pay-channel button:disabled{
    opacity:.55;
    cursor:not-allowed;
}

.hc-pay-body{
    margin-top:18px;
    text-align:center;
}

.hc-pay-amount{
    margin:12px 0;
    color:#ff5000;
    font-size:31px;
    font-weight:900;
}

.hc-pay-qr{
    display:block;
    width:280px;
    height:280px;
    max-width:100%;
    object-fit:contain;
    margin:0 auto;
    padding:8px;
    border:1px solid #eee;
    border-radius:12px;
    background:#fff;
}

.hc-pay-tip{
    margin-top:12px;
    color:#6b7280;
    font-size:13px;
}

.hc-pay-open{
    display:inline-block;
    margin-top:13px;
    padding:11px 18px;
    border-radius:9px;
    background:#1677ff;
    color:#fff;
    font-weight:800;
    text-decoration:none;
}

.hc-pay-error{
    padding:20px 8px;
    color:#dc2626;
    line-height:1.7;
}

.hc-pay-success{
    padding:34px 10px;
    color:#059669;
    font-size:21px;
    font-weight:900;
}

.hc-order-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:12px;
}

.hc-order-btn{
    border:0;
    border-radius:8px;
    padding:9px 14px;
    cursor:pointer;
    font-weight:800;
}

.hc-order-btn.pay{
    background:#ff5000;
    color:#fff;
}

.hc-order-btn.dark{
    background:#111827;
    color:#fff;
}

.hc-order-btn.gray{
    background:#f3f4f6;
    color:#374151;
}

.hc-chat-pay-orders-v10{
    margin-top:14px;
    padding-top:14px;
    border-top:1px solid #eee;
}

.hc-chat-pay-order{
    padding:10px;
    margin-top:8px;
    border:1px solid #eee;
    border-radius:10px;
    background:#fff;
}

.hc-chat-pay-order .money{
    color:#ff5000;
    font-weight:900;
}

@media(max-width:768px){

    .hc-pay-mask{
        align-items:flex-end;
        padding:0;
    }

    .hc-pay-modal{
        width:100%;
        max-height:90vh;
        border-radius:20px 20px 0 0;
        padding-bottom:
            calc(
                22px
                +
                env(safe-area-inset-bottom)
            );
    }

    .hc-pay-qr{
        width:240px;
        height:240px;
    }
}
