.tdm-search-tools {
  display: flex !important; flex-direction: row !important; direction: ltr !important;
  align-items: center; gap: 12px; width: 100%; max-width: 100%; min-width: 0;
}
.tdm-search-tools > .dgwt-wcas-search-wrapp {flex: 1 1 auto; min-width: 0; direction: rtl;}
body button.tdm-toggle {
  display: inline-flex !important; align-items: center; justify-content: space-between;
  flex: 0 0 76px; width: 76px; height: 44px; padding: 4px; margin: 0;
  border: 1px solid #dedfe3; border-radius: 999px; background: #f0f1f3;
  color: #303238; box-shadow: none; cursor: pointer; direction: ltr;
}
body button.tdm-toggle span {display: grid;place-items: center;width: 30px;height: 30px;border-radius: 50%;}
body button.tdm-toggle svg {width: 18px;height: 18px;stroke: currentColor;fill: none;stroke-width: 1.8;}
body button.tdm-toggle .tdm-sun {background: #ef2638;color: #fff;}
body button.tdm-toggle:focus-visible {outline: 2px solid #ef2638;outline-offset: 3px;}
html[data-tdm-theme="dark"] {color-scheme: dark;background: #2f3033 ;}
html[data-tdm-theme="dark"] body {background: #2f3033  !important;color: #f1f2f4;}
html[data-tdm-theme="dark"] body .tdm-surface {background-color: #202226 !important;}
html[data-tdm-theme="dark"] body .tdm-text {color: #f1f2f4 !important;}
html[data-tdm-theme="dark"] body .tdm-muted {color: #bec0c7 !important;}
html[data-tdm-theme="dark"] body .tdm-border {border-color: #373940 !important;}
html[data-tdm-theme="dark"] body .tdm-input {background-color: #292c31 !important;color: #f1f2f4 !important;border-color: #474951 !important;}
html[data-tdm-theme="dark"] body .tdm-input::placeholder {color: #bec0c7 !important;opacity: 1;}
html[data-tdm-theme="dark"] body button.tdm-toggle {background: #292c31;color: #bec0c7;border-color: #474951;}
html[data-tdm-theme="dark"] body button.tdm-toggle .tdm-sun {background: transparent;color: inherit;}
html[data-tdm-theme="dark"] body button.tdm-toggle .tdm-moon {background: #ef2638;color: #fff;}
/* Product photographs and other media are never inverted, filtered, or recolored. */
@media (max-width: 480px) {.tdm-search-tools {gap: 8px;}body button.tdm-toggle {flex-basis: 70px;width: 70px;}}

/* Settle original colors during measurement, without a visible light frame. */
html.tdm-measuring, html.tdm-measuring *,
html.tdm-measuring *::before, html.tdm-measuring *::after {
  transition: none !important;
}
/* WooCommerce draws this magnifier using pseudo-elements. */
html[data-tdm-theme="dark"] body .woocommerce-product-gallery__trigger {
  background: #202226 !important; color: #f1f2f4 !important;
}
html[data-tdm-theme="dark"] body .woocommerce-product-gallery__trigger::before {
  border-color: #f1f2f4 !important;
}
html[data-tdm-theme="dark"] body .woocommerce-product-gallery__trigger::after {
  background: #f1f2f4 !important;
}
/* Scope icon recoloring to cart controls; never change logos/product photos. */
html[data-tdm-theme="dark"] body :is(.elementor-location-header,header)
:is(.elementor-menu-cart__toggle,.elementor-widget-woocommerce-menu-cart,.ekit-shopping-cart,.ekit-cart-icon,.cart-contents) {
  color: #f1f2f4 !important;
}
html[data-tdm-theme="dark"] body :is(.elementor-location-header,header)
:is(.elementor-menu-cart__toggle,.elementor-widget-woocommerce-menu-cart,.ekit-shopping-cart,.ekit-cart-icon,.cart-contents)
:is(i,i::before,.elementor-button-icon) {
  color: #f1f2f4 !important;
}
html[data-tdm-theme="dark"] body :is(.elementor-location-header,header)
:is(.elementor-menu-cart__toggle,.elementor-widget-woocommerce-menu-cart,.ekit-shopping-cart,.ekit-cart-icon,.cart-contents)
svg {
  color: #f1f2f4 !important; fill: #f1f2f4 !important;
}
html[data-tdm-theme="dark"] body :is(.elementor-location-header,header)
:is(.elementor-menu-cart__toggle,.elementor-widget-woocommerce-menu-cart,.ekit-shopping-cart,.ekit-cart-icon,.cart-contents)
svg [fill]:not([fill="none"]) { fill: #f1f2f4 !important; }
html[data-tdm-theme="dark"] body :is(.elementor-location-header,header)
:is(.elementor-menu-cart__toggle,.elementor-widget-woocommerce-menu-cart,.ekit-shopping-cart,.ekit-cart-icon,.cart-contents)
svg [stroke]:not([stroke="none"]) { stroke: #f1f2f4 !important; }
html[data-tdm-theme="dark"] body :is(.elementor-location-header,header)
:is(.elementor-menu-cart__toggle,.elementor-widget-woocommerce-menu-cart,.ekit-shopping-cart,.ekit-cart-icon,.cart-contents)
svg[fill="none"] { fill: none !important; }
