/*
 * Final visual-mode harmonizer.
 * Scope: only Midnight Blue / Light mode color consistency for WooCommerce,
 * account, order-view, checkout/cart, single-product inner fields, related
 * products, reviews, and stubborn plugin surfaces inside the theme shell.
 * Layout, product behavior, sidebar behavior and responsive sizing are not
 * changed here.
 */

html.gnsc-shop-mode-current body.gnsc-global-sidebar-enabled,
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-current {
  --gnsc-mode-page: #08111f;
  --gnsc-mode-surface: rgba(10, 25, 51, 0.96);
  --gnsc-mode-surface-2: rgba(7, 18, 39, 0.985);
  --gnsc-mode-surface-3: rgba(13, 35, 70, 0.92);
  --gnsc-mode-text: #eef5ff;
  --gnsc-mode-heading: #ffffff;
  --gnsc-mode-muted: rgba(219, 232, 255, 0.76);
  --gnsc-mode-border: rgba(111, 163, 255, 0.18);
  --gnsc-mode-border-strong: rgba(95, 172, 255, 0.30);
  --gnsc-mode-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  --gnsc-mode-shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.22);
  --gnsc-mode-input: rgba(5, 17, 38, 0.96);
  --gnsc-mode-input-alt: rgba(10, 27, 57, 0.96);
  color-scheme: dark;
}

html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled,
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light {
  --gnsc-mode-page: #edf4ff;
  --gnsc-mode-surface: rgba(255, 255, 255, 0.985);
  --gnsc-mode-surface-2: rgba(247, 250, 255, 0.985);
  --gnsc-mode-surface-3: rgba(239, 246, 255, 0.96);
  --gnsc-mode-text: #10213f;
  --gnsc-mode-heading: #071a36;
  --gnsc-mode-muted: #526a92;
  --gnsc-mode-border: rgba(84, 111, 166, 0.18);
  --gnsc-mode-border-strong: rgba(65, 105, 190, 0.28);
  --gnsc-mode-shadow: 0 18px 42px rgba(20, 42, 86, 0.10);
  --gnsc-mode-shadow-soft: 0 12px 26px rgba(20, 42, 86, 0.075);
  --gnsc-mode-input: #ffffff;
  --gnsc-mode-input-alt: #f4f8ff;
  --gnsc-mode-focus: 0 0 0 3px rgba(59, 130, 246, 0.14);
  color-scheme: light;
}

