/* Align the header and the top-level content boxes on the storefront. */
:root {
  --mis-layout-gutters: 96px;
  --mis-layout-width: min(1280px, calc(100% - var(--mis-layout-gutters)));
}

@media (min-width: 1001px) and (max-width: 1190px) {
  :root { --mis-layout-gutters: 48px; }
}

@media (max-width: 1000px) {
  :root { --mis-layout-gutters: 32px; }
}

@media (max-width: 420px) {
  :root { --mis-layout-gutters: 16px; }
}

@media screen {
  .mh .mh-wrap,
  #main:is(.home-main, .cat-main, .checkout-page, .mis-service--gift, .sf-main, .rc-wrap),
  #main.full-basket.container,
  body:not(.mis-product) #main.site-main,
  #main.mis-service > .rc-wrap,
  .mis-product #main > :is(.brxe-xbreadcrumbs, #brx-content),
  .ms-ghee-page #main > .container,
  .ms-ghee-page #main > :is(.benefit-strip, .ghee-benefits, .ghee-scenarios) > .container {
    width: var(--mis-layout-width);
    max-width: none;
    margin-inline: auto;
  }

  body:not(.mis-product) #main.site-main {
    padding-inline: 0;
  }

  #main.mis-service > .rc-wrap > :is(.coop-page, .biz-layout, .jobs-layout) {
    max-width: none;
  }

  #main[data-flow="submit-recipe"] #sf-recipe-editor {
    max-width: 840px;
  }
}
