#order-history-payment-details {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 36px);
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, .4);
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 30px 60px rgba(15, 23, 42, .28);
  font: inherit;
  overflow: auto;
}
#order-history-payment-details::backdrop { background: rgba(15, 23, 42, .55); }
#order-history-payment-details header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#order-history-payment-details h2 { margin: 0; font-size: 18px; }
#order-history-payment-details h3,
.rn-payment-transaction-details h3 { margin: 20px 0 12px; font-size: 14px; }
#order-history-payment-details button,
.rn-payment-transaction-details button { padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 12px; background: #f3f4f6; color: #111827; font: inherit; cursor: pointer; }
#order-history-payment-details button:focus-visible,
.rn-payment-transaction-details button:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
#order-history-payment-details [data-payment-details-close] { font-size: 22px; line-height: 1; }
#order-history-payment-details [data-payment-details-content] { margin-top: 16px; font-size: 14px; }
#order-history-payment-details dl,
.rn-payment-transaction-details dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 10px 16px; margin: 0; }
#order-history-payment-details dt,
.rn-payment-transaction-details dt { color: #64748b; }
#order-history-payment-details dd,
.rn-payment-transaction-details dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#order-history-payment-details footer { display: flex; justify-content: flex-end; }
#order-history-payment-details [data-payment-details-retry]:not([hidden]) { margin-top: 16px; }
@media (max-width: 480px) {
  #order-history-payment-details { padding: 16px; }
  #order-history-payment-details dl,
  .rn-payment-transaction-details dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  #order-history-payment-details dd,
  .rn-payment-transaction-details dd { margin-bottom: 10px; }
}
#order-history-payment-details label { display: block; margin: 12px 0; }
#order-history-payment-details select,
#order-history-payment-details input { display: block; box-sizing: border-box; width: 100%; margin-top: 6px; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
#order-history-payment-details [hidden] { display: none !important; }
#view-order-history .order-history-payment-link.is-card-paid {
  color: #32754b;
}
#view-order-history .order-history-payment-link[aria-busy="true"] { cursor: progress; }
#view-order-history .order-history-payment-main {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#view-order-history .order-history-payment-card-note {
  display: block;
  color: #64748b;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 400;
  margin: 0;
  white-space: nowrap;
}

.rn-payment-transaction-details {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 13px;
}
.rn-payment-transaction-details[hidden] { display: none !important; }
.rn-payment-transaction-details section:first-child h3 { margin-top: 0; }
