/* Someh v10.20 - Product text/paragraph night background cleaner
   Scope: single product text paragraphs only. Gallery, contact card, tables, buttons and product widgets are excluded. */

body.single-product.someh-product-text-bg-clean-active div.product :where(
  .woocommerce-product-details__short-description,
  .woocommerce-tabs .woocommerce-Tabs-panel,
  .woocommerce-tabs .panel,
  #tab-description,
  .entry-content,
  .post-content,
  .page-content,
  .entry,
  .tie-content
) :where(
  p,
  p span,
  p strong,
  p b,
  p em,
  p i,
  p small,
  p font,
  p mark,
  p u,
  p code,
  p br
):not(:where(
  .wci-album-outer,
  .wci-album-outer *,
  .wci-lazy-album-shell,
  .wci-lazy-album-shell *,
  .wci-album-box,
  .wci-album-box *,
  .wci-gallery,
  .wci-gallery *,
  [class*="wci-"],
  [class*="wci-"] *,
  .fic-card,
  .fic-card *,
  .fic-injected,
  .fic-injected *,
  [class*="fic-"],
  [class*="fic-"] *,
  .tm-contact-box,
  .tm-contact-box *,
  .tmc-fab,
  .tmc-fab *,
  .tmc-topbar,
  .tmc-topbar *,
  .tmcpt-bar,
  .tmcpt-bar *,
  .spc-topbar,
  .spc-topbar *,
  .woocommerce-product-gallery,
  .woocommerce-product-gallery *,
  .images,
  .images *,
  .gallery,
  .gallery *,
  .wp-caption,
  .wp-caption *,
  .pshtoc-box,
  .pshtoc-box *,
  .toc,
  .toc *,
  table,
  table *,
  form,
  form *,
  .cart,
  .cart *,
  .price,
  .price *,
  .button,
  .button *,
  button,
  button *,
  input,
  textarea,
  select
)) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

body.single-product.someh-product-text-bg-clean-active div.product :where(
  .woocommerce-product-details__short-description,
  .woocommerce-tabs .woocommerce-Tabs-panel,
  .woocommerce-tabs .panel,
  #tab-description,
  .entry-content,
  .post-content,
  .page-content,
  .entry,
  .tie-content
) :where(
  p,
  p span,
  p strong,
  p b,
  p em,
  p i,
  p small,
  p font,
  p mark,
  p u,
  p code,
  p del,
  p ins,
  p a,
  p a span,
  li,
  li span,
  li strong,
  li b,
  li em,
  li i,
  li small,
  li font,
  li mark,
  li u,
  li code,
  li del,
  li ins,
  li a,
  li a span
):not(:where(
  .wci-album-outer *,
  .wci-lazy-album-shell *,
  .wci-album-box *,
  .wci-gallery *,
  [class*="wci-"] *,
  .fic-card *,
  .fic-injected *,
  [class*="fic-"] *,
  .tm-contact-box *,
  .tmc-fab *,
  .tmc-topbar *,
  .tmcpt-bar *,
  .spc-topbar *,
  .woocommerce-product-gallery *,
  .images *,
  .gallery *,
  .wp-caption *,
  .pshtoc-box *,
  .toc *,
  table *,
  form *,
  .cart *,
  .price,
  .price *,
  .button,
  .button *
)) {
  color: #e5e7eb !important;
  -webkit-text-fill-color: #e5e7eb !important;
}

body.single-product.someh-product-text-bg-clean-active div.product :where(
  .woocommerce-product-details__short-description,
  .woocommerce-tabs .woocommerce-Tabs-panel,
  .woocommerce-tabs .panel,
  #tab-description,
  .entry-content,
  .post-content,
  .page-content,
  .entry,
  .tie-content
) :where(p a):not(:where(
  .wci-album-outer *,
  .wci-lazy-album-shell *,
  .wci-album-box *,
  .wci-gallery *,
  [class*="wci-"] *,
  .fic-card *,
  .fic-injected *,
  [class*="fic-"] *,
  .tm-contact-box *,
  .tmc-fab *,
  .tmc-topbar *,
  .tmcpt-bar *,
  .spc-topbar *,
  .woocommerce-product-gallery *,
  .images *,
  .gallery *,
  .wp-caption *,
  .pshtoc-box *,
  .toc *,
  table *,
  form *,
  .cart *,
  .price *,
  .button *
)) {
  color: #93c5fd !important;
  -webkit-text-fill-color: #93c5fd !important;
}

