/* Official GetCourse embeds
   The form itself is served by GetCourse; these rules integrate its frame and
   surrounding space into the AWA layout. */
.awa-gc-widget {
  width: 100%;
  max-width: 680px;
  margin: 10px auto 0;
  overflow: hidden;
  border-radius: 24px;
  color: var(--ink);
}

.awa-gc-widget iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;
  border: 0;
  background: transparent;
}

.awa-gc-widget noscript {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink-2);
}

.final-form-box {
  scroll-margin-top: 110px;
}

.final-form-box .awa-gc-widget,
.article-cta .awa-gc-widget,
.cta-card .awa-gc-widget {
  margin-top: 8px;
}

.ol-modal-card {
  max-height: min(92vh, 860px);
  overflow-y: auto;
}

.ol-modal-body .awa-gc-widget--modal {
  margin-top: 14px;
}

@media (max-width: 720px) {
  .awa-gc-widget {
    margin-top: 8px;
    border-radius: 18px;
  }

  .ol-modal-card {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
  }
}


/* Paid-course widget modal. */
.purchase-modal-card {
  width: min(720px, calc(100% - 32px));
}

.purchase-modal .ol-modal-lead {
  margin-bottom: 8px;
  font-weight: 600;
}

.purchase-modal-loading {
  margin: 20px 0;
  color: var(--muted);
  text-align: center;
}

.purchase-modal #purchase-widget-host,
.purchase-modal .awa-gc-widget--purchase {
  width: 100%;
}

.purchase-modal .awa-gc-widget--purchase {
  margin-top: 8px;
}

@media (max-width: 720px) {
  .purchase-modal-card {
    width: calc(100% - 24px);
  }
}
