#utf-wallet {
  display: grid;
  gap: 14px;
  min-width: 0;
  color: var(--ink);
}
#utf-wallet:empty,
#utf-wallet .wallet-feedback:empty { display: none; }
#utf-wallet h1, #utf-wallet h2, #utf-wallet p { margin: 0; }
#utf-wallet h2 { font-size: 16px; font-weight: 650; }
#utf-wallet button { min-height: 44px; }
#utf-wallet .wallet-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
#utf-wallet .wallet-heading h1 { margin-bottom: 4px; }
#utf-wallet .wallet-badge {
  padding: 6px 10px;
  border: 1px solid #ded6bc;
  border-radius: 20px;
  background: #fbf7e9;
  color: #554310;
  font-size: 12px;
  font-weight: 650;
}
#utf-wallet .wallet-box, #utf-wallet .wallet-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: var(--panel);
}
#utf-wallet .wallet-intro { padding-block: 24px; }
#utf-wallet .wallet-intro > .icon { color: var(--accent); margin-bottom: 8px; }
#utf-wallet .wallet-intro > p, #utf-wallet .wallet-recharge > p { margin-top: 5px; }
#utf-wallet .wallet-intro > button { margin-top: 16px; }
#utf-wallet .wallet-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 14px;
}
#utf-wallet .wallet-balance {
  display: block;
  margin-top: 6px;
  font-size: clamp(30px, 4vw, 41px);
  letter-spacing: -.035em;
  line-height: 1.1;
}
#utf-wallet .wallet-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}
#utf-wallet .wallet-totals dt { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
#utf-wallet .wallet-totals dd { margin: 0; font-weight: 650; }
#utf-wallet .wallet-card {
  background: #17344d;
  color: #fff;
  border-color: #17344d;
}
#utf-wallet .wallet-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
#utf-wallet .wallet-card-heading h2 { color: inherit; }
#utf-wallet .wallet-card-state {
  border: 1px solid #7890a5;
  border-radius: 20px;
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
}
#utf-wallet .wallet-card-digits {
  color: inherit;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .07em;
  margin: 8px 0 12px;
}
#utf-wallet .wallet-card .secondary { background: #fff; color: #17344d; border-color: #fff; }
#utf-wallet .wallet-choices { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 12px; }
#utf-wallet .wallet-choices > button[aria-pressed="true"] {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent);
}
#utf-wallet .wallet-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; }
#utf-wallet .wallet-history > p { margin-top: 7px; }
#utf-wallet .wallet-movements { list-style: none; padding: 0; margin: 8px 0 0; }
#utf-wallet .wallet-movements li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 10px 0;
}
#utf-wallet .wallet-movements li:last-child { padding-bottom: 0; }
#utf-wallet .wallet-movements li > .icon, #utf-wallet .wallet-ads > .icon { color: var(--accent); }
#utf-wallet .wallet-movements strong, #utf-wallet .wallet-movements time, #utf-wallet .wallet-movements small { display: block; }
#utf-wallet .wallet-movements strong { overflow-wrap: anywhere; }
#utf-wallet .wallet-movements time, #utf-wallet .wallet-movements small { color: var(--muted); font-size: 11px; }
#utf-wallet .wallet-movements li > :last-child { text-align: right; }
#utf-wallet .wallet-ads {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px 12px;
}
#utf-wallet .wallet-ads > p, #utf-wallet .wallet-ads h2 + p { margin-top: 3px; }
#utf-wallet .wallet-feedback { padding: 9px 12px; background: var(--accent-soft); border-radius: 8px; color: var(--ink); }
#utf-wallet .wallet-feedback-error { background: #fff1e5; color: #772800; }
#utf-wallet .wallet-balance, #utf-wallet .wallet-totals dd, #utf-wallet .wallet-movements li > :last-child {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 660px) {
  #utf-wallet .wallet-overview { grid-template-columns: minmax(0, 1fr); }
  #utf-wallet .wallet-box, #utf-wallet .wallet-card { padding: 15px; }
  #utf-wallet .wallet-ads { grid-template-columns: 24px minmax(0, 1fr); }
  #utf-wallet .wallet-ads > button { grid-column: 2; justify-self: start; }
}
