body.goopuh-download-modal-open {
  overflow: hidden;
}

.goopuh-download-modal[hidden],
.goopuh-download-toast[hidden] {
  display: none !important;
}

.goopuh-download-modal {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.goopuh-download-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(3px);
}

.goopuh-download-modal__panel {
  position: relative;
  width: min(100%, 570px);
  max-height: min(90vh, 720px);
  overflow-y: auto;
  padding: clamp(24px, 5vw, 40px);
  color: #111827;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 6px solid #fbbf24;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
}

.goopuh-download-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  color: #475569;
  font: inherit;
  font-size: 1.55rem;
  line-height: 1;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  cursor: pointer;
}

.goopuh-download-modal__close:hover,
.goopuh-download-modal__close:focus-visible {
  color: #111827;
  background: #f1f5f9;
}

.goopuh-download-modal__eyebrow {
  margin: 0 48px 8px 0;
  color: #8a5a00;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.goopuh-download-modal__panel h2 {
  margin: 0 48px 10px 0;
  color: #111827;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.goopuh-download-modal__panel > p:not(.goopuh-download-modal__eyebrow):not(.goopuh-download-modal__resource) {
  margin: 0;
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.6;
}

.goopuh-download-modal__resource {
  margin: 18px 0 20px;
  padding: 11px 13px;
  color: #111827;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.4;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
}

.goopuh-download-modal__label {
  display: block;
  margin-bottom: 6px;
  color: #111827;
  font-size: 0.86rem;
  font-weight: 800;
}

.goopuh-download-modal input[type="email"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: #111827;
  font: inherit;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.goopuh-download-modal input[type="email"]:focus {
  border-color: #2563eb;
  outline: 3px solid rgba(37, 99, 235, 0.16);
}

.goopuh-download-modal__consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 16px;
  color: #334155;
  font-size: 0.87rem;
  line-height: 1.5;
  cursor: pointer;
}

.goopuh-download-modal__consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #111827;
}

.goopuh-download-modal__privacy {
  margin: 9px 0 0;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.5;
}

.goopuh-download-modal__privacy a {
  color: #1d4ed8;
  text-decoration: underline;
}

.goopuh-download-modal__status {
  min-height: 22px;
  margin: 10px 0 0;
  color: #b42318;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

.goopuh-download-modal__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 4px;
}

.goopuh-download-modal__actions button {
  min-height: 46px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.25;
  border-radius: 8px;
  cursor: pointer;
}

.goopuh-download-modal__subscribe {
  color: #111827;
  background: #fbbf24;
  border: 1px solid #fbbf24;
}

.goopuh-download-modal__subscribe:hover,
.goopuh-download-modal__subscribe:focus-visible {
  background: #e8aa00;
  border-color: #e8aa00;
}

.goopuh-download-modal__subscribe:disabled {
  opacity: 0.65;
  cursor: wait;
}

.goopuh-download-modal__skip {
  color: #334155;
  background: #fff;
  border: 1px solid #cbd5e1;
}

.goopuh-download-modal__skip:hover,
.goopuh-download-modal__skip:focus-visible {
  color: #111827;
  background: #f8fafc;
  border-color: #94a3b8;
}

.goopuh-download-modal__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.goopuh-download-toast {
  position: fixed;
  z-index: 1000000;
  right: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 13px 16px;
  color: #fff;
  font: 750 0.88rem/1.45 Inter, ui-sans-serif, system-ui, sans-serif;
  background: #166534;
  border-radius: 9px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.28);
}

.goopuh-download-toast.is-error {
  background: #9f1239;
}

@media (max-width: 600px) {
  .goopuh-download-modal {
    align-items: end;
    padding: 10px;
  }

  .goopuh-download-modal__panel {
    width: 100%;
    max-height: 92vh;
    padding: 24px 20px 22px;
    border-radius: 14px;
  }

  .goopuh-download-modal__panel h2 {
    font-size: 1.75rem;
  }

  .goopuh-download-toast {
    right: 10px;
    bottom: 10px;
    max-width: calc(100vw - 20px);
  }
}
