.mdpqr-merchant-button,
.mdpqr-customer-button,
.mdpqr-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 8px 0;
    padding: 10px 16px;
    border: 0;
    border-radius: 12px;
    background: #087b49;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.mdpqr-merchant-button:disabled,
.mdpqr-customer-button:disabled,
.mdpqr-primary:disabled { opacity: .55; cursor: wait; }
.mdpqr-customer-actions { display: grid; gap: 8px; margin-top: 12px; }
.mdpqr-scan-button { background: #475569; }
.mdpqr-paid { color: #087b49; font-weight: 800; }
.mdpqr-backdrop {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, .72);
}
.mdpqr-modal {
    position: relative;
    width: min(100%, 430px);
    max-height: min(92vh, 820px);
    overflow: auto;
    padding: 24px 18px 20px;
    border: 1px solid #dbe5df;
    border-radius: 20px;
    background: #fff;
    color: #16211b;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .32);
}
.mdpqr-modal h2 { margin: 0 42px 16px 0; font-size: 22px; }
.mdpqr-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #edf2ef;
    color: #26352d;
    font-size: 26px;
    cursor: pointer;
}
.mdpqr-content { line-height: 1.6; }
.mdpqr-lead { color: #43534a; }
.mdpqr-code {
    display: grid;
    place-items: center;
    margin: 18px auto;
    padding: 12px;
    width: fit-content;
    border: 1px solid #dce6df;
    border-radius: 14px;
    background: #fff;
}
.mdpqr-code img { max-width: 100%; }
.mdpqr-code canvas { max-width: 100%; height: auto; }
.mdpqr-note { color: #64756b; font-size: 13px; }
.mdpqr-message { margin: 14px 0; }
.mdpqr-return-message {
    position: sticky;
    z-index: 99999;
    top: 8px;
    margin: 12px;
    padding: 15px;
    border-radius: 12px;
    background: #e8f7ee;
    color: #075c35;
    font-weight: 800;
}
#mdpqr-reader { width: 100%; min-height: 260px; }
#mdpqr-reader video { border-radius: 12px; }
@media (max-width: 520px) {
    .mdpqr-modal { padding: 22px 14px 16px; }
    .mdpqr-merchant-button, .mdpqr-customer-button { width: 100%; }
}
