/* ============================================================
   The proof step on a box of the order card
   (app/disputes/_carrier_proof_step; docs/application/carrier-tracking.md §3).
   Its own file so the order card's CSS stays the order card's. Neutral by
   design — it's a next step, not a warning. At 375px the address wraps
   anywhere rather than pushing the page sideways, and a tap selects it whole.
   ============================================================ */
.app-proof-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 4px;
  background: var(--console-canvas);
  font-size: 12.5px;
  line-height: 1.45;
  min-width: 0;
}

.app-proof-step-state,
.app-proof-step-hint {
  margin: 0;
}

.app-proof-step a {
  color: var(--console-text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.app-proof-step-mono,
.app-proof-step-value {
  font-family: var(--font-mono);
}

.app-proof-step-how summary {
  cursor: pointer;
  color: var(--console-text-secondary);
}

.app-proof-step-how ol {
  margin: 4px 0 0;
  padding-inline-start: 18px;
}

.app-proof-step-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
}

.app-proof-step-label {
  color: var(--console-text-secondary);
  min-width: 56px;
}

.app-proof-step-value {
  flex: 1 1 180px;
  min-width: 0;
  padding: 3px 6px;
  border: 1px solid var(--console-border-input);
  border-radius: 4px;
  background: #fff;
  overflow-wrap: anywhere;
  word-break: break-all;
  user-select: all;
  -webkit-user-select: all;
}

.app-proof-step-copy-form,
.app-proof-step-inline-form {
  margin: 0;
  display: inline;
}

.app-proof-step-copy-button,
.app-proof-step-button {
  padding: 3px 10px;
  border: 1px solid var(--console-border-input);
  border-radius: 4px;
  background: #fff;
  color: var(--console-text-primary);
  font: inherit;
  cursor: pointer;
}

/* Kept in the accessibility tree while empty, so the "Copied" that lands in
   it is announced. */
.app-proof-step-live {
  margin: 0;
  color: var(--console-won);
}

.app-proof-step-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-proof-step-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
}

.app-proof-step-upload input[type="file"] {
  max-width: 100%;
  min-width: 0;
  font-size: 12px;
}