html.gnsc-shop-mode-current body.gnsc-global-sidebar-enabled,
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-current,
html.gnsc-shop-mode-current body.gnsc-global-sidebar-enabled .site-main,
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-current .site-main {
  background:
    radial-gradient(1200px 620px at 14% 0%, rgba(59, 130, 246, 0.22), transparent 62%),
    radial-gradient(980px 560px at 96% 16%, rgba(34, 197, 94, 0.12), transparent 58%),
    linear-gradient(180deg, #0a1324 0%, #081120 54%, #06101d 100%) !important;
  color: var(--gnsc-mode-text) !important;
}

html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled,
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light,
html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled .site-main,
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light .site-main {
  background:
    radial-gradient(1200px 620px at 14% 0%, rgba(37, 99, 235, 0.10), transparent 62%),
    radial-gradient(980px 560px at 96% 16%, rgba(56, 189, 248, 0.075), transparent 58%),
    linear-gradient(180deg, #f8fbff 0%, #edf4ff 54%, #e8f1ff 100%) !important;
  color: var(--gnsc-mode-text) !important;
}

html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled *,
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light * {
  color-scheme: light;
}

html.gnsc-shop-mode-current body.gnsc-global-sidebar-enabled *,
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-current * {
  color-scheme: dark;
}

/* Common shell surfaces. */
html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled :where(.site-header, .site-footer__inner),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light :where(.site-header, .site-footer__inner) {
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--gnsc-mode-text) !important;
  border-color: var(--gnsc-mode-border) !important;
  box-shadow: 0 12px 30px rgba(20, 42, 86, 0.08) !important;
}

html.gnsc-shop-mode-current body.gnsc-global-sidebar-enabled :where(.site-header, .site-footer__inner),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-current :where(.site-header, .site-footer__inner) {
  background: rgba(8, 18, 35, 0.94) !important;
  color: var(--gnsc-mode-text) !important;
  border-color: var(--gnsc-mode-border) !important;
}

html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled :where(.site-title a, .entry-title, .page-title, .archive-title, .search-title, .widget-title, .woocommerce h1, .woocommerce h2, .woocommerce h3),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light :where(.site-title a, .entry-title, .page-title, .archive-title, .search-title, .widget-title, .woocommerce h1, .woocommerce h2, .woocommerce h3) {
  color: var(--gnsc-mode-heading) !important;
}

html.gnsc-shop-mode-current body.gnsc-global-sidebar-enabled :where(.site-title a, .entry-title, .page-title, .archive-title, .search-title, .widget-title, .woocommerce h1, .woocommerce h2, .woocommerce h3),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-current :where(.site-title a, .entry-title, .page-title, .archive-title, .search-title, .widget-title, .woocommerce h1, .woocommerce h2, .woocommerce h3) {
  color: var(--gnsc-mode-heading) !important;
}

/* Inputs and form controls: remove dark leftovers in Light mode without touching layout. */
html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled :where(input:not([type="submit"]):not([type="button"]):not([type="reset"]), textarea, select, .input-text, .search-field),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light :where(input:not([type="submit"]):not([type="button"]):not([type="reset"]), textarea, select, .input-text, .search-field) {
  background: var(--gnsc-mode-input) !important;
  color: var(--gnsc-mode-text) !important;
  border-color: rgba(84, 111, 166, 0.24) !important;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.035) !important;
}

html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled :where(input:not([type="submit"]):not([type="button"]):not([type="reset"]), textarea, select, .input-text, .search-field)::placeholder,
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light :where(input:not([type="submit"]):not([type="button"]):not([type="reset"]), textarea, select, .input-text, .search-field)::placeholder {
  color: #7e8faa !important;
}

html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled :where(input:not([type="submit"]):not([type="button"]):not([type="reset"]), textarea, select, .input-text, .search-field):focus,
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light :where(input:not([type="submit"]):not([type="button"]):not([type="reset"]), textarea, select, .input-text, .search-field):focus {
  border-color: rgba(47, 111, 245, 0.48) !important;
  box-shadow: var(--gnsc-mode-focus), inset 0 1px 0 rgba(15, 23, 42, 0.035) !important;
  outline: 0 !important;
}

/* My Account, order pages, address pages and service-access plugin blocks. */
html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled.woocommerce-account :where(.woocommerce, .woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content, .woocommerce-Address, .woocommerce-Address-title, .addresses, .addresses .title, address, .u-columns, .u-column1, .u-column2, .col-1, .col-2, .woocommerce-address-fields, .woocommerce-address-fields__field-wrapper, .edit-address, form.woocommerce-EditAccountForm, form.edit-account),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light.woocommerce-account :where(.woocommerce, .woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content, .woocommerce-Address, .woocommerce-Address-title, .addresses, .addresses .title, address, .u-columns, .u-column1, .u-column2, .col-1, .col-2, .woocommerce-address-fields, .woocommerce-address-fields__field-wrapper, .edit-address, form.woocommerce-EditAccountForm, form.edit-account),
html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled :where(.gnsc-orders-shell__inner, .gnsc-view-order-hero, .woocommerce-order-details, .woocommerce-customer-details, .woocommerce-order-downloads, .woocommerce-order-overview li),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light :where(.gnsc-orders-shell__inner, .gnsc-view-order-hero, .woocommerce-order-details, .woocommerce-customer-details, .woocommerce-order-downloads, .woocommerce-order-overview li) {
  background: linear-gradient(180deg, var(--gnsc-mode-surface), var(--gnsc-mode-surface-2)) !important;
  color: var(--gnsc-mode-text) !important;
  border-color: var(--gnsc-mode-border) !important;
  box-shadow: var(--gnsc-mode-shadow-soft) !important;
}

