/* One shared dark-mode layer for the eleven Products menu pages.
   Light mode continues to use each page's existing styles. */
.financing-benefit-icon { display: inline-block; width: 125px; height: 89px; max-width: 100%; vertical-align: middle; }
.financing-benefit-icon > svg { display: block; width: 100%; height: 100%; }
.financing-intro-art { display: inline-block; max-width: 100%; vertical-align: middle; }
.financing-intro-art > img { display: block; }

body.product-page-theme.dark-mode .product-theme-page { background: var(--theme-page); color: var(--theme-text); }
body.product-page-theme.dark-mode .financing-benefit-icon > svg > rect:first-of-type { fill: var(--theme-border); }

/* Rebuild only the pale decoration around these original photos in dark mode. */
body.product-page-theme.dark-mode :is(.product-solid-page--business-term-loan, .product-solid-page--sba-loan) .financing-intro-art { position: relative; }
body.product-page-theme.dark-mode :is(.product-solid-page--business-term-loan, .product-solid-page--sba-loan) .financing-intro-art::before { content: ""; position: absolute; background: var(--theme-decoration); opacity: .55; pointer-events: none; }
body.product-page-theme.dark-mode .product-solid-page--business-term-loan .financing-intro-art::before { width: 32%; aspect-ratio: 1; right: 0; bottom: 0; border-radius: 50%; }
body.product-page-theme.dark-mode .product-solid-page--sba-loan .financing-intro-art::before { inset: 0; border-radius: 100px 0 100px 0; }
body.product-page-theme.dark-mode :is(.product-solid-page--business-term-loan, .product-solid-page--sba-loan) .financing-intro-art > img { position: relative; mask-size: 100% 100%; mask-repeat: no-repeat; }
body.product-page-theme.dark-mode .product-solid-page--business-term-loan .financing-intro-art > img { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 568 457' preserveAspectRatio='none'%3E%3Crect x='24' y='17' width='500' height='430' rx='50' fill='white'/%3E%3Crect width='112' height='105' fill='white'/%3E%3C/svg%3E"); }
body.product-page-theme.dark-mode .product-solid-page--sba-loan .financing-intro-art > img { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 569 477' preserveAspectRatio='none'%3E%3Cpath d='M84 33H569V424Q569 464 529 464H44V73Q44 33 84 33Z' fill='white'/%3E%3C/svg%3E"); }
body.product-page-theme.dark-mode .product-theme-page :is(h1, h2, h3, h4, h5, h6) { color: var(--theme-heading); }
body.product-page-theme.dark-mode .product-theme-page :is(p, li, dt, dd, td, th, label, figcaption, .accordion-body, .card-body, .swipe-hint) { color: var(--theme-text); }
body.product-page-theme.dark-mode .product-theme-page :is(.blue-clr, .blue-black-heading, .dark-text, .dark-text-clr, .black-text-clr, .black-clr) { color: var(--theme-text) !important; }
body.product-page-theme.dark-mode .product-theme-page :is(.orange-clr, .orange-span-text, .yellow) { color: var(--theme-accent) !important; }
body.product-page-theme.dark-mode .product-theme-page :is(h1, h2, h3, h4) > span:not(.orange-clr, .orange-span-text, .yellow) { color: inherit !important; }
body.product-page-theme.dark-mode .product-theme-page .blue-text { color: var(--theme-link) !important; }
body.product-page-theme.dark-mode .product-theme-page .others-btn.black-clr { color: var(--theme-on-accent) !important; }

/* Page sections, then raised surfaces shared by the legacy and newer layouts. */
body.product-page-theme.dark-mode .product-theme-page :is(
    .ccsf-section, .ccsf-trust-section, .gwf-funding, .gwf-faq,
    .wcl-loans-advances, .wcl-approach, .wcl-faq, .heloc-faq
) { background: var(--theme-page); }
body.product-page-theme.dark-mode .product-theme-page :is(
    .ccsf-section--soft, .ccsf-section--blue, .mca2-form-section, .mca2-rates, .mca2-benefits, .mca2-comparison,
    .gwf-uses, .gwf-workflow, .gwf-video, .gwf-video-stage, .gwf-legal,
    .wcl-comparison, .wcl-common-uses, .loan-and-financing-main-section, .save-time-money-main-section,
    .bg-light-blue, .bg-light-orange, .trusted-channels-sections, .as-seen-on-heading,
    .mca-explained-section, .business-isos-group2652-elm, .how-we-help-businesses-section,
    .business-isos-frame1686557458-elm4, .invoice-factoring-for-section
) { background-color: var(--theme-surface-alt); }
body.product-page-theme.dark-mode .product-theme-page :is(
    .ccsf-qualify-card, .ccsf-info-card, .ccsf-feature-card, .ccsf-fit-card, .ccsf-factor,
    .ccsf-chip-grid > span, .ccsf-review-card, .ccsf-trust-panel, .ccsf-trust-benefits,
    .mca2-form, .mca2-use-card, .mca2-example, .mca2-fit-card, .mca2-qualification-list,
    .gwf-feature-card, .gwf-uses-disclaimer, .gwf-step-card, .gwf-advisor-card,
    .wcl-record, .wcl-expense-list, .fh2-form-card,
    .each-loan-finance-main-div, .each-choose-card, .each-more-value, .applying-each-div, .each-why-choice,
    .each-fast-funded, .fast-track-available, .signup-card, .mca-explained-highlighted-text,
    .hiw-card, .comparison-card, .fit-card, .business-isos-solution-elem, .business-isos-frame48095924-elm,
    .step-card, .business-isos-support-elem, .why-wrapper, .why-left
) { background: var(--theme-surface); border-color: var(--theme-border); }
body.product-page-theme.dark-mode .product-theme-page :is(.ccsf-section--gradient, .ccsf-hero, .ccsf-final-cta, .mca2-hero, .mca2-qualification, .mca2-qualification-panel, .gwf-hero, .gwf-final, .gwf-advisor, .wcl-hero, .fh2-final, .hero-area, .other-item-1, .business-isos-frame1686557436-elm, .business-funding-frame1686557436-elm) { background-color: var(--theme-surface-alt); }
body.product-page-theme.dark-mode .product-theme-page .hero-carousel :is(.design-1, .design-2) { background: var(--theme-decoration); opacity: .55; }
body.product-page-theme.dark-mode .product-theme-page .inner-hero-section { isolation: isolate; }

/* Text accents and small tinted panels. */
body.product-page-theme.dark-mode .product-theme-page :is(
    .ccsf-card-heading h2, .ccsf-info-card h3, .ccsf-factor h3, .ccsf-chip-icon,
    .mca2-example h3, .mca2-qualification-checks strong, .mca2-consent-toggle,
    .gwf-table td strong, .gwf-feature-card dd strong, .gwf-uses-index h3, .gwf-advisor-card a,
    .wcl-financing-link, .name-post, .name-post span, .business-isos-text-elm188, .business-isos-text-elm222
) { color: var(--theme-link); }
body.product-page-theme.dark-mode .product-theme-page :is(.ccsf-section-intro p, .ccsf-table-note, .ccsf-form-note, .mca2-note, .gwf-table td span, .gwf-feature-card dd span, .wcl-option-label, .fh2-consent strong) { color: var(--theme-muted) !important; }
body.product-page-theme.dark-mode .product-theme-page :is(.ccsf-eyebrow, .ccsf-step > span, .mca2-eyebrow, .mca2-form-heading p, .mca2-process-icon, .hiw-icon, .loc-feature-label, .loc-apply-number, .light-sky-para, .and-more-btn, .factoring-icon-div, .fh2-kicker--blue) { background: var(--theme-surface); color: var(--theme-link) !important; }
body.product-page-theme.dark-mode .product-theme-page :is(.ccsf-trust-kicker, .ccsf-trust-year, .fh2-kicker--final) { color: var(--theme-on-accent); }
body.product-page-theme.dark-mode .product-theme-page .ccsf-trust-panel--intro :is(.ccsf-trust-kicker, .ccsf-trust-year) { color: var(--theme-accent); }
body.product-page-theme.dark-mode .product-theme-page .right-loan-main-section .head span { color: var(--theme-heading); }
body.product-page-theme.dark-mode .product-theme-page :is(
    .ccsf-chip-grid > span, .business-isos-text-elm185, .business-isos-text-elm189,
    .business-isos-text-elm209, .business-isos-text-elm223, .business-isos-text-elm228,
    .business-support-card-para, .process-area .step .title, .process-area .step .desc, .each-details label span
) { color: var(--theme-text); }
body.product-page-theme.dark-mode .product-theme-page :is(.wcl-option-accent, .wcl-faq .accordion-body a) { color: var(--theme-link); }
body.product-page-theme.dark-mode .product-theme-page .wcl-financing-link { background: transparent; }
body.product-page-theme.dark-mode .product-theme-page .click-here-div .click-here-heading { color: var(--theme-on-accent); }
body.product-page-theme.dark-mode .product-theme-page .why-left :is(h2, p) { color: var(--theme-text); }
body.product-page-theme.dark-mode .product-theme-page .key-benifit-ul li { background: var(--theme-surface); }
body.product-page-theme.dark-mode .product-theme-page :is(.comparison-divider, .invoice-factoring-work-section .line) { background: var(--theme-border); }
body.product-page-theme.dark-mode .product-theme-page .why-wrapper .icon { background: var(--theme-surface-alt); }
body.product-page-theme.dark-mode .product-theme-page .loc-call-to-action-1 { background: var(--theme-surface-alt); border-block: 1px solid var(--theme-border); }
body.product-page-theme.dark-mode .product-theme-page .loc-call-to-action-1 img { filter: brightness(0) invert(1); }

/* Tables keep their column structure and use the same restrained borders as cards. */
body.product-page-theme.dark-mode .product-theme-page :is(.ccsf-table-wrap, .mca2-table-wrap, .gwf-table-wrap, .wcl-table-wrapper, .table-outer) { background: var(--theme-surface); border-color: var(--theme-border); }
body.product-page-theme.dark-mode .product-theme-page table :is(th, td) { background: var(--theme-surface); color: var(--theme-text); border-color: var(--theme-border); }
body.product-page-theme.dark-mode .product-theme-page table thead :is(th, td),
body.product-page-theme.dark-mode .product-theme-page :is(.gwf-table thead, .wcl-table thead, .wcl-record-header) { background: var(--theme-surface-alt); color: var(--theme-heading); }
body.product-page-theme.dark-mode .product-theme-page table tbody tr:nth-child(even) > *,
body.product-page-theme.dark-mode .product-theme-page .gwf-table tbody tr:nth-child(even) { background: var(--theme-surface-alt); }
body.product-page-theme.dark-mode .product-theme-page table tbody tr:hover > * { background: var(--theme-border); color: var(--theme-text); }
body.product-page-theme.dark-mode .product-theme-page table tbody tr > .focused { background: var(--theme-border); }
/* Separate highlighted cells and hovered rows on the reviewed financing comparisons. */
body.product-page-theme.dark-mode :is(.product-solid-page--business-term-loan, .product-solid-page--business-line-of-credit, .product-solid-page--sba-loan) .product-comparison-table tbody tr > .focused {
    border-bottom: 1px solid var(--theme-input-border);
}
body.product-page-theme.dark-mode :is(.product-solid-page--business-term-loan, .product-solid-page--business-line-of-credit, .product-solid-page--sba-loan) .product-comparison-table tbody tr:hover > * {
    background: var(--blue-1360);
    color: var(--theme-text);
}
body.product-page-theme.dark-mode .product-theme-page table :is(tr, thead, tbody) { border-color: var(--theme-border); }
body.product-page-theme.dark-mode .product-theme-page .gwf-uses-index :is(ul, li) { border-color: var(--theme-border); }
body.product-page-theme.dark-mode .working-capital-redesign .wcl-expense-list li { border-color: var(--theme-border); }

/* Both Bootstrap accordion variants are in use on these pages. */
body.product-page-theme.dark-mode .product-theme-page :is(.ccsf-faq-item, .accordion-item, .heloc-faq .card) { background: var(--theme-surface); border-color: var(--theme-border); }
body.product-page-theme.dark-mode .product-theme-page :is(.accordion-button, .accordion-button.collapsed, .accordion-collapse, .accordion-body) { background: var(--theme-surface); color: var(--theme-text); border-color: var(--theme-border); }
body.product-page-theme.dark-mode .product-theme-page .accordion-button:not(.collapsed) { background: var(--theme-surface-alt); color: var(--theme-heading); }
body.product-page-theme.dark-mode .product-theme-page .accordion-button::after { color: var(--theme-link); }
body.product-page-theme.dark-mode .product-theme-page :is(#accordion, #mca2Accordion) :is(.card-header, .card-body, .card-header .btn, .card-header .btn.collapsed) { background: transparent; color: var(--theme-text); }
body.product-page-theme.dark-mode .product-theme-page :is(#accordion, #mca2Accordion) .card-header .btn:not(.collapsed) { color: var(--theme-link); }
body.product-page-theme.dark-mode .product-theme-page :is(#accordion, #mca2Accordion) :is(.card, .card-body) { border-color: var(--theme-border); }
body.product-page-theme.dark-mode .product-theme-page #mca2Accordion .card-header .btn::after { filter: brightness(0) invert(1); }
body.product-page-theme.dark-mode .product-theme-page .mca2-qualification-panel { border-color: var(--theme-border); }
body.product-page-theme.dark-mode .product-theme-page .modal-content { background: var(--theme-surface); color: var(--theme-text); border-color: var(--theme-border); }
body.product-page-theme.dark-mode .product-theme-page .btn-close-modal { background: var(--theme-surface); border-color: var(--theme-border); }
body.product-page-theme.dark-mode .product-theme-page .btn-close-modal svg path { stroke: var(--theme-text); }

/* Forms retain their existing fields, options, handlers and submission contracts. */
body.product-page-theme.dark-mode .product-theme-page :is(input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"], [type="button"]), select, textarea) {
    background-color: var(--theme-surface-alt);
    color: var(--theme-text);
    border: 1px solid var(--theme-input-border);
    color-scheme: dark;
}
body.product-page-theme.dark-mode .product-theme-page :is(input, textarea)::placeholder { color: var(--theme-muted); opacity: 1; }
body.product-page-theme.dark-mode .product-theme-page select:invalid { color: var(--theme-muted); }
body.product-page-theme.dark-mode .product-theme-page select option { background: var(--theme-surface); color: var(--theme-text); }
body.product-page-theme.dark-mode .product-theme-page :is(input, select, textarea):focus-visible { outline: 2px solid var(--theme-link); outline-offset: 2px; border-color: var(--theme-link); box-shadow: none; }
body.product-page-theme.dark-mode .product-theme-page :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--theme-link); }
body.product-page-theme.dark-mode .product-theme-page form :is(label, p, small, strong, .agree-checkbox-div, .ccsf-consent-label, .mca2-consent) { color: var(--theme-text); }
body.product-page-theme.dark-mode .product-theme-page :is(.ccsf-consent-label a, .mca2-consent-toggle, .agree-checkbox-div a, .dollar-sign, .toggle-btn) { color: var(--theme-link); }
body.product-page-theme.dark-mode .product-theme-page :is(.ccsf-field-error, .mca2-error, label.error, .error-msg, .error-message) { color: var(--theme-error) !important; }
body.product-page-theme.dark-mode .product-theme-page :is(.ccsf-form-feedback.is-error, .alert-danger) { background: var(--theme-surface); color: var(--theme-error); border-color: var(--theme-error); }
body.product-page-theme.dark-mode .product-theme-page :is(.ccsf-form-feedback.is-success, .alert-success) { background: var(--theme-surface); color: var(--theme-success); border-color: var(--theme-success); }
body.product-page-theme.dark-mode .product-theme-page .each-options { border-color: var(--theme-input-border); }
body.product-page-theme.dark-mode .product-theme-page .each-options p { color: var(--theme-text); }
body.product-page-theme.dark-mode .product-theme-page .each-options input:checked ~ .checkbox-label > div { border-color: var(--theme-link); background: var(--theme-link); }
body.product-page-theme.dark-mode .product-theme-page .radio-switch-btn:not(.dark) input:checked + label { color: var(--theme-on-accent); }
body.product-page-theme.dark-mode .product-theme-page .radio-switch-btn.dark input:checked + label { color: var(--theme-heading); }
body.product-page-theme.dark-mode .product-theme-page .custom-checkbox { border-color: var(--theme-input-border); }

/* Tabs, calculator controls and mobile navigation affordances. */
body.product-page-theme.dark-mode .product-theme-page :is(.top-quote-text-div, .quote-each-heading, .quote-each-heading.text-nowrap, .explore-case-tab-btn [role="tab"], .quick-quote .w-100, .quote-div .w-100) { background: var(--theme-surface); color: var(--theme-text); }
body.product-page-theme.dark-mode .product-theme-page .explore-case-tab-btn [role="tab"][aria-selected="true"] { background: var(--theme-accent); color: var(--theme-on-accent); }
body.product-page-theme.dark-mode .product-theme-page #quick-quote .each-btns label { background: var(--theme-surface); color: var(--theme-text); }
body.product-page-theme.dark-mode .product-theme-page #quick-quote .each-btns input:checked + label { background: var(--theme-accent); color: var(--theme-on-accent); }
body.product-page-theme.dark-mode .product-theme-page #quick-quote .four-box-para { color: var(--theme-text); }
body.product-page-theme.dark-mode .product-theme-page .ccsf-mobile-sticky-cta { background: var(--theme-surface); border-color: var(--theme-border); }
body.product-page-theme.dark-mode .product-theme-page .ccsf-mobile-sticky-cta .ccsf-btn--outline { background: var(--theme-surface); color: var(--theme-link); border-color: var(--theme-link); }
body.product-page-theme.dark-mode .product-theme-page :is(a, button):focus-visible { outline: 3px solid var(--theme-link); outline-offset: 4px; }
body.product-page-theme.dark-mode .product-theme-page [role="region"][tabindex="0"]:focus-visible { outline: 2px solid var(--theme-link); outline-offset: 3px; }

/* Preserve multicolor brand artwork; do not invert photos or review logos. */
body.product-page-theme.dark-mode .product-theme-page :is(.trusted-channels-sections, .ccsf-review-card) img { background: var(--white); border-radius: 4px; }
/* Keep rating cards as bright as light mode, with muted section dividers. */
body.product-page-theme.dark-mode .product-theme-page .ccsf-trust-benefit { border-color: var(--theme-border); }
body.product-page-theme.dark-mode .product-theme-page .ccsf-trust-divider { background: var(--theme-accent); }
body.product-page-theme.dark-mode .product-theme-page .ccsf-trust-section .ccsf-review-card { background: var(--white); }
body.product-page-theme.dark-mode .product-theme-page img[src*="trustpilot-rating.webp"] { background: var(--white); border-radius: 4px; }
body.product-page-theme.dark-mode .product-theme-page :is(.mca2-process-icon, .mca2-use-icon, .each-more-value .icon) img { filter: brightness(0) invert(1); }
