/* Cool neutral palette, sampled from the approved reference: #F7FAFD.
 * Colour-only overrides: preserve layout, purple CTAs and white surfaces.
 * Keep vendor styles and database-generated content untouched.
 */
body {
    --ourdeal-grey: #f7fafd;
    --ourdeal-grey-border: #d5dee8;
    --ourdeal-grey-divider: var(--ourdeal-grey-border);
}

/* Shared storefront surfaces: buttons, cart notices, tabs and controls.
 * Scope to the storefront so the WordPress admin toolbar keeps its palette.
 */
#page,
.site-canvas,
.woosc-area,
body.woocommerce-checkout {
    --color-info: var(--ourdeal-grey);
    --color-info-light: var(--ourdeal-grey);
    --color-info-dark: var(--ourdeal-grey-divider);
    --color-form-border: var(--ourdeal-grey-border);
}

body.custom-background.wp-theme-partdo {
    background-color: var(--ourdeal-grey);
}

/* The product content is white, including the space beneath the header. */
body.single-product.custom-background.wp-theme-partdo {
    background-color: #fff;
}

/* Delivery is a white page: keep its footer spacing white and footer grey. */
body.page-id-2906.custom-background.wp-theme-partdo {
    background-color: #fff;
}

body.page-id-2906 .site-footer .footer-row.custom-background-dark {
    background-color: var(--ourdeal-grey);
}

/* Keep the basket summary distinct from the grey cart page. */
body.woocommerce-cart #page .cart-collaterals {
    background-color: #fff;
}

/* Preserve the existing inverse footer treatment: white on grey pages,
 * grey only on the white single-product page. Do not override other footers.
 */
.single-product .site-footer .footer-row.custom-background-dark {
    background-color: var(--ourdeal-grey);
}

/* These contact links receive their original colours as inline PHP styles. */
#page a.button.sales-button,
#page a.button.support-button {
    background-color: var(--ourdeal-grey) !important;
    border-color: var(--ourdeal-grey-border) !important;
}

/* Saved finance copy also contains an inline background colour. */
#page .product-credit-text[style*="#f3f3f3" i] {
    background-color: var(--ourdeal-grey) !important;
}

/* Hard-coded neutral surfaces from the child theme and review widgets. */
#page .filtered-sidebar .ourdeal-widget .service-search-form2 .select2 .select2-selection.select2-selection--single.select2-selection--clearable,
#page .product-low-stock.oduk-custom-product-low-stock-shop,
#page .product-low-stock.oduk-custom-product-low-stock,
#page .cr-all-reviews-shortcode .cr-count-row,
#page #reviews.cr-reviews-ajax-reviews .cr-count-row,
#page .oduk-reviews-left-col .ivole-summaryBox .ivole-meter,
#page .review-filter-bar,
#page .review-sort,
#page .star-bar-bg,
#page .wcst_guarantee_box,
#page .progress_barr_od .progress-barr,
#page .checkout-progress-container {
    background-color: var(--ourdeal-grey) !important;
}

/* Only unselected condition chips are grey; retain the dark selected state. */
#page .variations_form .od-variation-button:not([aria-pressed="true"]) {
    background-color: var(--ourdeal-grey);
}

#page .variations_form .od-variation-button:not([aria-pressed="true"]):not(:hover) {
    border-color: var(--ourdeal-grey-border);
}

/* Neutral surfaces outside the normal theme variable chain. */
body .site-footer .footer-row.custom-background-light,
body .woosc-search-input input,
body .woosc-table-close-icon,
body .site-close > *,
body.woocommerce-checkout .value-button,
#page .woobt-alert {
    background-color: var(--ourdeal-grey);
}

/* Specification tables stay entirely white, with only cool-grey dividers. */
#page table.woocommerce-product-attributes,
#page table.woocommerce-product-attributes tr,
#page table.woocommerce-product-attributes th,
#page table.woocommerce-product-attributes td {
    background-color: #fff;
}

/* Search has its own plugin outline. Keep its existing dimensions. */
body .dgwt-wcas-search-wrapp input.dgwt-wcas-search-input {
    border-color: var(--ourdeal-grey-border) !important;
}

/* Preserve the dark selected thumbnail while standardising inactive frames. */
body .woocommerce-product-gallery .flex-control-thumbs img:not(.flex-active) {
    border-color: var(--ourdeal-grey-border);
}

body .elementor-widget-n-accordion {
    --n-accordion-border-color: var(--ourdeal-grey-border);
}

body .ambisn-outer-container .popup,
body .ambisn-outer-container .subscription-form input:not(:focus) {
    border-color: var(--ourdeal-grey-border);
}

/* Remove only the empty switcher's vertical rule at the top strip's right edge. */
body .site-header .header-topbar .header-notice + .header-switcher {
    border-left-width: 0;
}

/* Remove the short decorative horizontal line in the delivery section. */
body .elementor-58341 .elementor-element.elementor-element-1d50af60,
body .elementor-2906 .elementor-element.elementor-element-42452a7d {
    display: none;
}