html.gnsc-shop-mode-current body.gnsc-global-sidebar-enabled.woocommerce-account :where(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content, .woocommerce-Address, .woocommerce-Address-title, .addresses, .addresses .title, address, .u-columns, .u-column1, .u-column2, .col-1, .col-2, .woocommerce-address-fields, .woocommerce-address-fields__field-wrapper, .edit-address, form.woocommerce-EditAccountForm, form.edit-account),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-current.woocommerce-account :where(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content, .woocommerce-Address, .woocommerce-Address-title, .addresses, .addresses .title, address, .u-columns, .u-column1, .u-column2, .col-1, .col-2, .woocommerce-address-fields, .woocommerce-address-fields__field-wrapper, .edit-address, form.woocommerce-EditAccountForm, form.edit-account),
html.gnsc-shop-mode-current body.gnsc-global-sidebar-enabled :where(.gnsc-orders-shell__inner, .gnsc-view-order-hero, .woocommerce-order-details, .woocommerce-customer-details, .woocommerce-order-downloads, .woocommerce-order-overview li),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-current :where(.gnsc-orders-shell__inner, .gnsc-view-order-hero, .woocommerce-order-details, .woocommerce-customer-details, .woocommerce-order-downloads, .woocommerce-order-overview li) {
  background: linear-gradient(180deg, var(--gnsc-mode-surface), var(--gnsc-mode-surface-2)) !important;
  color: var(--gnsc-mode-text) !important;
  border-color: var(--gnsc-mode-border) !important;
  box-shadow: var(--gnsc-mode-shadow-soft) !important;
}

html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled.woocommerce-account :where(.woocommerce-MyAccount-content, .woocommerce-MyAccount-navigation, .woocommerce-Address, .edit-address, .woocommerce-address-fields) :where(h1,h2,h3,h4,h5,h6,strong,b,label),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light.woocommerce-account :where(.woocommerce-MyAccount-content, .woocommerce-MyAccount-navigation, .woocommerce-Address, .edit-address, .woocommerce-address-fields) :where(h1,h2,h3,h4,h5,h6,strong,b,label),
html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled.gnsc-view-order-endpoint .woocommerce-MyAccount-content :where(h1,h2,h3,h4,h5,h6,strong,b,label),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light.gnsc-view-order-endpoint .woocommerce-MyAccount-content :where(h1,h2,h3,h4,h5,h6,strong,b,label) {
  color: var(--gnsc-mode-heading) !important;
}

html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled.woocommerce-account :where(.woocommerce-MyAccount-content, .woocommerce-MyAccount-navigation, .woocommerce-Address, .edit-address, .woocommerce-address-fields) :where(p,span,li,small,em,a,td,th,address),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light.woocommerce-account :where(.woocommerce-MyAccount-content, .woocommerce-MyAccount-navigation, .woocommerce-Address, .edit-address, .woocommerce-address-fields) :where(p,span,li,small,em,a,td,th,address),
html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled.gnsc-view-order-endpoint .woocommerce-MyAccount-content :where(p,span,li,small,em,a,td,th,address),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light.gnsc-view-order-endpoint .woocommerce-MyAccount-content :where(p,span,li,small,em,a,td,th,address) {
  color: var(--gnsc-mode-text) !important;
}

html.gnsc-shop-mode-current body.gnsc-global-sidebar-enabled.woocommerce-account :where(.woocommerce-MyAccount-content, .woocommerce-MyAccount-navigation, .woocommerce-Address, .edit-address, .woocommerce-address-fields) :where(h1,h2,h3,h4,h5,h6,strong,b,label),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-current.woocommerce-account :where(.woocommerce-MyAccount-content, .woocommerce-MyAccount-navigation, .woocommerce-Address, .edit-address, .woocommerce-address-fields) :where(h1,h2,h3,h4,h5,h6,strong,b,label) {
  color: var(--gnsc-mode-heading) !important;
}