/* CSS-only fallbacks for the first paint before JS adds body.someh-product-text-bg-clean-active */
html.dark-skin body.single-product div.product :where(.woocommerce-product-details__short-description,.woocommerce-tabs .woocommerce-Tabs-panel,#tab-description,.entry-content,.post-content,.page-content,.entry,.tie-content) :where(p,p span,p strong,p b,p em,p i,p small,p font,p mark),
body.dark-skin.single-product div.product :where(.woocommerce-product-details__short-description,.woocommerce-tabs .woocommerce-Tabs-panel,#tab-description,.entry-content,.post-content,.page-content,.entry,.tie-content) :where(p,p span,p strong,p b,p em,p i,p small,p font,p mark),
html.dark-mode body.single-product div.product :where(.woocommerce-product-details__short-description,.woocommerce-tabs .woocommerce-Tabs-panel,#tab-description,.entry-content,.post-content,.page-content,.entry,.tie-content) :where(p,p span,p strong,p b,p em,p i,p small,p font,p mark),
body.dark-mode.single-product div.product :where(.woocommerce-product-details__short-description,.woocommerce-tabs .woocommerce-Tabs-panel,#tab-description,.entry-content,.post-content,.page-content,.entry,.tie-content) :where(p,p span,p strong,p b,p em,p i,p small,p font,p mark),
html[data-theme="dark"] body.single-product div.product :where(.woocommerce-product-details__short-description,.woocommerce-tabs .woocommerce-Tabs-panel,#tab-description,.entry-content,.post-content,.page-content,.entry,.tie-content) :where(p,p span,p strong,p b,p em,p i,p small,p font,p mark),
body[data-theme="dark"].single-product div.product :where(.woocommerce-product-details__short-description,.woocommerce-tabs .woocommerce-Tabs-panel,#tab-description,.entry-content,.post-content,.page-content,.entry,.tie-content) :where(p,p span,p strong,p b,p em,p i,p small,p font,p mark) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}


/* Someh v10.58 - product text dark-mode inline color guard.
   Fixes inline-colored numbers/spans inside paragraphs so price ranges do not disappear in night mode.
   Scope is limited to real product written text; gallery, TOC, tables, forms, cart, buttons and WooCommerce price blocks are excluded. */
body.single-product.someh-product-text-bg-clean-active div.product :where(
  .woocommerce-product-details__short-description,
  .woocommerce-tabs .woocommerce-Tabs-panel,
  .woocommerce-tabs .panel,
  #tab-description,
  .entry-content,
  .post-content,
  .page-content,
  .entry,
  .tie-content
) :where(p,li):not(.price) :where(span,strong,b,em,i,small,font,mark,u,code,del,ins,a):not(:where(
  .wci-album-outer *,
  .wci-lazy-album-shell *,
  .wci-album-box *,
  .wci-gallery *,
  [class*="wci-"] *,
  .fic-card *,
  .fic-injected *,
  [class*="fic-"] *,
  .tm-contact-box *,
  .tmc-fab *,
  .tmc-topbar *,
  .tmcpt-bar *,
  .spc-topbar *,
  .woocommerce-product-gallery *,
  .images *,
  .gallery *,
  .wp-caption *,
  .pshtoc-box *,
  .toc *,
  table *,
  form *,
  .cart *,
  .price,
  .price *,
  .button,
  .button *
)){
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html.dark-skin body.single-product div.product :where(.woocommerce-product-details__short-description,.woocommerce-tabs .woocommerce-Tabs-panel,#tab-description,.entry-content,.post-content,.page-content,.entry,.tie-content) :where(p,li):not(.price) :where(span,strong,b,em,i,small,font,mark,u,code,del,ins,a),
body.dark-skin.single-product div.product :where(.woocommerce-product-details__short-description,.woocommerce-tabs .woocommerce-Tabs-panel,#tab-description,.entry-content,.post-content,.page-content,.entry,.tie-content) :where(p,li):not(.price) :where(span,strong,b,em,i,small,font,mark,u,code,del,ins,a),
html.dark-mode body.single-product div.product :where(.woocommerce-product-details__short-description,.woocommerce-tabs .woocommerce-Tabs-panel,#tab-description,.entry-content,.post-content,.page-content,.entry,.tie-content) :where(p,li):not(.price) :where(span,strong,b,em,i,small,font,mark,u,code,del,ins,a),
body.dark-mode.single-product div.product :where(.woocommerce-product-details__short-description,.woocommerce-tabs .woocommerce-Tabs-panel,#tab-description,.entry-content,.post-content,.page-content,.entry,.tie-content) :where(p,li):not(.price) :where(span,strong,b,em,i,small,font,mark,u,code,del,ins,a),
html[data-theme="dark"] body.single-product div.product :where(.woocommerce-product-details__short-description,.woocommerce-tabs .woocommerce-Tabs-panel,#tab-description,.entry-content,.post-content,.page-content,.entry,.tie-content) :where(p,li):not(.price) :where(span,strong,b,em,i,small,font,mark,u,code,del,ins,a),
body[data-theme="dark"].single-product div.product :where(.woocommerce-product-details__short-description,.woocommerce-tabs .woocommerce-Tabs-panel,#tab-description,.entry-content,.post-content,.page-content,.entry,.tie-content) :where(p,li):not(.price) :where(span,strong,b,em,i,small,font,mark,u,code,del,ins,a){
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  visibility: visible !important;
}
