/* Explicit owner colour choices override the theme's older palette rules. */
html[data-ix-site-colors="custom"] body {
  background: var(--ix-site-bg);
  color: var(--ix-site-text);
}
html[data-ix-site-colors="custom"] body h1,
html[data-ix-site-colors="custom"] body h2,
html[data-ix-site-colors="custom"] body h3,
html[data-ix-site-colors="custom"] body h4,
html[data-ix-site-colors="custom"] body h5,
html[data-ix-site-colors="custom"] body h6,
html[data-ix-site-colors="custom"] body .st-section-head__title,
html[data-ix-site-colors="custom"] body .st-page-head__title,
html[data-ix-site-colors="custom"] body .st-pdp-info__title,
html[data-ix-site-colors="custom"] body .st-heading,
html[data-ix-site-colors="custom"] body .st-deals__title,
html[data-ix-site-colors="custom"] body .st-promo__title,
html[data-ix-site-colors="custom"] body .st-product-card__title,
html[data-ix-site-colors="custom"] body .st-product-card__title a { color: var(--ix-site-heading); }
html[data-ix-site-colors="custom"] body a:where(:not(.st-btn):not(.btn):not(.st-action)) { color: var(--ix-site-link); }
html[data-ix-site-colors="custom"] body a:where(:not(.st-btn):not(.btn):not(.st-action)):hover,
html[data-ix-site-colors="custom"] body a:where(:not(.st-btn):not(.btn):not(.st-action)):focus-visible { color: var(--ix-site-link-hover); }
html[data-ix-site-colors="custom"] body .st-section-head__lead,
html[data-ix-site-colors="custom"] body .st-page-head__lead,
html[data-ix-site-colors="custom"] body .st-product-card__desc,
html[data-ix-site-colors="custom"] body .st-pdp-desc { color: var(--ix-site-text); }

/* CTA overrides are deliberate: vendor variants include ID and multi-:not rules. */
html[data-ix-site-colors="custom"] body .st-btn:not(.st-btn--secondary):not(.st-btn--ghost):not(.st-btn--soft):not(.st-btn--danger):not(.btn-default):not(.st-btn--link),
html[data-ix-site-colors="custom"] body .btn-primary,
html[data-ix-site-colors="custom"] body #button-cart,
html[data-ix-site-colors="custom"] body .st-pdp-buy__add,
html[data-ix-site-colors="custom"] body .st-pdp-actions__buynow,
html[data-ix-site-colors="custom"] body .st-hero__banner-cta,
html[data-ix-site-colors="custom"] body .st-search__submit {
  background: var(--ix-site-cta-bg) !important;
  color: var(--ix-site-cta-text) !important;
  border-color: var(--ix-site-cta-bg) !important;
  -webkit-text-fill-color: currentColor;
}
html[data-ix-site-colors="custom"] body .st-btn:not(.st-btn--secondary):not(.st-btn--ghost):not(.st-btn--soft):not(.st-btn--danger):not(.btn-default):not(.st-btn--link):is(:hover,:focus-visible),
html[data-ix-site-colors="custom"] body .btn-primary:is(:hover,:focus-visible),
html[data-ix-site-colors="custom"] body #button-cart:is(:hover,:focus-visible),
html[data-ix-site-colors="custom"] body .st-pdp-buy__add:is(:hover,:focus-visible),
html[data-ix-site-colors="custom"] body .st-pdp-actions__buynow:is(:hover,:focus-visible),
html[data-ix-site-colors="custom"] body .st-hero__banner-cta:is(:hover,:focus-visible),
html[data-ix-site-colors="custom"] body .st-search__submit:is(:hover,:focus-visible) {
  background: var(--ix-site-cta-hover-bg) !important;
  color: var(--ix-site-cta-hover-text) !important;
  border-color: var(--ix-site-cta-hover-bg) !important;
}
html[data-ix-site-colors="custom"] body .st-btn--secondary,
html[data-ix-site-colors="custom"] body .st-btn--ghost,
html[data-ix-site-colors="custom"] body .st-btn--soft,
html[data-ix-site-colors="custom"] body .st-hero__banner-secondary,
html[data-ix-site-colors="custom"] body .btn-default {
  background: var(--ix-site-secondary-bg) !important;
  color: var(--ix-site-secondary-text) !important;
  border-color: var(--ix-site-secondary-text) !important;
}
html[data-ix-site-colors="custom"] body .st-btn--secondary:is(:hover,:focus-visible),
html[data-ix-site-colors="custom"] body .st-btn--ghost:is(:hover,:focus-visible),
html[data-ix-site-colors="custom"] body .st-btn--soft:is(:hover,:focus-visible),
html[data-ix-site-colors="custom"] body .st-hero__banner-secondary:is(:hover,:focus-visible),
html[data-ix-site-colors="custom"] body .btn-default:is(:hover,:focus-visible) {
  background: var(--ix-site-secondary-hover-bg) !important;
  color: var(--ix-site-secondary-hover-text) !important;
  border-color: var(--ix-site-secondary-hover-bg) !important;
}