html.gnsc-shop-mode-current body.gnsc-global-sidebar-enabled.woocommerce-account :where(.woocommerce-MyAccount-content, .woocommerce-MyAccount-navigation, .woocommerce-Address, .edit-address, .woocommerce-address-fields) :where(p,span,li,small,em,a,td,th,address),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-current.woocommerce-account :where(.woocommerce-MyAccount-content, .woocommerce-MyAccount-navigation, .woocommerce-Address, .edit-address, .woocommerce-address-fields) :where(p,span,li,small,em,a,td,th,address) {
  color: var(--gnsc-mode-muted) !important;
}

/* Woo order status badges. */
html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled :where(mark.order-status, .order-status, .woocommerce-orders-table__cell-order-status mark, .woocommerce-orders-table__cell-order-status span, .status-completed, .wc-completed),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light :where(mark.order-status, .order-status, .woocommerce-orders-table__cell-order-status mark, .woocommerce-orders-table__cell-order-status span, .status-completed, .wc-completed) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #dcfce7, #bbf7d0) !important;
  color: #14532d !important;
  border: 1px solid rgba(22, 101, 52, 0.18) !important;
  box-shadow: 0 10px 18px rgba(22, 163, 74, 0.12) !important;
  font-weight: 800 !important;
}

html.gnsc-shop-mode-current body.gnsc-global-sidebar-enabled :where(mark.order-status, .order-status, .woocommerce-orders-table__cell-order-status mark, .woocommerce-orders-table__cell-order-status span, .status-completed, .wc-completed),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-current :where(mark.order-status, .order-status, .woocommerce-orders-table__cell-order-status mark, .woocommerce-orders-table__cell-order-status span, .status-completed, .wc-completed) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  background: rgba(34, 197, 94, 0.15) !important;
  color: #86efac !important;
  border: 1px solid rgba(134, 239, 172, 0.20) !important;
  font-weight: 800 !important;
}

/* Tables stay readable in both modes. */
html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled :where(table.shop_table, table.woocommerce-table, table.woocommerce-MyAccount-orders),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light :where(table.shop_table, table.woocommerce-table, table.woocommerce-MyAccount-orders) {
  background: rgba(255, 255, 255, 0.985) !important;
  color: var(--gnsc-mode-text) !important;
  border-color: var(--gnsc-mode-border) !important;
}

