#hd-quote-print-pages, #hd-quote-print-unavailable { display: none; }
    #hd-quote-print-status {
        position: fixed; inset: 0; z-index: 20000; background: rgb(255 255 255 / 95%);
        padding: 32px 20px; text-align: center; color: #222; font: 16px Arial, sans-serif;
    }
    #hd-quote-print-status[hidden] { display: none; }
    #hd-quote-print-status button { background: #c91d31; color: #fff; border: 0; border-radius: 25px; padding: 12px 20px; margin: 8px; }
    .home-depot-body #hd-quote-print-status button { background: #f96302; border-radius: 0; }
    #hd-quote-print-status[data-square-buttons="1"] button { border-radius: 0; }
    #hd-quote-print-status .quote-print-progress {
        width: min(360px, 100%); height: 10px; margin: 18px auto 22px;
        overflow: hidden; border-radius: 10px; background: #e4e4e4;
    }
    #hd-quote-print-status .quote-print-progress-fill {
        width: 0; height: 100%; border-radius: inherit; background: #c91d31;
        transition: width 400ms ease-out;
    }
    .home-depot-body #hd-quote-print-status .quote-print-progress-fill { background: #f96302; }
    @media (prefers-reduced-motion: reduce) {
        #hd-quote-print-status .quote-print-progress-fill { transition: none; }
    }
    @media print {
        @page hd-quote { size: letter portrait; margin: .5in; }
        /* Keep the document root on the same page type; an A3 root adds a blank trailing sheet. */
        /* :has also protects the page while the print script is still loading.
           The view class provides the same guard in browsers without :has support. */
        html:is(.hd-printing-quote, .hd-quote-print-view, :has([data-quote-print-current][data-pdf-url])) {
            page: hd-quote; height: auto !important; min-height: 0 !important;
        }
        /* Bootstrap prints body at min-width:992px and A3. Reset both for this PDF. */
        body:is(.hd-printing-quote, .hd-quote-print-view, :has([data-quote-print-current][data-pdf-url])) {
            page: hd-quote;
            min-width: 0 !important; width: auto !important; max-width: none !important;
            height: auto !important; min-height: 0 !important;
            margin: 0 !important; padding: 0 !important; background: #fff !important;
            overflow: visible !important; zoom: 1 !important;
        }
        body:is(.hd-printing-quote, .hd-quote-print-view, :has([data-quote-print-current][data-pdf-url]))::before,
        body:is(.hd-printing-quote, .hd-quote-print-view, :has([data-quote-print-current][data-pdf-url]))::after { content: none !important; }
        body:is(.hd-printing-quote, .hd-quote-print-view, :has([data-quote-print-current][data-pdf-url])) > * { display: none !important; }
        body:is(.hd-printing-quote, .hd-quote-print-view, :has([data-quote-print-current][data-pdf-url])).hd-quote-print-ready:not(.hd-quote-print-unavailable) > #hd-quote-print-pages {
            display: block !important; width: 100%; max-width: 7.5in; min-width: 0; margin: 0 auto; padding: 0;
            font-size: 0; line-height: 0;
        }
        body:is(.hd-printing-quote, .hd-quote-print-view, :has([data-quote-print-current][data-pdf-url])):not(.hd-quote-print-ready) > #hd-quote-print-unavailable,
        body:is(.hd-printing-quote, .hd-quote-print-view, :has([data-quote-print-current][data-pdf-url])).hd-quote-print-unavailable > #hd-quote-print-unavailable {
            display: block !important; margin: 0; padding: 0; color: #222; font: 16px/1.5 Arial, sans-serif;
        }
        #hd-quote-print-pages .hd-pdf-page {
            page: hd-quote;
            box-sizing: border-box; width: 100%; height: auto; margin: 0 auto; padding: 0; border: 0;
            break-inside: avoid; page-break-inside: avoid;
        }
        #hd-quote-print-pages .hd-pdf-page + .hd-pdf-page { break-before: page; page-break-before: always; }
        #hd-quote-print-pages img {
            /* Leave room for Safari's headers/footers and fractional page-size rounding. */
            display: block; width: 100%; height: auto; max-height: 9.45in; object-fit: contain; object-position: center;
        }
    }
