.source-refund {
  display: block;
  margin-top: 12px;
}

.field-hint {
  color: var(--muted);
  display: block;
  font-size: 10px;
  line-height: 1.45;
  margin-top: 6px;
  min-height: 30px;
}

.field-hint.invalid {
  color: var(--danger);
}

.source-refund[hidden],
.direct-preview[hidden],
.direct-finality-hold[hidden] {
  display: none;
}

.direct-finality-hold {
  background: #fff8e9;
  border-left: 3px solid #c58a22;
  margin: 14px 0;
  padding: 12px 14px;
}

.direct-finality-hold strong {
  color: var(--ink);
  font-size: 13px;
}

.direct-finality-hold p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin: 4px 0 0;
}

.direct-preview {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin: 14px 0;
  padding: 14px 0;
}

.direct-preview dl {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 12px;
}

.direct-preview dt {
  color: var(--muted);
  font-size: 10px;
}

.direct-preview dd {
  font-size: 13px;
  font-weight: 700;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.direct-preview > div {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.direct-preview button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px 12px;
}

.direct-preview button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.history-refund {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.history-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 150px minmax(210px, auto);
}

.history-row > * {
  min-width: 0;
}

.history-row .status {
  overflow-wrap: anywhere;
}

.history-refund button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font-size: 11px;
  min-height: 32px;
  padding: 6px 9px;
}

.history-refund button.confirm-refund {
  background: #9f2f2f;
  border-color: #9f2f2f;
  color: #fff;
}

@media (max-width: 800px) {
  .direct-preview dl,
  .direct-preview > div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .direct-preview button {
    width: 100%;
  }

  .history-refund {
    align-items: stretch;
    flex-direction: column;
  }

  .history-refund button {
    width: 100%;
  }

  .history-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .history-row .status {
    grid-column: 1 / -1;
  }
}
