html.ios-download-open { overflow: hidden; }

.ios-download-dialog {
  box-sizing: border-box;
  width: min(34rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color-scheme: dark;
  color: #f6f6f8;
  background: #121215;
  border: 1px solid #303036;
  border-radius: 1.25rem;
  box-shadow: 0 24px 72px rgba(0, 0, 0, .58);
}
.ios-download-dialog:not([open]) { display: none; }
.ios-download-dialog::backdrop { background: rgba(0, 0, 0, .72); }
.ios-download-panel { position: relative; padding: 3.25rem clamp(1rem, 5vw, 2rem) 1.5rem; }
.ios-download-panel h2 {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: clamp(1.15rem, 4.3vw, 1.6rem);
  line-height: 1.4;
}
.ios-download-options { display: grid; gap: .65rem; }
.ios-download-close,
.ios-download-option {
  font: inherit;
  cursor: pointer;
  color: inherit;
  border: 1px solid #36363d;
  background: #1e1e22;
}
.ios-download-close {
  position: absolute;
  top: .45rem;
  right: .55rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #c4c4cb;
  font-size: 1.5rem;
}
.ios-download-option {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: .65rem .75rem;
  border-radius: .75rem;
  text-decoration: none;
  text-align: center;
  line-height: 1.45;
}
.ios-download-primary { background: #ededf0; color: #111114; border-color: #ededf0; font-weight: 700; }
.ios-download-close:focus-visible,
.ios-download-option:focus-visible { outline: 2px solid #c4aaff; outline-offset: 3px; }
@media (hover: hover) {
  .ios-download-close:hover, .ios-download-option:hover { background: #303037; }
  .ios-download-primary:hover { background: #fff; }
}
.ios-download-status {
  margin: .9rem 0 0;
  padding: .7rem .85rem;
  border-radius: .65rem;
  background: #1e1e22;
  color: #d2d2dc;
  font-size: .9rem;
  line-height: 1.55;
}
.ios-download-status:empty { margin: 0; padding: 0; }
.ios-download-card { width: 100%; font: inherit; color: inherit; cursor: pointer; text-align: left; }
