@media print {
    @page {
       /* size: 3in 2.25in;
       size: landscape;*/
        margin-left: 0in;
        margin-right: 0in;
        margin-bottom: 0cm;
        margin-top: 0cm;
    }

    #kt_modal_print_labels {
        margin:0;
    }
        #kt_modal_print_labels .wrapper {
            page-break-inside: avoid; /* Prevent divs from splitting across pages */
            page-break-before: auto;
            page-break-after: always;
        }
}
#kt_app_body #kt_modal_print_labels .wrapper {
    display: inline-block;
    margin: 10px;
    vertical-align: top;
    border: 1px solid;
    height: 2.25in;
}
#kt_modal_print_labels .wrapper {
    font-size: 12px !important;
    box-sizing: border-box;
    margin-left: 0; /* Align to the left */
    padding: 0.2cm;
    font-family: "Arial", sans-serif;
    width: 3in;
   }

#kt_modal_print_labels .shipping-label {
    /* height: 4.8cm; Adjusted height to fit within wrapper */
    /* width: 7cm; Adjusted width to fit within wrapper */
    /* Add any other styles for the shipping label section */
}

#kt_modal_print_labels     .shipping-label p {
        font-size: 12px; /* Reduced font size */
        line-height: 1.0; /* Reduced line height */
        margin: 0.2cm 0; /* Adjusted margin for better spacing */
    }

#kt_modal_print_labels .header {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: top;
}

#kt_modal_print_labels     .header p {
        margin: 0;
    }

#kt_modal_print_labels .shop-title {
    flex: 4;
    font-size: 1em;
}

#kt_modal_print_labels .order-title {
    flex: 4;
    font-size: 14px;
}

#kt_modal_print_labels .customer-addresses {
    width: 100%;
    display: inline-block;
}

#kt_modal_print_labels .address-detail {
    margin: 0.7em 0 0;
    line-height: 1.5;
}

#kt_modal_print_labels .subtitle-bold {
    font-weight: bold;
    margin: 0;
    font-size: 0.85em;
}

#kt_modal_print_labels .to-uppercase {
    text-transform: uppercase;
}

#kt_modal_print_labels .text-align-right {
    text-align: right;
}

#kt_modal_print_labels .shipping-address {
    float: left;
    min-width: 18em;
    max-width: 50%;
}

#kt_modal_print_labels .billing-address {
    padding-left: 20em;
    min-width: 18em;
}

#kt_modal_print_labels .order-container {
    padding: 0 0.7em;
}

#kt_modal_print_labels .order-container-header {
    display: inline-block;
    width: 100%;
    margin-top: 1.0em;
}

#kt_modal_print_labels .order-container-header-left-content {
    float: left;
}

#kt_modal_print_labels .order-container-header-right-content {
    float: right;
}

#kt_modal_print_labels .flex-line-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 1.0em 0;
    page-break-inside: avoid;
}

#kt_modal_print_labels .flex-line-item-img {
    margin-right: 1.0em;

}

#kt_modal_print_labels .flex-line-item-description {
    flex: 7;
}

#kt_modal_print_labels .line-item-description-line {
    display: block;
}

#kt_modal_print_labels .flex-line-item-description p {
    margin: 0;
    line-height: 1.5;
}

#kt_modal_print_labels .flex-line-item-quantity {
    flex: 3;
}

#kt_modal_print_labels .subdued-separator {
    height: 0.07em;
    border: none;
    color: lightgray;
    background-color: lightgray;
    margin: 0;
}

#kt_modal_print_labels .missing-line-items-text {
    margin: 1.0em 0;
    padding: 0 0.7em;
}

#kt_modal_print_labels .notes {
    margin-top: 2em;
}

#kt_modal_print_labels     .notes p {
        margin-bottom: 0;
    }

#kt_modal_print_labels     .notes .notes-details {
        margin-top: 0.7em;
    }

#kt_modal_print_labels .footer {
    margin-top: 1em;
    text-align: center;
    line-height: 1.5;
}

#kt_modal_print_labels     .footer p {
        margin: 0;
        margin-bottom: 1.4em;
    }

#kt_modal_print_labels hr {
    height: 0.14em;
    border: none;
    color: black;
    background-color: black;
    margin: 0;
}

#kt_modal_print_labels .aspect-ratio {
    position: relative;
    display: block;
    background: #fafbfc;
    padding: 0;
}

#kt_modal_print_labels     .aspect-ratio::before {
        z-index: 1;
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border: 1px solid rgba(195,207,216,0.3);
    }

#kt_modal_print_labels .aspect-ratio--square {
    width: 100%;
    padding-bottom: 100%;
}

#kt_modal_print_labels .aspect-ratio__content {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    display: block;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}

#kt_modal_print_labels .qr-code {
    width: 60px;
    height: 60px;
    display: block;
    margin: 10px 0 0 0; /* Align to the left */
}
