/* Someh v10.3 - Dark mode guards for WCPT + Modern Tables */

/* ---------- WCPT product template / first product text ---------- */
html.dark-skin .single-product .summary,
body.dark-skin .single-product .summary,
html[class*="dark"] body.single-product .summary,
body[class*="dark"].single-product .summary {
  color:#f8fafc !important;
}

html.dark-skin .single-product .summary h1,
html.dark-skin .single-product .summary h2,
html.dark-skin .single-product .summary h3,
html.dark-skin .single-product .summary h4,
html.dark-skin .single-product .summary p,
html.dark-skin .single-product .summary li,
html.dark-skin .single-product .summary span:not(.dashicons):not(.woocommerce-Price-currencySymbol),
html.dark-skin .single-product .summary div,
body.dark-skin .single-product .summary h1,
body.dark-skin .single-product .summary h2,
body.dark-skin .single-product .summary h3,
body.dark-skin .single-product .summary h4,
body.dark-skin .single-product .summary p,
body.dark-skin .single-product .summary li,
body.dark-skin .single-product .summary span:not(.dashicons):not(.woocommerce-Price-currencySymbol),
body.dark-skin .single-product .summary div,
html[class*="dark"] body.single-product .summary h1,
html[class*="dark"] body.single-product .summary h2,
html[class*="dark"] body.single-product .summary h3,
html[class*="dark"] body.single-product .summary h4,
html[class*="dark"] body.single-product .summary p,
html[class*="dark"] body.single-product .summary li,
html[class*="dark"] body.single-product .summary span:not(.dashicons):not(.woocommerce-Price-currencySymbol),
html[class*="dark"] body.single-product .summary div,
body[class*="dark"].single-product .summary h1,
body[class*="dark"].single-product .summary h2,
body[class*="dark"].single-product .summary h3,
body[class*="dark"].single-product .summary h4,
body[class*="dark"].single-product .summary p,
body[class*="dark"].single-product .summary li,
body[class*="dark"].single-product .summary span:not(.dashicons):not(.woocommerce-Price-currencySymbol),
body[class*="dark"].single-product .summary div {
  color:#f8fafc !important;
}

html.dark-skin .single-product .summary a,
body.dark-skin .single-product .summary a,
html[class*="dark"] body.single-product .summary a,
body[class*="dark"].single-product .summary a {
  color:#93c5fd !important;
}

html.dark-skin .single-product .summary .wcpt-eta,
html.dark-skin .single-product .summary .wcpt-eta *,
html.dark-skin .single-product .summary [class*="wcpt-"],
html.dark-skin .single-product .summary [class*="wcpt-"] *,
body.dark-skin .single-product .summary .wcpt-eta,
body.dark-skin .single-product .summary .wcpt-eta *,
body.dark-skin .single-product .summary [class*="wcpt-"],
body.dark-skin .single-product .summary [class*="wcpt-"] *,
html[class*="dark"] body.single-product .summary .wcpt-eta,
html[class*="dark"] body.single-product .summary .wcpt-eta *,
html[class*="dark"] body.single-product .summary [class*="wcpt-"],
html[class*="dark"] body.single-product .summary [class*="wcpt-"] *,
body[class*="dark"].single-product .summary .wcpt-eta,
body[class*="dark"].single-product .summary .wcpt-eta *,
body[class*="dark"].single-product .summary [class*="wcpt-"],
body[class*="dark"].single-product .summary [class*="wcpt-"] * {
  color:#f8fafc !important;
}

html.dark-skin .single-product .summary .wcpt-eta,
body.dark-skin .single-product .summary .wcpt-eta,
html[class*="dark"] body.single-product .summary .wcpt-eta,
body[class*="dark"].single-product .summary .wcpt-eta {
  background:#111827 !important;
  border-color:rgba(148,163,184,.45) !important;
  box-shadow:none !important;
}

html.dark-skin .single-product .summary .woocommerce-product-details__short-description,
html.dark-skin .single-product .summary .woocommerce-product-details__short-description > .wcpt-desc-card,
body.dark-skin .single-product .summary .woocommerce-product-details__short-description,
body.dark-skin .single-product .summary .woocommerce-product-details__short-description > .wcpt-desc-card,
html[class*="dark"] body.single-product .summary .woocommerce-product-details__short-description,
html[class*="dark"] body.single-product .summary .woocommerce-product-details__short-description > .wcpt-desc-card,
body[class*="dark"].single-product .summary .woocommerce-product-details__short-description,
body[class*="dark"].single-product .summary .woocommerce-product-details__short-description > .wcpt-desc-card {
  background:#111827 !important;
  color:#f8fafc !important;
  border-color:rgba(148,163,184,.40) !important;
}

