/** (PREGNORF ✅) DMXReady Factory — Surface System */
:root,
.dmxr4,
.dmxr4-public-2026 {
  --dmxr-sys-bg: #f6f8fc;
  --dmxr-sys-bg-2: #ffffff;
  --dmxr-sys-surface: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.96));
  --dmxr-sys-surface-strong: linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,.98));
  --dmxr-sys-border: rgba(15,23,42,.10);
  --dmxr-sys-border-strong: rgba(15,23,42,.14);
  --dmxr-sys-text: #0f172a;
  --dmxr-sys-muted: rgba(15,23,42,.72);
  --dmxr-sys-muted-2: rgba(15,23,42,.56);
  --dmxr-sys-brand: var(--dmxr-brand, var(--dmxr-2026-brand, #ff2d55));
  --dmxr-sys-brand-2: var(--dmxr-brand-2, var(--dmxr-2026-brand-2, #d50f43));
  --dmxr-sys-shadow: 0 16px 34px rgba(15,23,42,.08);
  --dmxr-sys-shadow-lg: 0 28px 64px rgba(15,23,42,.10);
  --dmxr-sys-radius-xl: var(--dmxr-radius-xl, var(--dmxr-2026-radius-xl, 28px));
  --dmxr-sys-radius-lg: var(--dmxr-radius-lg, var(--dmxr-2026-radius-lg, 22px));
  --dmxr-sys-radius-md: var(--dmxr-radius-md, var(--dmxr-2026-radius-md, 16px));
}

body.dmxr4-commerce-surface,
body.dmxr4-generated-content-surface {
  color: var(--dmxr-sys-text);
}

body.dmxr4-commerce-surface.dmxr4-commerce-tone--light,
body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light,
body.dmxr4-generated-content-surface.dmxr4-public-shell-tone--light,
body.dmxr4-generated-content-surface.dmxr4-shell--theme.dmxr4-commerce-tone--light {
  --dmxr-sys-bg: #f6f8fc;
  --dmxr-sys-bg-2: #ffffff;
  --dmxr-sys-surface: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.96));
  --dmxr-sys-surface-strong: linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,.98));
  --dmxr-sys-border: rgba(15,23,42,.10);
  --dmxr-sys-border-strong: rgba(15,23,42,.14);
  --dmxr-sys-text: #0f172a;
  --dmxr-sys-muted: rgba(15,23,42,.72);
  --dmxr-sys-muted-2: rgba(15,23,42,.56);
  --dmxr-sys-shadow: 0 16px 34px rgba(15,23,42,.08);
  --dmxr-sys-shadow-lg: 0 28px 64px rgba(15,23,42,.10);
}

body.dmxr4-commerce-surface:not(.dmxr4-commerce-tone--light):not(.dmxr4-commerce-tone--dark) {
  --dmxr-sys-bg: #f6f8fc;
  --dmxr-sys-bg-2: #ffffff;
  --dmxr-sys-surface: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.96));
  --dmxr-sys-surface-strong: linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,.98));
  --dmxr-sys-border: rgba(15,23,42,.10);
  --dmxr-sys-border-strong: rgba(15,23,42,.14);
  --dmxr-sys-text: #0f172a;
  --dmxr-sys-muted: rgba(15,23,42,.72);
  --dmxr-sys-muted-2: rgba(15,23,42,.56);
  --dmxr-sys-shadow: 0 16px 34px rgba(15,23,42,.08);
  --dmxr-sys-shadow-lg: 0 28px 64px rgba(15,23,42,.10);
}

body.dmxr4-commerce-surface.dmxr4-commerce-tone--dark,
body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--dark,
body.dmxr4-generated-content-surface.dmxr4-public-shell-tone--dark,
body.dmxr4-generated-content-surface.dmxr4-shell--theme.dmxr4-public-shell-tone--dark,
body.dmxr4-generated-content-surface:not(.dmxr4-public-shell-tone--light):not(.dmxr4-public-shell-tone--dark) {
  --dmxr-sys-bg: var(--dmxr-2026-bg, #071126);
  --dmxr-sys-bg-2: var(--dmxr-2026-bg-2, #0b1731);
  --dmxr-sys-surface: var(--dmxr-surface-bg, var(--dmxr-2026-card-bg, linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03))));
  --dmxr-sys-surface-strong: var(--dmxr-surface-bg-strong, var(--dmxr-2026-card-bg-strong, linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04))));
  --dmxr-sys-border: var(--dmxr-surface-border, var(--dmxr-2026-card-border, rgba(255,255,255,.12)));
  --dmxr-sys-border-strong: var(--dmxr-surface-border-strong, var(--dmxr-2026-card-border-strong, rgba(255,255,255,.16)));
  --dmxr-sys-text: var(--dmxr-text, var(--dmxr-2026-text, #f5f7fb));
  --dmxr-sys-muted: var(--dmxr-text-muted, var(--dmxr-2026-muted, rgba(245,247,251,.78)));
  --dmxr-sys-muted-2: var(--dmxr-2026-muted-2, rgba(245,247,251,.62));
  --dmxr-sys-shadow: var(--dmxr-shadow-md, var(--dmxr-2026-glow-2, 0 14px 34px rgba(2,8,22,.24)));
  --dmxr-sys-shadow-lg: var(--dmxr-shadow-lg, var(--dmxr-2026-glow-1, 0 22px 60px rgba(3,9,24,.28)));
}

body.dmxr4-commerce-surface,
body.dmxr4-generated-content-surface {
  background:
    radial-gradient(circle at top right, rgba(255,45,85,.10), transparent 24%),
    radial-gradient(circle at left top, rgba(106,140,255,.12), transparent 28%),
    linear-gradient(180deg, var(--dmxr-sys-bg) 0%, var(--dmxr-sys-bg-2) 100%);
}

body.dmxr4-commerce-surface :where(.site, .site-main, .content-area, .entry-content, .woocommerce, .woocommerce-page),
body.dmxr4-generated-content-surface :where(.site, .site-main, .content-area, .entry-content) {
  color: var(--dmxr-sys-text);
}

body.dmxr4-commerce-surface .dmxr4-commerce-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 72px;
}

body.dmxr4-commerce-surface .dmxr4-commerce-wrap__inner {
  display: grid;
  gap: 18px;
}

body.dmxr4-commerce-surface :where(.woocommerce-products-header, .woocommerce-breadcrumb, .woocommerce-result-count, .woocommerce-ordering, .woocommerce-notices-wrapper, .page-title, .product_title, .woocommerce-tabs, .related, .upsells) {
  color: var(--dmxr-sys-text);
}

body.dmxr4-commerce-surface :where(.woocommerce-products-header, .woocommerce .product .summary, .woocommerce-tabs, .related, .upsells) {
  background: var(--dmxr-sys-surface);
  border: 1px solid var(--dmxr-sys-border);
  border-radius: var(--dmxr-sys-radius-lg);
  box-shadow: var(--dmxr-sys-shadow);
  padding: clamp(16px, 2vw, 24px);
}

body.dmxr4-commerce-surface .woocommerce-products-header {
  margin-bottom: 18px;
}

body.dmxr4-commerce-surface .woocommerce-breadcrumb,
body.dmxr4-commerce-surface .woocommerce-result-count {
  color: var(--dmxr-sys-muted);
}

