.download-dialog {
  width: min(30rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  overflow: auto;
  padding: 0;
  border: 1px solid #c8c4b7;
  background: #faf9f5;
  color: #252c26;
}

.download-dialog::backdrop { background: #18241ccd; }
.download-fallback { background: #f4f3ee; color: #252c26; }
.download-fallback > .download-panel { width: min(100%, 34rem); margin: 8vh auto; }

.download-panel {
  position: relative;
  box-sizing: border-box;
  padding: clamp(1.25rem, 5vw, 2.5rem);
  font: 400 .9rem/1.55 Inter, Arial, sans-serif;
}

.download-panel :is(h1, h2) {
  margin: 0 2rem .65rem 0;
  font: 400 clamp(2rem, 6vw, 2.65rem)/1.1 Brigada, Georgia, serif;
  color: inherit;
}

.download-fallback .download-panel > a { display: inline-block; margin-bottom: 1.25rem; }
.download-panel p { margin: 0 0 1rem; color: inherit; }
.download-panel a { color: inherit; text-decoration: underline; }

.download-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font: 400 1.75rem/1 Inter, Arial, sans-serif;
  cursor: pointer;
}

.download-form:not([hidden]) { display: grid; gap: .9rem; }
.download-form label { display: grid; gap: .3rem; font-size: .85rem; }
.download-form :is(input:not([type="hidden"]), select, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: .65rem .7rem;
  border: 1px solid #a6ab9f;
  border-radius: 0;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 1rem;
}

.download-panel .download-privacy { margin: 0; font-size: .8rem; }
.download-panel .download-status { margin: .85rem 0 0; }
.download-status:empty { margin-top: 0; }
.download-submit:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: .6rem 1.1rem;
  border: 1px solid #252c26;
  background: #252c26;
  color: #fff;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.download-submit:disabled { opacity: .7; cursor: wait; }
.download-panel :is(button, input, select, textarea, a):focus-visible { outline: 2px solid #435848; outline-offset: 3px; }

.grecaptcha-badge { visibility: hidden; }
.recaptcha-disclosure,
.download-panel .recaptcha-disclosure { margin: 0; font-size: .8rem; }
#download-verification-status:empty { display: none; }
