.rmnq-modal-open {
    overflow: hidden;
}

.rmnq-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.rmnq-modal.is-open {
    display: flex;
}

.rmnq-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .56);
}

.rmnq-modal__dialog {
    position: relative;
    width: min(390px, 100%);
    box-sizing: border-box;
    background: #fff;
    color: #1f2937;
    border-radius: 8px;
    padding: 26px;
    text-align: center;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.rmnq-modal__dialog,
.rmnq-modal__dialog * {
    letter-spacing: 0;
}

.rmnq-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #64748b !important;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.rmnq-modal__close:hover {
    background: #f1f5f9;
    color: #0f172a !important;
}

.rmnq-modal__title {
    margin: 0 34px 8px;
    color: #111827 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

.rmnq-modal__tip {
    margin: 0 0 18px;
    color: #475569 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

.rmnq-modal__qr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 268px;
    height: 268px;
    max-width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.rmnq-modal__qr img {
    display: block;
    width: 250px;
    height: 250px;
    max-width: 100%;
}

.rmnq-modal__url {
    margin-top: 18px;
}

.rmnq-modal__url input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
}

.rmnq-download-box {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.rmnq-download-title {
    margin-bottom: 12px;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
}

.rmnq-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 6px;
    background: #2563eb;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
}

.rmnq-download-button:hover {
    background: #1d4ed8;
}

@media (max-width: 480px) {
    .rmnq-modal {
        padding: 16px;
    }

    .rmnq-modal__dialog {
        padding: 22px 18px;
    }

    .rmnq-modal__title {
        margin-left: 28px;
        margin-right: 28px;
        font-size: 20px;
    }
}
