.wallet-history-summary {
  font:
    400 11px/1.5 Montserrat,
    Arial,
    sans-serif;
  color: #73888c;
  margin: -7px 0 12px;
}
.wallet-category-icon {
  background: #f1f7f6;
}
.wallet-category-icon img {
  display: block;
  width: 23px;
  height: 23px;
  object-fit: contain;
}
.transaction-description .wallet-transaction-category {
  font-size: 10px;
  color: #61777b;
}
.transaction-description small {
  font-size: 9px;
  line-height: 1.35;
  color: #7a8e92;
}
.transaction-description .wallet-transaction-provider {
  color: #267f7b;
  font-weight: 600;
}
.wallet-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
}
.dashboard-activity .wallet-history-heading h3 {
  margin: 0;
}
.wallet-history-open {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.wallet-history-open img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.wallet-history-open:focus-visible,
.wallet-history-back:focus-visible {
  outline: 2px solid #267f7b;
  outline-offset: 3px;
}
.wallet-history-page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
}
.wallet-history-brand { flex: none; width: 48px; height: 48px; object-fit: contain; }
.wallet-history-title { flex: 1; min-width: 0; }
.wallet-history-page-header .wallet-history-back { order: 3; margin-left: auto; }
.wallet-history-page-header p {
  margin: 0 0 4px;
  color: #267f7b;
  font:
    600 13px Montserrat,
    Arial,
    sans-serif;
}
.wallet-history-page-header h2 {
  font-size: 21px;
  margin: 0;
  outline: none;
}
.wallet-history-back {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid #d8e6e5;
  border-radius: 12px;
  background: #fff;
  color: #267f7b;
  cursor: pointer;
}
.wallet-history-back svg {
  width: 24px;
  height: 24px;
}
.wallet-history-balance {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #eef8f6;
  border-radius: 14px;
  margin-bottom: 24px;
}
.history-balance-value { display: grid; gap: 8px; min-width: 0; }
.history-currency-control { justify-self: end; margin: 0; }
.wallet-history-balance .history-currency-control select { width: 94px; min-height: 44px; margin: 0; padding: 9px 25px 9px 12px; border: 1px solid var(--history-border,#bdd6d3); border-radius: 12px; background-color: #fff; color: var(--history-ink,#25414a); font: 600 14px Montserrat,Arial,sans-serif; }
.wallet-history-balance span {
  font-size: 12px;
  color: #61777b;
}
.wallet-history-balance strong {
  font-size: 22px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.wallet-history-expanded {
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 0;
}
.wallet-history-page .transaction-description {
  font-size: 12px;
}
.wallet-history-page .transaction-description small,
.wallet-history-page .transaction-description time,
.wallet-history-page .wallet-transaction-category {
  font-size: 10px;
}
.transaction-row .transaction-summary { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-left: auto; min-width: 0; max-width: 55%; text-align: right; }
.transaction-row .transaction-summary time { font: 400 11px/1.4 Montserrat,Arial,sans-serif; color: #73888c; white-space: nowrap; }
.transaction-row .transaction-summary .transaction-amount { font-size: 18px; line-height: 1.35; font-weight: 600; font-variant-numeric: tabular-nums; white-space: normal; overflow-wrap: anywhere; }
/* Only transactions scroll. Header, balance and ME PAY provider filter stay fixed. */
.standalone-settings.wallet-history-page {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.wallet-history-pinned {
  position: relative;
  flex: 0 0 auto;
  z-index: 6;
  padding: 20px 24px 16px;
  background: #fff;
  border-bottom: 1px solid #edf2f2;
}
.wallet-history-pinned .wallet-history-page-header { margin-bottom: 16px; }
.wallet-history-pinned .wallet-history-balance { margin-bottom: 0; }
.wallet-history-pinned .history-provider-filter { margin: 16px 0 0; }
.wallet-history-pinned #historyProviderList {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: min(260px, 38dvh);
  z-index: 8;
}
.wallet-history-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 16px 24px 32px;
  -webkit-overflow-scrolling: touch;
}
.wallet-history-scroll:focus-visible { outline: 2px solid var(--history-ink); outline-offset: -2px; }
@media (max-height: 520px) {
  .wallet-history-pinned { padding: 8px 16px; }
  .wallet-history-pinned .wallet-history-page-header { margin-bottom: 8px; }
  .wallet-history-pinned .wallet-history-balance { padding: 8px 12px; gap: 3px; }
  .wallet-history-pinned .wallet-history-balance strong { font-size: 18px; }
  .wallet-history-pinned .history-provider-filter { margin-top: 6px; }
  .wallet-history-scroll { padding: 12px 16px 24px; }
}
/* ME PAY filters scroll with results so the balance remains visible on small screens. */
.history-filter-panel{margin:0 0 16px;padding:16px;border:1px solid #c8dddd;border-radius:18px;background:#fff}
.history-filter-selects{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.history-filter-selects label{min-width:0;font-size:13px;font-weight:600}
.history-filter-selects select{display:block;width:100%;min-width:0;margin-top:8px;font:400 13px Montserrat,Arial,sans-serif;padding:12px 8px}
.history-filter-panel fieldset{border:0;padding:0;margin:16px 0}
.history-filter-panel legend{font-weight:600;font-size:13px;margin-bottom:8px}
.history-provider-checks{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.history-provider-check{display:flex;align-items:center;gap:8px;min-height:44px;font-size:12px;cursor:pointer}
.history-provider-check input[type=checkbox]{appearance:auto;-webkit-appearance:checkbox;flex:0 0 20px;width:20px;height:20px;margin:0;accent-color:#18766f}
.history-provider-check img{width:24px;height:24px;object-fit:contain;flex:0 0 24px}
.history-provider-check span{min-width:0;overflow-wrap:anywhere}
.history-filter-panel .btn{font-size:12px;min-height:40px;margin:0;padding:10px}
.history-filter-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;margin-bottom:16px;border-radius:12px;background:#eaf6f5;font-size:12px;color:#25414a}
.history-filter-summary strong{display:block;margin-top:5px;font-size:16px}
.me-pay-filtered-history .wallet-history-pinned{padding:12px 20px}
.me-pay-filtered-history .wallet-history-page-header{margin-bottom:10px}
@media(max-width:350px){.history-provider-checks{grid-template-columns:1fr}.history-filter-selects{grid-template-columns:1fr}}

.history-provider-label{font-size:13px;font-weight:600;margin:16px 0 8px}
.history-providers-dropdown{margin-bottom:16px;border:1px solid #bdd6d6;border-radius:14px;background:#fff;overflow:hidden}
.history-providers-dropdown>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 12px;min-height:44px;box-sizing:border-box;font:400 13px/1.5 Montserrat,Arial,sans-serif;list-style:none;cursor:pointer;color:#25414a}
.history-providers-dropdown>summary::-webkit-details-marker{display:none}
.history-providers-dropdown>summary::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);flex:none;margin-right:3px}
.history-providers-dropdown[open]>summary::after{transform:rotate(225deg)}
.history-providers-dropdown[open]>summary{border-bottom:1px solid #dceaea;background:#eff8f7}
.history-providers-dropdown>fieldset{padding:8px 12px;margin:0;max-height:260px;overflow-y:auto}
.history-providers-dropdown .history-provider-checks{grid-template-columns:1fr;gap:0;margin:0}
.history-providers-dropdown .history-provider-check{padding:4px 0}
.history-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.transaction-row[data-wallet] .wallet-category-icon.credit-repayment-history-icon{flex:0 0 40px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--history-border);box-sizing:border-box}
.transaction-row[data-wallet] .wallet-category-icon.credit-repayment-history-icon img{width:30px;height:30px;object-fit:contain;filter:none}

.history-profile-selector{width:112px;max-width:100%;height:23px;margin:0 0 14px}
.history-profile-selector button:disabled{opacity:.4;cursor:not-allowed}
