/* Mester Xiaomi Wallet v1.4.0 */
.mxw-wrap{--mx-or:#ff6700;--mx-or-soft:#fff1e8;--mx-ink:#1f2024;--mx-mute:#8a8d96;--mx-line:#eceef2;--mx-green:#12a150;--mx-red:#d9453b;font-family:inherit;max-width:100%;color:var(--mx-ink);box-sizing:border-box}
.mxw-wrap *{box-sizing:border-box}
.mxw-ico{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:14px;background:var(--mx-or-soft);color:var(--mx-or);flex:none}
.mxw-ico svg{width:23px;height:23px}

/* Hero */
.mxw-hero{position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:30px 32px;border-radius:24px;background:linear-gradient(135deg,#1b1c20 0%,#2d2e34 100%);color:#fff;margin-bottom:16px}
.mxw-glow{position:absolute;left:-70px;bottom:-110px;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(255,103,0,.55),rgba(255,103,0,0) 68%);pointer-events:none}
.mxw-ring{position:absolute;left:34px;top:-60px;width:150px;height:150px;border-radius:50%;border:26px solid rgba(255,255,255,.04);pointer-events:none}
.mxw-hero-text,.mxw-balance{position:relative;z-index:1}
.mxw-hero small{display:block;font-size:12.5px;color:var(--mx-or);font-weight:700}
.mxw-hero h2{margin:6px 0 4px;color:#fff;font-size:26px;line-height:1.3}
.mxw-hero p{margin:0;opacity:.65;font-size:14px}
.mxw-balance{min-width:200px;text-align:center;padding:16px 22px;border-radius:18px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(6px)}
.mxw-balance small{color:rgba(255,255,255,.7);font-weight:400}
.mxw-balance strong{display:block;font-size:30px;line-height:1.2;margin:6px 0 2px;letter-spacing:.3px}
.mxw-balance span{display:block;font-size:13px;color:var(--mx-or);font-weight:700}

/* Cards */
.mxw-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}
.mxw-card{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:20px;border:1px solid var(--mx-line);border-radius:20px;background:#fff;transition:border-color .2s,box-shadow .2s}
.mxw-card:hover{border-color:#ffd2b3;box-shadow:0 8px 24px rgba(255,103,0,.08)}
.mxw-card small{display:block;color:var(--mx-mute);font-size:13px}
.mxw-card b{display:block;margin-top:5px;font-size:15px;line-height:1.7}
.mxw-card-balance b{font-size:22px}
.mxw-card b em,.mxw-amt em{font-style:normal;font-size:12px;font-weight:600;color:var(--mx-mute)}
.mxw-card-use .mxw-btn{margin-right:auto}
.mxw-btn{display:inline-block;padding:9px 18px;border-radius:12px;background:var(--mx-or);color:#fff!important;font-size:13px;font-weight:700;text-decoration:none!important;transition:background .2s,transform .2s}
.mxw-btn:hover{background:#e55c00;transform:translateY(-1px)}
.mxw-btn:focus-visible{outline:3px solid #ffc7a0;outline-offset:2px}

/* Transactions */
.mxw-panel{background:#fff;border:1px solid var(--mx-line);border-radius:20px;padding:22px}
.mxw-panel-head{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.mxw-panel-head .mxw-ico{width:38px;height:38px;border-radius:12px}
.mxw-panel-head .mxw-ico svg{width:19px;height:19px}
.mxw-panel h3{margin:0;font-size:17px}
.mxw-row{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--mx-line)}
.mxw-row:last-child{border-bottom:0;padding-bottom:0}
.mxw-row-info{flex:1;min-width:0}
.mxw-row-info b{display:block;font-size:14px;font-weight:600}
.mxw-row small{display:block;color:var(--mx-mute);margin-top:4px;font-size:12px}
.mxw-dot{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;flex:none}
.mxw-dot .mxw-ico{width:auto;height:auto;background:none;color:inherit;border-radius:0}
.mxw-dot .mxw-ico svg{width:18px;height:18px}
.mxw-dot.plus{background:#e7f7ee;color:var(--mx-green)}
.mxw-dot.minus{background:#fdecea;color:var(--mx-red)}
.mxw-amt{white-space:nowrap;font-size:15px}
.mxw-amt.plus{color:var(--mx-green)}
.mxw-amt.minus{color:var(--mx-red)}
.mxw-amt-hidden{font-size:12px;font-weight:600;padding:6px 12px;border-radius:20px;background:#e7f7ee}
.mxw-empty{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:34px 10px 24px;color:var(--mx-mute)}
.mxw-empty .mxw-ico{width:62px;height:62px;border-radius:20px;margin-bottom:8px}
.mxw-empty .mxw-ico svg{width:30px;height:30px}
.mxw-empty b{color:var(--mx-ink);font-size:15px}
.mxw-empty span:last-child{font-size:13px}

@media(max-width:700px){
 .mxw-hero{flex-direction:column;align-items:stretch;padding:24px 20px}
 .mxw-balance{min-width:0}
 .mxw-cards{grid-template-columns:1fr}
 .mxw-card-use .mxw-btn{margin-right:0;width:100%;text-align:center}
}
@media(prefers-reduced-motion:reduce){.mxw-card,.mxw-btn{transition:none}}

/* Checkout wallet credit */
.mxw-checkout-box{margin:0 0 18px;padding:18px;border:1px solid #ffd9bf;border-radius:16px;background:linear-gradient(180deg,#fff8f3,#fff);box-shadow:0 6px 20px rgba(255,103,0,.06)}
.mxw-wallet-check{display:flex;align-items:center;gap:9px;font-size:15px;cursor:pointer}
.mxw-wallet-check input{width:18px;height:18px;accent-color:#ff6700}
.mxw-wallet-balance{margin-top:8px;font-size:13px;color:#666}
.mxw-wallet-amount-wrap{margin-top:12px;padding-top:12px;border-top:1px dashed #ffcfae}
.mxw-wallet-amount-wrap label{display:block;font-weight:600;margin-bottom:7px}
.mxw-wallet-amount-wrap input{width:100%;border:1px solid #e3e3e3;border-radius:10px;padding:10px;background:#fff}
.mxw-wallet-amount-wrap input:focus{border-color:#ff6700;outline:0;box-shadow:0 0 0 3px rgba(255,103,0,.15)}
.mxw-wallet-amount-wrap small{display:block;margin-top:6px;color:#777}
