.wallet-checkout{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.wallet-checkout[hidden],fieldset.payment-methods[hidden]{display:none}
.wallet-checkout input{width:100%;box-sizing:border-box}
.wallet-checkout small{grid-column:1/-1;color:var(--muted,#546775)}
.wallet-checkout button{min-height:44px;padding:6px 10px;border:1px solid #bdcdd9;border-radius:6px;background:#fff;color:#165789;cursor:pointer}
.wallet-order-breakdown{display:grid;gap:5px;margin:10px 0;font-size:.92em}
.wallet-order-breakdown>span{display:flex;justify-content:space-between;gap:12px}
.wallet-history{list-style:none;margin:0 0 12px;padding:0}
.wallet-history li{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-block-end:1px solid var(--line,#d7e2e7)}
.wallet-history li>span{min-width:0;overflow-wrap:anywhere}
.wallet-history li>span:last-child{text-align:right;flex:none}
.wallet-history small{display:block;margin-top:3px;color:var(--muted,#546775)}
.wallet-entry{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0}
.wallet-dialog{width:min(540px,calc(100% - 24px));max-height:85dvh;box-sizing:border-box;padding:20px;border:1px solid #bdcdd9;border-radius:8px;background:#fff;color:#18323e}
.wallet-dialog::backdrop{background:#071b2880}
.wallet-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.wallet-dialog header h2{margin:0;font-size:22px}
.wallet-dialog header button{display:grid;place-items:center;width:44px;height:44px;border:0;background:transparent;cursor:pointer}
