/* Scoped to buttons operated by FoxyStaticDownloads; existing card layout stays intact. */
body .links-buttons-redirect > button.svg-token {
  min-width: min(160px, 100%) !important;
  max-width: 100% !important;
}

button.fx-static-download-button {
  position: relative;
}

button.fx-static-download-button[data-foxy-download-state="busy"] {
  color: transparent !important;
  cursor: wait !important;
}

.fx-static-download-progress {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 12px;
  box-sizing: border-box;
  color: var(--fx-text, var(--btn-text, #fff));
  font: inherit;
  line-height: 1.3;
  pointer-events: none;
}

.fx-static-download-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fx-static-download-spinner {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  animation: fx-static-download-spin 0.8s linear infinite;
}

.fx-static-download-status {
  flex: 1 0 100%;
  min-width: 0;
  max-width: 100%;
  margin: 8px 0 0;
  padding: 10px 12px;
  box-sizing: border-box;
  border: 1px solid var(--border-color, #767676);
  border-radius: 10px;
  background: var(--bg-secondary, transparent);
  color: var(--text-primary, inherit);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: start;
  overflow-wrap: anywhere;
}

.fx-static-download-status.is-error {
  border-inline-start: 3px solid var(--danger, #d84b5c);
}

@keyframes fx-static-download-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .fx-static-download-spinner { animation: none; }
}
