/* =========================================================
   PFC CUSTOMER OFFER PREVIEW
   Dealer-created, customer-facing print sheet
   ========================================================= */

.pfc-offer-preview-page {
    width: 100%;
    padding: 24px 12px 40px;
    box-sizing: border-box;
    background: #eef1f5;
}

.pfc-offer-preview-toolbar {
    width: 100%;
    max-width: 8.5in;
    margin: 0 auto 14px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.pfc-offer-toolbar-link {
    color: #183153;
    font-weight: 700;
    text-decoration: none;
}

.pfc-offer-toolbar-link:hover {
    text-decoration: underline;
}

.pfc-offer-toolbar-actions {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pfc-offer-action-button {
    min-height: 42px;
    border: 1px solid #183153;
    border-radius: 6px;
    padding: 10px 14px;
    background: #ffffff;
    color: #183153;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    cursor: pointer;
}

.pfc-offer-action-button:hover,
.pfc-offer-action-button:focus {
    background: #e9eef5;
}

.pfc-offer-action-button--primary {
    border-color: #183153;
    background: #183153;
    color: #ffffff;
}

.pfc-offer-action-button--primary:hover,
.pfc-offer-action-button--primary:focus {
    background: #0f223c;
}

.pfc-offer-action-button--quiet {
    border-color: #aeb8c5;
    color: #4b596c;
}

.pfc-offer-action-button:disabled {
    cursor: wait;
    opacity: 0.58;
}

.pfc-offer-action-status {
    grid-column: 1 / -1;
    min-height: 18px;
    color: #536173;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
}

.pfc-offer-action-status--error {
    color: #a42121;
    font-weight: 700;
}

.pfc-offer-sheet {
    width: 100%;
    max-width: 8.5in;
    min-height: 10.25in;
    margin: 0 auto;
    padding: 0.42in;
    box-sizing: border-box;
    background: #ffffff;
    color: #1c2430;
    box-shadow: 0 10px 28px rgba(22, 34, 52, 0.16);
    font-family: Arial, Helvetica, sans-serif;
}

.pfc-offer-dealer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #183153;
}

.pfc-offer-dealer-primary {
    min-width: 0;
}

.pfc-offer-dealer-name {
    margin-bottom: 5px;
    color: #183153;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 800;
}

.pfc-offer-dealer-address,
.pfc-offer-dealer-contact {
    font-size: 12.5px;
    line-height: 1.45;
    color: #4c5868;
}

.pfc-offer-dealer-contact {
    text-align: right;
    overflow-wrap: anywhere;
}

.pfc-offer-product-image-wrap {
    height: 4.1in;
    margin: 20px 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
}

.pfc-offer-product-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.pfc-offer-image-missing {
    width: 100%;
    padding: 44px 20px;
    border: 1px dashed #aab3bf;
    color: #697587;
    text-align: center;
}

.pfc-offer-product-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.25in;
    gap: 24px;
    align-items: start;
    padding-top: 18px;
    border-top: 1px solid #d9dee6;
}

.pfc-offer-kicker {
    margin-bottom: 6px;
    color: #6a7482;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 1.15px;
    text-transform: uppercase;
}

.pfc-offer-product-copy h1 {
    margin: 0 0 10px;
    color: #172033;
    font-size: 27px;
    line-height: 1.16;
    font-weight: 800;
}

.pfc-offer-availability {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf6ee;
    color: #276738;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
}

.pfc-offer-price-card {
    padding: 16px;
    border: 1px solid #cfd6df;
    border-radius: 8px;
    text-align: right;
    background: #f8fafc;
}

.pfc-offer-price-label {
    margin-bottom: 4px;
    color: #687386;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.pfc-offer-primary-price {
    color: #172033;
    font-size: 34px;
    line-height: 1.05;
    font-weight: 900;
    white-space: nowrap;
}

.pfc-offer-price-pending {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}

.pfc-offer-regular-price {
    margin-top: 8px;
    color: #667085;
    font-size: 12px;
}

.pfc-offer-regular-price span {
    text-decoration: line-through;
}

.pfc-offer-special-panel {
    margin-top: 17px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #d7b96b;
    border-radius: 8px;
    background: #fff9e8;
}