body.dmxr4-commerce-surface.dmxr4-commerce-tone--dark .woocommerce-breadcrumb a,
body.dmxr4-commerce-surface.dmxr4-commerce-tone--dark .woocommerce-products-header a,
body.dmxr4-commerce-surface.dmxr4-commerce-tone--dark .woocommerce .summary a,
body.dmxr4-commerce-surface.dmxr4-commerce-tone--dark .woocommerce-tabs a,
body.dmxr4-generated-content-surface.dmxr4-public-shell-tone--dark .dmxr4-generated-content__inner a,
body.dmxr4-generated-content-surface:not(.dmxr4-public-shell-tone--light):not(.dmxr4-public-shell-tone--dark) .dmxr4-generated-content__inner a {
  color: #fff;
}

body.dmxr4-commerce-surface.dmxr4-commerce-tone--light,
body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light {
  background:
    radial-gradient(circle at top right, rgba(255,45,85,.06), transparent 24%),
    radial-gradient(circle at left top, rgba(106,140,255,.08), transparent 28%),
    linear-gradient(180deg, var(--dmxr-sys-bg) 0%, var(--dmxr-sys-bg-2) 100%);
}

body.dmxr4-commerce-surface.dmxr4-commerce-tone--light :where(.woocommerce-products-header, .woocommerce-breadcrumb, .woocommerce-result-count, .woocommerce-ordering, .woocommerce-notices-wrapper, .page-title, .product_title, .woocommerce-tabs, .related, .upsells),
body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light :where(.woocommerce-products-header, .woocommerce-breadcrumb, .woocommerce-result-count, .woocommerce-ordering, .woocommerce-notices-wrapper, .page-title, .product_title, .woocommerce-tabs, .related, .upsells) {
  color: var(--dmxr-sys-text);
}

body.dmxr4-commerce-surface.dmxr4-commerce-tone--light :where(.woocommerce-breadcrumb a, .woocommerce-products-header a, .woocommerce .summary a, .woocommerce-tabs a, .product-name a, .woocommerce-orders-table a, .woocommerce-table a, .woocommerce-MyAccount-content a),
body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light :where(.woocommerce-breadcrumb a, .woocommerce-products-header a, .woocommerce .summary a, .woocommerce-tabs a, .product-name a, .woocommerce-orders-table a, .woocommerce-table a, .woocommerce-MyAccount-content a) {
  color: #0f172a;
}

body.dmxr4-commerce-surface.dmxr4-commerce-tone--light :where(.woocommerce .amount, .woocommerce table small, .woocommerce .woocommerce-shipping-destination, .woocommerce .price, .stock, .woocommerce-review-link),
body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light :where(.woocommerce .amount, .woocommerce table small, .woocommerce .woocommerce-shipping-destination, .woocommerce .price, .stock, .woocommerce-review-link) {
  color: var(--dmxr-sys-muted);
}

body.dmxr4-commerce-surface.dmxr4-commerce-tone--light :where(table.shop_table, .shop_table_responsive),
body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light :where(table.shop_table, .shop_table_responsive) {
  background: #ffffff;
}

body.dmxr4-commerce-surface.dmxr4-commerce-tone--light :where(table.shop_table th),
body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light :where(table.shop_table th) {
  color: #0f172a;
  background: linear-gradient(180deg, rgba(248,250,252,1), rgba(241,245,249,.98));
}

body.dmxr4-commerce-surface.dmxr4-commerce-tone--light :where(.woocommerce .button, .woocommerce button.button, .woocommerce input.button, .woocommerce #payment #place_order, .woocommerce .wc-forward, .woocommerce .wp-element-button),
body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light :where(.woocommerce .button, .woocommerce button.button, .woocommerce input.button, .woocommerce #payment #place_order, .woocommerce .wc-forward, .woocommerce .wp-element-button) {
  color: #ffffff;
}

body.dmxr4-commerce-surface.dmxr4-commerce-tone--light :where(.woocommerce .coupon input.input-text, .woocommerce input:not([type=checkbox]):not([type=radio]), .woocommerce select, .woocommerce textarea),
body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light :where(.woocommerce .coupon input.input-text, .woocommerce input:not([type=checkbox]):not([type=radio]), .woocommerce select, .woocommerce textarea) {
  background: #ffffff !important;
  color: #0f172a !important;
}

body.dmxr4-commerce-surface.dmxr4-commerce-tone--light :where(.dmxr4-native-cart-intro__pill, .dmxr4-native-cart-intro__eyebrow, .dmxr4-native-cart-currency__label, .dmxr-pill, .dmxr-chip, .dmxr-badge, .action-pill, .chip, .trust-item, .hero-proof li),
body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light :where(.dmxr4-native-cart-intro__pill, .dmxr4-native-cart-intro__eyebrow, .dmxr4-native-cart-currency__label, .dmxr-pill, .dmxr-chip, .dmxr-badge, .action-pill, .chip, .trust-item, .hero-proof li) {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

body.dmxr4-commerce-surface.dmxr4-commerce-tone--light :where(.dmxr4-native-cart-intro, .dmxr4-native-cart-currency, .dmxr-pill, .dmxr-chip, .dmxr-badge, .action-pill, .chip, .trust-item, .hero-proof li),
body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light :where(.dmxr4-native-cart-intro, .dmxr4-native-cart-currency, .dmxr-pill, .dmxr-chip, .dmxr-badge, .action-pill, .chip, .trust-item, .hero-proof li) {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  border-color: rgba(15,23,42,.10);
  box-shadow: 0 18px 42px rgba(15,23,42,.08);
}


body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light,
body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light :where(.site, .site-main, .site-content, .content-bg, .content-container, .content-area, #primary, .entry-content-wrap) {
  background: transparent;
  color: var(--dmxr-sys-text);
}

body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light .content-area {
  margin-top: 2.5rem;
  margin-bottom: 3.5rem;
}

body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light .woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light :where(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content) {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--dmxr-sys-radius-lg);
  box-shadow: var(--dmxr-sys-shadow);
  padding: clamp(18px, 2vw, 24px);
}

body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light .woocommerce-MyAccount-navigation {
  position: sticky;
  top: calc(var(--dmxr-2026-header-offset, 92px) + 12px);
}

body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light .woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(248,250,252,.96);
  border: 1px solid rgba(148,163,184,.18);
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
}

body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light .woocommerce-MyAccount-navigation .is-active a,
body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light .woocommerce-MyAccount-navigation li.is-active a,
body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light .woocommerce-MyAccount-navigation-link--dashboard.is-active a {
  background: linear-gradient(135deg, #ff2d55, #ff4d78);
  border-color: transparent;
  color: #ffffff;
}

body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light .woocommerce-MyAccount-content a,
body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light .woocommerce a {
  color: var(--dmxr-sys-brand);
}

@media (max-width: 782px) {
  body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
  }

  body.dmxr4-commerce-surface.dmxr4-site-shell-commerce.dmxr4-commerce-tone--light .woocommerce-MyAccount-navigation {
    position: static;
  }
}

body.dmxr4-generated-content-surface .dmxr4-generated-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

body.dmxr4-generated-content-surface .dmxr4-generated-content__inner {
  padding: clamp(22px, 3vw, 42px);
}

