.brand-auth-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.brand-auth-dialog::backdrop {
  background: rgb(0 0 0 / 45%);
}
.brand-auth-dialog iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}
.brand-auth-dialog:not([data-auth-prepared]) iframe {
  visibility: hidden;
}
.brand-auth-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-content: center;
  gap: 16px;
  width: min(420px, calc(100% - 24px));
  height: min(690px, calc(100dvh - 48px));
  border-radius: 18px;
  background: #fff;
  color: #666;
  text-align: center;
  font: 14px/1.55 system-ui;
  box-shadow: 0 20px 60px rgb(0 0 0 / 16%);
}
.brand-auth-loading[hidden] {
  display: none;
}
.brand-auth-loading button {
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  color: #333;
  cursor: pointer;
}
.brand-auth-fallback {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: white;
  color: #333;
  font: 26px/1 system-ui;
  cursor: pointer;
}
