.st-payments-page {
  gap: var(--st-space-md);
}

.st-payments-list {
  display: grid;
  gap: var(--st-space-md);
}

.st-payments-filters-card,
.st-payments-filters-top,
.st-payments-search-row,
.st-payment-card-top,
.st-payment-card-footer,
.st-payment-card-actions {
  display: flex;
  gap: var(--st-space-md);
}

.st-payments-filters-card,
.st-payments-search-field {
  min-width: 0;
}

.st-payments-filters-card {
  flex-direction: column;
}

.st-payments-filters-top {
  align-items: end;
  justify-content: space-between;
}

.st-payments-search-field {
  flex: 1 1 24rem;
}

.st-payments-search-row {
  align-items: center;
}

.st-payments-search-row input {
  flex: 1 1 auto;
}

.st-payments-filter-grid {
  display: grid;
  gap: var(--st-space-md);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.st-payment-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 249, 0.96)),
    radial-gradient(circle at top right, rgba(22, 163, 74, 0.08), transparent 32%);
  display: grid;
  gap: var(--st-space-md);
}

.st-payment-card-top,
.st-payment-card-footer,
.st-payment-card-actions {
  align-items: flex-start;
  justify-content: space-between;
}

.st-payment-card-copy,
.st-payment-card-notes {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.st-payment-card-copy h3 {
  margin: 0;
}

.st-payment-card-caption,
.st-payment-card-footnote {
  color: var(--st-text-secondary);
}

.st-payment-card-summary {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.st-payment-card-total {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.1;
}

.st-refunds-table-section.st-page-section.is-surface {
  padding: 0;
}

.st-refunds-table-frame .e-grid {
  min-width: 1492px;
}

.st-refunds-table-customer {
  align-items: center;
  display: flex;
  gap: var(--st-space-3);
  min-width: 0;
}

.st-refunds-table-customer-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.st-refunds-table-customer-copy strong {
  color: #15181c;
  font-size: var(--st-font-body-size);
  font-weight: var(--st-font-weight-semibold);
  line-height: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-refunds-table-customer-copy span {
  color: #69707e;
  display: block;
  font-size: var(--st-font-small-size);
  font-weight: var(--st-font-weight-regular);
  line-height: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-refunds-table-amount {
  color: #15181c;
  font-size: var(--st-font-body-size);
  font-weight: var(--st-font-weight-semibold);
  white-space: nowrap;
}

.st-refunds-table-actions {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  min-height: 32px;
}

.st-refunds-table-actions .st-btn {
  min-height: 32px;
  padding: 0 12px;
}

@media (max-width: 760px) {
  .st-payments-filters-top,
  .st-payments-search-row,
  .st-payment-card-top,
  .st-payment-card-footer,
  .st-payment-card-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .st-payment-card-summary {
    align-items: flex-start;
  }
}
