@media print {
    /* --- Podstawowe Ustawienia --- */
    body, * {
        font-size: 9pt !important;
        line-height: 1.4 !important;
        font-family: 'Lato', sans-serif;
        box-sizing: border-box;
    }

    @page {
        size: A4;
        margin: 10mm;
    }

    /* --- Ukrywanie Elementów --- */
    body > *:not(#universal-mega-panel) {
        display: none !important;
    }

    #universal-mega-panel {
        display: block !important;
        position: static !important;
        box-shadow: none !important;
        border: none !important;
    }

    .universal-mega-panel-close-button,
    .universal-mega-panel-footer {
        display: none !important;
    }

    /* --- Układ Dwukolumnowy --- */
    .summary-two-column-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: stretch; /* Stretch columns to equal height */
    }

    .summary-column {
        width: 48% !important; /* Each column takes half the space */
        text-align: left;
    }

    .summary-column--qr {
        display: flex;
        justify-content: flex-end; /* Align to bottom */
        align-items: flex-end;   /* Horizontal alignment to the end (right) */
    }

    /* --- Stylizacja Treści --- */
    #universal-mega-panel-title {
        text-align: left;
        font-size: 16pt !important;
        margin-bottom: 15px;
    }

    .summary-image-wrapper img {
        max-width: 100%;
        height: auto;
    }

    .order-summary-list {
        max-width: 100%;
    }

    .summary-qrcodes-frame {
        display: flex;
        flex-direction: column; /* QR codes in a column */
        gap: 15px;
    }

    .summary-qr-item {
        text-align: center;
    }

    .summary-qr-code-wrapper canvas,
    .summary-qr-code-wrapper img {
        width: 140px !important;
        height: 140px !important;
    }
}