/* Mobile: pages use <meta viewport width=980> so phones scale the fixed
   980px Wix layout to fit the screen. Stop iOS/Android from selectively
   inflating text, which would break the scaled layout. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Hide the old Wix page as soon as navigation starts. */
html::after {
  content: "";
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 90ms ease, visibility 0s linear 90ms;
}

html.local-page-leaving::after {
  opacity: 1;
  visibility: visible;
  transition: opacity 90ms ease;
}

@media (prefers-reduced-motion: reduce) {
  html::after,
  html.local-page-leaving::after {
    transition: none;
  }
}

/* Full-screen menu that local-motion-fix.js opens from the Wix mobile
   hamburger (TINY_MENU), whose own handlers never attach on the mirror. */
.local-tiny-menu-panel {
  position: fixed;
  inset: 0;
  z-index: 2147480000;
  background: rgba(255, 255, 255, .98);
  padding: 64px 28px 32px;
  overflow-y: auto;
  box-sizing: border-box;
  font-family: "Helvetica Neue", "Yu Gothic", "Hiragino Kaku Gothic ProN", meiryo, sans-serif;
}

.local-tiny-menu-panel[hidden] {
  display: none;
}

html.local-tiny-menu-open,
html.local-tiny-menu-open body {
  overflow: hidden;
}

.local-tiny-menu-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: none;
  padding: 6px 10px;
  color: #2f2e2e;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.local-tiny-menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.local-tiny-menu-list li {
  border-bottom: 1px solid rgba(122, 207, 196, .45);
}

.local-tiny-menu-list a {
  display: block;
  padding: 16px 4px;
  color: #2f2e2e;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.local-tiny-menu-list a.local-tiny-menu-current {
  color: #d1a557;
}

/* Keep the two YouTube players inside the original 980px Wix panel. */
#comp-khdazp9x {
  box-sizing: border-box;
  overflow: hidden;
}

#comp-khdaxo27,
#comp-khdayoo5 {
  box-sizing: border-box;
  width: 448px !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

#comp-khdaxo27 iframe[data-local-youtube],
#comp-khdayoo5 iframe[data-local-youtube] {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

@media (max-width: 750px) {
  #comp-khdazp9x {
    width: calc(100vw - 32px) !important;
    margin-inline: 16px !important;
  }

  #comp-khdaxo27,
  #comp-khdayoo5 {
    position: relative !important;
    left: 0 !important;
    width: calc(100% - 32px) !important;
    margin: 0 16px 20px !important;
    grid-area: auto !important;
  }
}

/* Netlify-compatible replacement for the unavailable Wix Form Builder iframe. */
#comp-kyqs111g {
  height: 980px !important;
  min-height: 980px;
  overflow: visible !important;
}

#comp-jpkisyfi {
  --brw: 1px !important;
  --brd: 190,190,190 !important;
  --alpha-brd: 1 !important;
  --rd: 4px !important;
}

[data-mesh-id="comp-lxx7tcgv1inlineContent-gridContainer"] {
  min-height: 1250px !important;
}

.ecosleep-contact-form {
  display: block !important;
  width: 100%;
  box-sizing: border-box;
  color: #4b4b4b;
  font-family: "Helvetica Neue", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

.ecosleep-contact-form label {
  display: block;
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
}

.ecosleep-contact-form label span {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
}

.ecosleep-contact-form .required {
  display: inline;
  margin-left: 5px;
  color: #e21c21;
  font-size: 12px;
}

.ecosleep-contact-form input,
.ecosleep-contact-form select,
.ecosleep-contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #aaa;
  border-radius: 0;
  background: #fff;
  padding: 12px 13px;
  color: #2f2e2e;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.ecosleep-contact-form input:focus,
.ecosleep-contact-form select:focus,
.ecosleep-contact-form textarea:focus {
  border-color: #7acfc4;
  box-shadow: 0 0 0 3px rgba(122, 207, 196, .18);
  outline: none;
}

.ecosleep-contact-form textarea {
  min-height: 145px;
  resize: vertical;
}

.ecosleep-contact-form select {
  min-height: 48px;
  appearance: auto;
}

.ecosleep-contact-form .ecosleep-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.ecosleep-contact-form .ecosleep-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ecosleep-contact-form .ecosleep-consent input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.ecosleep-contact-form .ecosleep-consent span {
  margin: 0;
  font-weight: 400;
}

.ecosleep-contact-form button {
  width: 100%;
  border: 0;
  background: #b6f3e8;
  padding: 13px 24px;
  color: #2f2e2e;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.ecosleep-contact-form button:hover {
  background: #8fe4d5;
}

.ecosleep-contact-form button:active {
  transform: translateY(1px);
}

.ecosleep-contact-form button:disabled {
  cursor: wait;
  opacity: .65;
}

.ecosleep-form-status {
  min-height: 1.5em;
  margin-top: 12px;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.ecosleep-form-success {
  padding: 42px 18px;
  border: 2px solid #b6f3e8;
  text-align: center;
  font-size: 18px;
  line-height: 1.8;
}