.pfc-offer-special-title {
    color: #6d4d00;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.pfc-offer-special-savings {
    margin-top: 3px;
    color: #276738;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 900;
}

.pfc-offer-special-expiration {
    color: #5d4c21;
    font-size: 12px;
    line-height: 1.35;
    text-align: right;
}

.pfc-offer-facts {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #d9dee6;
}

.pfc-offer-facts h2 {
    margin: 0 0 7px;
    color: #183153;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 900;
}

.pfc-offer-facts p {
    margin: 0;
    color: #4a5565;
    font-size: 12.5px;
    line-height: 1.5;
}

.pfc-offer-disclaimer {
    margin-top: 19px;
    padding-top: 11px;
    border-top: 1px solid #d9dee6;
    color: #6b7280;
    font-size: 9.5px;
    line-height: 1.4;
}

/* Off-screen desktop copy used for PDF and social-image creation. */
.pfc-offer-export-stage {
    position: absolute;
    top: 0;
    left: -20000px;
    width: 8.5in;
    overflow: visible;
    background: #ffffff;
    pointer-events: none;
}

.pfc-offer-export-stage .pfc-offer-sheet {
    width: 8.5in !important;
    max-width: 8.5in !important;
    min-height: 10.25in !important;
    margin: 0 !important;
    padding: 0.42in !important;
    box-shadow: none !important;
}

.pfc-offer-export-stage .pfc-offer-dealer-header {
    align-items: flex-start !important;
    flex-direction: row !important;
    gap: 24px !important;
}

.pfc-offer-export-stage .pfc-offer-dealer-contact {
    text-align: right !important;
}

.pfc-offer-export-stage .pfc-offer-product-image-wrap {
    height: 4.1in !important;
    min-height: 0 !important;
    max-height: none !important;
}

.pfc-offer-export-stage .pfc-offer-product-summary {
    grid-template-columns: minmax(0, 1fr) 2.25in !important;
    gap: 24px !important;
}

.pfc-offer-export-stage .pfc-offer-price-card {
    text-align: right !important;
}

.pfc-offer-export-stage .pfc-offer-special-panel {
    align-items: center !important;
    flex-direction: row !important;
    gap: 20px !important;
}

.pfc-offer-export-stage .pfc-offer-special-expiration {
    text-align: right !important;
}

/* =========================================================
   CUSTOMER OFFER — DEDICATED 1080 × 1350 SOCIAL IMAGE
   Rendered at 540 × 675 CSS pixels with a 2x canvas scale
   ========================================================= */

.pfc-offer-export-stage.pfc-offer-social-export {
    width: 540px;
    height: 675px;
    overflow: hidden;
}

.pfc-offer-social-export .pfc-offer-sheet {
    width: 540px !important;
    max-width: 540px !important;
    min-height: 675px !important;
    height: 675px !important;
    padding: 28px 34px 22px !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: none !important;
}

.pfc-offer-social-export .pfc-offer-dealer-header {
    flex: 0 0 auto;
    gap: 16px !important;
    padding-bottom: 10px;
}

.pfc-offer-social-export .pfc-offer-dealer-name {
    margin-bottom: 3px;
    font-size: 22px;
}

.pfc-offer-social-export .pfc-offer-dealer-address,
.pfc-offer-social-export .pfc-offer-dealer-contact {
    font-size: 10.5px;
    line-height: 1.35;
}

.pfc-offer-social-export .pfc-offer-product-image-wrap {
    flex: 0 0 310px;
    height: 310px !important;
    margin: 14px 0 12px;
}

.pfc-offer-social-export .pfc-offer-product-summary {
    grid-template-columns: minmax(0, 1fr) 170px !important;
    gap: 14px !important;
    padding-top: 12px;
}

.pfc-offer-social-export .pfc-offer-kicker {
    margin-bottom: 4px;
    font-size: 9.5px;
}

.pfc-offer-social-export .pfc-offer-product-copy h1 {
    margin-bottom: 7px;
    font-size: 22px;
    line-height: 1.12;
}

