/* Loaded for dark screens by the child theme. Photos, swatches and campaign
   artwork keep their original colours. Use the same palette for plugin UI. */
:root {
  color-scheme: dark;
  --color-bg: #151b22;
  --abc-panel: #1d2630;
  --abc-input-surface: #2b3845;
  --abc-price-surface: #2d3c49;
  --abc-price-text: #f5d89a;
  --color-surface: #232e39;
  --color-surface-2: #303e4b;
  --color-border: #435261;
  --color-control-border: #758697;
  --color-text: #e8edf1;
  --color-muted: #b5c1cc;
  --ms-category-count-color: #b5bdc4;
  --color-disabled-text: #aab7c2;
  --color-header-bg: #19222c;
  --color-header-brd: var(--color-border);
  --abc-nav-surface: #101821;
  --abc-navy: #f0f3f5;
  --abc-blue: #94bddd;
  --abc-blue-deep: #29465b;
  --abc-yellow: #e5c66a;
  --abc-red: #e07882;
  --abc-red-deep: #ffacb4;
  --abc-red-hover: #ffccd0;
  --abc-cream: #1b232c;
  --abc-blush: #442a35;
  --abc-mist: #293a48;
  --color-accent: var(--abc-red-deep);
  --color-accent-h: var(--abc-red-hover);
  --color-accent-lt: var(--abc-blush);
  --color-button-bg: #a53849;
  --color-button-hover: #8b2e3c;
  --color-button-text: #fff;
  --color-success: #89dbb2;
  --color-danger: #ffa3ad;
  --shadow-sm: 0 2px 8px rgb(0 0 0 / 18%);
  --shadow-md: 0 14px 34px rgb(0 0 0 / 32%);
  --wc-content-bg: var(--abc-panel);
  --wc-secondary: var(--color-surface);
  --wc-secondary-text: var(--color-text);
  --wc-subtext: var(--color-muted);
  --abch-checkout-cherry: var(--color-accent);
  --abc-focus: var(--abc-blue);
  --abc-brand-clear: var(--color-accent);
  background-color: var(--color-bg);
}

