/* ── Wallet balance card ── */
.wallet-balance-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}

.wallet-balance-label {
  font-size: 12px;
  color: var(--ink3);
  margin-bottom: 6px;
}

.wallet-balance-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--rust);
  font-family: var(--serif);
}

/* ── Transaction list ── */
.wallet-tx-list {
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 8px;
}

.wallet-tx-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--cream2);
}

.wallet-tx-row:first-child {
  border-top: none;
}

.wallet-tx-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-tx-icon.credit {
  background: var(--green-light);
  color: var(--green);
}

.wallet-tx-icon.debit {
  background: var(--rust-light);
  color: var(--rust);
}

.wallet-tx-info {
  flex: 1;
  min-width: 0;
}

.wallet-tx-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.wallet-tx-sub {
  font-size: 12px;
  color: var(--ink3);
}

.wallet-tx-amount {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.wallet-tx-amount.credit {
  color: var(--green);
}

.wallet-tx-amount.debit {
  color: var(--rust);
}

.wallet-tx-empty {
  text-align: center;
  padding: 32px 0;
  color: var(--ink3);
  font-size: 13px;
}

.wallet-tx-empty .app-icon {
  display: block;
  margin: 0 auto 8px;
  font-size: 28px;
  color: var(--ink4);
}

/* ── Add Money ── */
.wallet-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wallet-estimate-line {
  font-size: 12px;
  color: var(--ink3);
  margin: 4px 0 8px;
}

.wallet-error-text {
  color: #c0392b;
  font-size: 13px;
  background: var(--rust-light);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0;
}

.wallet-hint-text {
  font-size: 12px;
  color: var(--ink3);
  margin: -4px 0 10px;
  text-align: center;
}

.wallet-hint-text a {
  color: var(--rust);
  font-weight: 600;
  text-decoration: none;
}

#btn-pay-wallet:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Non-sheet elements toggled via .hidden — this app's .hidden rules are
   component-scoped (e.g. .sheet-overlay.hidden), so these need their own. */
#stripe-unconfigured-notice.hidden,
#deposit-amount-form.hidden,
#deposit-payment-form.hidden,
#deposit-estimate-line.hidden,
#deposit-payment-error.hidden,
#pay-wallet-insufficient-hint.hidden {
  display: none;
}
