.purchase-license-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  padding: 24px;
  place-items: center;
  overflow-y: auto;
  background: rgba(2, 3, 18, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.purchase-license-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.purchase-license-dialog {
  position: relative;
  width: min(860px, 100%);
  min-height: 700px;
  overflow: hidden;
  color: #f3f8ff;
  background: linear-gradient(180deg, #258db4 0%, #245b92 40%, #223371 100%);
  font-family: "Graphik LCG", Arial, Helvetica, sans-serif;
  transform: translateY(12px);
  transition: transform 180ms ease;
}

.purchase-license-overlay.is-open .purchase-license-dialog {
  transform: translateY(0);
}

.purchase-license-logo {
  position: absolute;
  top: 42px;
  left: 64px;
  display: block;
  width: 52px;
  height: 52px;
}

.purchase-license-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #f3f8ff;
  background: transparent;
  cursor: pointer;
}

.purchase-license-close::before,
.purchase-license-close::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  width: 34px;
  height: 2px;
  background: currentColor;
}

.purchase-license-close::before { transform: rotate(45deg); }
.purchase-license-close::after { transform: rotate(-45deg); }

.purchase-license-title {
  position: absolute;
  top: 126px;
  right: 48px;
  left: 64px;
  margin: 0;
  font-size: 56px;
  font-weight: 600;
  line-height: 0.93;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: scaleX(0.92);
  transform-origin: left top;
}

.purchase-license-title span {
  display: block;
  white-space: nowrap;
}

.purchase-license-plan {
  position: absolute;
  top: 238px;
  left: 64px;
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.purchase-license-form {
  position: absolute;
  inset: 282px 64px 46px;
}

.purchase-license-email-row {
  display: block;
  width: 690px;
}

.purchase-license-field {
  display: block;
  width: 100%;
}

.purchase-license-field-label {
  display: block;
  margin-bottom: 9px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.purchase-license-email {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(243, 248, 255, 0.66);
  border-radius: 0;
  color: #f3f8ff;
  background: rgba(8, 15, 40, 0.42);
  font: inherit;
  font-size: 18px;
  line-height: 1;
  outline: none;
}

.purchase-license-email::placeholder {
  color: rgba(243, 248, 255, 0.55);
}

.purchase-license-email.is-invalid {
  border-color: #ffb5bd;
}

.purchase-license-field-error {
  display: block;
  min-height: 17px;
  margin-top: 6px;
  color: #ffe0e4;
  font-size: 14px;
  line-height: 1.15;
}

.purchase-license-field-error:empty {
  min-height: 0;
  margin-top: 0;
}

.purchase-license-email-note {
  margin: 5px 0 0;
  color: rgba(243, 248, 255, 0.82);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0;
}

.purchase-license-consents {
  display: grid;
  width: 690px;
  gap: 12px;
  margin-top: 28px;
}

.purchase-license-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

.purchase-license-checkbox {
  width: 20px;
  height: 20px;
  margin: 0;
  appearance: none;
  border: 1px solid #f3f8ff;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.purchase-license-checkbox:checked {
  background: #f3f8ff;
  box-shadow: inset 0 0 0 4px #286b9d;
}

.purchase-license-consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.purchase-license-submit {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  width: 364px;
  min-height: 50px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  color: #f3f8ff;
  background: linear-gradient(90deg, #31bdb8 0%, #4d81d3 50%, #6d4eeb 100%);
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
}

.purchase-license-submit:disabled {
  color: rgba(243, 248, 255, 0.46);
  background: #245b92;
  cursor: not-allowed;
}

.purchase-license-form-error {
  position: absolute;
  right: 0;
  bottom: 14px;
  width: 310px;
  margin: 0;
  color: #ffe0e4;
  font-size: 15px;
  line-height: 1.16;
}

.purchase-license-close:focus-visible,
.purchase-license-email:focus-visible,
.purchase-license-checkbox:focus-visible,
.purchase-license-submit:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

body.purchase-license-lock {
  overflow: hidden;
}

@media (max-width: 720px) {
  .purchase-license-overlay {
    padding: 14px;
    place-items: start center;
  }

  .purchase-license-dialog {
    min-height: 0;
    padding: 36px 24px 30px;
    overflow: visible;
  }

  .purchase-license-logo,
  .purchase-license-title,
  .purchase-license-plan,
  .purchase-license-form,
  .purchase-license-submit,
  .purchase-license-form-error {
    position: static;
  }

  .purchase-license-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 42px;
  }

  .purchase-license-title {
    font-size: clamp(34px, 10.5vw, 48px);
    transform: none;
  }

  .purchase-license-title span {
    white-space: normal;
  }

  .purchase-license-plan {
    margin-top: 24px;
    font-size: 20px;
  }

  .purchase-license-form {
    margin-top: 25px;
  }

  .purchase-license-field,
  .purchase-license-email-row,
  .purchase-license-consents,
  .purchase-license-submit,
  .purchase-license-form-error {
    width: 100%;
  }

  .purchase-license-email-note {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.2;
  }

  .purchase-license-consents {
    gap: 14px;
  }

  .purchase-license-consent {
    font-size: 16px;
    line-height: 1.14;
  }

  .purchase-license-submit {
    margin-top: 30px;
  }

  .purchase-license-form-error {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .purchase-license-overlay,
  .purchase-license-dialog {
    transition: none;
  }
}
