/*
 * Zanisence one-page wrapper for Shoptet.
 * The rules are active only on the homepage after zanisence-onepage.js starts.
 */

html.zanisence-landing-pending,
html.zanisence-landing-active {
  background: #faf7f2 !important;
}

html.zanisence-landing-pending body.in-index > .overall-wrapper {
  visibility: hidden !important;
}

html.zanisence-landing-active,
html.zanisence-landing-active body {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #faf7f2 !important;
}

body.zanisence-landing-active > .overall-wrapper,
body.zanisence-landing-active > .skip-link,
body.zanisence-landing-active > .container,
body.zanisence-landing-active > .messages {
  display: none !important;
}

#zanisence-landing-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #faf7f2;
}

@supports (height: 100dvh) {
  #zanisence-landing-root {
    height: 100dvh;
  }
}

#zanisence-landing-frame {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #faf7f2;
}

#zanisence-landing-status {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: #faf7f2;
  color: #7a6460;
  font: 400 0.9rem/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: center;
  transition: opacity 180ms ease;
}

#zanisence-landing-root.is-loaded #zanisence-landing-status {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/*
 * Shoptet's consent bar remains usable above the one-page content.
 * Do not hide it: Shoptet may load analytics or marketing integrations.
 */
body.zanisence-landing-active > .siteCookies,
body.zanisence-landing-active > #cboxOverlay,
body.zanisence-landing-active > #colorbox {
  z-index: 2147483646 !important;
}
