/* Small, self-contained store banner; no backdrop, focus trap or page shift. */
.mdx-download {
  position: fixed;
  top: max(80px, calc(env(safe-area-inset-top, 0px) + 64px));
  right: max(24px, env(safe-area-inset-right, 0px));
  z-index: 1100;
  box-sizing: border-box;
  width: 360px;
  max-width: calc(100vw - 32px);
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 32px;
  gap: 14px 10px;
  padding: 18px;
  border: 1px solid rgba(30, 35, 45, .1);
  border-radius: 22px;
  background: rgba(255, 255, 255, .97);
  color: #1d1d1f;
  box-shadow: 0 8px 32px rgba(20, 25, 35, .1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-align: left;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: mdx-download-appear .2s ease-out;
}
.mdx-download-icon { width: 40px; height: 40px; border-radius: 10px; }
.mdx-download-copy { align-self: center; }
.mdx-download-copy > strong { display: block; font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: -.15px; }
.mdx-download-copy p { margin: 3px 0 0; font-size: 11px; line-height: 1.5; color: #62626a; }
.mdx-download-close {
  align-self: start; display: grid; place-items: center; width: 44px; height: 44px;
  margin: -8px -6px 0 -6px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #52525b; font: 25px/1 -apple-system, BlinkMacSystemFont, sans-serif; cursor: pointer;
}
.mdx-download-close:hover { background: #f0f0f2; }
.mdx-download-stores { grid-column: 1 / -1; display: flex; gap: 8px; }
.mdx-download-store {
  display: flex; flex: 1; align-items: center; justify-content: center; gap: 6px;
  box-sizing: border-box; min-width: 0; min-height: 48px; padding: 6px 8px;
  border: 1px solid #222; border-radius: 10px; background: #1d1d1f; color: white; text-decoration: none;
}
.mdx-download-store:hover { background: #333336; }
.mdx-download-store-icon { width: 23px; height: 25px; flex: 0 0 23px; }
.mdx-download-store-icon svg { display: block; width: 100%; height: 100%; }
.mdx-download-store small { display: block; font-size: 9px; line-height: 1.2; font-weight: 400; }
.mdx-download-store strong { display: block; font-size: 16px; line-height: 1.3; font-weight: 500; letter-spacing: -.3px; }
.mdx-download :focus-visible { outline: 3px solid #0071e3; outline-offset: 3px; }
@keyframes mdx-download-appear { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) { .mdx-download { right: 16px; width: 340px; padding: 16px; } }
@media (max-height: 500px) { .mdx-download { display: none; } }
@media (prefers-reduced-motion: reduce) { .mdx-download { animation: none; } }
@media (forced-colors: active) { .mdx-download, .mdx-download-store { border: 1px solid CanvasText; } }
