/* Customer store components. Admin commerce keeps its existing stylesheet. */
.account-main{--store-muted:var(--account-muted)}
.account-preview-note{color:var(--account-muted);font-size:10px;border:1px dashed #394127;border-radius:5px;padding:10px 13px;margin-bottom:24px}
.account-library-empty{display:flex;align-items:center;flex-direction:column;justify-content:center;min-height:460px;border:1px solid var(--border);border-radius:8px;background:var(--panel);padding:48px 32px;text-align:center}
.account-empty-icon{display:grid;place-items:center;width:72px;height:72px;border:1px solid #3c4627;border-radius:16px;color:var(--accent);background:#19200f;margin-bottom:30px}
.account-empty-icon svg{width:32px;height:32px}
.account-library-empty h2{font-size:28px;letter-spacing:-.035em;margin:0 0 14px;line-height:1.2}
.account-library-empty p{max-width:380px;color:var(--account-muted);font-size:13px;line-height:1.75;margin-bottom:26px}
.account-empty-caption{font-size:10px;color:var(--account-muted);margin-top:24px}
.account-content-label{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:28px 0 16px}
.account-content-label h2{font-size:15px;letter-spacing:-.015em;font-weight:650}
.account-content-label>span{font-size:11px;color:var(--account-muted)}
.account-pack-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:start}
.account-pack{background:var(--panel);border:1px solid var(--border);border-radius:8px;overflow:hidden;scroll-margin-top:100px}
.account-pack:target{border-color:#8a9f36;box-shadow:0 0 0 1px #8a9f36}
.account-pack-cover{position:relative;aspect-ratio:16/9;background:#0a0d11;display:grid;place-items:center;overflow:hidden}
.account-pack-cover img{display:block;width:100%;height:100%;object-fit:contain}
.account-pack-cover>span:not(.account-license-badge){display:grid;place-items:center;color:#5f6c74}
.account-pack-cover>span>svg{width:48px;height:48px}
.account-license-badge{position:absolute;left:14px;bottom:14px;padding:6px 9px;background:#10160de8;color:#d7e5b2;border:1px solid #65723a;border-radius:4px;font-size:9px;font-weight:650;letter-spacing:.03em}
.account-pack-content{padding:22px}
.account-pack-content h2{font-size:17px;line-height:1.4;letter-spacing:-.025em;min-height:48px;font-weight:650;margin:0}
.account-pack-formats{font-size:11px;color:var(--account-muted);margin:9px 0 20px;line-height:1.6;min-height:18px}
.account-pack-downloads>summary{display:flex;width:100%;justify-content:flex-start;list-style:none;cursor:pointer}
.account-pack-downloads>summary::-webkit-details-marker{display:none}
.account-pack-downloads>summary b{font-size:18px;font-weight:400;margin-left:auto}
.account-pack-downloads[open]>summary b{transform:rotate(45deg)}
.account-file-list{margin-top:10px}
.account-file{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid var(--border);padding:17px 0 5px;margin-top:12px}
.account-file>div{flex:1;min-width:0}
.account-file strong{display:block;font-size:12px;margin-bottom:5px}
.account-file span,.account-file small{display:block;font-size:10px;line-height:1.6;color:var(--account-muted);overflow-wrap:anywhere}
.account-file small{margin-top:2px}
.account-file p{width:100%;color:var(--account-muted);font-size:10px;line-height:1.6}
.account-file-button{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border:1px solid var(--account-border);border-radius:5px;color:var(--accent);background:transparent;cursor:pointer}
.account-file-button svg{width:16px;height:16px}
.account-file-button:hover{background:#1a2114;border-color:var(--accent)}
.account-bundles{display:grid;gap:12px}
.account-bundle{border:1px solid var(--border);border-radius:7px;background:var(--panel)}
.account-bundle summary{display:flex;align-items:center;gap:16px;cursor:pointer;list-style:none;padding:20px}
.account-bundle summary::-webkit-details-marker{display:none}
.account-bundle-icon{color:var(--accent);padding:11px;border-radius:7px;border:1px solid #354123;background:#18200f;display:flex}
.account-bundle-icon svg{width:20px;height:20px}
.account-bundle summary>span:nth-child(2){flex:1;min-width:0}
.account-bundle strong{font-size:13px;font-weight:600;line-height:1.5}
.account-bundle small{display:block;margin-top:4px;color:var(--account-muted);font-size:10px}
.account-expand-label{font-size:11px;color:var(--account-muted);flex-shrink:0}
.account-expand-label b{margin-left:12px;color:var(--accent);font-size:20px;font-weight:400;display:inline-block}
.account-bundle[open] .account-expand-label b{transform:rotate(45deg)}
.account-bundle-members{padding:0 20px 12px;border-top:1px solid var(--border)}
.account-bundle-members a{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;font-size:12px;color:var(--white);text-decoration:none;border-bottom:1px solid var(--border)}
.account-bundle-members a:last-child{border:0}
.account-bundle-members a:hover{color:var(--accent)}
.account-bundle-members svg{width:16px;height:16px;color:var(--accent);flex-shrink:0}
.account-balance-panel{position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid #3b4526;background:linear-gradient(110deg,#161d10,var(--panel) 75%);padding:30px 32px;border-radius:8px}
.account-balance-amount{color:var(--white);font-size:48px;line-height:1.1;letter-spacing:-.05em;font-weight:700;font-variant-numeric:tabular-nums;margin-bottom:14px}
.account-balance-panel p:last-child{font-size:12px;color:var(--account-muted);line-height:1.7}
.account-balance-mark{color:#5d6d2b;border:1px solid #3c4827;border-radius:15px;padding:19px;display:flex}
.account-balance-mark svg{width:35px;height:35px}
.account-topup{border:1px solid var(--border);border-radius:7px;background:var(--panel);margin-top:14px;scroll-margin-top:100px}
.account-topup>summary{display:flex;gap:16px;align-items:center;padding:20px 24px;cursor:pointer;list-style:none;font-size:13px;font-weight:600}
.account-topup>summary::-webkit-details-marker{display:none}
.account-topup>summary>small{margin-left:auto;color:var(--account-muted);font-size:11px;font-weight:400}
.account-topup>summary>b{font-size:21px;font-weight:400;color:var(--accent)}
.account-topup[open]>summary>b{transform:rotate(45deg)}
.account-topup-form{border-top:1px solid var(--border);padding:24px}
.account-topup-form fieldset{border:0;max-width:540px}
.account-topup-form legend{font-size:11px;color:var(--account-muted);margin-bottom:14px}
.account-topup-amounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.account-topup-amounts label{position:relative;display:flex;align-items:center;gap:10px;padding:18px 16px;background:#090d12;border:1px solid var(--account-border);border-radius:5px;cursor:pointer;font-size:18px;font-weight:650}
.account-topup-amounts label:has(input:checked){border-color:var(--accent);color:var(--accent);background:#181f10}
.account-topup-amounts input{accent-color:var(--accent);width:14px;height:14px}
.account-history-heading{margin-top:36px}
.account-transactions-empty{border:1px solid var(--border);border-radius:7px;text-align:center;padding:44px 20px;background:var(--panel)}
.account-transactions-empty h3{font-size:16px;margin-bottom:10px}
.account-transactions-empty p{font-size:12px;color:var(--account-muted);line-height:1.6}
.account-transactions{border:1px solid var(--border);border-radius:7px;background:var(--panel);overflow:hidden}
.account-transaction-columns,.account-transaction>summary{display:grid;grid-template-columns:minmax(0,1fr) 105px 116px 90px 14px;align-items:center;gap:20px;padding:21px 24px}
.account-transaction-columns{color:var(--account-muted);font-size:9px;text-transform:uppercase;letter-spacing:.08em;padding-top:16px;padding-bottom:16px;border-bottom:1px solid var(--border)}
.account-transaction-columns>span:nth-child(4){text-align:right}
.account-transaction{scroll-margin-top:100px;border-bottom:1px solid var(--border)}
.account-transaction:last-child{border-bottom:0}
.account-transaction>summary{cursor:pointer;list-style:none}
.account-transaction>summary::-webkit-details-marker{display:none}
.account-transaction>summary:hover{background:#141a20}
.account-transaction-title{min-width:0}
.account-transaction-title>strong{display:block;font-weight:600;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.account-transaction-title>small{display:block;color:var(--account-muted);font-size:10px;margin-top:5px;line-height:1.5}
.account-transaction time{font-size:10px;color:var(--account-muted)}
.account-payment-status{justify-self:start;font-size:9px;border:1px solid #35452a;color:#c0d89b;border-radius:4px;padding:5px 7px;line-height:1.4}
.account-payment-status.status-pending{border-color:#5a4d28;color:#dfc584}
.account-payment-status.status-refunded{border-color:#384a57;color:#a5c4db}
.account-payment-status.status-failed,.account-payment-status.status-disputed{border-color:#65403f;color:#eea4a0}
.account-transaction-amount{font-size:13px;text-align:right;font-weight:650;font-variant-numeric:tabular-nums}
.account-transaction-toggle{color:var(--account-muted);font-size:18px;font-weight:400}
.account-transaction[open] .account-transaction-toggle{transform:rotate(45deg)}
.account-transaction-detail{border-top:1px solid var(--border);background:#0a0e13;padding:24px}
.account-transaction-detail dl{display:grid;gap:12px;margin-bottom:20px}
.account-transaction-detail dl>div{display:grid;grid-template-columns:130px minmax(0,1fr);gap:16px;font-size:11px;line-height:1.6}
.account-transaction-detail dt{color:var(--account-muted)}
.account-transaction-detail dd{overflow-wrap:anywhere}
.account-transaction-detail a:not(.account-button){color:var(--white);text-underline-offset:3px}
.account-transaction-detail>p{font-size:11px;color:var(--account-muted);line-height:1.7;margin-bottom:16px}
.account-transaction-detail .account-ledger-note{font-size:10px}
.account-back-link{display:inline-block;font-size:11px;color:var(--account-muted);text-decoration:none;margin-bottom:24px}
.store-checkout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:22px;align-items:start}
.account-main .store-panel{min-width:0;padding:28px;background:var(--panel);border:1px solid var(--border);border-radius:8px;color:var(--white)}
.store-panel h2{font-size:23px;line-height:1.4;letter-spacing:-.03em;margin:0 0 16px}
.store-panel>p,.store-muted{font-size:12px;color:var(--account-muted);line-height:1.75;margin:12px 0 20px}
.store-price{font-size:44px!important;line-height:1.1!important;letter-spacing:-.045em;font-weight:750;color:var(--white)!important;margin:18px 0 10px!important}
.store-panel label{font-size:12px}
.store-panel input:not([type=radio]):not([type=checkbox]):not([type=hidden]),.store-panel select{display:block;width:100%;background:#090d12;color:var(--white);border:1px solid var(--account-border);border-radius:5px;padding:12px;margin:8px 0 16px;font:13px Inter,Arial,sans-serif}
.store-panel input:focus,.store-panel select:focus{outline:1px solid var(--accent);outline-offset:2px}
.store-choice{display:flex;gap:10px;align-items:flex-start;margin:18px 0;font-size:11px;line-height:1.75;color:var(--account-muted)}
.store-choice input{accent-color:var(--accent);margin-top:3px;flex-shrink:0;width:14px;height:14px}
.store-choice a,.store-muted a{color:var(--white);text-decoration-color:#667b24;text-underline-offset:3px}
.store-choice input:disabled+span{color:#66727c}
.store-choice strong{display:block;color:var(--white);font-size:11px}
.store-panel fieldset{border:1px solid var(--border);border-radius:5px;padding:0 15px;margin:22px 0}
.store-panel legend{font-size:10px;color:var(--account-muted);padding:0 6px}
.account-license-picker{display:flex;align-items:flex-end;gap:12px;margin:24px 0 14px}
.account-license-picker label{flex:1}
.account-license-picker select{margin-bottom:0}
.account-license-picker .account-button{min-height:42px;padding:0 12px;font-size:10px}
.account-text-link{color:var(--account-muted);font-size:10px;text-underline-offset:3px}
.account-included{margin-top:28px;border-top:1px solid var(--border);padding-top:20px}
.account-included summary{display:flex;justify-content:space-between;cursor:pointer;font-size:13px;list-style:none}
.account-included summary span{color:var(--account-muted);font-size:11px}
.account-included>div{padding:18px 0 0}
.account-included strong{font-size:12px;font-weight:600;line-height:1.5}
.account-included p{font-size:10px;color:var(--account-muted);line-height:1.5;margin-top:6px}
.account-order-summary .account-button{width:100%}
.account-download-panel{max-width:700px}
.account-download-panel p{color:var(--account-muted);font-size:12px;line-height:1.8;margin-bottom:20px}
.account-download-actions{display:flex;flex-wrap:wrap;align-items:center;gap:20px;margin-top:24px}
@media(max-width:1250px){.account-transaction-columns,.account-transaction>summary{grid-template-columns:minmax(0,1fr) 85px 104px 70px 12px;gap:12px;padding-left:18px;padding-right:18px}.store-checkout{grid-template-columns:1fr}.account-bundle summary{gap:12px}}
@media(max-width:1100px){.account-pack-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.account-library-empty{padding:36px 20px;min-height:400px}.account-library-empty h2{font-size:25px}.account-library-empty p{font-size:12px}.account-pack-grid{grid-template-columns:1fr;gap:18px}.account-pack-content{padding:20px}.account-pack-content h2{min-height:0}.account-bundle summary{padding:16px;gap:12px;flex-wrap:wrap}.account-bundle strong{font-size:12px}.account-bundle-icon{padding:8px}.account-expand-label{width:100%;text-align:right}.account-balance-panel{padding:26px 24px}.account-balance-amount{font-size:42px}.account-balance-mark{padding:12px}.account-balance-mark svg{width:26px;height:26px}.account-topup>summary{padding:20px;gap:10px}.account-topup>summary>small{font-size:9px}.account-topup-form{padding:20px}.account-topup-amounts{gap:8px}.account-topup-amounts label{padding:14px 8px;gap:6px;font-size:14px}.account-topup-amounts input{width:12px;height:12px}.account-transaction-columns{display:none}.account-transaction>summary{grid-template-columns:minmax(0,1fr) auto 12px;padding:20px;gap:10px 15px}.account-transaction-title{grid-column:1;grid-row:1/3}.account-transaction time{grid-column:1;grid-row:3}.account-payment-status{grid-column:2;grid-row:2;font-size:8px;justify-self:end}.account-transaction-amount{grid-column:2;grid-row:1}.account-transaction-toggle{grid-column:3;grid-row:1/3}.account-transaction-detail{padding:20px}.account-transaction-detail dl>div{grid-template-columns:90px minmax(0,1fr);gap:12px;font-size:10px}.account-main .store-panel{padding:24px}.store-panel h2{font-size:21px}.store-checkout{gap:16px}.account-history-heading>span{font-size:9px}.account-content-label h2{font-size:14px}}

.account-accepted-terms { margin-top:8px; max-width:100%; }
.account-accepted-terms summary { color:var(--accent); cursor:pointer; }
.account-accepted-terms > div { max-height:360px; overflow:auto; overflow-wrap:anywhere; margin-top:12px; padding:14px; border:1px solid var(--border); border-radius:6px; font-size:12px; line-height:1.7; }

.account-payment-next,.account-order-lines,.account-order-meta{border:1px solid var(--border);border-radius:7px}
.account-payment-next{display:flex;align-items:center;justify-content:space-between;gap:12px 18px;flex-wrap:wrap;padding:16px;background:#121a16;border-color:#34432a;margin-bottom:12px}
.account-payment-next h3,.account-order-lines h3{margin:0 0 5px;font-size:13px}
.account-payment-next p,.account-order-line small{margin:0;color:#aab8c4;font-size:11px;line-height:1.55}
.account-payment-next .account-switch-note{width:100%}
.account-payment-actions{display:flex;flex-wrap:wrap;gap:8px}
.account-payment-actions form{margin:0}
.account-payment-actions .account-button,.account-order-library{min-height:38px;padding:8px 12px;font-size:11px}
.account-order-lines{padding:0 14px;margin-bottom:12px;background:var(--panel)}
.account-order-lines h3{padding-top:12px}
.account-order-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:10px 0;border-top:1px solid var(--border)}
.account-order-line>div:last-child{text-align:right}
.account-order-line strong,.account-order-line small{display:block;overflow-wrap:anywhere}
.account-order-line strong{font-size:12px}
.account-order-line small{margin-top:3px}
.account-order-meta{background:var(--panel);padding:0 14px;color:#bdc7d1}
.account-order-meta>summary{cursor:pointer;padding:12px 0;font-size:12px;font-weight:600}
.account-order-meta>summary:hover{color:var(--accent)}
.account-order-meta dl,.account-order-meta .account-ledger-note{margin:0 0 14px}
.account-order-meta dd>small{display:block;margin-top:7px;color:var(--account-muted)}
.account-order-library{margin-top:12px}
@media(max-width:480px){
 .account-payment-next{align-items:flex-start}
 .account-payment-actions{width:100%}
 .account-payment-actions>form,.account-payment-actions>.account-button{flex:1 1 100%}
 .account-payment-actions .account-button{width:100%}
}
