.wallet-page .access-wrap{max-width:68rem}
.wallet-page .wallet-sandbox{border-left:4px solid #da8a00;background:#fff1c9;color:#30220d;padding:1rem}
.wallet-summary{display:flex;flex-wrap:wrap;gap:1.5rem;align-items:baseline;padding:1.2rem;margin:1rem 0}
.wallet-summary strong{font-size:2rem;color:#102a46}.wallet-summary p{margin:0}
.wallet-page .wallet-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:1rem;align-items:start}
.wallet-page .wallet-grid:has(#wallet-topup-panel[hidden]):has(#annual-wallet-panel[hidden]){grid-template-columns:1fr}
.wallet-page .presets{display:flex;gap:.5rem;flex-wrap:wrap;margin:.75rem 0}
.wallet-page .presets button{min-width:4rem;min-height:44px}
.wallet-page .wallet-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 .75rem}
.wallet-page .wallet-fields .full{grid-column:1/-1}
.wallet-page .wallet-fields input,.wallet-page select{width:100%;min-width:0;box-sizing:border-box;padding:.65rem;font:inherit}
.wallet-page .check{display:flex;align-items:flex-start;gap:.6rem;margin:1rem 0;font-weight:normal}
.wallet-page .check input{width:1.2rem;height:1.2rem;flex-shrink:0;margin-top:.2rem}
.wallet-page .quote{font-size:1.2rem;background:#e8f3eb;padding:1rem;border-radius:.6rem;min-height:4rem;color:#163c24}
.wallet-page #wallet-content .btn.primary{color:#07101f;text-shadow:none}
.wallet-page #wallet-content .btn{min-height:44px}
.wallet-page #purchase:focus-visible,.wallet-page #wallet-content :focus-visible,.wallet-page #wallet-status:focus-visible{outline:3px solid #1164c0;outline-offset:3px}
.wallet-page .purchases{padding-left:1.1rem}.wallet-page .purchases li{margin:.85rem 0}
.wallet-page .purchase-id{font-size:.8rem;overflow-wrap:anywhere}
.wallet-page [hidden]{display:none!important}
.wallet-page textarea{width:100%;box-sizing:border-box;font:inherit;padding:.6rem}
.wallet-page input[type=file]{max-width:100%;font-size:.9rem}
.wallet-totals{display:grid;grid-template-columns:1fr auto;gap:.6rem}.wallet-totals dd{margin:0;font-weight:700}
.wallet-page #estimate{overflow-wrap:anywhere}
.wallet-page #wallet-status:empty{display:none}
@media(max-width:720px){.wallet-page .wallet-grid{grid-template-columns:1fr}.wallet-page .wallet-fields{grid-template-columns:1fr}.wallet-page .wallet-fields .full{grid-column:auto}.wallet-summary{gap:.5rem 1rem}}


.wallet-buy-modes{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0}
.wallet-buy-modes button[aria-pressed="true"]{background:#163b63;color:#fff;border-color:#163b63}
.wallet-page .wallet-expiry-terms{flex-basis:100%;font-size:.92rem;color:#33495c}
.wallet-expiry-terms details{margin-top:.3rem}
.wallet-page .annual-quantity{display:flex;align-items:center;gap:.6rem;margin:.5rem 0 1rem}
.wallet-page .annual-quantity input{width:6.5rem;text-align:center}
.wallet-page .annual-quantity button{width:3rem}
.wallet-page .annual-buy-section>p,.wallet-page .annual-code-section>p{max-width:58ch}
.wallet-page .annual-preview{padding:1rem;margin:1rem 0;border:1px solid #adc6df;border-radius:.65rem;background:#f5f9fe}
.wallet-page .annual-preview .btn{margin-right:.5rem;margin-top:.5rem}
.wallet-page .annual-code-list{max-height:19rem;overflow:auto;padding-left:1.7rem}
.wallet-page .annual-code-list li{padding:.4rem 0;border-bottom:1px solid #e5ecf4;overflow-wrap:anywhere}
.wallet-page .annual-code-list code{user-select:text;font-size:.95rem;font-weight:700}
.wallet-page .annual-purchases li{margin-bottom:.6rem}
.wallet-page .annual-purchases button{white-space:normal;text-align:left}
.wallet-page .annual-purchase-detail{overflow-wrap:anywhere}
.wallet-page #annual-code{width:100%;box-sizing:border-box;max-width:30rem}
.wallet-page .annual-code-section form{display:flex;flex-wrap:wrap;align-items:end;gap:.7rem}
.wallet-page .annual-code-section form label{flex-basis:100%}
.wallet-page .annual-buy-section input,.wallet-page .annual-code-section input{min-height:44px}
#account-page.wallet-inline{min-width:0;margin-top:20px;background:none}
.wallet-page.wallet-inline .wallet-grid{display:block}
#account-page.wallet-inline .access-card{margin:0;padding:22px;background:#f8fafb;border:1px solid #bacbd7;box-shadow:none}
#account-page.wallet-inline .access-card h2{font-size:1.4rem;margin:0 0 16px}
#account-page.wallet-inline .wallet-buy-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 16px}
#account-page.wallet-inline .wallet-buy-modes .btn{min-width:0;white-space:normal;padding:12px 10px;font:inherit;font-weight:700}
.wallet-inline .wallet-buy-modes .btn[aria-pressed=true]:hover:not(:disabled){color:#fff;background:#234f78}
.wallet-inline .wallet-current-set{margin:0 0 14px;color:#334c64;font-size:.95rem}
#account-page.wallet-inline .account-toast{position:static;max-width:none;width:auto;margin:0 0 16px;box-shadow:none}
#account-page.wallet-inline p,#account-page.wallet-inline h3{overflow-wrap:anywhere}
#account-page.wallet-inline input,#account-page.wallet-inline select,#account-page.wallet-inline button{font:inherit}
.wallet-inline .annual-preview .btn{margin-top:12px}
.wallet-inline .annual-purchases{margin-top:16px}
.wallet-inline #annual-purchase-detail{overflow-wrap:anywhere}
.wallet-inline .access-card form>.btn{width:100%;margin-top:16px}
.wallet-inline #purchase .actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
@media(max-width:520px){#account-page.wallet-inline .access-card{padding:18px 14px}#account-page.wallet-inline .wallet-buy-modes{display:flex;flex-wrap:wrap}#account-page.wallet-inline .wallet-buy-modes .btn{flex:1 1 6.25rem;min-width:min(100%,7em);padding:12px 6px;font-size:.875rem;line-height:1.35}#account-page.wallet-inline .annual-offers{grid-template-columns:1fr}}
@media(max-width:720px){.wallet-page .wallet-buy-modes button{flex:1 1 11rem}.wallet-page .annual-code-section form button{width:100%}}

/* Compact wallet history: scoped away from forms, account and annual lists. */
#account-page .wallet-side{gap:12px}
#account-page .access-card.wallet-activity-panel,
#account-page .wallet-explainer.wallet-disclosure{padding:0;border:1px solid #d4dde5;border-radius:14px;background:#fffdf9;box-shadow:none;min-width:0}
#account-page .access-card.wallet-activity-panel h2{font-size:18px;line-height:1.35;letter-spacing:-.02em;margin:0;padding:16px 16px 8px}
#account-page .wallet-activity-panel #purchases{padding:0 16px 4px}
#account-page .wallet-activity-panel #purchases>p{margin:8px 0 12px}
#account-page .wallet-activity-panel .wallet-entry-list{list-style:none;padding:0;margin:0}
#account-page .wallet-activity-panel .wallet-entry-list>li{display:block;padding:0;margin:0;border:0;border-bottom:1px solid #e1e6eb;border-radius:0;background:transparent;font:inherit}
#account-page .wallet-activity-panel .wallet-entry-list>li:last-child{border-bottom:0}
#account-page .wallet-activity-panel .wallet-entry-link{display:block;box-sizing:border-box;min-height:60px;padding:11px 0;color:#183b5b;font-size:15px;font-weight:400;line-height:1.4;text-decoration:none;border-radius:4px}
#account-page .wallet-entry-main{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
#account-page .wallet-entry-title{min-width:0;font-weight:700;overflow-wrap:anywhere}
#account-page .wallet-entry-credits{font-weight:500}
#account-page .wallet-entry-arrow{flex:none;color:#5a7084}
#account-page .wallet-entry-meta{display:flex;flex-wrap:wrap;gap:2px 12px;margin-top:4px;color:#536779;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
#account-page .wallet-entry-meta time{font-variant-numeric:tabular-nums}
#account-page .wallet-disclosure>summary{display:flex;box-sizing:border-box;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:13px 16px;margin:0;border-radius:13px;font-size:15px;line-height:1.5;list-style:none;color:#214b70;font-weight:700;cursor:pointer}
#account-page .wallet-disclosure>summary::-webkit-details-marker{display:none}
#account-page .wallet-disclosure>summary::after{content:"";flex:none;width:7px;height:7px;margin:0 2px 4px 0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
#account-page .wallet-disclosure[open]>summary::after{transform:rotate(225deg);margin-top:4px;margin-bottom:0}
#account-page .wallet-activity-panel>.wallet-disclosure{margin:0}
#account-page .wallet-disclosure-body{padding:0 16px 8px}
#account-page .wallet-credit-definitions{margin:0;color:#3c5368;font-size:14px;line-height:1.5}
#account-page .wallet-credit-definitions>div{margin:0 0 12px}
#account-page .wallet-credit-definitions dt{display:inline;font-weight:700;color:#183b5b}
#account-page .wallet-credit-definitions dt::after{content:" — "}
#account-page .wallet-credit-definitions dd{display:inline;margin:0}
#account-page .wallet-disclosure .wallet-panel-link{display:inline-flex;box-sizing:border-box;align-items:center;gap:6px;min-height:44px;padding:8px 0;margin:0;color:#234f78;font-size:14px;font-weight:650;line-height:1.5}
#account-page .wallet-activity-panel .wallet-entry-link:focus-visible,
#account-page .wallet-disclosure>summary:focus-visible{outline:3px solid #1769aa;outline-offset:-3px}
#account-page #wallet-works>p{margin:16px 16px 0}
#account-page #wallet-works>[data-wallet-read-retry]{margin:12px 16px 16px;max-width:calc(100% - 32px)}
@media(hover:hover){#account-page .wallet-disclosure>summary:hover{background:#f1f5f8}#account-page .wallet-activity-panel .wallet-entry-link:hover .wallet-entry-title{text-decoration:underline;text-underline-offset:3px}}

/* Purchase consent: text is a generous native label; only the word link navigates. */
#account-page .access-card label.wallet-purchase-consent{display:grid;grid-template-columns:22px minmax(0,1fr);column-gap:12px;align-items:start;min-height:48px;font-size:14px;line-height:1.65;cursor:pointer}
#account-page .wallet-purchase-consent input{width:22px;height:22px;min-width:22px;min-height:22px;max-height:22px;margin:2px 0 0}
#account-page .wallet-purchase-consent>span{min-width:0}
#account-page .wallet-purchase-consent a{display:inline;padding:0;margin:0;min-height:0;white-space:normal;text-underline-offset:3px}
#account-page .access-card .wallet-purchase-privacy{margin:0 0 16px;font-size:12px;line-height:1.5}
#account-page .wallet-purchase-details{margin:12px 0 16px;line-height:1.6}
#account-page .wallet-purchase-details>summary{min-height:44px;display:list-item;align-content:center;padding:10px 0;font-weight:650;cursor:pointer}
#account-page .wallet-purchase-details p{margin:10px 0}
#account-page #purchase>section>.actions{margin:16px 0}
