/* [GM] Delta: quick registration dialog - START */
.aoy-hero-promo__download-alt[aria-busy="true"]::after {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: aoyRegistrationBusy 0.7s linear infinite;
}

@keyframes aoyRegistrationBusy {
  to { transform: rotate(360deg); }
}

.aoy-registration-modal .aoy-registration-modal__dialog {
  display: block;
  width: min(1088px, calc(100vw - 24px));
  height: min(850px, calc(100dvh - 24px));
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.aoy-registration-modal__sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.aoy-registration-modal .aoy-registration-modal__close {
  top: 12px;
  right: 22px;
  z-index: 8;
}

.aoy-registration-modal__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  opacity: 0;
}

.aoy-registration-modal.is-ready .aoy-registration-modal__frame {
  opacity: 1;
}

.aoy-registration-modal__loading,
.aoy-registration-modal__error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 24px 24px;
  color: #d7eafa;
  text-align: center;
}

.aoy-registration-modal__loading[hidden],
.aoy-registration-modal__error[hidden] {
  display: none;
}

.aoy-registration-modal__error {
  flex-direction: column;
  gap: 8px;
}

.aoy-registration-modal__error a { color: #8fd8ff; }

html[data-aoy-color-scheme="light"] .aoy-registration-modal .aoy-registration-modal__dialog,
html[data-aoy-color-scheme="light"] .aoy-registration-modal__frame {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-aoy-color-scheme="light"] .aoy-registration-modal__loading,
html[data-aoy-color-scheme="light"] .aoy-registration-modal__error { color: #17334a; }
html[data-aoy-color-scheme="light"] .aoy-registration-modal__error a { color: #075f92; }

html:has(body.aoy-registration-embed) {
  background: transparent !important;
}

html[data-aoy-color-scheme] body.aoy-inner-page.aoy-registration-embed,
html[data-aoy-color-scheme] body.aoy-inner-page.aoy-registration-embed.aoy-light-theme,
html[data-aoy-color-scheme] body.aoy-inner-page.aoy-registration-embed.aoy-dark-theme {
  min-width: 0 !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  background: transparent !important;
}

body.aoy-registration-embed > :not(.sections-container):not(script):not(style),
body.aoy-registration-embed #section-main > .container.aoy-inner-page-balance-shell > :not(form.account-register-wrap):not(.account-register-modal-success):not(script):not(style) {
  display: none !important;
}

body.aoy-registration-embed .sections-container,
body.aoy-registration-embed .sections,
body.aoy-registration-embed #section-main,
body.aoy-registration-embed #section-main > .container.aoy-inner-page-balance-shell {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.aoy-registration-embed #section-main > .container.aoy-inner-page-balance-shell {
  /* Counter the book's negative page-heading margin without changing its panels. */
  padding-top: 30px !important;
}

body.aoy-registration-embed form.account-register-wrap {
  margin-bottom: 0;
}

body.aoy-registration-embed .account-register-modal-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 42px 28px;
  box-sizing: border-box;
  color: #e5f4ff;
  text-align: center;
}
body.aoy-registration-embed .account-register-modal-success i {
  margin-bottom: 18px;
  color: #8fd8ff;
  font-size: 42px;
}
body.aoy-registration-embed .account-register-modal-success h2 { color: inherit; }
body.aoy-registration-embed .account-register-modal-success p {
  max-width: 38ch;
  color: #c5dced;
}
body.aoy-registration-embed .account-register-modal-success a {
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--aoy-action-fill, #167db4);
  color: var(--aoy-action-ink, #062635);
  font-weight: 700;
  text-decoration: none;
}
body.aoy-registration-embed .account-register-modal-success a:focus-visible,
body.aoy-registration-embed .account-register-modal-success a:hover {
  background: var(--aoy-action-hover-fill, #0d6699);
  color: var(--aoy-action-ink, #062635);
  outline: 2px solid #8fd8ff;
  outline-offset: 2px;
}
html[data-aoy-color-scheme="light"] body.aoy-registration-embed .account-register-modal-success { color: #17334a; }
html[data-aoy-color-scheme="light"] body.aoy-registration-embed .account-register-modal-success p { color: #4c6a80; }

@media (max-width: 600px) {
  .aoy-registration-modal .aoy-registration-modal__dialog {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
  }

  body.aoy-registration-embed #section-main > .container.aoy-inner-page-balance-shell {
    padding-top: 18px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aoy-hero-promo__download-alt[aria-busy="true"]::after {
    animation: none;
  }
  .aoy-registration-modal,
  .aoy-registration-modal .aoy-registration-modal__dialog,
  .aoy-registration-modal__frame {
    transition: none !important;
  }
}
/* [GM] Delta: quick registration dialog - END */
