/* Layout integration. ALL DAY uses Nimbus Cloud from its brand palette. */

/* Release only containers that actually contain the shop or product template.
   Header, footer, menu containers and the inner product grid are not matched. */
body.jump-template-wide :where(div, main, section, article):has(#jump-native-products, #jump-native-product) {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: 0 0 100% !important;
  float: none !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}

body.jump-template-wide :is(#jump-native-products, #jump-native-product) {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin-inline: 0 !important;
}

/* Themes may put a second sidebar directly in their own header/footer wrapper. */
body.jump-template-wide #secondary,
body.jump-template-wide .woocommerce-sidebar {
  display: none !important;
}

/* Shop, product details and Contact keep the site's general background visible. */
:is(#jump-native-products, #jump-native-product, #jump-native-contact) {
  background: transparent;
}

/* Cover margins outside an ALL DAY template contained by the active theme.
   This changes no header/footer selectors or other page backgrounds. */
body.jump-template-allday,
body.jump-template-allday-collection {
  background: #d5d5d7;
}

/* The editorial page also spans the viewport inside a boxed theme. */
body.jump-template-allday :where(div, main, section, article):has(#jump-native-allday) {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
  background: transparent;
}
body.jump-template-allday-collection #jump-native-products,
body.jump-template-allday-collection #jump-native-product {
  background: #d5d5d7;
  color: #2c2c2e;
}

/* 2.10.4: Contact's hero reaches both edges; its form keeps the inner reading width. */
body.jump-template-contact :where(div, main, section, article):has(#jump-native-contact) {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: 0 0 100% !important;
  float: none !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}
body.jump-template-contact #jump-native-contact {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin-inline: 0 !important;
}
