/* The gate is a native modal. Page scrolling is unchanged when it closes. */
.lh-gate {
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  box-sizing: border-box;
  padding: 0;
  border: 1px solid #DED5C4;
  border-radius: 20px;
  background: #FAF9F6;
  color: #0B1B33;
  box-shadow: 0 24px 80px rgba(11,27,51,.28);
  overflow: auto;
  overscroll-behavior: contain;
}
.lh-gate::backdrop { background: rgba(11,27,51,.72); }
.lh-gate [hidden] { display: none !important; }
.lh-gate-top { position: relative; padding: 1.6rem 1.6rem 1.15rem; background: #F5F1E8; border-bottom: 1px solid #DED5C4; }
.lh-gate .lh-gate-step { margin: 0 3rem .6rem 0; color: #79633D; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lh-gate h2 { font: 600 1.5rem/1.2 Inter,sans-serif; margin: 0 2rem .65rem 0; letter-spacing: -.035em; }
.lh-gate .lh-gate-intro { font-size: .85rem; line-height: 1.6; margin: 0; }
.lh-gate-close { position: absolute; top: .85rem; right: .85rem; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #C9C1B3; border-radius: 50%; color: #0B1B33; background: transparent; cursor: pointer; }
.lh-gate-close svg { width: 18px; height: 18px; }
.lh-gate-main { padding: 1.2rem 1.6rem 1.4rem; }
.lh-gate .lh-gate-selected { margin: 0 0 1.05rem; padding: .65rem .8rem; background: #F0F2F4; border-radius: 9px; color: #425168; font-size: .75rem; line-height: 1.5; overflow-wrap: anywhere; }
.lh-gate .lh-gate-selected strong { color: #0B1B33; }
.lh-gate-fields { display: grid; gap: .75rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.lh-gate-name { display: grid; grid-template-columns: 6.4rem minmax(0,1fr) minmax(0,1fr); gap: .6rem; }
.lh-gate label { display: block; margin: 0 0 .3rem; font-size: .75rem; line-height: 1.4; font-weight: 600; color: #0B1B33; }
.lh-gate input, .lh-gate select { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid #BCC4CF; border-radius: 8px; background: #fff; color: #0B1B33; padding: .65rem .7rem; font: 400 1rem/1.4 Inter,sans-serif; }
.lh-gate select { padding-right: 1.8rem; }
.lh-gate input::placeholder { color: #697586; opacity: 1; }
.lh-gate .btn { min-height: 46px; width: 100%; margin-top: 1rem; white-space: normal; }
.lh-gate :focus-visible { outline: 3px solid #927345; outline-offset: 3px; }
.lh-gate button:disabled { cursor: wait; opacity: .7; }
.lh-gate .lh-gate-hp { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.lh-gate .lh-gate-code-intro { margin: 0 0 1rem; font-size: .88rem; line-height: 1.65; overflow-wrap: anywhere; }
.lh-gate #lh-gate-code { font-size: 1.3rem; text-align: center; letter-spacing: .3em; }
.lh-gate .lh-gate-secondary { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; justify-content: space-between; margin-top: .6rem; }
.lh-gate .lh-gate-text-button { background: transparent; border: 0; color: #0B1B33; text-decoration: underline; text-underline-offset: .2em; font: 500 .8rem/1.4 Inter,sans-serif; cursor: pointer; min-height: 44px; padding: .25rem 0; }
.lh-gate .lh-gate-note { margin: .25rem 0 0; color: #536075; font-size: .75rem; line-height: 1.6; }
.lh-gate .lh-gate-error { margin: .8rem 0 0; padding: .7rem .8rem; background: #FFF0ED; color: #963128; border-radius: 8px; font-size: .8rem; line-height: 1.55; }
.lh-gate .lh-gate-status { margin: .6rem 0 0; font-size: .8rem; line-height: 1.55; color: #425168; }
.lh-gate .lh-gate-privacy { border-top: 1px solid #DDD8CE; margin-top: 1rem; padding-top: .85rem; font-size: .72rem; line-height: 1.6; color: #536075; }
.lh-gate .lh-gate-privacy a { color: #0B1B33; text-decoration: underline; }
.lh-gate .lh-gate-privacy p { font-size: inherit; margin: 0 0 .5rem; }
.lh-gate .lh-gate-privacy p:last-child { margin: 0; }
@media (max-width: 420px) {
  .lh-gate { width: calc(100% - 1.2rem); max-height: calc(100dvh - 1.2rem); border-radius: 15px; }
  .lh-gate-top { padding: 1.2rem 1rem 1rem; }
  .lh-gate-main { padding: 1rem; }
  .lh-gate h2 { font-size: 1.35rem; }
  .lh-gate-name { grid-template-columns: 6.4rem minmax(0,1fr); }
  .lh-gate-name > :last-child { grid-column: 1 / -1; }
}