body.dmxr4-generated-content-surface .dmxr4-generated-content__inner > :first-child { margin-top: 0; }
body.dmxr4-generated-content-surface .dmxr4-generated-content__inner > :last-child { margin-bottom: 0; }
body.dmxr4-generated-content-surface .dmxr4-generated-content__inner :where(h1,h2,h3,h4) {
  color: #fff;
  line-height: 1.06;
  letter-spacing: -.02em;
}
body.dmxr4-generated-content-surface .dmxr4-generated-content__inner h1 { font-size: clamp(2rem, 4vw, 3.6rem); }
body.dmxr4-generated-content-surface .dmxr4-generated-content__inner h2 { font-size: clamp(1.55rem, 3vw, 2.5rem); }
body.dmxr4-generated-content-surface .dmxr4-generated-content__inner :where(p,li,blockquote,figcaption,td,th) {
  color: var(--dmxr-sys-muted);
  line-height: 1.7;
}
body.dmxr4-generated-content-surface .dmxr4-generated-content__inner :where(ul,ol) { padding-left: 1.25rem; }
body.dmxr4-generated-content-surface .dmxr4-generated-content__inner :where(blockquote, .wp-block-quote, .wp-block-pullquote) {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem 1rem 1.2rem;
  border-left: 4px solid color-mix(in srgb, var(--dmxr-sys-brand) 62%, white);
  background: color-mix(in srgb, var(--dmxr-sys-surface-strong) 88%, transparent);
  border-radius: 0 var(--dmxr-sys-radius-md) var(--dmxr-sys-radius-md) 0;
}
body.dmxr4-generated-content-surface .dmxr4-generated-content__inner :where(.wp-block-group, .wp-block-columns, .wp-block-media-text, .wp-block-cover, .wp-block-table, .wp-block-buttons, .wp-block-image, .wp-block-gallery) {
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
}
body.dmxr4-generated-content-surface .dmxr4-generated-content__inner :where(.wp-block-group, .wp-block-columns, .wp-block-media-text) {
  gap: 18px;
}
body.dmxr4-generated-content-surface .dmxr4-generated-content__inner :where(.wp-block-group:not(.is-style-plain), .wp-block-media-text) {
  padding: clamp(14px, 2vw, 22px);
  border-radius: var(--dmxr-sys-radius-lg);
  border: 1px solid var(--dmxr-sys-border);
  background: color-mix(in srgb, var(--dmxr-sys-surface) 88%, transparent);
}
body.dmxr4-generated-content-surface .dmxr4-generated-content__inner :where(table) {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.3rem 0;
  border: 1px solid var(--dmxr-sys-border);
  border-radius: var(--dmxr-sys-radius-md);
  overflow: hidden;
}
body.dmxr4-generated-content-surface .dmxr4-generated-content__inner :where(th,td) {
  padding: 14px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--dmxr-sys-border) 85%, transparent);
  background: color-mix(in srgb, var(--dmxr-sys-surface) 86%, transparent);
}
body.dmxr4-generated-content-surface .dmxr4-generated-content__inner :where(th) {
  color: #fff;
  background: color-mix(in srgb, var(--dmxr-sys-surface-strong) 92%, transparent);
}
body.dmxr4-generated-content-surface .dmxr4-generated-content__inner :where(img) {
  border-radius: var(--dmxr-sys-radius-md);
}
body.dmxr4-generated-content-surface .dmxr4-generated-content__inner :where(hr, .wp-block-separator) {
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--dmxr-sys-border) 90%, transparent);
  margin: 1.5rem 0;
}
body.dmxr4-generated-content-surface .dmxr4-generated-content__inner :where(.wp-block-button__link, .button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--dmxr-sys-brand), var(--dmxr-sys-brand-2));
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: var(--dmxr-sys-shadow);
}

body.dmxr4-commerce-surface .woocommerce :where(.woocommerce-message, .woocommerce-info, .woocommerce-error),
body.dmxr4-commerce-surface .woocommerce-notices-wrapper :where(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: var(--dmxr-sys-radius-md);
  border: 1px solid var(--dmxr-sys-border);
  background: var(--dmxr-sys-surface-strong);
  color: var(--dmxr-sys-text);
  box-shadow: var(--dmxr-sys-shadow);
}

body.dmxr4-commerce-surface .woocommerce :where(.button, button.button, input.button, #payment #place_order, .wc-forward, .wp-element-button),
body.dmxr4-commerce-surface .woocommerce-page :where(.button, button.button, input.button, #payment #place_order, .wc-forward, .wp-element-button) {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--dmxr-sys-brand), var(--dmxr-sys-brand-2));
  color: #fff;
  font-weight: 800;
  box-shadow: var(--dmxr-sys-shadow);
}

body.dmxr4-commerce-surface .woocommerce :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
body.dmxr4-commerce-surface .select2-container--default .select2-selection--single,
body.dmxr4-commerce-surface .select2-container--default .select2-selection--multiple {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--dmxr-sys-border) !important;
  background: color-mix(in srgb, var(--dmxr-sys-surface-strong) 92%, transparent) !important;
  color: var(--dmxr-sys-text) !important;
  box-shadow: none;
}

body.dmxr4-commerce-surface .woocommerce :where(textarea) {
  min-height: 130px;
  padding-top: 14px;
}

body.dmxr4-commerce-surface :where(.woocommerce-cart-form, .cart_totals, .woocommerce-checkout-review-order, .woocommerce-form-login, .woocommerce-form-coupon, .woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content, .woocommerce-order, .woocommerce-order-details, .woocommerce-customer-details, .woocommerce ul.payment_methods, .woocommerce .cart-collaterals .cross-sells) {
  background: var(--dmxr-sys-surface);
  border: 1px solid var(--dmxr-sys-border);
  border-radius: var(--dmxr-sys-radius-lg);
  box-shadow: var(--dmxr-sys-shadow);
}

body.dmxr4-commerce-surface.woocommerce-cart :where(.woocommerce-cart-form, .cart_totals, .cross-sells),
body.dmxr4-commerce-surface.woocommerce-checkout :where(.woocommerce-checkout-review-order, #customer_details > div, .woocommerce-form-login, .woocommerce-form-coupon),
body.dmxr4-commerce-surface.woocommerce-account :where(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content),
body.dmxr4-commerce-surface .woocommerce-order,
body.dmxr4-commerce-surface .woocommerce .product .summary,
body.dmxr4-commerce-surface .woocommerce-tabs,
body.dmxr4-commerce-surface .related,
body.dmxr4-commerce-surface .upsells {
  padding: clamp(16px, 2vw, 24px);
}

body.dmxr4-commerce-surface:not(.dmxr4-site-shell-commerce) .woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

body.dmxr4-commerce-surface:not(.dmxr4-site-shell-commerce) .woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
body.dmxr4-commerce-surface:not(.dmxr4-site-shell-commerce) .woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--dmxr-sys-text);
  background: color-mix(in srgb, var(--dmxr-sys-surface-strong) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--dmxr-sys-border) 92%, transparent);
}
body.dmxr4-commerce-surface:not(.dmxr4-site-shell-commerce) .woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
body.dmxr4-commerce-surface:not(.dmxr4-site-shell-commerce) .woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  border-color: color-mix(in srgb, var(--dmxr-sys-brand) 34%, var(--dmxr-sys-border-strong));
  background: color-mix(in srgb, var(--dmxr-sys-brand) 14%, var(--dmxr-sys-surface-strong));
}

body.dmxr4-commerce-surface :where(table.shop_table, .shop_table_responsive) {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--dmxr-sys-border);
  border-radius: var(--dmxr-sys-radius-md);
  overflow: hidden;
  background: color-mix(in srgb, var(--dmxr-sys-surface) 92%, transparent);
}
body.dmxr4-commerce-surface :where(table.shop_table th, table.shop_table td) {
  padding: 14px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--dmxr-sys-border) 90%, transparent);
  color: var(--dmxr-sys-text);
}
body.dmxr4-commerce-surface :where(table.shop_table th) {
  color: #fff;
  background: color-mix(in srgb, var(--dmxr-sys-surface-strong) 94%, transparent);
}
body.dmxr4-commerce-surface :where(.product-name a, .woocommerce-orders-table a, .woocommerce-table a, .woocommerce-MyAccount-content a) {
  color: #fff;
}
body.dmxr4-commerce-surface :where(.product-name dl.variation, .product-name .variation, .woocommerce .amount, .woocommerce table small, .woocommerce .woocommerce-shipping-destination, .woocommerce .price, .stock, .woocommerce-review-link) {
  color: var(--dmxr-sys-muted);
}

