/*
 * Member Account System - store pages.
 * Path: catalog/view/theme/default/stylesheet/member_account/member_account.css
 * Self-contained: the account shell does not load the theme or Bootstrap styles.
 * Everything lives inside .ma-shell (dialogs and toasts are rendered inside it too).
 */
.ma-shell{--ink:#171717;--muted:#686868;--line:#dedede;--soft:#f6f6f6;--soft2:#fafafa;--accent:#111;--accent-h:#292929;--ok:#1f7a3e;--okbg:#e9f6ee;--warn:#8a5a00;--warnbg:#fff5e0;--bad:#b42318;--badbg:#fdecea;--r:10px}
.ma-shell,.ma-shell *,.ma-shell *:before,.ma-shell *:after{box-sizing:border-box}
body.ma-body{margin:0;background:#fff}
.ma-shell{color:var(--ink);font:14px/1.55 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",Arial,sans-serif}
.ma-shell a{color:inherit;text-decoration:none}
.ma-shell button{font:inherit;color:inherit;cursor:pointer}
.ma-shell input,.ma-shell select,.ma-shell textarea{font:inherit;color:inherit}
.ma-shell [hidden]{display:none!important}
.ma-shell svg.i{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ma-shell svg.i.sm{width:16px;height:16px}
.ma-shell svg.i.lg{width:26px;height:26px}

/* shell header (same pattern as the checkout header) */
.ma-shell{min-height:100vh;display:flex;flex-direction:column}
.ma-shell .ma-frame{flex:1;display:flex;flex-direction:column}
.ma-shell .hd{display:flex;align-items:center;gap:10px;height:62px;padding:0 20px;border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:40}
.ma-shell .hd .back{display:flex;width:34px;height:34px;align-items:center;justify-content:center;border-radius:8px;border:0;background:none}
.ma-shell .hd .back:hover{background:var(--soft)}
.ma-shell .logo{display:flex;align-items:baseline;gap:8px;font-weight:800;letter-spacing:.02em;font-size:18px}
.ma-shell .logo small{font-weight:600;font-size:11px;color:var(--muted);letter-spacing:.12em}
.ma-shell .hd .sp{flex:1}
/* Language menu: same look and behaviour as the QYT Checkout header (globe, current language, chevron, drop-down list). */
.ma-shell .lang{position:relative}
.ma-shell .lang>summary{list-style:none;cursor:pointer}
.ma-shell .lang>summary::-webkit-details-marker{display:none}
.ma-shell .lang-btn{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 10px;border-radius:8px;color:#111;font-size:14px;font-weight:500;-webkit-user-select:none;user-select:none;white-space:nowrap}
.ma-shell .lang-btn:hover,.ma-shell .lang[open]>.lang-btn{background:#f2f2f2}
.ma-shell .lang-btn:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.ma-shell .lang-globe{width:18px;height:18px;flex:0 0 18px}
.ma-shell .lang-chev{width:14px;height:14px;flex:0 0 14px;transition:transform .15s ease}
.ma-shell .lang[open] .lang-chev{transform:rotate(180deg)}
.ma-shell .lang-list{position:absolute;top:calc(100% + 6px);right:0;min-width:184px;z-index:60;display:flex;flex-direction:column;padding:6px;margin:0;background:#fff;border:1px solid #e3e3e3;border-radius:10px;box-shadow:0 10px 28px rgba(0,0,0,.12)}
.ma-shell .lang-item{display:block;width:100%;padding:10px 12px;margin:0;border:0;border-radius:6px;background:none;color:#111;font:inherit;font-size:14px;line-height:1.4;text-align:left;cursor:pointer;white-space:nowrap}
.ma-shell .lang-item:hover,.ma-shell .lang-item:focus-visible{background:#f3f3f3;outline:0}
.ma-shell .lang-item.on{font-weight:600}
.ma-shell .iconbtn{position:relative;display:flex;width:36px;height:36px;align-items:center;justify-content:center;border:0;background:none;border-radius:8px}
.ma-shell .iconbtn:hover{background:var(--soft)}
.ma-shell .badge-dot{position:absolute;top:3px;right:2px;background:var(--accent);color:#fff;font-size:10px;line-height:16px;min-width:16px;border-radius:8px;text-align:center;padding:0 4px}

/* layout */
.ma-shell .wrap{flex:1;width:100%;max-width:1120px;margin:0 auto;padding:28px 20px 60px;display:grid;grid-template-columns:260px 1fr;gap:32px;align-items:start}
.ma-shell .side{border:1px solid var(--line);border-radius:var(--r);padding:8px 0}
.ma-shell .side .who{display:flex;gap:10px;align-items:center;padding:10px 16px 14px;border-bottom:1px solid var(--line);margin-bottom:6px}
.ma-shell .av{width:38px;height:38px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;flex:none}
.ma-shell .side h4{margin:12px 16px 4px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:700}
.ma-shell .side a{display:flex;gap:10px;align-items:center;padding:7px 16px;font-size:13.5px;color:#333}
.ma-shell .side a:hover{background:var(--soft)}
.ma-shell .side a.on{background:var(--soft);font-weight:700;color:var(--ink);box-shadow:inset 3px 0 0 var(--accent)}
.ma-shell .side a .soon{margin-left:auto}
.ma-shell .main{min-width:0}

/* type */
.ma-shell h1.pt{font-size:24px;font-weight:800;margin:0 0 4px;letter-spacing:-.01em}
.ma-shell .sub{color:var(--muted);margin:0 0 20px}
.ma-shell h2.st{font-size:15px;font-weight:700;margin:26px 0 10px}
.ma-shell .muted{color:var(--muted)}
.ma-shell .small{font-size:12.5px}
.ma-shell .row{display:flex;gap:10px;align-items:center}
.ma-shell .row.wrapy{flex-wrap:wrap}
.ma-shell .grow{flex:1;min-width:0}
.ma-shell .right{margin-left:auto}
.ma-shell .mt0{margin-top:0}

/* pieces */
.ma-shell .card{border:1px solid var(--line);border-radius:var(--r);background:#fff;padding:18px}
.ma-shell .card+.card{margin-top:12px}
.ma-shell .grid2>.card,.ma-shell .stat3>.card{margin-top:0}
.ma-shell .stack>*+*{margin-top:12px}
.ma-shell .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--accent);background:var(--accent);color:#fff;border-radius:8px;padding:10px 16px;font-weight:600;min-height:42px}
.ma-shell .btn:hover{background:var(--accent-h)}
.ma-shell .btn.ghost{background:#fff;color:var(--ink);border-color:var(--line)}
.ma-shell .btn.ghost:hover{background:var(--soft)}
.ma-shell .btn.sm{min-height:32px;padding:5px 12px;font-size:13px}
.ma-shell .btn.block{width:100%}
.ma-shell .btn:disabled{opacity:.45;cursor:not-allowed}
.ma-shell .link{text-decoration:underline;text-underline-offset:2px;background:none;border:0;padding:0}
.ma-shell .pill{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:1px 9px;font-size:11.5px;font-weight:600;background:var(--soft);color:#333;border:1px solid var(--line);white-space:nowrap}
.ma-shell .pill.ok{background:var(--okbg);color:var(--ok);border-color:#cde9d6}
.ma-shell .pill.warn{background:var(--warnbg);color:var(--warn);border-color:#f3dfb2}
.ma-shell .pill.bad{background:var(--badbg);color:var(--bad);border-color:#f5c9c4}
.ma-shell .pill.dark{background:var(--accent);color:#fff;border-color:var(--accent)}
.ma-shell .soon{font-size:10.5px;font-weight:700;color:var(--muted);border:1px dashed #bbb;border-radius:999px;padding:0 7px;white-space:nowrap;flex:none}
.ma-shell .logo{white-space:nowrap}
.ma-shell .field{margin-bottom:14px}
.ma-shell .field label{display:block;font-weight:600;margin-bottom:5px;font-size:13px}
.ma-shell .field .hint{color:var(--muted);font-size:12px;margin-top:4px}
.ma-shell .field .err{color:var(--bad);font-size:12px;margin-top:4px}
.ma-shell .inp{width:100%;border:1px solid #cfcfcf;border-radius:8px;padding:10px 12px;min-height:44px;background:#fff}
.ma-shell .inp:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}
.ma-shell .inp[readonly]{background:var(--soft);color:#444}
.ma-shell .grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ma-shell .seg{display:flex;gap:8px;flex-wrap:wrap}
.ma-shell .seg label{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:8px;padding:10px 14px;cursor:pointer;min-height:44px}
.ma-shell .seg input{accent-color:#111}
.ma-shell .seg label.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.ma-shell .note{border-radius:var(--r);padding:12px 14px;background:var(--soft);display:flex;gap:10px;align-items:flex-start;font-size:13px}
.ma-shell .note.warn{background:var(--warnbg);color:#5d3d00}
.ma-shell .note.ok{background:var(--okbg);color:#164b2a}
.ma-shell .tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);overflow-x:auto;margin-bottom:16px;scrollbar-width:none}
.ma-shell .tabs button{border:0;background:none;padding:10px 12px;white-space:nowrap;color:var(--muted);font-weight:600;border-bottom:2px solid transparent;margin-bottom:-1px}
.ma-shell .tabs button.on{color:var(--ink);border-color:var(--accent)}
.ma-shell .tabs .n{font-size:11px;background:var(--soft);border-radius:999px;padding:0 6px;margin-left:4px;color:#444}
.ma-shell .list{border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.ma-shell .li{display:flex;gap:12px;align-items:center;padding:14px 16px;border-top:1px solid var(--line)}
.ma-shell .li:first-child{border-top:0}
.ma-shell .li.click:hover{background:var(--soft2);cursor:pointer}
.ma-shell .kv{display:grid;grid-template-columns:140px 1fr;gap:8px 12px;font-size:13.5px}
.ma-shell .kv dt{color:var(--muted)}
.ma-shell .kv dd{margin:0}
.ma-shell .empty{text-align:center;padding:40px 16px;color:var(--muted)}
.ma-shell .empty svg{width:40px;height:40px;stroke:#bbb;margin-bottom:8px}
.ma-shell hr.d{border:0;border-top:1px solid var(--line);margin:16px 0}

/* member card */
.ma-shell .mcard{border-radius:14px;padding:20px;color:#fff;background:linear-gradient(135deg,#0d0d0d 0%,#2a2a2a 60%,#3b3b3b 100%);position:relative;overflow:hidden}
.ma-shell .mcard:after{content:"强";position:absolute;right:-6px;bottom:-34px;font-size:150px;font-weight:900;color:rgba(255,255,255,.05);line-height:1}
.ma-shell .mcard .top{display:flex;align-items:center;gap:12px}
.ma-shell .mcard .nm{font-size:19px;font-weight:800}
.ma-shell .mcard .grp{display:inline-block;font-size:11px;font-weight:700;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:1px 9px;margin-top:2px}
.ma-shell .mcard .no{font-family:ui-monospace,Menlo,Consolas,monospace;letter-spacing:.08em;font-size:13px;opacity:.85;margin-top:14px}
.ma-shell .mcard .qr{margin-left:auto;display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff;color:#111;border:0;border-radius:10px;padding:7px 9px;font-size:10.5px;font-weight:700}
.ma-shell .mstats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px;position:relative;z-index:1}
.ma-shell .mstats a,.ma-shell .mstats button{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:10px;padding:10px;color:#fff;text-align:left}
.ma-shell .mstats b{display:block;font-size:19px;font-weight:800}
.ma-shell .mstats span{font-size:11.5px;opacity:.8}
.ma-shell .strip{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;text-align:center}
.ma-shell .strip a{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 2px;border-radius:10px;font-size:12px;position:relative}
.ma-shell .strip a:hover{background:var(--soft)}
.ma-shell .strip .c{position:absolute;top:4px;left:calc(50% + 6px);background:var(--accent);color:#fff;font-size:10px;line-height:16px;min-width:16px;border-radius:8px;padding:0 4px}
.ma-shell .menu-g{border:1px solid var(--line);border-radius:var(--r);margin-top:12px;overflow:hidden}
.ma-shell .menu-g h3{margin:0;padding:12px 16px 6px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.ma-shell .menu-g a{display:flex;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid #efefef}
.ma-shell .menu-g a:hover{background:var(--soft2)}
.ma-shell .menu-g a .chev{margin-left:auto;color:#aaa}
.ma-shell .prog{height:6px;background:#e9e9e9;border-radius:6px;overflow:hidden}
.ma-shell .prog i{display:block;height:100%;background:var(--accent);border-radius:6px}

/* orders */
.ma-shell .ord{border:1px solid var(--line);border-radius:var(--r);padding:14px 16px}
.ma-shell .ord+.ord{margin-top:12px}
.ma-shell .thumbs{display:flex;gap:6px}
.ma-shell .th{width:52px;height:52px;border-radius:8px;flex:none;display:flex;align-items:center;justify-content:center;font-weight:800;color:#fff;font-size:15px}
.ma-shell .th.more{background:var(--soft);color:#555;font-size:12px}
.ma-shell .tl{list-style:none;margin:0;padding:0}
.ma-shell .tl li{position:relative;padding:0 0 16px 22px}
.ma-shell .tl li:before{content:"";position:absolute;left:5px;top:6px;width:9px;height:9px;border-radius:50%;background:#bbb}
.ma-shell .tl li:after{content:"";position:absolute;left:9px;top:17px;bottom:0;width:1px;background:var(--line)}
.ma-shell .tl li:last-child:after{display:none}
.ma-shell .tl li.now:before{background:var(--accent);box-shadow:0 0 0 3px #e6e6e6}
.ma-shell .tot{display:grid;grid-template-columns:1fr auto;gap:6px 16px;font-size:13.5px}
.ma-shell .tot .g{font-weight:800;font-size:15px;border-top:1px solid var(--line);padding-top:8px}

/* check-in */
.ma-shell .week{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}
.ma-shell .day{border:1px solid var(--line);border-radius:10px;padding:10px 2px;text-align:center;font-size:11px;white-space:nowrap;background:#fff}
.ma-shell .day b{display:block;font-size:15px;margin:2px 0}
.ma-shell .day.done{background:var(--accent);color:#fff;border-color:var(--accent)}
.ma-shell .day.today{border:2px solid var(--accent)}
.ma-shell .day.bonus b:after{content:" 🎁"}
.ma-shell .cal{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center;font-size:12.5px}
.ma-shell .cal .h{color:var(--muted);font-weight:600;padding:4px 0}
.ma-shell .cal .d{padding:8px 0;border-radius:8px}
.ma-shell .cal .d.x{background:var(--accent);color:#fff;font-weight:700}
.ma-shell .cal .d.t{box-shadow:inset 0 0 0 2px var(--accent);font-weight:700}
.ma-shell .cal .d.f{color:#c4c4c4}
.ma-shell .bigcheck{width:100%;min-height:56px;font-size:16px}

/* vouchers */
.ma-shell .vch{display:flex;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.ma-shell .vch+.vch{margin-top:12px}
.ma-shell .vch .l{width:118px;flex:none;background:var(--accent);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px;text-align:center;position:relative}
.ma-shell .vch .l b{font-size:21px;font-weight:800;line-height:1.1}
.ma-shell .vch .l:after{content:"";position:absolute;right:-7px;top:50%;margin-top:-7px;width:14px;height:14px;border-radius:50%;background:#fff;border-left:1px solid var(--line)}
.ma-shell .vch.bday .l{background:linear-gradient(135deg,#7a2a5c,#a3367a)}
.ma-shell .vch .r{flex:1;padding:12px 14px;min-width:0}
.ma-shell .code{font-family:ui-monospace,Menlo,Consolas,monospace;background:var(--soft);border:1px dashed #bbb;border-radius:6px;padding:2px 8px;letter-spacing:.06em}
.ma-shell .gc{border-radius:12px;padding:16px;color:#fff;background:linear-gradient(135deg,#1c1c1c,#444)}
.ma-shell .gc+.gc{margin-top:12px}
.ma-shell .gc .amt{font-size:24px;font-weight:800}

/* wishlist */
.ma-shell .pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px}
.ma-shell .pc{border:1px solid var(--line);border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column}
.ma-shell .pc .img{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;font-size:34px;font-weight:900;color:#fff}
.ma-shell .pc .b{padding:10px 12px;display:flex;flex-direction:column;gap:6px;flex:1}
.ma-shell .price{font-weight:800}
.ma-shell .price s{color:var(--muted);font-weight:400;margin-left:6px;font-size:12px}

/* bottom bar */
.ma-shell .bb{display:none}
.ma-shell .bb a{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;color:#777;padding:4px 0}
.ma-shell .bb a.on{color:var(--ink);font-weight:700}

/* modal + toast */
.ma-shell .ov{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:80;display:flex;align-items:center;justify-content:center;padding:16px}
.ma-shell .md{background:#fff;border-radius:14px;width:100%;max-width:440px;max-height:90vh;overflow:auto;padding:22px;box-shadow:0 20px 60px rgba(0,0,0,.25)}
.ma-shell .md h3{margin:0 0 6px;font-size:18px}
.ma-shell .md .acts{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}
.ma-shell .toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);background:#111;color:#fff;padding:10px 16px;border-radius:10px;z-index:90;font-size:13.5px;box-shadow:0 8px 30px rgba(0,0,0,.25);max-width:92vw}
.ma-shell .otp{display:flex;gap:8px;justify-content:center;margin:14px 0}
.ma-shell .otp input{width:44px;height:52px;text-align:center;font-size:22px;font-weight:700;border:1px solid #cfcfcf;border-radius:8px}
.ma-shell .qrbox{display:flex;justify-content:center;margin:14px 0}
.ma-shell .ft{border-top:1px solid var(--line);padding:18px 20px;color:var(--muted);font-size:12px;text-align:center}
.ma-shell .auth{max-width:420px;margin:10px auto}
.ma-shell .switch{position:relative;width:46px;height:26px;flex:none}
.ma-shell .switch input{opacity:0;width:0;height:0}
.ma-shell .switch span{position:absolute;inset:0;background:#cfcfcf;border-radius:26px;transition:.15s}
.ma-shell .switch span:before{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.15s}
.ma-shell .switch input:checked+span{background:var(--accent)}
.ma-shell .switch input:checked+span:before{transform:translateX(20px)}
.ma-shell .chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.ma-shell .chips button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:5px 12px;font-size:13px}
.ma-shell .chips button.on{background:var(--accent);color:#fff;border-color:var(--accent)}
.ma-shell .stat3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.ma-shell .stat3 .card b{display:block;font-size:22px;font-weight:800}
.ma-shell .info h2{font-size:16px;margin:22px 0 8px}
.ma-shell .info p{margin:0 0 10px;color:#333}

/* production additions */
.ma-shell svg.i use{pointer-events:none}
.ma-shell .logo img{max-height:40px;width:auto;display:block}
.ma-shell .side .item-soon,.ma-shell .menu-g .item-soon{display:flex;gap:10px;align-items:center;padding:7px 16px;font-size:13.5px;color:#999;cursor:default}
.ma-shell .menu-g .item-soon{gap:12px;padding:12px 16px;border-top:1px solid #efefef}
.ma-shell .side form,.ma-shell .menu-g form{margin:0}
.ma-shell .side button.as-link,.ma-shell .menu-g button.as-link{display:flex;gap:10px;align-items:center;width:100%;border:0;background:none;text-align:left;padding:7px 16px;font-size:13.5px;color:#333}
.ma-shell .menu-g button.as-link{gap:12px;padding:12px 16px;border-top:1px solid #efefef;font-size:14px}
.ma-shell .side button.as-link:hover,.ma-shell .menu-g button.as-link:hover{background:var(--soft)}
.ma-shell .tabs a{padding:10px 12px;white-space:nowrap;color:var(--muted);font-weight:600;border-bottom:2px solid transparent;margin-bottom:-1px}
.ma-shell .tabs a.on{color:var(--ink);border-color:var(--accent)}
.ma-shell .chips a{border:1px solid var(--line);background:#fff;border-radius:999px;padding:5px 12px;font-size:13px}
.ma-shell .chips a.on{background:var(--accent);color:#fff;border-color:var(--accent)}
.ma-shell .th img,.ma-shell .pc .img img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.ma-shell .th{background:var(--soft);overflow:hidden;border:1px solid var(--line)}
.ma-shell .pc .img{background:var(--soft)}
.ma-shell .pager{display:flex;gap:6px;justify-content:center;align-items:center;margin-top:18px;flex-wrap:wrap}
.ma-shell .pager a,.ma-shell .pager span{min-width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:8px;padding:0 10px;font-size:13px}
.ma-shell .pager .on{background:var(--accent);color:#fff;border-color:var(--accent)}
.ma-shell .alert{border-radius:var(--r);padding:12px 14px;margin-bottom:14px;font-size:13.5px;background:var(--badbg);color:var(--bad);border:1px solid #f5c9c4}
.ma-shell .alert.ok{background:var(--okbg);color:#164b2a;border-color:#cde9d6}
.ma-shell .alert.info{background:var(--soft);color:var(--ink);border-color:var(--line)}
.ma-shell .field .err:empty{display:none}
.ma-shell .inp.bad{border-color:var(--bad)}
.ma-shell .auth .card{padding:24px}
.ma-shell .auth-links{display:flex;justify-content:space-between;gap:12px;margin-top:14px;flex-wrap:wrap}
.ma-shell .acct{display:flex;width:100%;gap:12px;align-items:center;border:1px solid var(--line);border-radius:10px;background:#fff;padding:12px 14px;text-align:left;margin-top:8px}
.ma-shell .acct:hover{background:var(--soft2)}
.ma-shell .code-inp{letter-spacing:.4em;text-align:center;font-size:20px;font-weight:700}
.ma-shell .dob3{display:grid;grid-template-columns:1fr 1.4fr 1.2fr;gap:8px}
.ma-shell .oline{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-top:1px solid #efefef}
.ma-shell .oline:first-child{border-top:0;padding-top:0}
.ma-shell .mode-tag{background:#f0c14b;color:#222;border-radius:4px;padding:1px 6px;font-weight:700;font-size:11px}
.ma-shell .busy{opacity:.6;pointer-events:none}
.ma-shell .mstats .off{opacity:.6}
.ma-shell .only-m{display:none}

@media (max-width:759px){
  .ma-shell .wrap{grid-template-columns:1fr;padding:16px 14px 96px;gap:0}
  .ma-shell .side{display:none}
  .ma-shell h1.pt{font-size:20px}
  .ma-shell .hd{padding:0 10px;gap:6px}
  .ma-shell .logo small{display:none}
  .ma-shell .prompt{flex-wrap:wrap}
  .ma-shell .prompt .btn{width:100%}
  .ma-shell .grid2{grid-template-columns:1fr}
  .ma-shell .kv{grid-template-columns:110px 1fr}
  .ma-shell .pgrid{grid-template-columns:1fr 1fr;gap:10px}
  .ma-shell .bb{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--line);z-index:45;padding:6px 0 calc(6px + env(safe-area-inset-bottom))}
  .ma-shell .toast{bottom:84px}
  .ma-shell .ft{padding-bottom:90px}
  .ma-shell .stat3{grid-template-columns:1fr 1fr}
  .ma-shell .only-m{display:block}
  .ma-shell .only-d{display:none!important}
}
.ma-shell .wrap.one{grid-template-columns:1fr}
.ma-shell .mcard .top{position:relative;z-index:1}
.ma-shell .side a.who{padding:10px 16px 14px}
.ma-shell .bb a[aria-disabled]{opacity:.4}
.ma-shell.kb .bb{display:none}
.ma-shell .md ul.skip{margin:10px 0 0;padding-left:18px;font-size:13px}
.ma-shell .qrbox svg,.ma-shell .qrbox img{width:200px;height:200px}
.ma-shell h2.st.mt0{margin-top:0}
.ma-shell .th{color:#999}
.ma-shell .grid2+.card{margin-top:12px}
.ma-shell .chips button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:5px 12px;font-size:13px}
.ma-shell .chips button.on{background:var(--accent);color:#fff;border-color:var(--accent)}
.ma-shell label.chk{display:inline-flex;gap:8px;align-items:center;font-weight:400;cursor:pointer}
.ma-shell label.chk input,.ma-shell .seg input{accent-color:#111}
.ma-shell input.sw{width:44px;height:24px;accent-color:#111;flex:0 0 auto}
.ma-shell .card.addr{margin-top:0}
.ma-shell a.card{display:block}
.ma-shell a.card:hover{background:var(--soft2)}
.ma-shell .info-body{overflow-wrap:anywhere;line-height:1.7}
.ma-shell .info-body img,.ma-shell .info-body table,.ma-shell .info-body iframe{max-width:100%;height:auto}
.ma-shell .info-body a{text-decoration:underline}
.ma-shell .md .field{margin-top:12px}
.ma-shell .grid2+.grid2,.ma-shell form .grid2{margin-top:0}
.ma-shell .lock{display:inline-flex;gap:8px;align-items:center}
.ma-shell .day.done b:after{content:""}
.ma-shell .gc .btn.ghost{background:#fff;color:#111}
.ma-shell .gc .code{background:#fff}
.ma-shell .vch .r .code{user-select:all}

/* Step E1 ---------------------------------------------------------------- */
.ma-shell #ma-address-card{margin-bottom:16px}
.ma-shell #ma-address-card:not([hidden])+#ma-address-list,.ma-shell #ma-address-card:not([hidden])+.empty{margin-top:16px}
.ma-shell .card.addr.is-invalid{border-color:#f5c9c4}
.ma-shell .addr-note{font-size:12.5px;color:var(--bad);background:var(--badbg);border-radius:8px;padding:8px 10px;margin:0 0 12px}
.ma-shell .link-btn{border:0;background:none;padding:0;font:inherit;font-weight:600;color:inherit;text-decoration:underline;cursor:pointer}
.ma-shell select.inp{-webkit-appearance:auto;appearance:auto}
@media (max-width:600px){
  .ma-shell .lang-btn{padding:0 8px}
}

/* Address form: required marks and field errors, as in the QYT Checkout address form ------------------ */
.ma-shell .req{color:#333;font-weight:400}
/* A wrong field: red border made a little thicker by a 1px outline of the same colour (no layout shift). */
.ma-shell #ma-address-form .inp.bad,.ma-shell #ma-address-form .inp[aria-invalid=true]{border-color:#d82c0d;outline:1px solid #d82c0d;outline-offset:0}
.ma-shell #ma-address-form .inp.bad:focus,.ma-shell #ma-address-form .inp[aria-invalid=true]:focus{border-color:#d82c0d;outline:2px solid #d82c0d;outline-offset:0}
.ma-shell #ma-address-form .field .err{display:flex;align-items:flex-start;gap:6px;margin-top:6px;padding:0 2px;color:#d82c0d;font-size:13px;line-height:1.4}
.ma-shell #ma-address-form .field .err:empty{display:none}
.ma-shell #ma-address-form .field .err:not(:empty)::before{content:"!";display:inline-flex;align-items:center;justify-content:center;flex:0 0 14px;width:14px;height:14px;margin-top:2px;border-radius:50%;background:#d82c0d;color:#fff;font-size:10px;font-weight:700;line-height:1}
