.download-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 24px;
  pointer-events: none;          /* не блокируем страницу, но можно и блокировать */
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity .2s ease;
}

.download-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
  background: rgba(0, 0, 0, .15);
}

.download-toast {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 280px;
  max-width: 90vw;
  padding: 14px 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
  transform: translateY(-24px);
  opacity: 0;
  transition: transform .28s cubic-bezier(.22,.9,.32,1), opacity .28s ease;
}

.download-overlay.is-visible .download-toast {
  transform: translateY(0);
  opacity: 1;
}

.download-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid #e5e7eb;
  border-top-color: #2563eb;
  animation: downloadSpin .8s linear infinite;
  flex: 0 0 auto;
}

@keyframes downloadSpin {
  to { transform: rotate(360deg); }
}

.download-title { font-weight: 600; font-size: 15px; }
.download-sub   { font-size: 12px; color: #6b7280; margin-top: 2px; }