body.dmxr4-commerce-surface.woocommerce-checkout #customer_details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .92fr);
  gap: 18px;
  align-items: start;
}
body.dmxr4-commerce-surface.woocommerce-checkout #customer_details > div {
  min-width: 0;
}
body.dmxr4-commerce-surface.woocommerce-checkout .woocommerce-checkout-review-order-table,
body.dmxr4-commerce-surface.woocommerce-checkout #payment {
  background: transparent;
}
body.dmxr4-commerce-surface.woocommerce-checkout #payment {
  border: 0;
  margin-top: 14px;
}
body.dmxr4-commerce-surface .woocommerce ul.payment_methods {
  margin-top: 16px;
  padding: 14px 16px;
}
body.dmxr4-commerce-surface .woocommerce ul.payment_methods li {
  color: var(--dmxr-sys-text);
}

body.dmxr4-commerce-surface .woocommerce form .form-row label,
body.dmxr4-commerce-surface .woocommerce-billing-fields__field-wrapper label,
body.dmxr4-commerce-surface .woocommerce-shipping-fields__field-wrapper label {
  color: #fff;
  font-weight: 700;
}

body.dmxr4-commerce-surface .woocommerce-account .addresses,
body.dmxr4-commerce-surface .woocommerce-account .woocommerce-orders-table,
body.dmxr4-commerce-surface .woocommerce-account .woocommerce-Address,
body.dmxr4-commerce-surface .woocommerce-order .woocommerce-table,
body.dmxr4-commerce-surface .woocommerce-order .woocommerce-column {
  color: var(--dmxr-sys-text);
}

body.dmxr4-commerce-surface :where(.woocommerce-pagination .page-numbers, .woocommerce nav.woocommerce-pagination ul li span, .woocommerce nav.woocommerce-pagination ul li a) {
  border-radius: 999px;
}

body.dmxr4-commerce-surface ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body.dmxr4-commerce-surface ul.products li.product {
  margin: 0 !important;
  padding: 16px;
  border-radius: var(--dmxr-sys-radius-lg);
  border: 1px solid var(--dmxr-sys-border);
  background: var(--dmxr-sys-surface);
  box-shadow: var(--dmxr-sys-shadow);
}

body.dmxr4-commerce-surface ul.products li.product :where(img) {
  border-radius: var(--dmxr-sys-radius-md);
}

body.dmxr4-commerce-surface ul.products li.product :where(.woocommerce-loop-product__title, .price, a) {
  color: var(--dmxr-sys-text);
}

body.dmxr4-commerce-surface.single-product div.product {
  display: grid;
  gap: 18px;
}

body.dmxr4-commerce-surface.single-product div.product .woocommerce-product-gallery,
body.dmxr4-commerce-surface.single-product div.product .summary {
  min-width: 0;
}

body.dmxr4-commerce-surface.single-product div.product .woocommerce-product-gallery {
  padding: 12px;
  border-radius: var(--dmxr-sys-radius-lg);
  border: 1px solid var(--dmxr-sys-border);
  background: var(--dmxr-sys-surface);
  box-shadow: var(--dmxr-sys-shadow);
}

body.dmxr4-commerce-surface.single-product div.product .woocommerce-product-gallery__image img {
  border-radius: var(--dmxr-sys-radius-md);
}

body.dmxr4-commerce-surface.single-product :where(.kadence-woo-template-wrap, .entry-content-wrap, [id^="product-"].product, .product.type-product) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.dmxr4-commerce-surface.single-product .woocommerce-product-details__short-description {
  color: var(--dmxr-sys-muted);
}

body.dmxr4-commerce-surface .woocommerce-tabs ul.tabs {
  margin: 0 0 14px;
  padding: 0;
}

body.dmxr4-commerce-surface .woocommerce-tabs ul.tabs li {
  border-radius: 999px;
}

body.dmxr4-commerce-surface .quantity .qty {
  min-width: 78px;
  text-align: center;
}

