/* The optional Dopely palettes colour the whole MH interface. The white theme
   has no mhs-palette-active class and keeps its established appearance. */
body.mh-site.mhs-palette-active {
  background: var(--mh-paper);
  color: var(--mh-ink);
  color-scheme: light;
  accent-color: var(--mhs-action-bg);
  scrollbar-color: var(--mh-line) var(--mh-paper);
}
body.mh-site.mhs-palette-active ::selection {
  background: var(--mhs-action-bg);
  color: var(--mhs-action-text);
}
body.mh-site.mhs-palette-active :focus-visible {
  outline-color: var(--mhs-action-bg);
}
body.mh-site.mhs-palette-active :is(.mh-header,.mh-drawer__panel) {
  background: var(--mh-surface);
  color: var(--mh-ink);
}
body.mh-site.mhs-palette-active :is(.mh-topbar,.mh-nav--centered,.mh-searchbar,.mh-header) {
  border-color: var(--mh-line);
}
body.mh-site.mhs-palette-active .mh-header .mh-topbar {
  background: var(--mh-band);
  color: var(--mh-ink);
}
body.mh-site.mhs-palette-active .mh-header .mh-topbar :is(a,.mh-topbar__note) {
  color: var(--mh-ink);
}
body.mh-site.mhs-palette-active .mh-header :is(.mh-menu .sub-menu,.mh-searchbar,.mh-searchform) {
  background: var(--mh-surface);
  color: var(--mh-ink);
  border-color: var(--mh-line);
}
body.mh-site.mhs-palette-active .mh-header :is(.mh-menu .sub-menu a:hover,.mh-menu .sub-menu a:focus-visible) {
  background: var(--mh-band);
  color: var(--mh-ink);
}
body.mh-site.mhs-palette-active .mh-header .mh-header__cta {
  background: var(--mhs-action-bg);
  border-color: var(--mhs-action-bg);
  color: var(--mhs-action-text) !important;
}
body.mh-site.mhs-palette-active .mh-header .mh-header__cta:hover {
  background: var(--mh-ink);
  border-color: var(--mh-ink);
  color: var(--mh-paper) !important;
}
body.mh-site.mhs-palette-active :is(.mh-menu > li.current-menu-item > a,.mh-menu > li.current-menu-ancestor > a,.mh-textlink:hover) {
  color: var(--mh-accent) !important;
}
body.mh-site.mhs-palette-active :is(.mh-pc,.mh-pd-note,.mh-article__related,.mh-faq-card,.mh-searchform,.mh-product .woocommerce-tabs,.mh-footer__cta) {
  background: var(--mh-surface);
  color: var(--mh-ink);
  border-color: var(--mh-line);
}
body.mh-site.mhs-palette-active :is(.mh-pc__body,.mh-toolbar,.mh-ctabs,.mh-pd-colours,.mh-product .woocommerce-tabs ul.tabs) {
  border-color: var(--mh-line);
}
body.mh-site.mhs-palette-active :is(.mh-pc__meta,.mh-pd-eyebrow,.mh-product .product_meta,.mh-toolbar .woocommerce-result-count) {
  color: var(--mh-muted);
}
body.mh-site.mhs-palette-active :is(.button,button.button,input[type=submit],.mh-pc__enq) {
  background: var(--mhs-action-bg);
  border-color: var(--mhs-action-bg);
  color: var(--mhs-action-text);
}
body.mh-site.mhs-palette-active :is(.button,button.button,input[type=submit],.mh-pc__enq):hover {
  background: var(--mh-ink);
  border-color: var(--mh-ink);
  color: var(--mh-paper);
}
body.mh-site.mhs-palette-active :is(.button.-outlined,.button.mh-btn-ghost-dark,.mh-pd-actions .mh-pd-wa,.mh-sheet-link .button) {
  background: transparent;
  border-color: var(--mh-line);
  color: var(--mh-ink);
}
body.mh-site.mhs-palette-active :is(.button.-outlined,.button.mh-btn-ghost-dark,.mh-pd-actions .mh-pd-wa,.mh-sheet-link .button):hover {
  background: var(--mh-ink);
  border-color: var(--mh-ink);
  color: var(--mh-paper);
}
body.mh-site.mhs-palette-active :is(input[type=text],input[type=email],input[type=tel],input[type=search],input[type=number],input[type=url],select,textarea) {
  background: var(--mh-surface);
  border-color: var(--mh-line);
  color: var(--mh-ink);
  caret-color: var(--mh-ink);
}
body.mh-site.mhs-palette-active :is(input,textarea)::placeholder {
  color: var(--mh-muted);
  opacity: 1;
}
body.mh-site.mhs-palette-active :is(input,select,textarea):focus {
  border-color: var(--mh-accent);
}
body.mh-site.mhs-palette-active .mh-footer,
body.mh-site.mhs-palette-active.mh-tone-light .mh-footer,
body.mh-site.mhs-palette-active.mh-footer--light .mh-footer {
  --mh-on-dark: var(--mh-ink);
  --mh-on-dark-muted: var(--mh-muted);
  background: var(--mh-band);
  color: var(--mh-ink);
}
body.mh-site.mhs-palette-active .mh-footer :is(.mh-footer__cta,.mh-footer__bottom) {
  background: transparent;
  border-color: var(--mh-line);
}
body.mh-site.mhs-palette-active .mh-footer :is(.mh-footer__title,.mh-footer__cta-title,.mh-footer__brand,.mh-footer__menu a,.mh-footer__legal a) {
  color: var(--mh-ink) !important;
}
body.mh-site.mhs-palette-active .mh-footer .mh-btn-gold {
  background: var(--mhs-action-bg) !important;
  border-color: var(--mhs-action-bg) !important;
  color: var(--mhs-action-text) !important;
}
body.mh-site.mhs-palette-active .mh-footer .mh-btn-gold:hover {
  background: var(--mh-ink) !important;
  border-color: var(--mh-ink) !important;
  color: var(--mh-paper) !important;
}
/* Product photos remain on neutral white so colours are not altered by the UI. */
body.mh-site.mhs-palette-active :is(.mh-pc__media,.mh-product .woocommerce-product-gallery__image,.mh-product .flex-control-thumbs img) {
  background: #fff;
}
