/* PQR_PDF_RESULT_EDITOR_V2 */

body.pqr-pdf-modern-v1
.pqr-pdf-modern-stage-v1 {
    align-items: start;
    overflow: visible;
}

body.pqr-pdf-modern-v1
.pqr-pdf-modern-stage-v1
#pdfResult {
    width: 100%;
    max-width: 620px;
}

body.pqr-pdf-modern-v1
#pdfResult > .row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    width: 100% !important;
    margin: 0 !important;
}

body.pqr-pdf-modern-v1
#pdfResult > .row > [class*="col-"] {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 !important;
}

body.pqr-pdf-modern-v1
.pqr-pdf-document {
    width: 100%;
    min-width: 0;
    padding: 16px;
}

body.pqr-pdf-modern-v1
.pqr-pdf-document
.d-flex {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    width: 100%;
    min-width: 0;
}

body.pqr-pdf-modern-v1
.pqr-pdf-document
.d-flex > div:last-child {
    width: 100%;
    min-width: 0 !important;
}

body.pqr-pdf-modern-v1
:is(
    .pqr-pdf-name,
    .pqr-pdf-url,
    #pdfDocumentSize
) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

body.pqr-pdf-modern-v1
.pqr-pdf-name {
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.4;
    font-weight: 800;
}

body.pqr-pdf-modern-v1
a.pqr-pdf-url {
    display: block;
    padding: 11px 13px;
    border: 1px solid rgba(98, 85, 237, .25);
    border-radius: 12px;
    color: #5144dd;
    background: rgba(98, 85, 237, .07);
    text-decoration: none;
    line-height: 1.5;
    transition:
        border-color .18s ease,
        background .18s ease,
        transform .18s ease;
}

body.pqr-pdf-modern-v1
a.pqr-pdf-url:hover {
    border-color: #6255ed;
    background: rgba(98, 85, 237, .12);
    transform: translateY(-1px);
    text-decoration: underline;
}

body.pqr-pdf-modern-v1
#pdfResult
.pqr-pdf-actions {
    display: grid !important;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 14px;
}

body.pqr-pdf-modern-v1
#pdfResult
.pqr-pdf-actions > * {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0 !important;
}

body.pqr-pdf-modern-v1
#pdfCustomizeQrButton {
    color: #fff;
    border-color: transparent;
    background:
        linear-gradient(
            135deg,
            #6255ed,
            #7c4dea
        );
    box-shadow:
        0 12px 28px rgba(98, 85, 237, .25);
}

body.pqr-pdf-modern-v1
#pdfCustomizeQrButton:hover {
    color: #fff;
    transform: translateY(-1px);
}

body.pqr-pdf-modern-v1
.pqr-pdf-qr {
    width: 100%;
    min-height: 380px;
    align-content: center;
}

body.pqr-pdf-modern-v1
#pdfQrImage {
    width: min(100%, 350px);
}

#pqrVideoQrDesigner {
    z-index: 100000;
}

#pqrVideoQrDesigner .ld-actions {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

#pqrVideoQrDesigner .ld-actions button {
    width: 100%;
}

html[data-pqr-theme="midnight"]
body.pqr-pdf-modern-v1
a.pqr-pdf-url {
    color: #b7afff;
    border-color: #46577a;
    background: #18243a;
}

html[data-pqr-theme="midnight"]
body.pqr-pdf-modern-v1
a.pqr-pdf-url:hover {
    color: #ffffff;
    border-color: #8277ff;
    background: #202e48;
}

@media (max-width: 700px) {
    body.pqr-pdf-modern-v1
    #pdfResult
    .pqr-pdf-actions {
        grid-template-columns:
            minmax(0, 1fr);
    }

    body.pqr-pdf-modern-v1
    .pqr-pdf-qr {
        min-height: 310px;
    }

    #pqrVideoQrDesigner .ld-actions {
        grid-template-columns:
            minmax(0, 1fr);
    }
}