@media (max-width: 980px) {
  body.dmxr4-commerce-surface.woocommerce-checkout #customer_details,
  body.dmxr4-commerce-surface .woocommerce-account .woocommerce,
  body.dmxr4-commerce-surface ul.products {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.dmxr4-generated-content-surface .dmxr4-generated-content,
  body.dmxr4-commerce-surface .dmxr4-commerce-wrap {
    width: min(100% - 20px, 1180px);
    padding: 18px 0 42px;
  }
  body.dmxr4-generated-content-surface .dmxr4-generated-content__inner {
    padding: 18px 16px 22px;
    border-radius: 22px;
  }
  body.dmxr4-commerce-surface :where(.woocommerce-cart-form, .cart_totals, .woocommerce-checkout-review-order, .woocommerce-form-login, .woocommerce-form-coupon, .woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content, .woocommerce-order, .woocommerce-order-details, .woocommerce-customer-details) {
    border-radius: 18px;
  }
}


body.dmxr4-generated-content-surface .dmxr4-generated-content__inner :where(.wp-block-cover, .wp-block-cover-image, .wp-block-query, .wp-block-latest-posts, .wp-block-social-links, .wp-block-embed, .wp-block-code, pre, .wp-block-preformatted) {
  border-radius: var(--dmxr-sys-radius-lg);
}
body.dmxr4-generated-content-surface .dmxr4-generated-content__inner :where(.wp-block-cover, .wp-block-query, .wp-block-latest-posts, .wp-block-embed, .wp-block-code, pre, .wp-block-preformatted) {
  border: 1px solid var(--dmxr-sys-border);
  background: color-mix(in srgb, var(--dmxr-sys-surface) 88%, transparent);
  overflow: hidden;
}
body.dmxr4-generated-content-surface .dmxr4-generated-content__inner :where(pre, .wp-block-code, .wp-block-preformatted) {
  padding: 18px 20px;
  color: #fff;
  overflow-x: auto;
}
body.dmxr4-generated-content-surface .dmxr4-generated-content__inner :where(.wp-block-buttons) {
  gap: 12px;
}
body.dmxr4-generated-content-surface .dmxr4-generated-content__inner :where(.wp-block-buttons .wp-block-button__link, .wp-block-search__button) {
  min-height: 48px;
  border-radius: 16px;
}
body.dmxr4-generated-content-surface .dmxr4-generated-content__inner :where(.wp-block-search__input, input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea, select) {
  border-radius: 14px;
  border: 1px solid var(--dmxr-sys-border);
  background: color-mix(in srgb, var(--dmxr-sys-surface-strong) 92%, transparent);
  color: var(--dmxr-sys-text);
}
body.dmxr4-generated-content-surface .dmxr4-generated-content__inner :where(.wp-block-latest-posts, .wp-block-page-list, .wp-block-categories-list) {
  display: grid;
  gap: 12px;
  padding-left: 0;
  list-style: none;
}
body.dmxr4-generated-content-surface .dmxr4-generated-content__inner :where(.wp-block-latest-posts li, .wp-block-page-list li, .wp-block-categories-list li) {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--dmxr-sys-border);
  border-radius: var(--dmxr-sys-radius-md);
  background: color-mix(in srgb, var(--dmxr-sys-surface) 86%, transparent);
}
body.dmxr4-commerce-surface .woocommerce .woocommerce-breadcrumb,
body.dmxr4-commerce-surface .woocommerce .woocommerce-result-count,
body.dmxr4-commerce-surface .woocommerce .woocommerce-ordering {
  margin-bottom: 0;
}
body.dmxr4-commerce-surface .woocommerce .woocommerce-ordering select,
body.dmxr4-commerce-surface .woocommerce .orderby,
body.dmxr4-commerce-surface .woocommerce .variations select {
  min-width: 220px;
  padding-inline: 14px 38px;
}
body.dmxr4-commerce-surface ul.products li.product .button,
body.dmxr4-commerce-surface ul.products li.product .added_to_cart {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}
body.dmxr4-commerce-surface ul.products li.product .onsale,
body.dmxr4-commerce-surface.single-product .onsale {
  border: 1px solid color-mix(in srgb, var(--dmxr-sys-brand) 36%, white);
  background: color-mix(in srgb, var(--dmxr-sys-brand) 18%, var(--dmxr-sys-surface-strong));
  color: #fff;
  border-radius: 999px;
  box-shadow: var(--dmxr-sys-shadow);
}
body.dmxr4-commerce-surface.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
body.dmxr4-commerce-surface.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
  width: auto;
}
body.dmxr4-commerce-surface.single-product div.product .woocommerce-product-gallery .flex-control-thumbs img {
  border-radius: 12px;
  border: 1px solid var(--dmxr-sys-border);
}
body.dmxr4-commerce-surface.single-product .product_meta,
body.dmxr4-commerce-surface.single-product .woocommerce-product-attributes,
body.dmxr4-commerce-surface.single-product form.cart,
body.dmxr4-commerce-surface.single-product .woocommerce-Reviews,
body.dmxr4-commerce-surface .woocommerce .related ul.products,
body.dmxr4-commerce-surface .woocommerce .upsells ul.products {
  margin-top: 16px;
}
body.dmxr4-commerce-surface.single-product .product_meta {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--dmxr-sys-border) 88%, transparent);
  color: var(--dmxr-sys-muted);
}
body.dmxr4-commerce-surface.single-product .product_meta a,
body.dmxr4-commerce-surface.single-product .woocommerce-product-attributes a {
  color: #fff;
}
body.dmxr4-commerce-surface.single-product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
body.dmxr4-commerce-surface .woocommerce-tabs ul.tabs li a {
  color: var(--dmxr-sys-text);
  font-weight: 800;
}
body.dmxr4-commerce-surface .woocommerce-tabs ul.tabs li,
body.dmxr4-commerce-surface .woocommerce-tabs ul.tabs li.active {
  border: 1px solid var(--dmxr-sys-border);
  background: color-mix(in srgb, var(--dmxr-sys-surface-strong) 92%, transparent);
}
body.dmxr4-commerce-surface .woocommerce-Reviews,
body.dmxr4-commerce-surface .commentlist,
body.dmxr4-commerce-surface .woocommerce-Reviews .comment_container {
  color: var(--dmxr-sys-text);
}
body.dmxr4-commerce-surface .woocommerce #reviews #comments ol.commentlist li .comment-text {
  margin: 0 0 0 82px;
  padding: 14px 16px;
  border-radius: var(--dmxr-sys-radius-md);
  border: 1px solid var(--dmxr-sys-border);
  background: color-mix(in srgb, var(--dmxr-sys-surface) 88%, transparent);
}
body.dmxr4-commerce-surface .woocommerce #reviews #comments ol.commentlist li img.avatar {
  border-radius: 999px;
  border: 1px solid var(--dmxr-sys-border);
  background: color-mix(in srgb, var(--dmxr-sys-surface-strong) 88%, transparent);
}
body.dmxr4-commerce-surface .woocommerce form.checkout_coupon,
body.dmxr4-commerce-surface .woocommerce form.login,
body.dmxr4-commerce-surface .woocommerce form.register,
body.dmxr4-commerce-surface .woocommerce .checkout_coupon,
body.dmxr4-commerce-surface .woocommerce .login,
body.dmxr4-commerce-surface .woocommerce .register {
  padding: 18px;
  border-radius: var(--dmxr-sys-radius-lg);
  border: 1px solid var(--dmxr-sys-border);
  background: var(--dmxr-sys-surface);
  box-shadow: var(--dmxr-sys-shadow);
}
body.dmxr4-commerce-surface .woocommerce form.checkout_coupon,
body.dmxr4-commerce-surface .woocommerce form.login,
body.dmxr4-commerce-surface .woocommerce form.register {
  display: grid;
  gap: 12px;
}
body.dmxr4-commerce-surface .woocommerce .coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
body.dmxr4-commerce-surface .woocommerce .coupon > * {
  min-width: 0;
}
body.dmxr4-commerce-surface .woocommerce .coupon input.input-text {
  flex: 1 1 220px;
}
body.dmxr4-commerce-surface .woocommerce .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
body.dmxr4-commerce-surface .woocommerce .actions .button,
body.dmxr4-commerce-surface .woocommerce .actions button,
body.dmxr4-commerce-surface .woocommerce .actions input {
  margin: 0 !important;
}
body.dmxr4-commerce-surface .woocommerce .cart-collaterals {
  display: grid;
  gap: 18px;
}
body.dmxr4-commerce-surface .woocommerce .cart-collaterals .cart_totals table,
body.dmxr4-commerce-surface .woocommerce .woocommerce-checkout-review-order table {
  margin-bottom: 0;
}
body.dmxr4-commerce-surface .woocommerce ul.payment_methods li label,
body.dmxr4-commerce-surface .woocommerce #payment div.payment_box,
body.dmxr4-commerce-surface .woocommerce #payment div.payment_box p {
  color: var(--dmxr-sys-text);
}
body.dmxr4-commerce-surface .woocommerce #payment div.payment_box {
  border-radius: 16px;
  border: 1px solid var(--dmxr-sys-border);
  background: color-mix(in srgb, var(--dmxr-sys-surface-strong) 92%, transparent);
}
body.dmxr4-commerce-surface .woocommerce-account .woocommerce-Address,
body.dmxr4-commerce-surface .woocommerce-account .woocommerce-orders-table,
body.dmxr4-commerce-surface .woocommerce-account .addresses .title,
body.dmxr4-commerce-surface .woocommerce-order .woocommerce-thankyou-order-received {
  background: color-mix(in srgb, var(--dmxr-sys-surface) 86%, transparent);
  border: 1px solid var(--dmxr-sys-border);
  border-radius: var(--dmxr-sys-radius-md);
  padding: 16px;
}
body.dmxr4-commerce-surface .woocommerce-account .woocommerce-Address-title h3,
body.dmxr4-commerce-surface .woocommerce-order .woocommerce-thankyou-order-received,
body.dmxr4-commerce-surface .woocommerce-account .woocommerce-table__product-name,
body.dmxr4-commerce-surface .woocommerce-account .woocommerce-MyAccount-content h2,
body.dmxr4-commerce-surface .woocommerce-account .woocommerce-MyAccount-content h3 {
  color: #fff;
}
body.dmxr4-commerce-surface .woocommerce-account .dashboard-links,
body.dmxr4-commerce-surface .woocommerce-account .dmxr-dashboard-quicklinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
body.dmxr4-commerce-surface .woocommerce-account .dashboard-links a,
body.dmxr4-commerce-surface .woocommerce-account .dmxr-dashboard-quicklinks a {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--dmxr-sys-border);
  background: color-mix(in srgb, var(--dmxr-sys-surface-strong) 88%, transparent);
  text-decoration: none;
  color: #fff;
}
body.dmxr4-commerce-surface .woocommerce-pagination ul.page-numbers {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  background: transparent;
}
body.dmxr4-commerce-surface .woocommerce nav.woocommerce-pagination ul li {
  border: 0;
}
body.dmxr4-commerce-surface .woocommerce nav.woocommerce-pagination ul li a,
body.dmxr4-commerce-surface .woocommerce nav.woocommerce-pagination ul li span {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dmxr-sys-border);
  background: color-mix(in srgb, var(--dmxr-sys-surface) 88%, transparent);
  color: var(--dmxr-sys-text);
}
body.dmxr4-commerce-surface .woocommerce nav.woocommerce-pagination ul li .current {
  border-color: color-mix(in srgb, var(--dmxr-sys-brand) 36%, white);
  background: color-mix(in srgb, var(--dmxr-sys-brand) 16%, var(--dmxr-sys-surface-strong));
}
@media (max-width: 980px) {
  body.dmxr4-commerce-surface.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  body.dmxr4-generated-content-surface .dmxr4-generated-content__inner :where(.wp-block-group:not(.is-style-plain), .wp-block-media-text, .wp-block-cover, .wp-block-query, .wp-block-latest-posts, .wp-block-embed, .wp-block-code, pre, .wp-block-preformatted) {
    padding: 14px;
  }
  body.dmxr4-commerce-surface .woocommerce .coupon,
  body.dmxr4-commerce-surface .woocommerce .actions,
  body.dmxr4-commerce-surface.single-product form.cart {
    flex-direction: column;
    align-items: stretch;
  }
  body.dmxr4-commerce-surface .woocommerce #reviews #comments ol.commentlist li .comment-text {
    margin: 14px 0 0;
  }
  body.dmxr4-commerce-surface.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Sprint 4B — Dynamic runtime + shortcode surface normalization */
