/* Layout-only overrides. The supplied React source is preserved verbatim. */
html { -webkit-text-size-adjust: 100%; }
body { background: #e9e5dd; }
#mfre-wrapper { width: calc(100% - 48px); max-width: 680px; margin: 24px auto; border-radius: 24px; }
#mfre-root { height: clamp(720px, calc(100svh - 48px), 880px); }
#mfre-root, #mfre-root * { box-sizing: border-box; }
#mfre-root > div > div:nth-child(2) { padding: 28px 32px 18px !important; }
/* Allow each step to scroll on short screens and when a keyboard is open. */
#mfre-root > div > div:last-child { min-height: 0; overflow-y: auto !important; overflow-x: hidden !important; overscroll-behavior: contain; }
#mfre-root > div > div:last-child > div { min-height: 100%; height: 100% !important; }
#mfre-root > div > div:last-child > div > div:not([style*="position: absolute"]) { height: auto !important; min-height: 100%; }
#mfre-root input { min-width: 0; max-width: 100%; font-size: 16px !important; scroll-margin: 24px; }
#mfre-root button, #mfre-root a { touch-action: manipulation; min-height: 44px; }
#mfre-root button { flex-shrink: 0; }
#mfre-root button:focus-visible, #mfre-root a:focus-visible, #mfre-root input:focus-visible { outline: 3px solid #d4a84b !important; outline-offset: 3px; }
#mfre-root h1 { font-size: clamp(32px, 5vw, 46px) !important; line-height: 1.1 !important; }
#mfre-root h2 { font-size: clamp(27px, 4vw, 34px) !important; }
#mfre-root .mfre-cta { text-align: center; }
@media (min-width: 600px) {
  #mfre-root > div > div:last-child > div > div { padding-left: 40px !important; padding-right: 40px !important; }
  #mfre-root > div > div:last-child > div > div > button { min-height: 54px; }
}
@media (max-width: 599px) {
  body { background: #f6f1e8; }
  #mfre-wrapper { width: 100%; max-width: none; margin: 0; border-radius: 0; box-shadow: none; }
  #mfre-root { height: 100svh; min-height: 520px; }
  #mfre-root > div > div:nth-child(2) { padding: max(20px, env(safe-area-inset-top)) 22px 12px !important; }
  #mfre-root > div > div:last-child { padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-width: 359px) {
  #mfre-root > div > div:last-child > div > div { padding-left: 16px !important; padding-right: 16px !important; }
  #mfre-root h1 { font-size: 30px !important; }
}
@media (prefers-reduced-motion: reduce) {
  #mfre-root *, #mfre-root *::before, #mfre-root *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
