/* MAG 1.1.09 — системные страницы в стиле gamesgu.ru */
.mag-cart-shell{--mag-blue:#4361ee;--mag-blue-dark:#2d4bda;--mag-ink:#212529;--mag-muted:#6c757d;--mag-line:#e4e9f1;--mag-soft:#f6f8fc;max-width:1160px;margin:18px auto 70px;color:var(--mag-ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}
.mag-cart-shell *{box-sizing:border-box}
.mag-cart-shell a{color:var(--mag-blue);text-decoration:none}
.mag-cart-shell a:hover{text-decoration:underline}
.mag-cart-crumbs{color:var(--mag-muted);font-size:13px;margin:2px 0 18px}
.mag-cart-crumbs a{color:#607084}
.mag-cart-head{display:flex;gap:13px;align-items:center;margin-bottom:19px}
.mag-cart-head-icon{width:48px;height:48px;display:grid;place-items:center;background:#eef2ff;color:var(--mag-blue);font-size:22px;border-radius:13px}
.mag-cart-head h1{color:#1c2430;font-weight:750;font-size:29px;line-height:1.2;margin:0}
.mag-cart-head p{margin:4px 0 0;color:var(--mag-muted);font-size:13px}
.mag-cart-grid{display:grid;grid-template-columns:minmax(0,1fr) 335px;align-items:start;gap:20px}
.mag-cart-card{border:1px solid var(--mag-line);border-radius:14px;background:white;box-shadow:0 8px 27px rgba(22,34,58,.055);overflow:hidden}
.mag-cart-list-top{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:18px 20px;border-bottom:1px solid var(--mag-line)}
.mag-cart-list-top h2,.mag-cart-aside h2{font-size:18px;color:#202d40;font-weight:700;margin:0}
.mag-cart-clear{border:0;background:none;color:#6c7786;padding:6px 4px;cursor:pointer;font-size:13px}
.mag-cart-clear:hover{color:#c83944}
.mag-cart-item{display:grid;grid-template-columns:92px minmax(0,1fr) auto;gap:16px;align-items:center;padding:20px;border-bottom:1px solid var(--mag-line)}
.mag-cart-item:last-child{border-bottom:0}
.mag-cart-thumb{width:92px;height:92px;border-radius:10px;background:#f7f8fa;border:1px solid #edf0f5;display:grid;place-items:center;overflow:hidden}
.mag-cart-thumb img{height:100%;width:100%;object-fit:contain}
.mag-cart-thumb i{font-size:26px;color:#b1bfcd}
.mag-cart-product-name{display:block;color:#212529!important;font-size:14px;font-weight:650;line-height:1.48;margin-bottom:5px}
.mag-cart-product-id{display:block;color:#8c98a8;font-size:11px;margin-bottom:9px;overflow-wrap:anywhere}
.mag-cart-stock{font-size:12px;color:#28845b}
.mag-cart-stock.warn{color:#be6532}
.mag-cart-stock.error{color:#c13d43}
.mag-cart-action-col{display:flex;flex-direction:column;align-items:flex-end;gap:8px;min-width:127px}
.mag-cart-price{font-size:19px;font-weight:750;color:#1b293c;white-space:nowrap}
.mag-cart-oldprice{font-size:12px;text-decoration:line-through;color:#929dad}
.mag-cart-qty-row{display:flex;gap:8px;align-items:center;justify-content:flex-end}
.mag-cart-qty{display:flex;align-items:center;border:1px solid #dae1ec;border-radius:8px;overflow:hidden;height:34px}
.mag-cart-qty button{width:32px;height:32px;border:0;color:#3b4f68;background:white;font-size:20px;cursor:pointer}
.mag-cart-qty button:hover{background:#edf2ff;color:var(--mag-blue)}
.mag-cart-qty button:disabled{cursor:not-allowed;color:#bbc3cd}
.mag-cart-qty span{min-width:25px;text-align:center;font-size:13px;font-weight:650}
.mag-cart-delete{border:0;background:transparent;color:#9babb9;cursor:pointer;padding:5px}
.mag-cart-delete:hover{color:#c7424a}
.mag-cart-subline{font-size:12px;color:#6c7786;text-align:right}
.mag-cart-aside{position:sticky;top:20px;padding:21px}
.mag-cart-aside h2{margin-bottom:20px}
.mag-cart-summary-row{display:flex;justify-content:space-between;gap:12px;color:#667589;font-size:14px;margin:14px 0}
.mag-cart-summary-row strong{color:#1d2d40;font-weight:650}
.mag-cart-summary-total{border-top:1px solid var(--mag-line);padding:20px 0 17px;margin-top:20px;display:flex;align-items:end;justify-content:space-between;gap:14px}
.mag-cart-summary-total span{font-weight:650;font-size:15px}
.mag-cart-summary-total strong{font-weight:800;font-size:26px;color:#18263a;white-space:nowrap}
.mag-cart-primary{display:block;width:100%;background:var(--mag-blue);border:1px solid var(--mag-blue);border-radius:9px;color:white!important;font-size:14px;font-weight:700;text-align:center;padding:14px;cursor:pointer}
.mag-cart-primary:hover{background:var(--mag-blue-dark);text-decoration:none!important}
.mag-cart-primary:disabled{background:#bac4da;border-color:#bac4da;cursor:not-allowed}
.mag-cart-secondary{display:block;width:100%;text-align:center;padding:12px;font-size:13px;font-weight:650;border:1px solid #d8e0ef;color:var(--mag-blue)!important;background:#fff;border-radius:9px;margin-top:10px}
.mag-cart-secondary:hover{background:#f5f7ff;text-decoration:none!important}
.mag-cart-smallnote{margin:14px 0 0;color:#788596;font-size:12px;line-height:1.5}
.mag-cart-msg{background:#fff8eb;border:1px solid #f0c98f;border-left:3px solid #e6a444;padding:12px 15px;border-radius:7px;color:#745024;font-size:13px;margin:0 0 17px}
.mag-cart-msg.good{border-color:#a5dbc4;border-left-color:#34a675;background:#f2fff8;color:#25734f}
.mag-cart-msg.error{border-color:#efb6ba;border-left-color:#d95360;background:#fff7f7;color:#a82b39}
.mag-cart-empty{text-align:center;padding:75px 20px 85px;color:#728294}
.mag-cart-empty i{font-size:44px;color:#b2c2d8;margin-bottom:17px}
.mag-cart-empty h3{color:#29394d;font-size:19px;margin:0 0 9px}
.mag-cart-empty p{font-size:14px;margin:0 0 23px}
.mag-cart-empty a{display:inline-block;background:var(--mag-blue);border-radius:8px;color:white!important;padding:12px 19px;font-weight:650}
.mag-cart-micro{font-size:12px;color:#667589;line-height:1.55;margin-top:16px}
.mag-cart-loading{padding:38px 24px;color:#6c7787}
@media(max-width:980px){.mag-cart-grid{grid-template-columns:minmax(0,1fr)}.mag-cart-aside{position:static}}
@media(max-width:640px){.mag-cart-shell{margin:8px auto 38px}.mag-cart-head h1{font-size:25px}.mag-cart-item{grid-template-columns:72px minmax(0,1fr);gap:11px;padding:14px}.mag-cart-thumb{height:72px;width:72px}.mag-cart-action-col{grid-column:2;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;width:100%;gap:6px}.mag-cart-price{font-size:16px}.mag-cart-list-top{padding:14px}.mag-cart-aside{padding:18px}.mag-cart-summary-total strong{font-size:24px}}
.mag-customer-shell{max-width:1020px;margin:25px auto 60px;color:#243044;font-family:inherit}.mag-customer-shell *{box-sizing:border-box}
.mag-customer-shell .mag-customer-card{background:#fff;border:1px solid #dce2ea;border-radius:15px;padding:28px;box-shadow:0 8px 24px rgba(22,35,54,.06)}
.mag-customer-shell .mag-customer-heading{font-size:28px;font-weight:750;margin:0 0 6px;color:#243044}
.mag-customer-shell .mag-customer-muted{color:#657386;font-size:14px;margin-bottom:23px}
.mag-customer-shell .mag-customer-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.mag-customer-shell label{display:block;font-weight:600;font-size:13px;margin:13px 0 6px}
.mag-customer-shell input{width:100%;background:#fff;border:1px solid #cbd5e1;color:#1e293b;border-radius:8px;padding:12px 13px;font-size:15px}
.mag-customer-shell input:focus{outline:2px solid #61a3e8;border-color:#61a3e8}
.mag-customer-shell button{background:#4361ee;color:#fff;border:0;border-radius:8px;padding:12px 19px;cursor:pointer;font-weight:650;margin-top:18px}
.mag-customer-shell button:hover{background:#2d4bda}.mag-customer-shell button:disabled{opacity:.55;cursor:wait}
.mag-customer-shell .mag-customer-secondary{background:#edf2f7;color:#32465b}
.mag-customer-shell a{color:#4361ee;text-decoration:none}.mag-customer-shell a:hover{text-decoration:underline}
.mag-customer-shell .mag-customer-alert{min-height:22px;color:#bd2733;font-size:13px;margin:12px 0}
.mag-customer-shell .mag-customer-alert.good{color:#167a48}
.mag-customer-shell .mag-customer-nav{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:20px}
.mag-customer-shell .mag-customer-mini{font-size:13px;color:#66758a;margin:10px 0 0}
@media(max-width:700px){.mag-customer-shell{margin:12px auto 45px}.mag-customer-shell .mag-customer-card{padding:19px}.mag-customer-shell .mag-customer-grid{grid-template-columns:1fr}}

/* Общие системные страницы: наследуем светлый дизайн GamesGu.ru. */
.mag-shop-shell{--mag-accent:#4361ee;--mag-ink:#212529;--mag-muted:#6c757d;--mag-border:#e3e8f0;--mag-wash:#f6f8fc;max-width:1160px;margin:18px auto 72px;color:var(--mag-ink);font:400 15px/1.55 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif}
.mag-shop-shell *{box-sizing:border-box}.mag-shop-shell h1,.mag-shop-shell h2,.mag-shop-shell h3{line-height:1.3;color:#1f2937}.mag-shop-shell h2{font-size:19px;font-weight:720;margin:0 0 15px}.mag-shop-shell a{color:var(--mag-accent);text-decoration:none}.mag-shop-shell a:hover{text-decoration:underline}
.mag-shop-crumbs{font-size:13px;color:var(--mag-muted);margin:0 0 16px}.mag-shop-crumbs a{color:#607084}.mag-shop-crumbs span{padding:0 7px}
.mag-shop-hero{margin:0 0 23px}.mag-shop-hero h1{font-size:30px;font-weight:780;margin:0 0 4px}.mag-shop-hero p{font-size:13px;color:var(--mag-muted);margin:0}
.mag-shop-card{background:#fff;border:1px solid var(--mag-border);border-radius:14px;box-shadow:0 7px 24px rgba(22,35,54,.045);padding:24px;min-width:0}
.mag-shop-card p{line-height:1.6}.mag-shop-narrow{max-width:650px;margin:0 auto}.mag-shop-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.mag-shop-grid-checkout{display:grid;grid-template-columns:minmax(0,1fr) 342px;gap:20px;align-items:start}.mag-shop-aside{position:sticky;top:24px}
.mag-shop-shell label:not(.mag-shop-option):not(.mag-shop-agree){display:block;font-size:13px;color:#334155;font-weight:650;margin:11px 0 7px}
.mag-shop-shell input:not([type=radio]):not([type=checkbox]),.mag-shop-shell textarea,.mag-shop-shell select{display:block;width:100%;margin-top:6px;border:1px solid #ccd6e4;border-radius:9px;background:#fff;color:#1f2937;font-size:15px;font-family:inherit;font-weight:400;line-height:1.4;padding:12px 13px;min-width:0}
.mag-shop-shell input:focus-visible,.mag-shop-shell textarea:focus-visible,.mag-shop-shell a:focus-visible,.mag-shop-shell button:focus-visible{outline:2px solid #4361ee;outline-offset:2px}.mag-shop-shell input[readonly]{background:#f6f8fb;color:#667589}
.mag-shop-btn{display:inline-flex!important;justify-content:center;align-items:center;gap:8px;min-width:140px;background:var(--mag-accent)!important;border:1px solid var(--mag-accent)!important;border-radius:9px!important;color:white!important;font-size:14px;font-weight:700;line-height:1.4;font-family:inherit;cursor:pointer;text-decoration:none!important;padding:12px 20px;margin-top:16px}
.mag-shop-btn:hover{background:#2948d8!important;color:#fff!important}.mag-shop-btn:disabled{background:#a9b7d5!important;border-color:#a9b7d5!important;cursor:not-allowed}
.mag-shop-btn--outline{background:white!important;color:#4361ee!important;border:1px solid #d0daf1!important}.mag-shop-btn--outline:hover{background:#f5f7ff!important;color:#2948d8!important}
.mag-shop-links{display:flex;flex-wrap:wrap;gap:8px 16px;margin:0 0 18px}.mag-shop-links a{padding:7px 12px;border:1px solid #dde4f0;border-radius:8px;font-size:13px}.mag-shop-links a.is-current{background:#eef2ff;color:#2a46bd;border-color:#bac9ff}.mag-shop-help,.mag-shop-micro{font-size:13px;color:#68788b;margin:13px 0}.mag-shop-micro{font-size:12px}
.mag-shop-alert{padding:12px 15px;border:1px solid #f0c98f;border-left:3px solid #e6a444;color:#765222;background:#fff9ee;border-radius:8px;margin-bottom:17px;font-size:14px}.mag-shop-alert.error{border-color:#ebb0b5;border-left-color:#d4515e;color:#ac273a;background:#fff4f5}.mag-shop-alert.good{border-color:#addbc5;border-left-color:#31a571;color:#287650;background:#f1fff8}.mag-shop-notice{padding:14px 16px;border-radius:9px;background:#fff8ee;border:1px solid #eadabe;color:#88622b;font-size:13px;margin:12px 0}.mag-shop-loading{color:#6a788a;padding:8px 0}
.mag-shop-separator{height:1px;background:#e4e9f1;margin:24px 0}.mag-shop-options{display:grid;gap:10px;margin-bottom:16px}.mag-shop-option{cursor:pointer;display:flex;align-items:flex-start;gap:11px;border:1px solid #dce4ef;background:#fff;border-radius:11px;padding:15px;font-weight:400}.mag-shop-option:has(input:checked){border-color:#879fff;background:#f5f7ff}.mag-shop-option input{accent-color:#4361ee;margin-top:4px}.mag-shop-option span{display:block}.mag-shop-option strong{font-weight:700;color:#263248;font-size:14px;display:block}.mag-shop-option small{font-size:12px;color:#69788e;display:block;margin-top:3px}.mag-shop-option.is-disabled{background:#f7f8fa;opacity:.7;cursor:not-allowed}.mag-shop-agree{display:flex;gap:11px;align-items:flex-start;font-size:13px;color:#596779;margin-top:20px}.mag-shop-agree input{margin-top:4px;accent-color:#4361ee}.mag-shop-total{display:flex;align-items:flex-end;justify-content:space-between;border-top:1px solid #e4e9f1;padding-top:17px;margin:16px 0}.mag-shop-total strong{font-size:23px;color:#172b46}.mag-shop-brief-item{display:grid;grid-template-columns:52px 1fr auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid #f0f2f6;font-size:13px}.mag-shop-brief-item img{width:52px;height:52px;object-fit:contain;border:1px solid #edf0f5;background:#f9fafb;border-radius:7px}.mag-shop-brief-item strong{white-space:nowrap}.mag-shop-brief-item small{font-size:11px;color:#7b8797}
.mag-shop-order-row{display:flex;gap:10px;justify-content:space-between;align-items:center;border-bottom:1px solid #eef1f5;padding:15px 0}.mag-shop-order-row:last-child{border-bottom:0}.mag-shop-order-row strong{display:block;color:#1b2b41}.mag-shop-order-row small{color:#778497;font-size:12px}.mag-shop-badge{font-size:12px;color:#2c67ac;background:#eaf2fd;border-radius:20px;padding:4px 9px;white-space:nowrap}.mag-shop-order-data{display:grid;gap:4px;padding:7px 0;color:#56667a}.mag-shop-order-data strong{color:#233146}
.mag-customer-shell.mag-shop-card,.mag-shop-card.mag-customer-shell{max-width:none;margin:0}.mag-shop-narrow.mag-customer-shell{max-width:650px;margin:0 auto}.mag-customer-shell label:not(.mag-shop-option){margin:12px 0 6px}.mag-customer-shell button.mag-shop-btn{margin-top:18px}.mag-customer-shell .mag-customer-alert{margin:13px 0 0}
@media(max-width:1040px){.mag-shop-grid-checkout{grid-template-columns:1fr}.mag-shop-aside{position:static}}
@media(max-width:670px){.mag-shop-shell{margin:10px auto 40px}.mag-shop-card{padding:17px}.mag-shop-hero h1{font-size:25px}.mag-shop-grid-2{grid-template-columns:1fr;gap:0}.mag-shop-brief-item{grid-template-columns:42px 1fr;}.mag-shop-brief-item strong{grid-column:2}.mag-shop-order-row{flex-wrap:wrap}}
.mag-shop-shell [hidden]{display:none!important}

/* MAG 1.1.11 RF Legal: юридические документы и независимые подтверждения. */
.mag-shop-legal-confirmations{display:grid;gap:12px;margin-top:20px;padding-top:4px}
.mag-shop-legal-confirmations .mag-shop-agree{margin-top:0;padding:13px 14px;border:1px solid #dce4ef;border-radius:10px;background:#fbfcff}
.mag-shop-legal-confirmations .mag-shop-agree:has(input:checked){border-color:#aebcff;background:#f6f8ff}
.mag-legal-shell{max-width:980px}
.mag-legal-card{font-size:14px;line-height:1.7}
.mag-legal-card h2{font-size:20px;margin:28px 0 10px}
.mag-legal-card h2:first-of-type{margin-top:18px}
.mag-legal-card ul,.mag-legal-card ol{padding-left:22px;margin:10px 0 16px}
.mag-legal-card li{margin:5px 0}
.mag-legal-card p{margin:10px 0}
.mag-legal-requisites{display:grid;grid-template-columns:minmax(170px,240px) 1fr;gap:0;margin:0}
.mag-legal-requisites dt,.mag-legal-requisites dd{padding:12px 10px;border-bottom:1px solid #edf0f5;margin:0}
.mag-legal-requisites dt{font-weight:700;color:#334155}
.mag-legal-requisites dd{overflow-wrap:anywhere}
@media(max-width:640px){.mag-legal-requisites{grid-template-columns:1fr}.mag-legal-requisites dt{padding-bottom:2px;border-bottom:0}.mag-legal-requisites dd{padding-top:2px}}