body.dmxr4-dynamic-surface {
  --dmxr-sys-page-max: min(1280px, calc(100% - 32px));
  --dmxr-sys-page-max-wide: min(1360px, calc(100% - 32px));
}

body.dmxr4-dynamic-shortcode-surface :where(.site, .site-content, .content-area, #primary, #main, .site-main, article.page, article.post, .entry-content, .entry, .content-wrap) {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}

body.dmxr4-dynamic-shortcode-surface :where(article.page, article.post, .entry-content) {
  margin-top: 0;
  margin-bottom: 0;
}

body.dmxr4-dynamic-shortcode-surface .entry-content {
  display: grid;
  gap: 0;
}

body.dmxr4-dynamic-shortcode-surface .entry-content > :where(.dmxr4-page-shell, #dmxr4-showroom, .dmxr4-showroom, .dmxr4-runtime-app-page) {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.dmxr4-dynamic-shortcode-surface .entry-content > :not(.dmxr4-page-shell):not(#dmxr4-showroom):not(.dmxr4-showroom):not(.dmxr4-runtime-app-page):empty {
  display: none !important;
}

body.dmxr4-dynamic-runtime-surface .dmxr-shell-main__inner {
  width: 100%;
  max-width: none;
}

body.dmxr4-dynamic-surface :where(.dmxr4-page-shell, #dmxr4-showroom, .dmxr4-showroom, .dmxr4-runtime-app-page) {
  position: relative;
  z-index: 1;
}

body.dmxr4-dynamic-surface--showroom :where(#dmxr4-showroom, .dmxr4-showroom) {
  width: var(--dmxr-sys-page-max-wide);
  max-width: var(--dmxr-sys-page-max-wide);
  margin-inline: auto;
}

body.dmxr4-dynamic-shortcode-surface.dmxr4-dynamic-surface--showroom :where(#dmxr4-showroom, .dmxr4-showroom) {
  padding-top: clamp(12px, 2vw, 24px);
  padding-bottom: clamp(34px, 4vw, 56px);
}

body.dmxr4-dynamic-surface--app-single .dmxr4-runtime-app-page {
  width: var(--dmxr-sys-page-max-wide);
  max-width: var(--dmxr-sys-page-max-wide);
  margin-inline: auto;
}

body.dmxr4-dynamic-surface :where(#dmxr4-showroom .dmxr4-showroom-tools, #dmxr4-showroom .dmxr4-showroom-featured, #dmxr4-showroom .dmxr4-showroom-resultsbar__inner, #dmxr4-showroom .dmxr4-showroom-card, #dmxr4-showroom .dmxr4-showroom-featured-card, #dmxr4-showroom .dmxr4-showroom-empty-inner, #dmxr4-showroom .dmxr4-showroom-saved, #dmxr4-showroom .dmxr4-showroom-compare, #dmxr4-showroom .dmxr4-showroom-intake__panel, .dmxr4-runtime-app-page .surface-card, .dmxr4-runtime-app-page .hero-copy, .dmxr4-runtime-app-page .hero-media, .dmxr4-runtime-app-page .preview-panel, .dmxr4-runtime-app-page .surface-spotlight, .dmxr4-runtime-app-page .surface-snapshot, .dmxr4-runtime-app-page .panel, .dmxr4-runtime-app-page .publish-band, .dmxr4-runtime-app-page .stat-card, .dmxr4-runtime-app-page .trust, .dmxr4-runtime-app-page .phone, .dmxr4-runtime-app-page .step, .dmxr4-runtime-app-page .credit-card) {
  border-radius: var(--dmxr-sys-radius-lg);
  border: 1px solid var(--dmxr-sys-border);
  box-shadow: var(--dmxr-sys-shadow);
}

body.dmxr4-dynamic-surface :where(.dmxr4-page-shell .dmxr4-btn, #dmxr4-showroom .dmxr4-btn, .dmxr4-runtime-app-page .btn, .dmxr4-runtime-app-page .action-pill) {
  min-height: 48px;
  border-radius: 16px;
}

body.dmxr4-dynamic-surface :where(#dmxr4-showroom input:not([type="checkbox"]):not([type="radio"]), #dmxr4-showroom select, #dmxr4-showroom textarea, .dmxr4-runtime-app-page input:not([type="checkbox"]):not([type="radio"]), .dmxr4-runtime-app-page select, .dmxr4-runtime-app-page textarea) {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--dmxr-sys-border);
  background: color-mix(in srgb, var(--dmxr-sys-surface-strong) 92%, transparent);
  color: var(--dmxr-sys-text);
}

body.dmxr4-dynamic-shortcode-surface.dmxr4-dynamic-surface--showroom .dmxr4-footer-surface,
body.dmxr4-dynamic-shortcode-surface.dmxr4-dynamic-surface--managed-page .dmxr4-footer-surface {
  margin-top: 0;
}

@media (max-width: 980px) {
  body.dmxr4-dynamic-surface {
    --dmxr-sys-page-max: min(100% - 24px, 1280px);
    --dmxr-sys-page-max-wide: min(100% - 24px, 1360px);
  }
}

@media (max-width: 640px) {
  body.dmxr4-dynamic-surface {
    --dmxr-sys-page-max: min(100% - 20px, 1280px);
    --dmxr-sys-page-max-wide: min(100% - 20px, 1360px);
  }

  body.dmxr4-dynamic-surface--showroom :where(#dmxr4-showroom, .dmxr4-showroom),
  body.dmxr4-dynamic-surface--app-single .dmxr4-runtime-app-page {
    width: var(--dmxr-sys-page-max);
    max-width: var(--dmxr-sys-page-max);
  }
}

/* Sprint 4C — Woo page cleanup + legacy chrome suppression */
body.dmxr4-commerce-surface:not(.dmxr4-site-shell-commerce).dmxr4-commerce-surface--cart :where(.entry-hero, .entry-hero-container-inner, .page-header, .page-title-wrap, .kadence-breadcrumbs, .title-entry-wrap, .woocommerce-breadcrumb-wrapper, .woocommerce-products-header__title.page-title),
body.dmxr4-commerce-surface:not(.dmxr4-site-shell-commerce).dmxr4-commerce-surface--checkout :where(.entry-hero, .entry-hero-container-inner, .page-header, .page-title-wrap, .kadence-breadcrumbs, .title-entry-wrap, .woocommerce-breadcrumb-wrapper, .woocommerce-products-header__title.page-title),
body.dmxr4-commerce-surface:not(.dmxr4-site-shell-commerce).dmxr4-commerce-surface--account :where(.entry-hero, .entry-hero-container-inner, .page-header, .page-title-wrap, .kadence-breadcrumbs, .title-entry-wrap, .woocommerce-breadcrumb-wrapper, .woocommerce-products-header__title.page-title) {
  display: none !important;
}

body.dmxr4-commerce-surface:not(.dmxr4-site-shell-commerce).dmxr4-commerce-surface--cart :where(.entry-content > .wp-block-group, .entry-content > .wp-block-cover, .entry-content > .wp-block-kadence-rowlayout, .entry-content > .kb-row-layout-wrap),
body.dmxr4-commerce-surface:not(.dmxr4-site-shell-commerce).dmxr4-commerce-surface--checkout :where(.entry-content > .wp-block-group, .entry-content > .wp-block-cover, .entry-content > .wp-block-kadence-rowlayout, .entry-content > .kb-row-layout-wrap),
body.dmxr4-commerce-surface:not(.dmxr4-site-shell-commerce).dmxr4-commerce-surface--account :where(.entry-content > .wp-block-group, .entry-content > .wp-block-cover, .entry-content > .wp-block-kadence-rowlayout, .entry-content > .kb-row-layout-wrap) {
  margin-block: 0 !important;
  padding-block: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.dmxr4-commerce-surface:not(.dmxr4-site-shell-commerce).dmxr4-commerce-surface--cart .entry-content > :not(.woocommerce),
body.dmxr4-commerce-surface:not(.dmxr4-site-shell-commerce).dmxr4-commerce-surface--checkout .entry-content > :not(.woocommerce),
body.dmxr4-commerce-surface:not(.dmxr4-site-shell-commerce).dmxr4-commerce-surface--account .entry-content > :not(.woocommerce) {
  max-width: 100%;
}

body.dmxr4-commerce-surface:not(.dmxr4-site-shell-commerce).dmxr4-commerce-surface--cart .dmxr4-commerce-wrap,
body.dmxr4-commerce-surface:not(.dmxr4-site-shell-commerce).dmxr4-commerce-surface--checkout .dmxr4-commerce-wrap,
body.dmxr4-commerce-surface:not(.dmxr4-site-shell-commerce).dmxr4-commerce-surface--account .dmxr4-commerce-wrap {
  padding-top: 10px;
}

/* Sprint 4D — stronger Woo page-content normalization */
body.dmxr4-commerce-surface:not(.dmxr4-site-shell-commerce).dmxr4-commerce-surface--cart .entry-content > :not(.woocommerce):not(.woocommerce-notices-wrapper):not(script):not(style),
body.dmxr4-commerce-surface:not(.dmxr4-site-shell-commerce).dmxr4-commerce-surface--checkout .entry-content > :not(.woocommerce):not(.woocommerce-notices-wrapper):not(script):not(style),
body.dmxr4-commerce-surface:not(.dmxr4-site-shell-commerce).dmxr4-commerce-surface--account .entry-content > :not(.woocommerce):not(.woocommerce-notices-wrapper):not(script):not(style) {
  display: none !important;
}

body.dmxr4-commerce-surface:not(.dmxr4-site-shell-commerce) .entry-content :where(.dmxr-shell-root, header, .site-header, .sitebranding, .site-branding, .kadence-page-title-wrap, .woocommerce-products-header__title, .archive-header, .page-header, .hero, .hero-section, .entry-hero, .dmxr-legacy-hero) {
  display: none !important;
}

body.dmxr4-commerce-surface .entry-content > .woocommerce,
body.dmxr4-commerce-surface .entry-content > .woocommerce-notices-wrapper {
  display: block !important;
}


/* Sprint 4E — live QA cleanup: harden Woo takeover against theme chrome */
body.dmxr4-commerce-surface:not(.dmxr4-site-shell-commerce):where(.dmxr4-shell--plugin, .dmxr4-shell--governed) :where(#masthead, #mobile-header, #main-header, #secondary, #secondary.widget-area, #secondary-sidebar, #colophon, .site-header, .site-top-header-wrap, .site-main-header-wrap, .site-bottom-header-wrap, .site-branding, .site-footer, .content-title-wrap, .entry-hero-container-inner, .kadence-breadcrumbs, .title-entry-wrap, .archive-header, .page-header, .woocommerce-breadcrumb) {
  display: none !important;
}

body.dmxr4-commerce-surface .dmxr-shell-root,
body.dmxr4-commerce-surface .dmxr4-footer-surface,
body.dmxr4-commerce-surface .dmxr4-commerce-wrap,
body.dmxr4-commerce-surface .woocommerce,
body.dmxr4-commerce-surface .woocommerce-notices-wrapper {
  display: block !important;
}

body.dmxr4-commerce-surface .site,
body.dmxr4-commerce-surface .site-content,
body.dmxr4-commerce-surface .content-area,
body.dmxr4-commerce-surface #primary,
body.dmxr4-commerce-surface #main,
body.dmxr4-commerce-surface .site-main {
  background: transparent !important;
}

body.dmxr4-commerce-surface--cart :where(.woocommerce-form-login, .woocommerce-form-login-toggle, .customer_login, .woocommerce-account, .woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content) {
  display: none !important;
}

body.dmxr4-commerce-surface--cart :where(.cart-empty, .return-to-shop) {
  margin-top: 0 !important;
}


/* Sprint 4F strict surface rebuild
   Architecture hardening:
   - Never hide the theme's main content host with broad negative selectors.
   - Keep commerce takeover limited to known chrome + known noise.
   - Support common theme wrappers (#inner-wrap, main, .site-content, .site-main, #primary, #main).
*/
body.dmxr4-commerce-surface :where(#inner-wrap, main#inner-wrap, main, .site-content, .site-main, .content-area, #primary, #main, .entry-content, .entry-content-wrap, .kadence-woo-template-wrap, .woocommerce, .woocommerce-notices-wrapper, .dmxr4-commerce-wrap, .dmxr4-footer-surface, #dmxr4-footer-surface) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.dmxr4-commerce-surface :where(#inner-wrap, main#inner-wrap, .site-content, .site-main, .content-area, #primary, #main, .kadence-woo-template-wrap, .dmxr4-commerce-wrap) {
  position: relative;
  z-index: 1;
}

body.dmxr4-commerce-surface .site > :where(main, #inner-wrap, .site-content, .site-main, .dmxr4-footer-surface, #dmxr4-footer-surface) {
  display: block !important;
}

body.dmxr4-commerce-surface :where(.cart-empty + .return-to-shop + .widget, .cart-empty + .return-to-shop + .customer_login, .cart-empty + .return-to-shop + .woocommerce-account) {
  display: none !important;
}
body.dmxr4-commerce-surface--cart :where(.widget, .widget_block, .wp-block-search, .search-form, .search-field, .cart-review, .cart-review-wrap) {
  display: none !important;
}
body.dmxr4-commerce-surface--cart .entry-content > h1,
body.dmxr4-commerce-surface--cart .entry-content > h2,
body.dmxr4-commerce-surface--cart .entry-content > h3,
body.dmxr4-commerce-surface--cart .entry-content > p {
  display: none !important;
}
body.dmxr4-dynamic-surface--showroom :where([data-dmxr4-az="1"], .dmxr4-showroom-card-identity, .dmxr4-showroom-featured-card .dmxr4-showroom-compareBtn) {
  display: none !important;
}
body.dmxr4-dynamic-surface--showroom .dmxr4-showroom-drawer__body {
  gap: 18px;
}
body.dmxr4-dynamic-surface--showroom .dmxr4-showroom-taggroup[data-dmxr4-tag-group-label="More"] .dmxr4-showroom-tag:nth-child(n+13) {
  display: none !important;
}
body.dmxr4-dynamic-app-surface .secondary-tools {
  margin-top: 18px;
}


/* v1.19.42 — checkout transaction content isolation */
body.dmxr4-commerce-surface.woocommerce-checkout #customer_details{
  display: block !important;
  width: 48% !important;
  float: left !important;
  clear: left !important;
  margin: 0 0 24px !important;
}
body.dmxr4-commerce-surface.woocommerce-checkout #customer_details::after,
body.dmxr4-commerce-surface.woocommerce-checkout form.checkout::after{
  content: "";
  display: block;
  clear: both;
}
body.dmxr4-commerce-surface.woocommerce-checkout #customer_details > div,
body.dmxr4-commerce-surface.woocommerce-checkout .woocommerce-billing-fields,
body.dmxr4-commerce-surface.woocommerce-checkout .woocommerce-additional-fields{
  min-width: 0;
  width: 100% !important;
  float: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
body.dmxr4-commerce-surface.woocommerce-checkout #order_review_heading,
body.dmxr4-commerce-surface.woocommerce-checkout #order_review{
  width: 48% !important;
  float: right !important;
  clear: none !important;
  display: block !important;
  margin: 0 0 24px !important;
}
body.dmxr4-commerce-surface.woocommerce-checkout #order_review{
  padding: 18px !important;
}
body.dmxr4-commerce-surface.woocommerce-checkout #payment{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-top: 16px !important;
}
@media (max-width: 980px) {
  body.dmxr4-commerce-surface.woocommerce-checkout #customer_details,
  body.dmxr4-commerce-surface.woocommerce-checkout #order_review_heading,
  body.dmxr4-commerce-surface.woocommerce-checkout #order_review{
    width: 100% !important;
    float: none !important;
    clear: both !important;
  }
}



