/* Wallet (/dashboard/wallet/) and the six currency wallet pages (/dashboard/wallet/<cur>/). Builds on /css/dash.css. */

/* Balances */
.wl-group + .wl-group { margin-top: 22px; }
.wl-group > .kicker { margin: 0 0 10px 2px; }
.wl-coins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ycp .wl-coin { display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); min-width: 0; transition: border-color .15s, background .15s; }
.ycp .wl-coin:hover { border-color: #3A4257; background: var(--surface-2); }
.wl-coin img { flex: none; width: 42px; height: 42px; border-radius: 50%; }
.wl-coin-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wl-coin-t b { font-size: 14px; font-weight: 500; color: var(--muted); }
.wl-coin-t .amt { font-size: 19px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.wl-coin-t .amt .cur { font-size: 13px; margin-left: 3px; }
.wl-coin.zero .wl-coin-t .amt { color: var(--muted); }
.wl-coin > .i { flex: none; color: var(--muted-2); }

/* Payments on hold */
.hold-sum { display: flex; align-items: center; gap: 14px; }
.hold-sum .card-ic { color: var(--hold); background: rgba(245, 185, 74, .12); }
.hold-sum p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.hold-sum p b { color: var(--text); font-weight: 600; }
.ycp .hold-sum a { color: var(--link); }
.ycp .hold-sum a:hover { text-decoration: underline; }
.holds { margin-top: 14px; display: flex; flex-direction: column; }
.hold { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.hold-t b { display: block; font-size: 14.5px; font-weight: 500; color: var(--text); }
.hold-t span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.hold .amt { font-size: 15px; text-align: right; }
.hold-bar { grid-column: 1 / -1; height: 5px; margin-top: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.hold-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #F5B94A, #F7D58A); }
.holds-none { margin: 14px 0 0; padding-top: 13px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }


/* One currency */
.cw-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: center; padding: 24px 26px; }
.cw-name { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.cw-name img { flex: none; }
.cw-name h1 { margin: 0; font-family: "titles", sans-serif !important; font-weight: 400; font-size: 28px; color: #E4E8EF; }
.cw-name span { font-size: 13.5px; color: var(--muted); }
.cw-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ycp .cw-act { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 15px; border: 1px solid var(--line-2); background: rgba(17, 20, 26, .55); min-width: 0; transition: border-color .15s, background .15s; }
.ycp .cw-act:hover { border-color: #3A4257; background: var(--surface-2); }
.cw-act-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--text); background: var(--surface-3); }
.cw-act.main .cw-act-ic { color: #fff; background: var(--grad); box-shadow: 0 8px 20px rgba(94, 123, 255, .3); }
.cw-act-t { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cw-act-t b { font-size: 14.5px; font-weight: 600; color: var(--text); }
.cw-act-t span { font-size: 12px; line-height: 1.4; color: var(--muted); }

@media (max-width: 1100px) {
  .wl-coins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cw-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 750px) {
  /* One card with a row per currency */
  .wl-coins { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
  .ycp .wl-coin { padding: 13px 14px 13px 16px; border: 0; border-radius: 0; }
  .ycp .wl-coin + .wl-coin { border-top: 1px solid var(--line); }
  .wl-coin img { width: 38px; height: 38px; }
  .wl-coin-t .amt { font-size: 17px; }
  .cw-hero { padding: 20px 16px 16px; }
  .cw-name { margin-bottom: 16px; }
  .cw-name h1 { font-size: 24px; }
  /* Four round buttons in a row, like a banking app */
  .cw-acts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .ycp .cw-act { flex-direction: column; gap: 7px; padding: 4px 0; border: 0; background: none; text-align: center; }
  .ycp .cw-act:hover { background: none; }
  .cw-act-ic { width: 52px; height: 52px; border-radius: 50%; }
  .cw-act-t span { display: none; }
  .cw-act-t b { font-size: 12.5px; font-weight: 500; }
}

/* Bank accounts: shown once GET /deposits/bank/access says the customer can use or ask for them */
#bank-accounts-link[hidden] { display: none; }