html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled :where(table.shop_table thead th, table.woocommerce-table thead th, table.woocommerce-MyAccount-orders thead th),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light :where(table.shop_table thead th, table.woocommerce-table thead th, table.woocommerce-MyAccount-orders thead th) {
  background: linear-gradient(180deg, #eaf2ff, #dfeaff) !important;
  color: #12305f !important;
  border-color: rgba(67, 97, 152, 0.16) !important;
}

html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled :where(table.shop_table td, table.shop_table th, table.woocommerce-table td, table.woocommerce-table th, table.woocommerce-MyAccount-orders td, table.woocommerce-MyAccount-orders th),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light :where(table.shop_table td, table.shop_table th, table.woocommerce-table td, table.woocommerce-table th, table.woocommerce-MyAccount-orders td, table.woocommerce-MyAccount-orders th) {
  color: var(--gnsc-mode-text) !important;
  border-color: rgba(67, 97, 152, 0.13) !important;
}

/* Single product: only color harmonization for fields/sections that were visually inconsistent. */
html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled.single-product :where(.gnsc-spx-card, .gnsc-spx-media, .gnsc-spx-summary-card, .gnsc-spx-summary, .gnsc-spx-short, .woocommerce-product-details__short-description, .gnsc-spx-purchase, .gnsc-spx-field, .gnsc-spx-package-field, .gnsc-spx-price, form.cart, .variations_form, table.variations, .single_variation_wrap, .gnsc-single-below, .gnsc-single-section, .gnsc-single-section__content, .woocommerce-tabs, .woocommerce-Tabs-panel, .woocommerce-Reviews, .comment-respond, #review_form_wrapper, #review_form, .related.products, .up-sells, .cross-sells),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light.single-product :where(.gnsc-spx-card, .gnsc-spx-media, .gnsc-spx-summary-card, .gnsc-spx-summary, .gnsc-spx-short, .woocommerce-product-details__short-description, .gnsc-spx-purchase, .gnsc-spx-field, .gnsc-spx-package-field, .gnsc-spx-price, form.cart, .variations_form, table.variations, .single_variation_wrap, .gnsc-single-below, .gnsc-single-section, .gnsc-single-section__content, .woocommerce-tabs, .woocommerce-Tabs-panel, .woocommerce-Reviews, .comment-respond, #review_form_wrapper, #review_form, .related.products, .up-sells, .cross-sells) {
  background: linear-gradient(180deg, var(--gnsc-mode-surface), var(--gnsc-mode-surface-2)) !important;
  color: var(--gnsc-mode-text) !important;
  border-color: var(--gnsc-mode-border) !important;
  box-shadow: var(--gnsc-mode-shadow-soft) !important;
}

html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled.single-product :where(.gnsc-spx-price, .gnsc-spx-purchase .gnsc-spx-price, .gnsc-spx-field input, .gnsc-spx-field select, .gnsc-spx-field textarea, .gnsc-spx-package-field select, form.cart input:not([type="submit"]), form.cart select, form.cart textarea, .qty, textarea#comment, #comment),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light.single-product :where(.gnsc-spx-price, .gnsc-spx-purchase .gnsc-spx-price, .gnsc-spx-field input, .gnsc-spx-field select, .gnsc-spx-field textarea, .gnsc-spx-package-field select, form.cart input:not([type="submit"]), form.cart select, form.cart textarea, .qty, textarea#comment, #comment) {
  background: #ffffff !important;
  color: var(--gnsc-mode-text) !important;
  border-color: rgba(84, 111, 166, 0.24) !important;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.035) !important;
}

html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled.single-product :where(.gnsc-spx-short, .woocommerce-product-details__short-description, .gnsc-single-section, .woocommerce-Reviews, .comment-respond, .related.products, .up-sells, .cross-sells) :where(h1,h2,h3,h4,h5,h6,strong,b,label, .price, .amount, bdi),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light.single-product :where(.gnsc-spx-short, .woocommerce-product-details__short-description, .gnsc-single-section, .woocommerce-Reviews, .comment-respond, .related.products, .up-sells, .cross-sells) :where(h1,h2,h3,h4,h5,h6,strong,b,label, .price, .amount, bdi) {
  color: var(--gnsc-mode-heading) !important;
}

html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled.single-product :where(.gnsc-spx-short, .woocommerce-product-details__short-description, .gnsc-single-section, .woocommerce-Reviews, .comment-respond, .related.products, .up-sells, .cross-sells) :where(p,span,li,small,em,a,td,th),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light.single-product :where(.gnsc-spx-short, .woocommerce-product-details__short-description, .gnsc-single-section, .woocommerce-Reviews, .comment-respond, .related.products, .up-sells, .cross-sells) :where(p,span,li,small,em,a,td,th) {
  color: var(--gnsc-mode-text) !important;
}

