/**
 * Full-page dark mode — covers Fana/Elementor/Woo white shells.
 * Header green + blue brand bars stay; cream/white chrome is replaced.
 */

html[data-autx-theme="dark"] {
  color-scheme: dark;
  background-color: #0f172a !important;
}

html[data-autx-theme="dark"] body,
html[data-autx-theme="dark"] body.autx-site,
html[data-autx-theme="dark"] body.autx-site.home,
html[data-autx-theme="dark"] body.woocommerce,
html[data-autx-theme="dark"] body.autx-site #page,
html[data-autx-theme="dark"] body.autx-site #wrapper-container,
html[data-autx-theme="dark"] body.autx-site .mm-page,
html[data-autx-theme="dark"] body.autx-site .wrapper,
html[data-autx-theme="dark"] body.autx-site #wrapper,
html[data-autx-theme="dark"] body.autx-site #main-container,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content,
html[data-autx-theme="dark"] body.autx-site #main-content,
html[data-autx-theme="dark"] body.autx-site #content,
html[data-autx-theme="dark"] body.autx-site #main,
html[data-autx-theme="dark"] body.autx-site .site,
html[data-autx-theme="dark"] body.autx-site .site-content,
html[data-autx-theme="dark"] body.autx-site .content-area,
html[data-autx-theme="dark"] body.autx-site .site-main,
html[data-autx-theme="dark"] body.autx-site .main-page,
html[data-autx-theme="dark"] body.autx-site .entry-content,
html[data-autx-theme="dark"] body.autx-site .post-content,
html[data-autx-theme="dark"] body.autx-site .tbay-homepage,
html[data-autx-theme="dark"] body.autx-site .home-page,
html[data-autx-theme="dark"] body.autx-site .container-content,
html[data-autx-theme="dark"] body.autx-native-page #autx-native-main,
html[data-autx-theme="dark"] body.autx-native-page .autx-page {
  background-color: #0f172a !important;
  background-image: none !important;
  color: #f8fafc !important;
}

html[data-autx-theme="dark"] body.autx-site,
html[data-autx-theme="dark"] html {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Elementor canvas inside main — kill leftover #fff sections */
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .elementor,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .elementor-section,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .elementor-inner-section,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .elementor-container,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .elementor-column,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .elementor-widget-wrap,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .elementor-element-populated,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .elementor-widget-container,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .elementor-background-overlay,
html[data-autx-theme="dark"] body.autx-site .elementor-location-archive,
html[data-autx-theme="dark"] body.autx-site .elementor-location-single {
  background-color: #0f172a !important;
}

/* Cream logo/search bar becomes dark so no light band sits between green + blue */
html[data-autx-theme="dark"] header#tbay-header .elementor-element-711712e,
html[data-autx-theme="dark"] header#tbay-header .elementor-element-711712e > .elementor-container,
html[data-autx-theme="dark"] header#tbay-header .elementor-element-711712e .elementor-column,
html[data-autx-theme="dark"] header#tbay-header .elementor-element-711712e .elementor-widget-wrap {
  background-color: #0f172a !important;
  background-image: none !important;
}

html[data-autx-theme="dark"] header#tbay-header .tbay-search-form .input-group,
html[data-autx-theme="dark"] header#tbay-header .tbay-search-form input.tbay-search,
html[data-autx-theme="dark"] header#tbay-header .tbay-search-form .select-category,
html[data-autx-theme="dark"] header#tbay-header .SumoSelect > .CaptionCont {
  background-color: #121212 !important;
  background-image: none !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

html[data-autx-theme="dark"] header#tbay-header .elementor-element-711712e,
html[data-autx-theme="dark"] header#tbay-header .elementor-element-711712e p,
html[data-autx-theme="dark"] header#tbay-header .elementor-element-711712e h3,
html[data-autx-theme="dark"] header#tbay-header .elementor-element-711712e a,
html[data-autx-theme="dark"] header#tbay-header .elementor-element-711712e span,
html[data-autx-theme="dark"] header#tbay-header .elementor-element-711712e .elementor-icon-box-title,
html[data-autx-theme="dark"] header#tbay-header .elementor-element-711712e .elementor-icon-box-description {
  color: #f8fafc !important;
}

