

#pdf-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Start printPdf*/
.un_cartResult--result:nth-child(2){
    width: 300px !important;
}
.label_year_construction{
    flex-direction: row;
    justify-content: center;
}
.border-radius-15 {
    border-radius: 15px !important;
}
#printPdf {
    font-weight: 500;
}
#printPdf .un_printPdfWrap{
    margin-left: auto;
    margin-right: auto;
    max-width: 1024px;
    width: auto;
}
#printPdf .pdf-body{
    /* display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; */
    background-color: white;
    position: relative;
}

/* ============================================================================
 * Repeated header for page 2+ when printing the PDF (.pdf_page_header). SHARED:
 *   - mirai_eco: pushes 省エネ/健康 + note + QR (applyMiraiEcoPageBreaks).
 *   - window (item): pushes QR (applyWindowQrPageBreak).
 * cart.js clones .areaLogoTop → wraps it in a BLOCK .pdf_page_header (block so Safari honors
 * break-before; Safari ignores page-break on the flex container .areaLogoTop), inserts it (hidden)
 * right before each "do not split" block. JS turns on .is-active when a block is pushed to a new page.
 * mirai's own full-bleed (header inside .pdf_mirai_eco 22px padding) is in pdf_cart_mirai_eco.css.
 * ========================================================================== */
#printPdf.pdf_mirai_eco .pdf_page_header,
#printPdf.pdf_window .pdf_page_header {
    display: none;
    width: 100%;
    box-sizing: border-box;
}

/* Safety net: hide the NOT-yet-active header clone in ALL PDF flows (including water) → prevents
   a black header slipping to the bottom of the PDF if a clone is left over. .is-active is only turned on by JS in
   the mirai_eco / window flows, so hiding it globally is safe. */
#printPdf .pdf_page_header:not(.is-active) {
    display: none;
}

@media print {
    /* When a block is pushed to a new page: show the header WRAPPER + force it onto the next page. */
    #printPdf.pdf_mirai_eco .pdf_page_header.is-active,
    #printPdf.pdf_window .pdf_page_header.is-active {
        display: block;
        break-before: page;
        page-break-before: always;
    }
}

@media screen and (max-width: 767px) {

    section {
        min-height: unset;
    }
}