html[data-ix-site-colors="custom"] body .form-control,
html[data-ix-site-colors="custom"] body .st-input,
html[data-ix-site-colors="custom"] body .st-select,
html[data-ix-site-colors="custom"] body .st-modal__dialog,
html[data-ix-site-colors="custom"] body .modal-content,
html[data-ix-site-colors="custom"] body .st-drawer__panel,
html[data-ix-site-colors="custom"] body .st-dropdown,
html[data-ix-site-colors="custom"] body .st-mega {
  background: var(--ix-site-card);
  color: var(--ix-site-text);
  border-color: var(--ix-site-border);
}
html[data-ix-site-colors="custom"] body .form-control::placeholder,
html[data-ix-site-colors="custom"] body .st-input::placeholder { color: var(--ix-site-muted); opacity: 1; }
html[data-ix-site-colors="custom"] body .st-product-card,
html[data-ix-site-colors="custom"] body .st-pdp-buybox,
html[data-ix-site-colors="custom"] body .st-category-card { background-color: var(--ix-site-card); border-color: var(--ix-site-border); }
html[data-ix-site-colors="custom"] body .st-section--alt { background: var(--ix-site-section); }

html[data-ix-site-colors="custom"] body .st-header,
html[data-ix-site-colors="custom"] body .st-header__main,
html[data-ix-site-colors="custom"] body .st-header.is-stuck { background: var(--ix-site-header-bg); color: var(--ix-site-header-text); }
html[data-ix-site-colors="custom"] body .st-header .st-header__logo .st-logo__text,
html[data-ix-site-colors="custom"] body .st-header .st-header__burger,
html[data-ix-site-colors="custom"] body .st-header .st-header__actions .st-action { color: var(--ix-site-header-text); }
html[data-ix-site-colors="custom"] body .st-header .st-header__actions .st-action:hover { color: var(--ix-site-link-hover); }
html[data-ix-site-colors="custom"] body .st-header__navigation,
html[data-ix-site-colors="custom"] body .st-header__navigation .st-navbar { background: var(--ix-site-menu-bg); border-color: var(--ix-site-border); }
html[data-ix-site-colors="custom"] body .st-header__navigation .st-nav__link { color: var(--ix-site-menu-text); }
html[data-ix-site-colors="custom"] body .st-header__navigation .st-nav__item:hover > .st-nav__link,
html[data-ix-site-colors="custom"] body .st-header__navigation .st-nav__link:focus-visible { color: var(--ix-site-link-hover); }
html[data-ix-site-colors="custom"] body .st-header .st-search__input { color: var(--ix-site-text); }
html[data-ix-site-colors="custom"] body .st-price__now:not(.st-price__now--sale),
html[data-ix-site-colors="custom"] body .st-login-modal__field { color: var(--ix-site-text); }
html[data-ix-site-colors="custom"] body .st-product-card__title a:is(:hover,:focus-visible) { color: var(--ix-site-link-hover); }

/* Local footer choices are inherited by the site button/link overrides. */
html[data-ix-site-colors="custom"] .st-footer.ix-footer-design {
  --ix-site-cta-bg: var(--ix-footer-button);
  --ix-site-cta-text: var(--ix-footer-button-text);
  --ix-site-cta-hover-bg: var(--ix-footer-button);
  --ix-site-cta-hover-text: var(--ix-footer-button-text);
  --ix-site-link: var(--ix-footer-link);
  --ix-site-link-hover: var(--ix-footer-hover);
  --ix-site-text: var(--ix-footer-text);
  --ix-site-heading: var(--ix-footer-heading);
  --ix-primary: var(--ix-footer-button);
}
/* Dark newsletter sections retain their readable foreground. */
html[data-ix-site-colors="custom"] .st-newsletter {
  --ix-site-heading: #ffffff;
  --ix-site-text: #d8e0ec;
}
