/* CHANGE FEATURE customer page (/change-feature) — page-OWNED stylesheet.
   Loaded ONLY by change-feature.php, after style.css + payment-style.css, so
   rules here can safely use !important without touching the shared sheets.
   The page reuses payment-edit-normal's components (delivery cards, ZIP lookup,
   copies steppers) and the wizard/admin upload components; everything below is
   change-feature-specific layout + the few page-scoped overrides. */

/* two-column layout mirrors payment-edit-normal: form = .order-col-1, price
   sidebar = .order-col-2, each ~47.5% via payment-style.css .order-col. Only
   page-level padding here. */
.change-feature-page.order-wrapper {
    padding: 30px 16px 70px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
}
/* the native .order-col is 47.5% + a 5% right margin on col-1; with the wrapper
   as flex they sit side by side, and wrap (col-2 hidden <600px per .order-col-2). */
.change-feature-page .order-col-2 {
    position: sticky;
    top: 20px;
}

/* Mail-address inputs (recipient / ZIP / address lines / notes): hard 100% width.
   The theme stack narrows generic text inputs; this sheet is page-owned, so
   !important is safe. */
.change-feature-page .paypal-field-delivery-address-cont input[type="text"] {
    width: 100% !important;
}

/* the ZIP-lookup showoff rows (State / County / City) start hidden — the
   Zippopotam.us lookup (run on load for a saved ZIP, and on every change) shows
   each row only WITH its value, so the labels never sit on the page blank.
   County stays hidden (Zippopotam.us does not provide it). */
.change-feature-page .send-to-user-showoff-row {
    display: none;
}

/* change-feature price block. Rendered twice (cf_render_price_details): the
   desktop sticky sidebar .cf-price-sidebar and the always-visible in-form bottom
   table .cf-price-bottom (estimate-style dashed box). The desktop sidebar
   deliberately does NOT reuse .main-price-section — that class hides every row not
   on its whitelist, which blanked the old sidebar. Rows lay out label-left /
   price-right. */
.cf-price-sidebar {
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 18px 20px;
    background: #fff;
}
/* .cf-price-bottom carries .main-price-section for the dashed look, so its rows
   inherit that class's display:none — re-show them here (specificity wins via the
   .change-feature-page prefix + later source order). */
.cf-price-sidebar .order-sidebar-details-row,
.change-feature-page .cf-price-bottom .order-sidebar-details-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-top: 8px;
}
.cf-price-sidebar .order-sidebar-field-label,
.cf-price-bottom .order-sidebar-field-label {
    color: #555;
}
/* give the $ sign breathing room — the shared rule pulls it onto the digits with a
   -3px margin, which read as "$70.00" cramped in these boxes. */
.cf-price-sidebar .order-sidebar-field-sign,
.cf-price-bottom .order-sidebar-field-sign {
    margin-right: 1px;
}
.cf-sb-divider {
    border-top: 1px dashed #cfcfcf;
    margin: 14px 0 4px;
}

/* single prominent total line ("Total for the changes" / "No additional charge"),
   styled like the estimate's teal total. */
.cf-price-sidebar .cf-sb-total,
.cf-price-bottom .cf-sb-total {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 2px solid #1bb5b7;
    font-size: 20px;
    font-weight: bold;
    color: #1bb5b7;
}
.cf-price-sidebar .cf-sb-total .order-sidebar-field-value,
.cf-price-bottom .cf-sb-total .order-sidebar-field-value,
.cf-price-sidebar .cf-sb-total .order-sidebar-field-sign,
.cf-price-bottom .cf-sb-total .order-sidebar-field-sign {
    color: #1bb5b7;
}
/* idle state — nothing changed yet: a muted hint, not a teal "total" headline. */
.cf-price-sidebar .cf-sb-total.cf-sb-total-idle,
.cf-price-bottom .cf-sb-total.cf-sb-total-idle {
    color: #888;
    font-weight: normal;
    font-size: 14px;
    border-top-color: #e0e0e0;
}

/* the in-form dashed box is the ALWAYS-visible bottom price table (estimate-style)
   so pricing is never sidebar-only — and it is the only price block < 600px, where
   .order-col-2 is hidden. */
.cf-price-bottom {
    display: block;
    margin-top: 28px;
}

/* "you haven't selected any change" validation — same red emphasis as #signature-error */
#cf-nochange-error {
    margin-top: 14px;
    color: #f04124;
    font-weight: bold;
}

/* document validation errors: a kept doc with zero files / no documents left */
#cf-nodocs-error, .cf-doc-nofiles-error {
    margin-top: 14px;
    color: #f04124;
    font-weight: bold;
}

/* required mail fields (recipient / address / ZIP) flagged red when missing/invalid */
.change-feature-page .paypal-field-delivery-address-cont input.error {
    border: 1px solid #f04124 !important;
}

/* DOCUMENTS change section — ONE .popup-upload-doc-cont per document (the
   payment-edit-normal model); the requested change UIs render inside it. */
.cf-docs-field { margin-top: 30px; }
.cf-docs-desc { font-size: 13px; color: #666; margin-bottom: 16px; }

/* the remove X (.documents-popup-row-remove, from payment-admin-edit) is absolute */
.cf-doc-cont {
    position: relative;
}

/* existing-file view/download/remove buttons — payment-admin-edit's compact icon
   size, not payment-edit-normal's wide labeled bars */
.change-feature-page .popup-existing-file-view, .change-feature-page .popup-existing-file-download, .change-feature-page .popup-existing-file-remove {
    padding: 2px 10px !important;
    width: auto !important;
    height: 30px;
    display: flex;
    align-items: center;
}

/* the wizard's per-attachment pages line ("Total amount of pages for this attachment")
   — same rules as client-order.css, scoped to this page */
.change-feature-page .popup-upload-new-file-pages {
    margin-top: 10px;
    display: none;
}

.change-feature-page .popup-upload-new-file-pages-count {
    font-size: 16px;
    font-weight: bold;
}

/* full-width attach button — the wizard ORDER page's exact rules (client-order.css),
   scoped to this page */
.change-feature-page .popup-upload-new-file-cont {
    width: 100%;
}

.change-feature-page .popup-upload-new-file-button {
    min-width: 280px;
}

@media (max-width: 767px) {

    .change-feature-page .popup-upload-new-file-cont {
        width: auto;
    }

    .change-feature-page .popup-upload-new-file-button {
        min-width: auto;
    }

}

.cf-attach-cont { margin-top: 10px; }
.cf-attach-status, .cf-nd-status { font-size: 12px; color: #666; }

.change-feature-page .cf-add-doc-btn { margin-top: 20px; }

/* post-confirm success screen — the only thing left on the page */
.cf-success-message {
    padding: 60px 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

/* complexity re-evaluation popup */
.cf-cx-popup-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100000;
}
.cf-cx-popup {
    display: none;
    position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%);
    z-index: 100001;
    width: 92%; max-width: 460px;
    background: #fff; border-radius: 8px; padding: 26px 28px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    text-align: center;
}
.cf-cx-popup-title { font-size: 20px; font-weight: bold; color: #f66282; margin-bottom: 14px; }
.cf-cx-popup-text { font-size: 15px; line-height: 22px; color: #333; margin-bottom: 22px; }
.cf-cx-popup-ok { padding: 11px 26px; background: #1bb5b7; color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 15px; }