html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled.single-product :where(.related.products ul.products, .gnsc-single-section--related ul.products, .up-sells ul.products, .cross-sells ul.products),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light.single-product :where(.related.products ul.products, .gnsc-single-section--related ul.products, .up-sells ul.products, .cross-sells ul.products) {
  background: linear-gradient(180deg, #eef5ff, #e7f0ff) !important;
  border-color: rgba(67, 97, 152, 0.16) !important;
  box-shadow: 0 16px 36px rgba(20, 42, 86, 0.10) !important;
}

html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled.single-product :where(.related.products ul.products li.product, .gnsc-single-section--related ul.products li.product, .up-sells ul.products li.product, .cross-sells ul.products li.product),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light.single-product :where(.related.products ul.products li.product, .gnsc-single-section--related ul.products li.product, .up-sells ul.products li.product, .cross-sells ul.products li.product) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 250, 255, 0.99)) !important;
  color: var(--gnsc-mode-text) !important;
  border-color: var(--gnsc-mode-border) !important;
  box-shadow: 0 14px 30px rgba(20, 42, 86, 0.09) !important;
}

/* Checkout and cart blocks: remove old dark panels when Light mode is active. */
html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled :where(.woocommerce-cart-form, .cart-collaterals, .cart_totals, .woocommerce-checkout-review-order, .gnsc-checkout-order-card, #customer_details, #order_review, #payment, .woocommerce-checkout-payment, .woocommerce-billing-fields, .woocommerce-shipping-fields, .gnsc-checkout-total-highlight),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light :where(.woocommerce-cart-form, .cart-collaterals, .cart_totals, .woocommerce-checkout-review-order, .gnsc-checkout-order-card, #customer_details, #order_review, #payment, .woocommerce-checkout-payment, .woocommerce-billing-fields, .woocommerce-shipping-fields, .gnsc-checkout-total-highlight) {
  background: linear-gradient(180deg, var(--gnsc-mode-surface), var(--gnsc-mode-surface-2)) !important;
  color: var(--gnsc-mode-text) !important;
  border-color: var(--gnsc-mode-border) !important;
  box-shadow: var(--gnsc-mode-shadow-soft) !important;
}

html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled :where(.gnsc-checkout-total-highlight__label, .gnsc-checkout-total-highlight__value, .gnsc-checkout-order-card h2, .gnsc-checkout-order-card h3, #payment label, .woocommerce-checkout-payment label),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light :where(.gnsc-checkout-total-highlight__label, .gnsc-checkout-total-highlight__value, .gnsc-checkout-order-card h2, .gnsc-checkout-order-card h3, #payment label, .woocommerce-checkout-payment label) {
  color: var(--gnsc-mode-heading) !important;
}

/* Stubborn plugin/dashboard panels inside content areas. */
html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled :where(.page-shell .entry-content, .woocommerce-MyAccount-content) :where([class*="dashboard"], [class*="Dashboard"], [class*="card"], [class*="Card"], [class*="panel"], [class*="Panel"], [class*="box"], [class*="Box"], [class*="tile"], [class*="Tile"], [class*="credential"], [class*="Credential"], [class*="service-access"], [class*="ServiceAccess"], [class*="order-access"], [class*="OrderAccess"], [class*="access-card"], [class*="AccessCard"]):not(.button):not(a):not(button):not(input):not(textarea):not(select),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light :where(.page-shell .entry-content, .woocommerce-MyAccount-content) :where([class*="dashboard"], [class*="Dashboard"], [class*="card"], [class*="Card"], [class*="panel"], [class*="Panel"], [class*="box"], [class*="Box"], [class*="tile"], [class*="Tile"], [class*="credential"], [class*="Credential"], [class*="service-access"], [class*="ServiceAccess"], [class*="order-access"], [class*="OrderAccess"], [class*="access-card"], [class*="AccessCard"]):not(.button):not(a):not(button):not(input):not(textarea):not(select) {
  background: linear-gradient(180deg, var(--gnsc-mode-surface), var(--gnsc-mode-surface-2)) !important;
  color: var(--gnsc-mode-text) !important;
  border-color: var(--gnsc-mode-border) !important;
  box-shadow: var(--gnsc-mode-shadow-soft) !important;
}

