/* Additive wallet presentation. Fixed source and original display assets remain intact. */
#mb-wallet-reference{max-width:62rem}
.wallet-card-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.wallet-card-heading h2{margin-block:.25rem}
.wallet-count{font-size:.9rem;font-weight:600;color:#36526f}
.wallet-selected-list{list-style:none;display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0;padding:0}
.wallet-card-chip{display:flex;align-items:center;gap:.5rem;padding:.25rem .8rem;border:1px solid #c5d8ef;border-radius:2rem;background:#f3f7fd;font-size:.9rem}
.wallet-chip-remove{border:0;background:transparent;color:#214d82;padding:.15rem .4rem;margin:0;font-size:1.35rem;line-height:1.1;min-width:1.7rem;min-height:1.7rem}
.wallet-empty{list-style:none;color:#52677f;line-height:1.6}
.wallet-card-modal{box-sizing:border-box;width:min(68rem,calc(100vw - 2rem));max-height:calc(100dvh - 2rem);padding:0;border:1px solid #c4d2e5;border-radius:1rem;color:#14243a;background:#fff;box-shadow:0 24px 80px rgb(15 35 65 / 25%)}
.wallet-card-modal[open]{display:flex;flex-direction:column}
.wallet-card-modal::backdrop{background:rgb(16 30 49 / 58%)}
.wallet-modal-head{padding:1.25rem 1.5rem .5rem;display:flex;align-items:start;justify-content:space-between;gap:1rem}
.wallet-modal-head h2{font-size:1.5rem;margin:0 0 .3rem}
.wallet-modal-head p{margin:.25rem 0;color:#52677f}
.wallet-close{font-size:1.5rem;line-height:1;border:0;background:transparent;color:#38516e;margin:0;padding:.5rem;min-width:2.5rem;min-height:2.5rem}
.wallet-modal-filters{display:grid;grid-template-columns:minmax(10rem,2fr) minmax(9rem,1fr) minmax(9rem,1fr);gap:.85rem;padding:.75rem 1.5rem}
.wallet-filter{display:grid;gap:.3rem;border:0;padding:0;align-items:start;font-size:.88rem;font-weight:600;color:#36526f}
.wallet-filter input,.wallet-filter select{box-sizing:border-box;width:100%;height:auto;min-height:2.75rem;padding:.6rem .75rem;border:1px solid #adbed5;border-radius:.5rem;background:#fff;color:#14243a;font:inherit;font-weight:400}
.wallet-modal-selection{padding:0 1.5rem .6rem;border-bottom:1px solid #e3eaf3}
.wallet-modal-selection .wallet-selected-list{margin:.5rem 0}
.wallet-results-meta{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin:0;color:#52677f;font-size:.88rem}
.wallet-card-results{padding:.5rem 1.5rem 1rem;overflow:auto;min-height:8rem;max-height:46vh;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;align-content:start}
.wallet-card-option{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:.65rem;row-gap:.3rem;border:1px solid #e0e7f1;border-radius:.65rem;padding:.85rem;cursor:pointer;align-items:center;background:#fff}
.wallet-card-option:has(input:checked){border-color:#1654a5;background:#f1f6fe;box-shadow:inset 0 0 0 1px #1654a5}
.wallet-card-option input{width:1.15rem;height:1.15rem;margin:0;accent-color:#1654a5;grid-row:1 / 3}
.wallet-card-option-body{display:grid;gap:.18rem;min-width:0;overflow-wrap:anywhere}
.wallet-card-option-body strong{font-size:.94rem;font-weight:650}
.wallet-card-option-body small{font-size:.8rem;color:#52677f}
.wallet-card-kind{grid-column:2;font-size:.75rem;color:#54708f}
.wallet-modal-footer{padding:.7rem 1.5rem 1rem;border-top:1px solid #e3eaf3;background:#fbfcff;display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
.wallet-modal-footer p{margin:0;flex:1 1 18rem;font-size:.9rem;color:#8b391f;min-height:1.5rem}
.wallet-secondary{background:#fff;color:#1654a5}
#wallet-card-count{margin-block:.5rem}
#wallet-draft-note{font-size:.9rem;color:#52677f}
body:has(.wallet-card-modal[open]){overflow:hidden}
@media(max-width:660px){.wallet-modal-filters{grid-template-columns:1fr 1fr}.wallet-filter-search{grid-column:1 / -1}.wallet-card-results{grid-template-columns:1fr;max-height:40vh}.wallet-modal-head,.wallet-modal-filters,.wallet-modal-selection,.wallet-card-results,.wallet-modal-footer{padding-inline:1rem}.wallet-card-modal{width:calc(100vw - 1rem);max-height:calc(100dvh - 1rem)}.wallet-modal-footer p{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
