/*
 * FB-07 Upload progress — app/components/ui/upload_progress_component.rb
 *
 * DD-12's determinate bar (progress_bar.css) plus a filename/percentage
 * row and a cancel icon-button. Also the treatment FM-13's dropzone uses
 * for its uploading row — see dropzone.css for the row it replaces.
 */

.ui-upload-progress {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
}

.ui-upload-progress__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.ui-upload-progress__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}

.ui-upload-progress__filename {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-ink);
  overflow: hidden;
  white-space: nowrap;
}

.ui-upload-progress__percent {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  font-variant-numeric: tabular-nums;
  color: var(--color-ink-muted);
}

.ui-upload-progress__cancel {
  flex-shrink: 0;
}