/* Batch 8d — theme-shell Woo should stay native: light tokens only, no public-shell takeover */
body.dmxr4-commerce-surface.dmxr4-site-shell-commerce{
  background: var(--dmxr-sys-bg) !important;
}
body.dmxr4-commerce-surface.dmxr4-shell--theme .content-area,
body.dmxr4-commerce-surface.dmxr4-shell--theme .site-main,
body.dmxr4-commerce-surface.dmxr4-shell--theme .entry-content,
body.dmxr4-commerce-surface.dmxr4-shell--theme #primary,
body.dmxr4-commerce-surface.dmxr4-shell--theme #main{
  background: transparent !important;
}
body.dmxr4-commerce-surface.dmxr4-shell--theme.woocommerce-account .woocommerce-account .woocommerce{
  display: block;
}
body.dmxr4-commerce-surface.dmxr4-shell--theme.woocommerce-account .woocommerce-MyAccount-navigation,
body.dmxr4-commerce-surface.dmxr4-shell--theme.woocommerce-account .woocommerce-MyAccount-content{
  background: #fff;
  border: 1px solid var(--dmxr-sys-border);
  border-radius: var(--dmxr-sys-radius-lg);
  box-shadow: var(--dmxr-sys-shadow);
}
body.dmxr4-commerce-surface.dmxr4-shell--theme.woocommerce-account .woocommerce-MyAccount-navigation a{
  color: var(--dmxr-sys-text);
  background: transparent;
  border: 0;
  padding: 10px 0;
  border-radius: 0;
}
body.dmxr4-commerce-surface.dmxr4-shell--theme.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
body.dmxr4-commerce-surface.dmxr4-shell--theme.woocommerce-account .woocommerce-MyAccount-navigation a:hover{
  background: transparent;
  color: var(--dmxr-sys-brand);
  border-color: transparent;
}