html.gnsc-shop-mode-current body.gnsc-global-sidebar-enabled :where(.page-shell .entry-content, .woocommerce-MyAccount-content) :where([class*="dashboard"], [class*="Dashboard"], [class*="card"], [class*="Card"], [class*="panel"], [class*="Panel"], [class*="box"], [class*="Box"], [class*="tile"], [class*="Tile"], [class*="credential"], [class*="Credential"], [class*="service-access"], [class*="ServiceAccess"], [class*="order-access"], [class*="OrderAccess"], [class*="access-card"], [class*="AccessCard"]):not(.button):not(a):not(button):not(input):not(textarea):not(select),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-current :where(.page-shell .entry-content, .woocommerce-MyAccount-content) :where([class*="dashboard"], [class*="Dashboard"], [class*="card"], [class*="Card"], [class*="panel"], [class*="Panel"], [class*="box"], [class*="Box"], [class*="tile"], [class*="Tile"], [class*="credential"], [class*="Credential"], [class*="service-access"], [class*="ServiceAccess"], [class*="order-access"], [class*="OrderAccess"], [class*="access-card"], [class*="AccessCard"]):not(.button):not(a):not(button):not(input):not(textarea):not(select) {
  background: linear-gradient(180deg, var(--gnsc-mode-surface), var(--gnsc-mode-surface-2)) !important;
  color: var(--gnsc-mode-text) !important;
  border-color: var(--gnsc-mode-border) !important;
  box-shadow: var(--gnsc-mode-shadow-soft) !important;
}

html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled :where(.page-shell .entry-content, .woocommerce-MyAccount-content) :where([class*="dashboard"], [class*="Dashboard"], [class*="card"], [class*="Card"], [class*="panel"], [class*="Panel"], [class*="box"], [class*="Box"], [class*="tile"], [class*="Tile"], [class*="credential"], [class*="Credential"], [class*="service-access"], [class*="ServiceAccess"], [class*="order-access"], [class*="OrderAccess"], [class*="access-card"], [class*="AccessCard"]) :where(h1,h2,h3,h4,h5,h6,strong,b,label),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light :where(.page-shell .entry-content, .woocommerce-MyAccount-content) :where([class*="dashboard"], [class*="Dashboard"], [class*="card"], [class*="Card"], [class*="panel"], [class*="Panel"], [class*="box"], [class*="Box"], [class*="tile"], [class*="Tile"], [class*="credential"], [class*="Credential"], [class*="service-access"], [class*="ServiceAccess"], [class*="order-access"], [class*="OrderAccess"], [class*="access-card"], [class*="AccessCard"]) :where(h1,h2,h3,h4,h5,h6,strong,b,label) {
  color: var(--gnsc-mode-heading) !important;
}

html.gnsc-shop-mode-current body.gnsc-global-sidebar-enabled :where(.page-shell .entry-content, .woocommerce-MyAccount-content) :where([class*="dashboard"], [class*="Dashboard"], [class*="card"], [class*="Card"], [class*="panel"], [class*="Panel"], [class*="box"], [class*="Box"], [class*="tile"], [class*="Tile"], [class*="credential"], [class*="Credential"], [class*="service-access"], [class*="ServiceAccess"], [class*="order-access"], [class*="OrderAccess"], [class*="access-card"], [class*="AccessCard"]) :where(h1,h2,h3,h4,h5,h6,strong,b,label),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-current :where(.page-shell .entry-content, .woocommerce-MyAccount-content) :where([class*="dashboard"], [class*="Dashboard"], [class*="card"], [class*="Card"], [class*="panel"], [class*="Panel"], [class*="box"], [class*="Box"], [class*="tile"], [class*="Tile"], [class*="credential"], [class*="Credential"], [class*="service-access"], [class*="ServiceAccess"], [class*="order-access"], [class*="OrderAccess"], [class*="access-card"], [class*="AccessCard"]) :where(h1,h2,h3,h4,h5,h6,strong,b,label) {
  color: var(--gnsc-mode-heading) !important;
}