.pfc-offer-social-export .pfc-offer-availability {
    padding: 5px 8px;
    font-size: 10.5px;
}

.pfc-offer-social-export .pfc-offer-price-card {
    padding: 12px !important;
}

.pfc-offer-social-export .pfc-offer-price-label {
    font-size: 9.5px;
}

.pfc-offer-social-export .pfc-offer-primary-price {
    font-size: 31px;
}

.pfc-offer-social-export .pfc-offer-regular-price {
    margin-top: 6px;
    font-size: 10px;
}

.pfc-offer-social-export .pfc-offer-special-panel {
    margin-top: 12px;
    padding: 10px 12px;
}

.pfc-offer-social-export .pfc-offer-special-title {
    font-size: 11px;
}

.pfc-offer-social-export .pfc-offer-special-savings {
    font-size: 16px;
}

.pfc-offer-social-export .pfc-offer-special-expiration {
    font-size: 10.5px;
}

.pfc-offer-social-export .pfc-offer-facts {
    display: none !important;
}

.pfc-offer-social-export .pfc-offer-disclaimer {
    margin-top: auto;
    padding-top: 8px;
    font-size: 8.5px;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .pfc-offer-preview-page {
        padding: 14px 6px 30px;
    }

.pfc-offer-preview-toolbar {
    display: flex;
    align-items: stretch;
    flex-direction: column;
}

    .pfc-offer-toolbar-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .pfc-offer-action-button {
        width: 100%;
    }

    .pfc-offer-action-status {
        text-align: left;
    }

    .pfc-offer-sheet {
        min-height: 0;
        padding: 22px 16px;
    }

    .pfc-offer-dealer-header {
        flex-direction: column;
        gap: 8px;
    }

    .pfc-offer-dealer-contact {
        text-align: left;
    }

    .pfc-offer-product-image-wrap {
        height: auto;
        min-height: 240px;
        max-height: 430px;
    }

    .pfc-offer-product-summary {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pfc-offer-price-card {
        text-align: left;
    }

    .pfc-offer-special-panel {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .pfc-offer-special-expiration {
        text-align: left;
    }
}

@page {
    size: Letter portrait;
    margin: 0.28in;
}

@media print {
    html,
    body {
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    #headerWrapper,
    #navMainWrapper,
    #navBreadCrumb,
    #navColumnOne,
    #navColumnTwo,
    #navSuppWrapper,
    #footerWrapper,
    #siteinfoLegal,
    .pfc-offer-no-print {
        display: none !important;
    }

    #mainWrapper,
    #contentMainWrapper,
    #columnCenter,
    .centerColumn {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: #ffffff !important;
    }

    .pfc-offer-preview-page {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    .pfc-offer-sheet {
        width: 100% !important;
        max-width: none !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0.18in !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .pfc-offer-product-image-wrap,
    .pfc-offer-product-summary,
    .pfc-offer-special-panel,
    .pfc-offer-facts,
    .pfc-offer-disclaimer {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .pfc-offer-product-image-wrap {
        height: 3.8in;
        margin-top: 0.14in;
        margin-bottom: 0.12in;
    }
}

/* =========================================================
   CUSTOMER OFFER SOCIAL IMAGE — FINAL LAYOUT OVERRIDES
   Must remain after all responsive media queries
   ========================================================= */

.pfc-offer-export-stage.pfc-offer-social-export .pfc-offer-dealer-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 20px !important;
}

.pfc-offer-export-stage.pfc-offer-social-export .pfc-offer-dealer-contact {
    text-align: right !important;
}

.pfc-offer-export-stage.pfc-offer-social-export .pfc-offer-product-summary {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 170px !important;
    align-items: stretch !important;
    gap: 14px !important;
}

.pfc-offer-export-stage.pfc-offer-social-export .pfc-offer-product-copy {
    text-align: left !important;
}

.pfc-offer-export-stage.pfc-offer-social-export .pfc-offer-price-card {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    text-align: right !important;
}

.pfc-offer-export-stage.pfc-offer-social-export .pfc-offer-special-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 20px !important;
}

.pfc-offer-export-stage.pfc-offer-social-export .pfc-offer-special-expiration {
    text-align: right !important;
}
