/* Scoped independently of page themes. The native modal supplies inertness and focus containment. */
.turn-download-dialog {
  box-sizing: border-box;
  width: min(400px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 40px 32px 30px;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: #171819;
  color-scheme: light;
  box-shadow: 0 24px 90px #0003;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.turn-download-dialog::backdrop { background: rgb(0 0 0 / 40%); }
.turn-download-dialog h2 { margin: 0 0 24px; color: #171819; font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -.5px; }
.turn-download-dialog .turn-download-qr { display: block; width: 200px; height: 200px; max-width: 100%; margin: 0 auto 14px; object-fit: contain; background: #fff; }
.turn-download-dialog .turn-download-badge { box-sizing: content-box; display: inline-flex; padding: 10px; margin: 0; border: 0; background: #fff; line-height: 0; border-radius: 8px; }
.turn-download-dialog .turn-download-badge img { display: block; width: auto; height: 40px; max-width: 100%; object-fit: contain; }
.turn-download-dialog .turn-download-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #666; font: 28px/1 -apple-system, BlinkMacSystemFont, sans-serif; cursor: pointer; }
.turn-download-dialog .turn-download-close:hover { background: #f2f2f2; color: #111; }
.turn-download-dialog :focus-visible { outline: 2px solid #147ce5; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .turn-download-dialog, .turn-download-dialog * { animation: none !important; transition: none !important; } }