html.gnsc-shop-mode-light body.gnsc-global-sidebar-enabled :where(.page-shell .entry-content, .woocommerce-MyAccount-content) :where([class*="dashboard"], [class*="Dashboard"], [class*="card"], [class*="Card"], [class*="panel"], [class*="Panel"], [class*="box"], [class*="Box"], [class*="tile"], [class*="Tile"], [class*="credential"], [class*="Credential"], [class*="service-access"], [class*="ServiceAccess"], [class*="order-access"], [class*="OrderAccess"], [class*="access-card"], [class*="AccessCard"]) :where(p,span,li,small,em,a,td,th),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light :where(.page-shell .entry-content, .woocommerce-MyAccount-content) :where([class*="dashboard"], [class*="Dashboard"], [class*="card"], [class*="Card"], [class*="panel"], [class*="Panel"], [class*="box"], [class*="Box"], [class*="tile"], [class*="Tile"], [class*="credential"], [class*="Credential"], [class*="service-access"], [class*="ServiceAccess"], [class*="order-access"], [class*="OrderAccess"], [class*="access-card"], [class*="AccessCard"]) :where(p,span,li,small,em,a,td,th) {
  color: var(--gnsc-mode-text) !important;
}

html.gnsc-shop-mode-current body.gnsc-global-sidebar-enabled :where(.page-shell .entry-content, .woocommerce-MyAccount-content) :where([class*="dashboard"], [class*="Dashboard"], [class*="card"], [class*="Card"], [class*="panel"], [class*="Panel"], [class*="box"], [class*="Box"], [class*="tile"], [class*="Tile"], [class*="credential"], [class*="Credential"], [class*="service-access"], [class*="ServiceAccess"], [class*="order-access"], [class*="OrderAccess"], [class*="access-card"], [class*="AccessCard"]) :where(p,span,li,small,em,a,td,th),
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-current :where(.page-shell .entry-content, .woocommerce-MyAccount-content) :where([class*="dashboard"], [class*="Dashboard"], [class*="card"], [class*="Card"], [class*="panel"], [class*="Panel"], [class*="box"], [class*="Box"], [class*="tile"], [class*="Tile"], [class*="credential"], [class*="Credential"], [class*="service-access"], [class*="ServiceAccess"], [class*="order-access"], [class*="OrderAccess"], [class*="access-card"], [class*="AccessCard"]) :where(p,span,li,small,em,a,td,th) {
  color: var(--gnsc-mode-muted) !important;
}

/* Keep intentional action buttons visible and consistent. */
body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light :where(.button, a.button, button.button, input.button, input[type="submit"], button[type="submit"], .gnsc-single-buy-now, .single_add_to_cart_button, .gnsc-open-credential-button) {
  background: linear-gradient(135deg, #4f8dff, #2563eb) !important;
  border-color: rgba(37, 99, 235, 0.28) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18) !important;
}

body.gnsc-global-sidebar-enabled.gnsc-shop-mode-current :where(.button, a.button, button.button, input.button, input[type="submit"], button[type="submit"], .gnsc-single-buy-now, .single_add_to_cart_button, .gnsc-open-credential-button) {
  background: linear-gradient(135deg, #5aa7ff, #2563eb) !important;
  border-color: rgba(96, 165, 250, 0.35) !important;
  color: #ffffff !important;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.26) !important;
}

body.gnsc-global-sidebar-enabled :where(.button, a.button, button.button, input.button, input[type="submit"], button[type="submit"], .gnsc-single-buy-now, .single_add_to_cart_button, .gnsc-open-credential-button):hover {
  filter: brightness(1.04);
  color: #ffffff !important;
}

body.gnsc-global-sidebar-enabled.gnsc-shop-mode-light :where(.woocommerce-info, .woocommerce-message, .woocommerce-error) {
  background: linear-gradient(180deg, #ffffff, #f4f8ff) !important;
  color: var(--gnsc-mode-text) !important;
  border-color: var(--gnsc-mode-border-strong) !important;
}
