/* ============================================================
   SERENZA · payment-history.css
   Vendor payment history list.
   Requires colors_and_type.css (tokens).
   ============================================================ */

/* ---------- VENDOR PAYMENT HISTORY ---------- */
.sz-payment-history {
  margin-top: 12px;
}

.sz-payment-history__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 12px;
}

.sz-payment-history__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sz-payment-history__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius);
  transition: border-color .2s;
}

.sz-payment-history__item:hover {
  border-color: var(--sage-soft);
}

.sz-payment-history__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.sz-payment-history__row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sz-payment-history__amount {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--forest);
  line-height: 1;
}

.sz-payment-history__method {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--paper-deep);
  color: var(--ink-soft);
  line-height: 1;
}

.sz-payment-history__date {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-faint);
}

.sz-payment-history__ref {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sz-payment-history__actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  align-self: center;
}

@media (min-width: 640px) {
  .sz-payment-history__list {
    gap: 6px;
  }

  .sz-payment-history__item {
    padding: 12px 18px;
    align-items: center;
  }

  .sz-payment-history__row {
    flex-wrap: nowrap;
  }

  .sz-payment-history__ref {
    white-space: normal;
  }
}