body.dmxr4-commerce-surface.dmxr4-commerce-tone--light.woocommerce-account :where(h1, h2, h3, h4, h5, h6, p, li, label, legend, strong, span, div),
body.dmxr4-commerce-surface:not(.dmxr4-commerce-tone--dark).woocommerce-account :where(h1, h2, h3, h4, h5, h6, p, li, label, legend, strong, span, div) {
  color: var(--dmxr-sys-text);
}

body.dmxr4-commerce-surface.dmxr4-commerce-tone--light.woocommerce-account :where(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content),
body.dmxr4-commerce-surface:not(.dmxr4-commerce-tone--dark).woocommerce-account :where(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content) {
  background: var(--dmxr-sys-surface);
  border: 1px solid var(--dmxr-sys-border);
  box-shadow: var(--dmxr-sys-shadow);
}

body.dmxr4-commerce-surface.dmxr4-commerce-tone--light.woocommerce-account .woocommerce-MyAccount-navigation a,
body.dmxr4-commerce-surface:not(.dmxr4-commerce-tone--dark).woocommerce-account .woocommerce-MyAccount-navigation a {
  color: var(--dmxr-sys-text);
}


/* Batch 10 — final cross-family takeover cleanup
   Theme-shell Woo routes keep native shell/footer continuity.
   Preserve Kadence footer authority and suppress any stray DMXR4 footer mount. */
body.dmxr4-commerce-surface.dmxr4-shell--theme :where(#colophon, .site-footer, footer.site-footer, .site-footer-wrap, .site-top-footer-wrap, .site-middle-footer-wrap, .site-bottom-footer-wrap, .site-footer-row-container, .site-footer-row-container-inner, .kt-footer, .kadence-element-dynamic-footer){
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
}

/* Footer visibility on Kadence-shell commerce routes is source-owned.
   Do not suppress legacy footer markup here; the PHP layer decides whether it exists. */

/* Batch 13 — strict Family 3 defaults
   Theme-shell Woo routes use Kadence/Woo defaults only.
   No DMXR4 surface/footer/nav takeover is allowed on these routes. */
body.woocommerce-account.dmxr4-site-shell-commerce,
body.woocommerce-cart.dmxr4-site-shell-commerce,
body.woocommerce-checkout.dmxr4-site-shell-commerce{
  background: var(--global-palette8);
}

/* Theme-shell Woo routes keep the native footer lane.
   Do not hide footer markup here; rely on source ownership instead. */

body.woocommerce-account.dmxr4-site-shell-commerce :where(#masthead, #mobile-header, #main-header, #colophon, .site-footer, .site-footer-wrap, .site-footer-row-container, .site-footer-row-container-inner, .site-bottom-footer-wrap, .site-bottom-footer-inner-wrap){
  opacity: 1 !important;
  visibility: visible !important;
}
