body.uxg-moodle-popup-open {
  overflow: hidden;
}

.uxg-moodle-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
}

.uxg-moodle-popup.is-open,
.uxg-moodle-popup:not([hidden]) {
  display: block;
}

.uxg-moodle-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
}

.uxg-moodle-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: 24px 24px 32px;
}

.uxg-moodle-popup__title {
  margin: 0 48px 16px 0;
  font-size: 1.5rem;
  line-height: 1.3;
}

.uxg-moodle-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 32px;
  font-weight: 300;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  color: #64748b !important;
  appearance: none;
  -webkit-appearance: none;
}

.uxg-moodle-popup__close:hover,
.uxg-moodle-popup__close:focus {
  background: transparent !important;
  color: #0f172a !important;
  box-shadow: none !important;
  outline: none;
}

.uxg-moodle-popup__close:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}

.uxg-moodle-popup__body .fluentform {
  margin: 0;
}

.uxg-moodle-register-trigger {
  cursor: pointer;
}

.uxg-moodle-popup__error {
  margin: 0;
  color: #b42318;
}

@media (max-width: 640px) {
  .uxg-moodle-popup__dialog {
    width: calc(100vw - 16px);
    margin: 8px auto;
    padding: 20px 16px 24px;
  }
}
