  

    .anny-print-receipt {
        display: none;
    }   

    #printOrderBtn {
        cursor: pointer;
    }  

    @media print {

        @page {
            size: A4;
            margin: 12mm;
        }


        /* Hide everything except receipt */

        body * {
            visibility: hidden !important;
        }


        #printReceipt,
        #printReceipt * {
            visibility: visible !important;
        }


        #printReceipt {
            display: block !important;

            position: absolute;
            left: 0;
            top: 0;

            width: 100%;

            background: #ffffff;

            color: #222222;

            font-family:
                Arial,
                Helvetica,
                sans-serif;

            font-size: 12px;
        }


        /* ========================================================
       HEADER
    ======================================================== */

        .receipt-header {

            display: flex;

            justify-content: space-between;

            align-items: center;

            padding-bottom: 18px;

            border-bottom: 3px solid #d41478;

        }


        .receipt-brand {

            display: flex;

            align-items: center;

            gap: 12px;

        }


        .receipt-logo {

            width: 52px;
            height: 52px;

            border-radius: 50%;

            display: flex;

            align-items: center;

            justify-content: center;

            background: #d41478;

            color: #ffffff;

            font-size: 26px;

        }


        .receipt-brand h1 {

            margin: 0;

            font-size: 25px;

            font-weight: 800;

        }


        .receipt-brand p {

            margin: 3px 0 0;

            color: #666;

            font-size: 11px;

        }


        .receipt-title {

            text-align: right;

        }


        .receipt-title h2 {

            margin: 0 0 6px;

            font-size: 19px;

            font-weight: 800;

            letter-spacing: 1px;

        }


        .receipt-status {

            display: inline-block;

            padding: 5px 10px;

            border-radius: 20px;

            border: 1px solid #d41478;

            color: #d41478;

            font-size: 10px;

            font-weight: 700;

            text-transform: uppercase;

        }


        /* ========================================================
       BUSINESS
    ======================================================== */

        .receipt-business {

            display: flex;

            justify-content: space-between;

            padding: 14px 0;

            border-bottom: 1px solid #dddddd;

            line-height: 1.6;

        }


        .receipt-business-right {

            text-align: right;

        }


        /* ========================================================
       SECTIONS
    ======================================================== */

        .receipt-section {

            margin-top: 20px;

        }


        .receipt-section-title {

            padding-bottom: 8px;

            margin-bottom: 10px;

            border-bottom: 1px solid #eeeeee;

            font-size: 13px;

            font-weight: 800;

            color: #d41478;

        }


        .receipt-section-title i {

            margin-right: 5px;

        }


        /* ========================================================
       CUSTOMER INFORMATION
    ======================================================== */

        .receipt-info-grid {

            display: grid;

            grid-template-columns: 1fr 1fr;

            gap: 12px 25px;

        }


        .receipt-info-grid span {

            display: block;

            margin-bottom: 3px;

            color: #777;

            font-size: 10px;

            text-transform: uppercase;

        }


        .receipt-info-grid strong {

            display: block;

            font-size: 11px;

            line-height: 1.5;

            font-weight: 600;

        }


        /* ========================================================
       ITEMS TABLE
    ======================================================== */

        .receipt-items {

            width: 100%;

            border-collapse: collapse;

        }


        .receipt-items th {

            padding: 9px 7px;

            background: #f8f1f5;

            border-bottom: 2px solid #d41478;

            color: #333;

            font-size: 10px;

            text-transform: uppercase;

        }


        .receipt-items td {

            padding: 9px 7px;

            border-bottom: 1px solid #eeeeee;

            font-size: 11px;

            vertical-align: top;

        }


        .receipt-items tbody tr:last-child td {

            border-bottom: none;

        }


        .text-center {

            text-align: center !important;

        }


        .text-end {

            text-align: right !important;

        }


        /* ========================================================
       TOTALS
    ======================================================== */

        .receipt-total-area {

            display: flex;

            justify-content: flex-end;

            margin-top: 15px;

        }


        .receipt-total-table {

            width: 310px;

        }


        .receipt-total-row {

            display: flex;

            justify-content: space-between;

            padding: 5px 0;

            font-size: 11px;

        }


        .receipt-grand-total {

            display: flex;

            justify-content: space-between;

            align-items: center;

            margin-top: 8px;

            padding: 12px;

            background: #d41478;

            color: #ffffff;

            font-size: 14px;

            font-weight: 800;

        }


        /* ========================================================
       PAYMENT
    ======================================================== */

        .receipt-payment {

            display: flex;

            gap: 40px;

            margin-top: 20px;

            padding: 12px;

            border: 1px solid #dddddd;

            background: #fafafa;

        }


        .receipt-payment span {

            display: block;

            margin-bottom: 3px;

            color: #777;

            font-size: 9px;

            text-transform: uppercase;

        }


        .receipt-payment strong {

            font-size: 11px;

        }


        /* ========================================================
       NOTE
    ======================================================== */

        .receipt-note {

            margin-top: 15px;

            padding: 10px 12px;

            border-left: 3px solid #d41478;

            background: #fafafa;

        }


        .receipt-note strong {

            font-size: 11px;

        }


        .receipt-note p {

            margin: 4px 0 0;

            font-size: 10px;

            line-height: 1.5;

        }


        /* ========================================================
       FOOTER
    ======================================================== */

        .receipt-footer {

            margin-top: 30px;

            padding-top: 15px;

            border-top: 2px solid #d41478;

            text-align: center;

        }


        .receipt-footer-brand {

            color: #d41478;

            font-size: 16px;

            font-weight: 800;

        }


        .receipt-footer p {

            margin: 5px 0;

            font-size: 11px;

            font-weight: 600;

        }


        .receipt-footer small {

            color: #777;

            font-size: 9px;

        }


        .receipt-order-reference {

            margin-top: 10px;

            color: #777;

            font-size: 9px;

        }


        /* Prevent awkward page breaks */

        .receipt-section,
        .receipt-total-area,
        .receipt-payment,
        .receipt-note {

            break-inside: avoid;

            page-break-inside: avoid;

        }


        .receipt-items tr {

            break-inside: avoid;

            page-break-inside: avoid;

        }

    }
