/* Rowland Made Website V163 — viewport recommendation modal and Studio-controlled purpose. */
html.rm-ymal-modal-open,
body.rm-ymal-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body.rm-ymal-modal-open .ask-nat-widget {
  visibility: hidden !important;
  pointer-events: none !important;
}

body > .rm-ymal-backdrop {
  --rm-ymal-accent: var(--pink, #ef86a4);
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: grid !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding:
    max(18px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left)) !important;
  place-items: center !important;
  overflow: hidden !important;
  isolation: isolate;
  background: rgba(7, 30, 61, 0.64) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

body > .rm-ymal-backdrop.rm-ymal-type-complete_bundle {
  --rm-ymal-accent: var(--yellow, #f6c547);
}

body > .rm-ymal-backdrop.rm-ymal-type-complementary {
  --rm-ymal-accent: #78b9b1;
}

body > .rm-ymal-backdrop > .rm-ymal-sheet {
  position: relative !important;
  width: min(980px, 100%) !important;
  max-width: 980px !important;
  max-height: min(760px, calc(100dvh - 36px)) !important;
  margin: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  border: 2px solid var(--navy, #071e3d) !important;
  border-top: 8px solid var(--rm-ymal-accent) !important;
  border-radius: 28px !important;
  background: var(--cream, #fff8eb) !important;
  box-shadow:
    10px 12px 0 rgba(7, 30, 61, 0.3),
    0 32px 90px rgba(7, 30, 61, 0.3) !important;
}

body > .rm-ymal-backdrop .rm-ymal-head > div > span {
  color: #276f53 !important;
}

body > .rm-ymal-backdrop.rm-ymal-type-think_youll_love .rm-ymal-head {
  background: linear-gradient(180deg, rgba(239, 134, 164, 0.13), transparent);
}

body > .rm-ymal-backdrop.rm-ymal-type-complete_bundle .rm-ymal-progress:not(.unlocked) {
  background: var(--yellow, #f6c547) !important;
}

body > .rm-ymal-backdrop.rm-ymal-type-complementary .rm-ymal-head {
  background: linear-gradient(180deg, rgba(120, 185, 177, 0.17), transparent);
}

body > .rm-ymal-backdrop .rm-ymal-actions {
  z-index: 2;
}

@media (max-width: 700px) {
  body > .rm-ymal-backdrop {
    align-items: end !important;
    justify-items: stretch !important;
    padding: 0 !important;
    background: rgba(7, 30, 61, 0.56) !important;
  }

  body > .rm-ymal-backdrop > .rm-ymal-sheet {
    width: 100% !important;
    max-width: none !important;
    max-height: min(91dvh, 760px) !important;
    border-width: 2px 0 0 !important;
    border-top-width: 7px !important;
    border-radius: 28px 28px 0 0 !important;
    box-shadow: 0 -18px 60px rgba(7, 30, 61, 0.3) !important;
  }

  body > .rm-ymal-backdrop .rm-ymal-actions {
    padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
  }
}

@media (max-height: 620px) {
  body > .rm-ymal-backdrop > .rm-ymal-sheet {
    max-height: 96dvh !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body > .rm-ymal-backdrop,
  body > .rm-ymal-backdrop > .rm-ymal-sheet {
    scroll-behavior: auto !important;
  }
}
