html.download-choice-open {
  overflow: hidden;
  /* Keep the scrollbar's width reserved so the page does not shift sideways behind the modal. */
  scrollbar-gutter: stable;
}

.download-choice__more {
  margin-top: 12px;
  color: var(--secondary);
  font-size: 13px;
}

.download-choice__more a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-choice__more a:hover {
  color: var(--ink);
}

.download-choice {
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 90px rgb(0 0 0 / 0.18);
  text-align: left;
}

.download-choice::backdrop {
  background: rgb(12 12 14 / 0.42);
}

.download-choice__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--grey);
  color: var(--ink);
  cursor: pointer;
}

.download-choice__close:active {
  transform: scale(0.97);
}

.download-choice__eyebrow {
  padding-right: 44px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 500;
}

.download-choice h2 {
  max-width: 380px;
  margin: 12px 44px 12px 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.download-choice__intro {
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.5;
}

.download-choice__copy,
.download-choice__warning,
.download-choice__details {
  font-size: 13px;
  line-height: 1.5;
}

.download-choice__warning {
  margin-top: 12px;
  color: var(--muted);
}

.download-choice__meta {
  margin: 16px 0 12px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.45;
}

.download-choice .btn {
  width: 100%;
  text-align: center;
  white-space: normal;
}

.download-choice__regular {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--separator);
  color: var(--secondary);
  font-size: 13px;
}

.download-choice__regular p {
  margin-bottom: 12px;
}

.download-choice__regular-link {
  border-color: var(--separator);
  background: var(--paper);
  color: var(--ink);
}

.download-choice__regular-link:hover {
  background: #eaeaec;
}

.download-choice__details {
  margin-top: 14px;
  color: var(--muted);
}

.download-choice__details summary {
  cursor: pointer;
}

.download-choice__details p {
  margin: 10px 0 6px;
}

.download-choice__details code {
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 11px;
}

.download-choice__hash {
  display: block;
  word-break: break-all;
}

@media (max-width: 480px) {
  .download-choice {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    padding: 20px;
  }

  .download-choice h2 {
    font-size: 25px;
  }
}
