html[data-wallet-popup-surface],
html[data-wallet-popup-surface] body {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Only toolbar panels need an intrinsic size. Approval windows use their viewport. */
html[data-wallet-popup-surface="toolbar"] {
  width: 400px;
  height: 600px;
}

/* Chrome may cap the panel on small displays. Keep its contents in that viewport. */
html[data-wallet-popup-surface="toolbar"] body {
  width: 100vw;
  height: 100vh;
}