/* Header, category navigation, homepage and brands directory. */
.site-logo .site-logo-mark {
  color-scheme: dark;
  filter: drop-shadow(0 0 .65px rgb(0 0 0 / 80%));
}
.site-logo-motto { color: #dce3e8; }
.header-search form, html .abg .abg-query input[type=search] {
  background: var(--abc-input-surface);
  border-color: var(--color-control-border);
}
.header-search form:focus-within, html .abg .abg-query input[type=search]:focus-visible {
  border-color: var(--abc-blue);
  outline: 2px solid var(--abc-blue);
  outline-offset: 1px;
}
.header-search input[type=search]::placeholder,
.abc-brands-search input::placeholder,
.abg .abg-query input[type=search]::placeholder { color: var(--color-muted); opacity: 1; }
.site-header .header-search button,
.site-header .header-cart-badge,
.site-nav .cat-nav-toggle,
.home-hero .home-hero-cta { background: var(--color-button-bg); color: #fff; }
.site-header .header-search button:hover,
.site-nav .cat-nav-toggle:is(:hover,[aria-expanded=true]),
.home-hero .home-hero-cta:hover { background: var(--color-button-hover); }
.cat-nav-panel, .cat-nav-sub-col { background: var(--abc-panel); }
.cat-nav-list-col { background: var(--abc-nav-surface); }
.cat-nav-group-title, .cat-nav-tree-level :is(a,span),
.cat-nav-sub-col .ms-category-name { color: var(--color-text); }
.home-hero-slide-warm { background: linear-gradient(118deg,#211e26,#3b2931 65%,#413229); }
.home-hero-slide-steel, .abc-brands-hero { background: linear-gradient(118deg,#19232c,#283d4c 65%,#304653); }
.home-hero-slide-green { background: linear-gradient(118deg,#1c2528,#293b37 65%,#354535); }
.home-hero-copy p, .abc-brands-hero p { color: var(--color-muted); }
.home-hero .home-hero-arrows button { background: var(--abc-panel); border-color: var(--color-control-border); }
.home-hero .home-hero-arrows button:hover { background: var(--abc-mist); }
.home-brands, .abc-brands-toolbar { background: var(--color-surface); }
.abc-brand-card, .home-brand-card, .abch-shingles-grid .abch-shingles-card {
  background: var(--abc-panel);
  border-color: var(--color-border);
  color: var(--color-text);
}
.abc-brand-initials, .home-brand-mark { background: var(--abc-mist); color: var(--abc-blue); border-color: var(--color-border); }
.abc-brands-search { color: var(--abc-blue); }
.abc-alpha-btn.is-disabled { color: var(--color-disabled-text); }

/* Campaign artwork and its buttons keep their own branding; reading panels
   and calculators share the storefront surfaces and legible text colours. */
html .abch-evg {
  --evg-bg: var(--color-bg);
  --evg-paper: var(--abc-panel);
  --evg-ink: var(--color-text);
  --evg-line: var(--color-border);
  --evg-muted: var(--color-muted);
}
.abch-evg :is(.abch-evg-button--dark,.abch-evg-jump,.abch-evg-add,.abch-evg-final) { background: var(--evg-deep); }
.abch-evg :is(.abch-evg-calc,.abch-evg-calc-result,.abch-evg-calc input,.abch-evg-calc select,.abch-evg-footnote),
.abch-green, .abch-green-choice { background: var(--abc-panel); color: var(--color-text); }
.abch-evg-calc-fields label { color: var(--color-muted); }
.abch-evg .abch-evg-guide { background: var(--color-surface); }
.abch-evg-steps p, .abch-evg-install-head .abch-evg-section-lead { color: var(--color-muted); }
.abch-evg .abch-evg-guide-download { color: #111 !important; }
.abch-green { --green-ink: var(--color-text); --green-paper: var(--color-surface); --green-leaf: var(--color-success); }
.abch-green :is(.abch-green-delivery-note,.abch-green-small,figcaption) { color: var(--color-muted); }
article:has(.abch-shingles-grid) > h1,
.abch-shingles-card :is(h3,thead,td em), .abch-shingles-card tbody td:last-child { color: var(--color-text); }

/* Catalog controls and native Woo product cards, including list view. */
/* The private name review uses the same group colours for its key and titles. */
.abc-ns-catalog .ns-catalog-part[data-group] {
  color: var(--edge, var(--color-text));
  color: color-mix(in srgb, var(--ns-ink) 40%, white);
}
html .abg :is(.abg-field select,.abg-field input,.abg-choices,.abg-local button,.abg-comparison button,.abg-comparison table) {
  background: var(--abc-panel);
  color: var(--color-text);
}
.abg .abg-query button, .abg .abg-pages strong { background: var(--color-button-bg); }
.abg .abg-local button:is(:hover,[aria-pressed=true]), .abg .abg-comparison button:hover,
.abg .abg-comparison tbody th { background: var(--abc-mist); }
.abg[data-view=list] ul[data-abg-items] > .abg-row { background: var(--abc-panel); }
.abg[data-view=list] ul[data-abg-items] .abg-row .abg-row-facts :is(.abchpc-shelf-sku,.abg-row-sku,.abg-row-brand) {
  background: var(--color-surface); color: var(--color-text);
}
html .woocommerce ul.products li.product.abchpc-shelf-item,
html .woocommerce-page ul.products li.product.abchpc-shelf-item,
html :is(.woocommerce,.woocommerce-page) ul.products li.product.abchpc-shelf-item :is(.product-info,.woocommerce-loop-product__title) {
  background: var(--abc-panel);
  color: var(--color-text);
  border-color: var(--color-border);
}
html :is(.woocommerce,.woocommerce-page) ul.products li.product.abchpc-shelf-item .price,
.abg[data-view=list] ul[data-abg-items] .abg-row .abg-row-facts :is(.price,.abg-row-price) {
  background: var(--abc-price-surface);
  color: var(--abc-price-text);
}
html :is(.woocommerce,.woocommerce-page) ul.products li.product.abchpc-shelf-item .price { padding-inline: .55rem; }
html :is(.woocommerce,.woocommerce-page) ul.products li.product.abchpc-shelf-item .woocommerce-loop-product__title {
  padding-inline: .55rem !important;
  color: var(--abc-navy);
}
html :is(.woocommerce,.woocommerce-page) ul.products li.product.abchpc-shelf-item:is(:hover,:focus-within),
.abg[data-view=list] ul[data-abg-items] > .abg-row:is(:hover,:focus-within) {
  border-color: var(--abc-blue) !important;
  box-shadow: 0 4px 14px rgb(0 0 0 / 32%) !important;
}
html :is(.woocommerce,.woocommerce-page) ul.products li.product.abchpc-shelf-item:is(:hover,:focus-within) .woocommerce-loop-product__title,
.abg[data-view=list] .abg-row:is(:hover,:focus-within) .abg-row-title { color: var(--abc-blue); }
html :is(.woocommerce,.woocommerce-page) ul.products li.product.abchpc-shelf-item:is(:hover,:focus-within) .woocommerce-loop-product__link img {
  outline: 1px solid var(--abc-blue);
  outline-offset: -2px;
}
html :is(.woocommerce,.woocommerce-page) ul.products li.product.abchpc-shelf-item .price del,
.abg .abg-row .price del { color: var(--color-muted); opacity: 1; }
html :is(.woocommerce,.woocommerce-page) ul.products li.product.abchpc-shelf-item :is(.abchpc-shelf-brand,.abchpc-shelf-sku),
html .abg [data-abg-items] .abg-compare-add,
html :is(.woocommerce,.woocommerce-page) ul.products li.product.abchpc-shelf-item .abchpc-cart-control:not(:hover):not(:focus-visible):not(.abchpc-is-added) {
  background: var(--abc-panel); color: var(--color-text); border-color: var(--color-control-border);
}
.abg [data-abg-items] .abg-compare-add:is(:hover,:focus-visible,[aria-pressed=true]) { background: var(--abc-blue-deep); }
html :is(.woocommerce,.woocommerce-page) ul.products li.product .abchpc-cart-control:is(:hover,:focus-visible),
html .abg[data-view=list] ul[data-abg-items] > .abg-row .abg-row-media .button.abchpc-cart-control:is(:hover,:focus-visible) {
  background: var(--color-button-bg);
}
html :is(.woocommerce,.woocommerce-page) ul.products li.product .abchpc-cart-control.abchpc-is-added { background: #28694d; }
.abchpc-shelf-unit { color: var(--color-muted); }
.abchpc-stock-status { background: var(--color-surface); color: var(--color-text); }
.woocommerce span.onsale, .woocommerce span.onsale.abchpc-promotion-badge { background: var(--color-button-bg); }
.abch-category-sections a, .abch-protector-choice, .abch-width-choices a {
  background: var(--abc-panel); color: var(--color-text); border-color: var(--color-border);
}
.abch-category-sections a:is(:hover,:focus-visible,[aria-current=page]) {
  background: var(--abc-mist); color: var(--color-text);
}

/* Search suggestions are mounted independently of the header or catalog. */
.abch-search-autocomplete, .abch-search-product-option, .abch-search-discovery-option,
.abch-search-state, .abch-promotions-search__controls input[type=search] { background: var(--abc-panel); color: var(--color-text); }
.abch-search-discovery, .abch-catalog-toolbar { background: var(--color-surface); }
.abch-search-context { background: #383324; color: #f0dda0; }
.abch-search-all-option { background: var(--abc-blue-deep); }
.abch-search-product-option:is(:hover,.is-active,[aria-selected=true]),
.abch-search-discovery-option:is(:hover,.is-active,[aria-selected=true]) {
  background: var(--abc-mist); color: var(--color-text);
}
.abch-search-autocomplete mark { background: #604f29; color: #fff0bc; }
.abch-promotions-search, .abch-promotions-search__clear, .abch-catalog-count,
.abch-catalog-controls label, .abch-shelf-heading :is(h2,p) { color: var(--color-text); }
.abch-catalog-controls select { background: var(--abc-panel); color: var(--color-text); }
.abch-catalog-controls .button { background: var(--abc-blue-deep); }

/* Product detail, configuration, per-unit controls and account pages. */
/* WooCommerce wraps the amounts in .price when a variation is selected. */
.single-product .abc-product-hud__item--price .abc-product-hud__price:has(> del, > .price > del) {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-items: start;
  gap: .08rem .35em;
  padding: .35rem .6rem;
  font-size: clamp(.94rem, 1.2vw, 1.06rem);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.single-product .abc-product-hud__price > .price:has(> del) {
  display: contents;
  font: inherit;
  color: inherit;
}
.single-product .abc-product-hud__item--price :is(.abc-product-hud__price,.price) > del {
  grid-column: 1 / -1;
  color: var(--color-muted);
  opacity: 1;
  font-size: .8rem;
  font-weight: 650;
  text-decoration-thickness: 1px;
}
.single-product .abc-product-hud__item--price :is(.abc-product-hud__price,.price) > del .amount {
  color: inherit !important;
}
.abch-shingle { --sh-line: var(--color-control-border); }
.abch-shingle legend > span, .abch-shingle__card > span { background: var(--abc-panel); }
.abch-shingle__card small, .abch-shingle :is(.abch-shingle__caption,[data-shingle-stock],.abch-shingle__status) { color: var(--color-muted); }
.abch-shingle__card input:checked + span {
  background: var(--abc-mist); border-color: var(--abc-blue); box-shadow: inset 0 0 0 1px var(--abc-blue);
}
.abch-shingle__card input:checked + span::after { background: var(--abc-blue); color: var(--abc-nav-surface); }
.abch-shingle__card input:disabled + span { background: var(--color-surface); color: var(--color-disabled-text); }
.abch-shingle__card input:focus-visible + span { outline-color: var(--abc-focus); }
.abchome-purchase-options__stock--available { color: var(--color-success); }
.abchome-purchase-options__stock--limited { color: var(--abc-yellow); }
.abchome-purchase-options__stock--unavailable { color: var(--color-danger); }
.single-product .summary > .abc-product-availability, .single-product .abc-product-availability__phone,
.single-product .abc-product-hud__value, .single-product .abc-product-hud__item--price .abc-product-hud__value,
.abchpf-configurator__panel, .abchpf-option--text, .abchpf-option--text:is(:hover,:focus-visible),
html :is(.woocommerce,.woocommerce-page) ul.products li.product .abchpf-family-chip,
.abchome-purchase-options__card, .abchome-purchase-options__consultation, .abchome-product-request, .abchome-product-request__field input,
.abchome-cart-quote__item, .abchome-cart-quote__contact, .abch-loyalty {
  background: var(--abc-panel); color: var(--color-text); border-color: var(--color-border);
}
.single-product .abchpf-option--text.is-current,
.woocommerce .single_add_to_cart_button.button.alt, .woocommerce button.button.alt { background: var(--color-button-bg); color: #fff; }
.woocommerce .single_add_to_cart_button.button.alt:hover { background: var(--color-button-hover); }
.abchome-base2-order-button.button[aria-disabled=true], .abchome-base2-order-button.button:disabled {
  background: var(--color-surface-2) !important; border-color: var(--color-border) !important;
}
.woocommerce .abchome-base2-order-block button.abchome-base2-order-button:disabled { opacity: 1 !important; }
.single-product .woocommerce-product-attributes.shop_attributes .abch-product-attributes__group .abch-product-attributes__group-heading > th,
.single-product .woocommerce-product-attributes.shop_attributes .abch-product-attributes__group .woocommerce-product-attributes-item > * {
  background: var(--color-surface); color: var(--color-text); border-color: var(--color-border);
}
.woocommerce-account.logged-in .woocommerce-MyAccount-content { background: var(--color-bg); }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm .description { color: var(--color-muted); }
.woocommerce-account .woocommerce-MyAccount-content :is(table.shop_table,.woocommerce-Address),
.abch-loyalty-note { background: var(--abc-panel); }
.woocommerce-account.woocommerce-dashboard .woocommerce-MyAccount-content > p:first-child { color: var(--color-muted); }
.woocommerce-account .woocommerce-MyAccount-content .shop_table :is(th,td) { border-color: var(--color-border); }
.woocommerce-account .woocommerce-MyAccount-content .shop_table :is(th,.order-number) {
  background: var(--color-surface); color: var(--color-text);
}
.woocommerce-account .woocommerce-MyAccount-content .shop_table td { background: var(--abc-panel); }
.woocommerce-account .woocommerce-MyAccount-content :is(.button,button.button) {
  background: var(--color-surface-2); color: var(--color-text);
}
.woocommerce-account .woocommerce-MyAccount-content :is(.button,button.button):is(:hover,:focus-visible) {
  background: var(--abc-blue-deep); color: #fff;
}
.woocommerce-account .woocommerce-MyAccount-content :is(mark,ins) {
  background: var(--abc-mist); color: var(--color-text);
}
.abch-loyalty-price ins { color: var(--color-accent); }
.abch-loyalty-status, .abch-loyalty-price small, .abch-search-loyalty-label,
.abch-product-cart-state, .woocommerce div.product .stock { color: var(--color-success); }
.woocommerce div.product .out-of-stock { color: var(--color-danger); }
.abch-dual-control { color: var(--color-text); }
.abch-dual-count-box, .abch-dual-count-box .abch-dual-count { background: var(--abc-panel); color: var(--color-text); }
.single-product .summary form.cart .abch-dual-count-box button.abch-dual-count-button,
.abch-dual-count-box .abch-dual-count-button { background: var(--color-surface) !important; color: var(--color-text) !important; }
.abch-dual-status { color: var(--abc-yellow); }
.abchome-product-request .abchome-product-request__close { background: var(--color-button-bg) !important; }
.abchome-product-request .abchome-product-request__close:is(:hover,:focus-visible) { background: var(--color-button-hover) !important; }

/* The cart menu and the embedded checkout are separate documents. */
#abch-flow-dialog, .abch-flow-document { --flow-band-border: var(--color-border); }
#abch-flow-basket, #abch-flow-delivery, .abch-flow-item, .abch-flow-columns,
.abch-flow-secondary, .abch-flow-quantity-input, .abch-flow-quantity-input input,
.abch-flow-document .abch-flow-quantity-input button { background: var(--abc-panel); color: var(--color-text); }
.abch-flow-item:hover, .abch-flow-item.is-paused { background: var(--color-surface); }
#abch-flow-dialog .abch-flow-menu-step[aria-expanded=true] span,
.abch-flow-primary, #abch-flow-launcher, .abch-flow-check input:checked + span {
  background: var(--color-button-bg); color: #fff;
}
.abch-flow-primary:not(:disabled):not([aria-busy=true]):hover { background: var(--color-button-hover); }
.abch-flow-error { background: var(--abc-blush); color: var(--color-danger); }
.abch-flow-pause, #abch-flow-restore { background: #383324; color: #f0dda0; }
html body .wp-block-woocommerce-checkout :is(.wc-block-components-text-input input,.abc-cb-destination-fields input,.abc-cb-destination-fields select,.ship-panel input,.ship-panel select,.abc-cb-phone input:not([type=checkbox]),.abc-phone-email input[type=email]) {
  background: var(--abc-panel) !important; color: var(--color-text) !important;
}
html body .wp-block-woocommerce-checkout :is(.ship-carriers,.ecod-modes,.sc-modes,.ship-modes) button:not([aria-pressed=true]):not(:disabled):not([aria-disabled=true]):not(:hover) {
  background: var(--abc-panel) !important;
}
.wp-block-woocommerce-checkout :is(.wc-block-components-text-input label,.ship-preflight-place label,.abc-cb-availability,.abc-phone-privacy) { color: var(--color-muted); }
.wp-block-woocommerce-checkout :is(.ecod-options,.sc-suggestions,.sc-offices,.ecod-options button,.sc-suggestions button,.sc-office) {
  background: var(--abc-panel); color: var(--color-text);
}

/* Public notices and consent UI; third-party components retain their controls. */
.woocommerce-message { --abch-notice-bg: #203b32; --abch-notice-text: #bcf0d2; --abch-notice-border: #456c59; }
.woocommerce-info { --abch-notice-bg: var(--abc-mist); --abch-notice-text: var(--color-text); --abch-notice-border: #506d80; }
.woocommerce-error { --abch-notice-bg: var(--abc-blush); --abch-notice-text: #ffd5d8; --abch-notice-border: #8a5361; }
.abch-lg-blocks, .abch-lg-notice, .abch-i-exit-feedback {
  background: var(--abc-panel); color: var(--color-text); border-color: var(--color-border);
}
.abch-lg-notice__heading, .abch-lg-notice__links a, .abch-lg-blocks__links a { color: var(--abc-blue); }
.abch-lg-notice__intro, .abch-i-exit-feedback__note { color: var(--color-muted); }
.abch-i-exit-feedback button:is(.abch-i-exit-feedback__option,.abch-i-exit-feedback__close) {
  background: var(--color-surface); color: var(--color-text) !important;
}
.cmplz-cookiebanner {
  --cmplz_banner_background_color: var(--abc-panel);
  --cmplz_banner_border_color: var(--color-border);
  --cmplz_text_color: var(--color-text);
  --cmplz_hyperlink_color: var(--color-accent);
  --cmplz_button_settings_background_color: var(--color-surface);
  --cmplz_button_settings_text_color: var(--color-text);
  --cmplz_button_deny_background_color: var(--color-surface);
  --cmplz_button_deny_text_color: var(--color-text);
  --cmplz_category_header_always_active_color: var(--color-success);
}
#abch-email-popup, #abch-email-address, #abch-email-popup #abch-email-result, .abch-email-customer-notice {
  background: var(--abc-panel); color: var(--color-text); border-color: var(--color-border);
}
#abch-email-popup #abch-email-label { color: var(--color-text); }
#abch-email-popup .abch-email-close { color: var(--color-text) !important; }
#abch-email-popup .abch-email-privacy { color: var(--color-muted); }
#abch-email-popup a { color: var(--color-accent); }
#abch-email-launcher, #cmplz-manage-consent button.cmplz-manage-consent {
  background-color: var(--color-surface); border-color: var(--color-control-border);
}
#abch-email-launcher svg { stroke: var(--color-accent); }
#cmplz-manage-consent button.cmplz-manage-consent::before { filter: brightness(0) invert(.89); }