/* ---------- Modern Tables: first column/header readability ---------- */
html.dark-skin table.mtable,
body.dark-skin table.mtable,
html[class*="dark"] body table.mtable,
body[class*="dark"] table.mtable {
  background:#0f172a !important;
  color:#f8fafc !important;
  border-color:rgba(148,163,184,.44) !important;
}

html.dark-skin table.mtable caption,
body.dark-skin table.mtable caption,
html[class*="dark"] body table.mtable caption,
body[class*="dark"] table.mtable caption {
  background:#111827 !important;
  color:#f8fafc !important;
  border-color:rgba(148,163,184,.44) !important;
}

html.dark-skin table.mtable thead th,
html.dark-skin table.mtable tbody th,
html.dark-skin table.mtable td,
html.dark-skin table.mtable td *,
html.dark-skin table.mtable th *,
body.dark-skin table.mtable thead th,
body.dark-skin table.mtable tbody th,
body.dark-skin table.mtable td,
body.dark-skin table.mtable td *,
body.dark-skin table.mtable th *,
html[class*="dark"] body table.mtable thead th,
html[class*="dark"] body table.mtable tbody th,
html[class*="dark"] body table.mtable td,
html[class*="dark"] body table.mtable td *,
html[class*="dark"] body table.mtable th *,
body[class*="dark"] table.mtable thead th,
body[class*="dark"] table.mtable tbody th,
body[class*="dark"] table.mtable td,
body[class*="dark"] table.mtable td *,
body[class*="dark"] table.mtable th * {
  color:#f8fafc !important;
  text-shadow:none !important;
}

html.dark-skin table.mtable thead th,
html.dark-skin table.mtable tbody th,
body.dark-skin table.mtable thead th,
body.dark-skin table.mtable tbody th,
html[class*="dark"] body table.mtable thead th,
html[class*="dark"] body table.mtable tbody th,
body[class*="dark"] table.mtable thead th,
body[class*="dark"] table.mtable tbody th {
  background:#182235 !important;
  border-color:rgba(148,163,184,.44) !important;
}

html.dark-skin table.mtable tr > th:first-child,
html.dark-skin table.mtable tr > td:first-child,
html.dark-skin table.mtable tr > th:first-child *,
html.dark-skin table.mtable tr > td:first-child *,
body.dark-skin table.mtable tr > th:first-child,
body.dark-skin table.mtable tr > td:first-child,
body.dark-skin table.mtable tr > th:first-child *,
body.dark-skin table.mtable tr > td:first-child *,
html[class*="dark"] body table.mtable tr > th:first-child,
html[class*="dark"] body table.mtable tr > td:first-child,
html[class*="dark"] body table.mtable tr > th:first-child *,
html[class*="dark"] body table.mtable tr > td:first-child *,
body[class*="dark"] table.mtable tr > th:first-child,
body[class*="dark"] table.mtable tr > td:first-child,
body[class*="dark"] table.mtable tr > th:first-child *,
body[class*="dark"] table.mtable tr > td:first-child * {
  background:#f8fafc !important;
  color:#111827 !important;
  opacity:1 !important;
  -webkit-text-fill-color:#111827 !important;
  text-shadow:none !important;
}

html.dark-skin table.mtable tbody tr:nth-child(odd),
body.dark-skin table.mtable tbody tr:nth-child(odd),
html[class*="dark"] body table.mtable tbody tr:nth-child(odd),
body[class*="dark"] table.mtable tbody tr:nth-child(odd) {
  background:#111827 !important;
}

html.dark-skin table.mtable tbody tr:nth-child(even),
body.dark-skin table.mtable tbody tr:nth-child(even),
html[class*="dark"] body table.mtable tbody tr:nth-child(even),
body[class*="dark"] table.mtable tbody tr:nth-child(even) {
  background:#0f172a !important;
}

html.dark-skin table.mtable td,
html.dark-skin table.mtable th,
body.dark-skin table.mtable td,
body.dark-skin table.mtable th,
html[class*="dark"] body table.mtable td,
html[class*="dark"] body table.mtable th,
body[class*="dark"] table.mtable td,
body[class*="dark"] table.mtable th {
  border-color:rgba(148,163,184,.44) !important;
}

/* Mobile table card/scroll mode */
@media (max-width:900px){
  html.dark-skin .mtable-container,
  body.dark-skin .mtable-container,
  html[class*="dark"] body .mtable-container,
  body[class*="dark"] .mtable-container{
    background:#0f172a !important;
    color:#f8fafc !important;
  }

  html.dark-skin table.mtable td::before,
  body.dark-skin table.mtable td::before,
  html[class*="dark"] body table.mtable td::before,
  body[class*="dark"] table.mtable td::before{
    color:#111827 !important;
    background:#f8fafc !important;
    opacity:1 !important;
  }
}