/* Cards / product rails that Fana paints white */
html[data-autx-theme="dark"] body.autx-site ul.products,
html[data-autx-theme="dark"] body.autx-site ul.products li.product,
html[data-autx-theme="dark"] body.autx-site .product-block,
html[data-autx-theme="dark"] body.autx-site .product-wrapper,
html[data-autx-theme="dark"] body.autx-site .products-grid,
html[data-autx-theme="dark"] body.autx-site .owl-carousel,
html[data-autx-theme="dark"] body.autx-site .owl-carousel .item,
html[data-autx-theme="dark"] body.autx-site .slick-slider,
html[data-autx-theme="dark"] body.autx-site .slick-slide,
html[data-autx-theme="dark"] body.autx-site .tbay-element-products,
html[data-autx-theme="dark"] body.autx-site .tbay-element-products .item,
html[data-autx-theme="dark"] body.autx-site .woocommerce div.product,
html[data-autx-theme="dark"] body.autx-site .woocommerce-Tabs-panel,
html[data-autx-theme="dark"] body.autx-site .related.products,
html[data-autx-theme="dark"] body.autx-site .upsells.products,
html[data-autx-theme="dark"] body.autx-site .widget,
html[data-autx-theme="dark"] body.autx-site .sidebar,
html[data-autx-theme="dark"] body.autx-site .widget-area,
html[data-autx-theme="dark"] body.autx-site .autx-plan,
html[data-autx-theme="dark"] body.autx-site .autx-plans,
html[data-autx-theme="dark"] body.autx-site [data-autx-pricing-root] {
  background-color: #121212 !important;
  background-image: none !important;
  color: #e2e8f0 !important;
  border-color: #1f2937 !important;
}

html[data-autx-theme="dark"] body.autx-site .product-block,
html[data-autx-theme="dark"] body.autx-site ul.products li.product,
html[data-autx-theme="dark"] body.autx-site .autx-plan {
  background-color: #121212 !important;
  box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.55);
}

/* High-contrast type on dark surfaces */
html[data-autx-theme="dark"] body.autx-site #tbay-main-content,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content h1,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content h2,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content h3,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content h4,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content h5,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content h6,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .elementor-heading-title,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .heading-tbay-title,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .title,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content p,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content li,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content span,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content label,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content td,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content th,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .elementor-widget-text-editor,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .elementor-icon-box-title,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .elementor-icon-box-description,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .woocommerce-loop-product__title,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .name,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .product-block .name a,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .product-block .caption,
html[data-autx-theme="dark"] body.autx-native-page .autx-page,
html[data-autx-theme="dark"] body.autx-native-page .autx-page h1,
html[data-autx-theme="dark"] body.autx-native-page .autx-page h2,
html[data-autx-theme="dark"] body.autx-native-page .autx-page p {
  color: #f8fafc !important;
}

html[data-autx-theme="dark"] body.autx-site #tbay-main-content a,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .elementor-icon-list-text,
html[data-autx-theme="dark"] body.autx-native-page .autx-page a {
  color: #e2e8f0 !important;
}

html[data-autx-theme="dark"] body.autx-site #tbay-main-content a:hover,
html[data-autx-theme="dark"] body.autx-native-page .autx-page a:hover {
  color: #38c7db !important;
}

html[data-autx-theme="dark"] body.autx-site #tbay-main-content .price,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .price ins,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .woocommerce-Price-amount {
  color: #f8fafc !important;
}

html[data-autx-theme="dark"] body.autx-site #tbay-main-content .elementor-icon,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content i {
  color: #e2e8f0;
}

/* Forms on shop / checkout */
html[data-autx-theme="dark"] body.autx-site input,
html[data-autx-theme="dark"] body.autx-site select,
html[data-autx-theme="dark"] body.autx-site textarea,
html[data-autx-theme="dark"] body.autx-site .form-control {
  background-color: #121212 !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

html[data-autx-theme="dark"] body.autx-site header#tbay-header .button-search {
  color: #fff !important;
}

/* Keep brand header bars (green + blue) — they are not white patches */
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .autx-hero-cta,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .autx-hero-cta .title,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .autx-hero-cta .subtitle,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .autx-hero-cta .banner-description {
  color: #ffffff !important;
}

html[data-autx-theme="dark"] body.autx-site #tbay-main-content .autx-hero-cta .banner-description span,
html[data-autx-theme="dark"] body.autx-site #tbay-main-content .banner-description span {
  color: #86bc3c !important;
}

html[data-autx-theme="dark"] body.autx-site #tbay-main-content .autx-hero-cta.wrapper-content-banner {
  background: #10101075 !important;
}

html[data-autx-theme="dark"] footer#tbay-footer,
html[data-autx-theme="dark"] footer#tbay-footer * {
  background-image: none;
}
