/* Bensbc: keep the contract dialog inside the visible mobile viewport. */
.cr-pop.cr-pop {
  box-sizing: border-box;
  height: 100%;
  height: 100dvh;
}
.cr-pop .cr-pop__panel {
  box-sizing: border-box;
  max-height: 100%;
}
@media (max-width: 720px) {
  .cr-pop .cr-pop__panel {
    height: 100%;
    max-height: 100%;
  }
  .cr-pop .cr-pop__body {
    padding-top: env(safe-area-inset-top, 0px);
    scroll-padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .cr-pop .cr-rep-signbar {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}
/* The dialog owns navigation while open; restore tabs immediately on close. */
.at-shell:has(.cr-pop) .at-tabbar,
.cr-app:has(.cr-pop) .cr-tabbar {
  visibility: hidden;
  pointer-events: none;
}
