/* Apply a background layer to the page and opaque storefront sections.
   Individual product cards, forms and controls retain their own surfaces. */
html body {
  --nk-wave-image: url("/users/assets/customer-contour-waves.svg?v=2");
  --nk-wave-base: #fff8fb;
}
html body,
html body .nk-discovery-hero,
html body .products-section,
html body .features-section,
html body .nk-bottom-collections,
html body .nk-blog-preview,
html body :is(footer, footer.nk-legal-footer) {
  background-color: var(--nk-wave-base) !important;
  background-image: var(--nk-wave-image) !important;
  background-position: center top !important;
  background-size: 100% 660px !important;
  background-repeat: repeat-y !important;
}
html body .nk-discovery-hero,
html body .features-section,
html body :is(footer, footer.nk-legal-footer) {
  background-position: center !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
}
@media (max-width: 600px) {
  html body { --nk-wave-base: #fffafd; }
  html body { background-size: 100% 460px !important; }
   html body :is(footer, footer.nk-legal-footer) { background-size: 100% 100% !important; }
}
@media (forced-colors: active) {
  html body {
    --nk-wave-image: none;
    --nk-wave-base: Canvas;
  }
}

/* Match the storefront reset's class specificity so its background shorthand
   cannot clear the wave. The inbox panels cover the page canvas completely. */
html body:is(.nk-wave-cart, .nk-wave-inbox, .nk-wave-product),
html body.nk-wave-inbox :is(.seller-list, .chat-messages, .details-panel),
html body.nk-wave-product #product-main-section {
  background-color: var(--nk-wave-base) !important;
  background-image: var(--nk-wave-image) !important;
  background-position: center top !important;
  background-repeat: repeat-y !important;
  background-size: 100% 660px !important;
}
html body.nk-wave-inbox .seller-list {
  background-position: left top !important;
  background-size: min(720px, 170vw) 480px !important;
}
@media (max-width: 600px) {
  html body:is(.nk-wave-cart, .nk-wave-inbox, .nk-wave-product),
  html body.nk-wave-inbox :is(.chat-messages, .details-panel),
  html body.nk-wave-product #product-main-section {
    background-size: 100% 460px !important;
  }
}
