html.bo-dialog-scroll-lock,
html.bo-dialog-scroll-lock body {
  overflow: hidden !important;
}

.form-status,
[role="status"] {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.bo-dialog-fallback-backdrop {
  position: fixed;
  z-index: 99998;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background: rgba(8, 20, 38, 0.62);
}

dialog.bo-dialog-fallback-open[open] {
  position: fixed;
  z-index: 99999;
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  inset: 50% auto auto 50%;
  display: block;
  width: min(620px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  margin: 0;
  overflow: auto;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  background: #fff;
  color: #10213d;
}

@supports (height: 100dvh) {
  dialog.bo-dialog-fallback-open[open] {
    max-height: calc(100dvh - 24px);
  }
}

@media (max-width: 620px) {
  dialog.bo-dialog-fallback-open[open] {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }
}
