/* Keep the consent actions visible while the mobile login form can scroll. */
@media (max-width: 820px) {
  #app:has(> .login-shell + .cookie-banner) {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  #app:has(> .cookie-banner) > .login-shell {
    min-height: 0;
    overflow-y: auto;
  }

  #app > .login-shell + .cookie-banner {
    position: static;
    box-sizing: border-box;
    min-width: 0;
    max-height: 44vh;
    max-height: 44dvh;
    overflow-y: auto;
    margin: 4px 12px max(8px, env(safe-area-inset-bottom, 0px));
  }

  #app > .login-shell + .cookie-banner .cookie-banner-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #app > .login-shell + .cookie-banner .cookie-choice {
    min-width: 0;
    white-space: normal;
  }
}
