.wua-download-gate[hidden],
.wua-download-gate [hidden] {
  display: none;
}

.wua-download-gate {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.wua-download-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 31, 0.66);
  backdrop-filter: blur(3px);
}

.wua-download-gate__dialog {
  position: relative;
  width: min(100%, 520px);
  padding: clamp(28px, 5vw, 44px);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(12, 18, 31, 0.28);
  color: #172033;
  text-align: center;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.wua-download-gate__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5f6878;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.wua-download-gate__close:hover,
.wua-download-gate__close:focus-visible {
  background: #f0f3f8;
  color: #172033;
  outline: none;
}

.wua-download-gate__eyebrow {
  margin: 0 0 10px;
  color: #29773d;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.wua-download-gate__dialog h2 {
  margin: 0 0 14px;
  color: #172033;
  font-size: clamp(25px, 5vw, 34px);
  line-height: 1.15;
}

.wua-download-gate__dialog p:not(.wua-download-gate__eyebrow) {
  margin: 0;
  color: #5f6878;
  font-size: 16px;
  line-height: 1.6;
}

.wua-download-gate__actions {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.wua-download-gate__form {
  margin-top: 24px;
  text-align: left;
}

.wua-download-gate__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wua-download-gate__grid label {
  display: grid;
  gap: 6px;
  color: #30394a;
  font-size: 14px;
  font-weight: 700;
}

.wua-download-gate__grid input:not(.wua-download-gate__honeypot) {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #cbd2df;
  border-radius: 9px;
  background: #fff;
  color: #172033;
  font: inherit;
  box-sizing: border-box;
}

.wua-download-gate__grid input:focus {
  border-color: #29773d;
  outline: 2px solid rgba(39, 87, 255, 0.16);
}

.wua-download-gate__wide {
  grid-column: 1 / -1;
}

.wua-download-gate__honeypot {
  position: absolute !important;
  left: -9999px !important;
}

.wua-download-gate__consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 16px;
  color: #4e5869;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.wua-download-gate__consent input {
  margin-top: 3px;
}

.wua-download-gate__error {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff0f0;
  color: #982626;
  font-size: 14px;
  line-height: 1.4;
}

.wua-download-gate__primary,
.wua-download-gate__secondary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 2px solid #29773d;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  font: inherit;
}

.wua-download-gate__primary {
  background: #29773d;
  color: #fff;
}

.wua-download-gate__primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.wua-download-gate__secondary {
  background: #fff;
  color: #29773d;
}

.wua-download-gate__primary:hover,
.wua-download-gate__primary:focus-visible {
  background: #29773d;
  border-color: #29773d;
  color: #fff;
}

.wua-download-gate__secondary:hover,
.wua-download-gate__secondary:focus-visible {
  background: #f0f3e9;
  color: #29773d;
}

.wua-download-gate__later {
  margin-top: 18px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #687284;
  text-decoration: underline;
  cursor: pointer;
}

body.wua-download-gate-open {
  overflow: hidden;
}

.wua-download-resume-status {
  position: fixed;
  z-index: 99999;
  right: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 14px 18px;
  border-radius: 12px;
  background: #172033;
  box-shadow: 0 16px 40px rgba(12, 18, 31, 0.24);
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}

.wua-download-resume-status.is-error {
  background: #9f2525;
}

@media (max-width: 540px) {
  .wua-download-gate {
    align-items: end;
    padding: 10px;
  }

  .wua-download-gate__dialog {
    padding: 34px 22px 26px;
    border-radius: 18px;
  }

  .wua-download-gate__grid {
    grid-template-columns: 1fr;
  }

  .wua-download-gate__wide {
    grid-column: auto;
  }

  .wua-download-resume-status {
    right: 10px;
    bottom: 10px;
    max-width: calc(100vw - 20px);
  }
}
