/* 购买前须知：正文滚动，勾选和继续按钮保持可见。 */
.fx-purchase-dialog{width:min(660px,calc(100vw - 40px));max-width:none;max-height:min(840px,calc(100dvh - 40px));padding:0;margin:auto;border:1px solid var(--fx-border);border-radius:18px;background:var(--fx-panel);color:var(--fx-text);box-shadow:0 25px 90px #080b1255;overflow:hidden}
.fx-purchase-dialog[open]{display:flex;flex-direction:column}
.fx-purchase-dialog::backdrop{background:#0b102873;backdrop-filter:blur(5px)}
.fx-purchase-header{position:relative;flex-shrink:0;padding:25px 30px 23px;border-bottom:1px solid var(--fx-border)}
.fx-purchase-kicker{display:flex;align-items:center;gap:9px;color:var(--fx-muted);font:9px/1.6 system-ui,sans-serif;letter-spacing:1.8px;margin-bottom:11px}
.fx-purchase-mark{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;color:var(--fx-purple);background:var(--fx-raised)}
.fx-purchase-mark .fx-icon{width:15px;height:15px;display:block;margin:0}
.fx-purchase-header h2{font-size:21px;line-height:1.5;margin:0;color:var(--fx-heading);font-weight:600;padding-right:28px;overflow-wrap:anywhere}
.fx-purchase-header>p{font-size:12px;line-height:1.8;margin:9px 0 0;color:var(--fx-muted);overflow-wrap:anywhere}
.fx-purchase-close{position:absolute;top:23px;right:23px;border:0;background:transparent;color:var(--fx-muted);padding:7px;border-radius:6px;display:grid;place-items:center}
.fx-purchase-close .fx-icon{width:16px;height:16px;margin:0;display:block}
.fx-purchase-close:hover{color:var(--fx-heading);background:var(--fx-raised)}
.fx-purchase-body{padding:24px 30px;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.fx-purchase-important{display:flex;gap:11px;align-items:flex-start;padding:15px 16px;border:1px solid var(--fx-border);border-left:3px solid var(--fx-amber);background:var(--fx-raised);color:var(--fx-amber);border-radius:9px;margin-bottom:21px}
.fx-purchase-important .fx-icon{width:16px;height:16px;margin-top:4px;flex-shrink:0}
.fx-purchase-important p{font-size:12px;line-height:1.9;white-space:pre-line;margin:0;overflow-wrap:anywhere}
.fx-purchase-terms{padding:0 0 0 21px;margin:0;color:var(--fx-text);font-size:13px;line-height:2}
.fx-purchase-terms li{padding-left:5px;margin:0 0 17px;overflow-wrap:anywhere}
.fx-purchase-terms li:last-child{margin-bottom:0}
.fx-purchase-terms li::marker{color:var(--fx-purple);font-size:11px;font-weight:600}
.fx-app .fx-purchase-full-terms{display:inline-block;font-size:11px;color:var(--fx-purple);margin-top:21px}
.fx-purchase-footer{padding:20px 30px 23px;flex-shrink:0;border-top:1px solid var(--fx-border);background:var(--fx-panel)}
.fx-purchase-agreement{display:flex;align-items:flex-start;gap:11px;cursor:pointer;font-size:12px;line-height:1.9;padding:13px 14px;background:var(--fx-raised);border:1px solid var(--fx-border);border-radius:8px;margin:0 0 15px;color:var(--fx-text)}
.fx-purchase-agreement input{width:18px;height:18px;margin:2px 0 0;flex:0 0 18px;accent-color:var(--fx-green);cursor:pointer}
.fx-purchase-agreement span{min-width:0;overflow-wrap:anywhere}
.fx-purchase-actions{display:flex;gap:11px}
.fx-purchase-actions .fx-button{display:flex;align-items:center;justify-content:center;margin:0;min-height:43px;font-size:12px;padding:11px 18px;border-radius:8px}
.fx-purchase-cancel{flex-shrink:0}
.fx-app .fx-purchase-dialog .fx-purchase-actions .fx-purchase-confirm{flex:1;background:var(--fx-green);border:1px solid var(--fx-green);color:#ffffff!important;font-weight:600}
html[data-fx-theme="dark"] .fx-purchase-dialog .fx-purchase-actions .fx-purchase-confirm{color:#102b25!important}
.fx-purchase-actions .fx-purchase-confirm:disabled{opacity:.45;cursor:not-allowed}
.fx-purchase-preview-hint{font-size:10px;line-height:1.7;text-align:center;color:var(--fx-muted);margin:12px 0 0}
.fx-catalog-sorts+[data-purchase-read]{font-size:10px;padding:6px 9px;min-height:30px}
@media(max-width:760px){.fx-purchase-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:13px}.fx-purchase-header{padding:19px 20px 17px}.fx-purchase-kicker{font-size:8px;letter-spacing:1.2px;margin-bottom:9px}.fx-purchase-header h2{font-size:19px}.fx-purchase-header>p{font-size:11px}.fx-purchase-close{top:16px;right:13px}.fx-purchase-body{padding:19px 20px}.fx-purchase-important{padding:12px;gap:8px;margin-bottom:18px}.fx-purchase-important p{font-size:11px}.fx-purchase-terms{font-size:12px;line-height:1.95;padding-left:18px}.fx-purchase-terms li{padding-left:3px;margin-bottom:15px}.fx-purchase-footer{padding:15px 20px 18px}.fx-purchase-agreement{font-size:11px;padding:11px 10px;gap:9px;margin-bottom:12px}.fx-purchase-actions{gap:9px}.fx-purchase-actions .fx-button{font-size:11px;padding:10px 12px;min-height:42px}}
