.registration-popup {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  width: min(486px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  height: min(760px, 90dvh, calc(100dvh - 32px));
  max-height: min(90dvh, calc(100dvh - 32px));
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #454545;
  border-radius: 10px;
  background: #222;
  color: #fff;
  box-shadow: 0 18px 60px #0009;
}

.registration-popup::backdrop {
  background: rgb(0 0 0 / 65%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.registration-popup iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #222;
}

.registration-popup-close {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #666;
  border-radius: 50%;
  background: #292929;
  color: #fff;
  font: 24px/1 Arial, sans-serif;
  cursor: pointer;
}

.registration-popup-close:focus-visible {
  outline: 2px solid #ff3030;
  outline-offset: 2px;
}
