.pq-store-button{width:100%;min-height:44px;margin:0!important;cursor:pointer;touch-action:manipulation;font-size:14px!important;white-space:normal}
.store-editor{--se-paper:#fffdf8;--se-ink:#34291f;--se-muted:#65584b;--se-border:#cdbfae;box-sizing:border-box;width:min(960px,calc(100% - 24px));max-width:960px;max-height:calc(100dvh - 24px);margin:auto;padding:24px;border:1px solid var(--se-border);border-radius:16px;background:var(--se-paper);color:var(--se-ink);font:16px/1.5 "Microsoft YaHei","PingFang SC",sans-serif;overflow:auto;overscroll-behavior:contain;z-index:11000}
.store-editor::backdrop{background:rgba(35,25,20,.72)}
.store-editor:not([open]){display:none}
.store-editor[open]{display:block}
.store-editor *{box-sizing:border-box;min-width:0}
.store-editor [hidden]{display:none!important}
.store-editor .se-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}
.store-editor h2{font-size:24px;line-height:1.3;margin:0 0 8px;color:var(--se-ink);letter-spacing:0}
.store-editor p{margin:0;color:var(--se-muted);font-size:14px;line-height:1.6}
.store-editor .se-close{flex:0 0 auto}
.store-editor .se-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
.store-editor .se-preview{position:sticky;top:0;display:flex;flex-direction:column;align-items:center;gap:10px;padding:12px;border-radius:10px;background:#eee8dd;border:1px solid var(--se-border)}
.store-editor canvas{display:block;max-width:100%;width:auto;max-height:64vh;height:auto;object-fit:contain;background:#fff}
.store-editor .se-preview p{font-size:12px;text-align:center}
.store-editor .se-controls{display:grid;gap:16px}
.store-editor .se-field{display:flex;flex-direction:column;gap:6px}
.store-editor label{display:block;font-size:14px;font-weight:700;color:var(--se-ink)}
.store-editor small{font-size:12px;line-height:1.5;color:var(--se-muted)}
.store-editor .se-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
.store-editor input,.store-editor textarea,.store-editor select{width:100%;max-width:100%;min-width:0;min-height:44px;padding:9px 10px;border:1px solid var(--se-border);border-radius:6px;background:#fff;color:var(--se-ink);font:inherit;letter-spacing:0;box-shadow:none}
.store-editor textarea{resize:vertical;min-height:84px}
.store-editor input[type=file]{font-size:13px;padding:8px}
.store-editor input[type=file]::file-selector-button{padding:7px 10px;margin-right:8px;border:1px solid var(--se-border);border-radius:4px;background:#f6f0e5;color:var(--se-ink);cursor:pointer}
.store-editor input[type=range]{padding:8px 0;border:0;background:transparent;accent-color:#7a1f1f}
.store-editor input[type=color]{padding:5px;cursor:pointer}
.store-editor output{font-size:12px;font-weight:400;color:var(--se-muted);margin-left:6px}
.store-editor button,.store-editor .se-subtle{display:inline-flex;justify-content:center;align-items:center;min-height:44px;min-width:44px;padding:10px 16px;border:1px solid #7a1f1f;border-radius:6px;background:transparent;color:#7a1f1f;font:inherit;font-size:14px;line-height:1.4;text-decoration:none;cursor:pointer;touch-action:manipulation}
.store-editor .se-subtle{justify-self:start;align-self:flex-start}
.store-editor .se-primary{width:100%;background:#7a1f1f;color:#fff8e8;border-color:#7a1f1f;font-weight:700;font-size:16px}
.store-editor button:disabled{opacity:.5;cursor:default}
.store-editor button:not(:disabled):active,.store-editor .se-subtle:active{background:#efe2cd}
.store-editor .se-primary:not(:disabled):active{background:#561414}
.store-editor :focus-visible{outline:3px solid #7a1f1f;outline-offset:3px}
.store-editor .se-status{min-height:44px;padding:10px 12px;border-radius:6px;background:#f5eee1;color:#594731;font-size:13px}
.store-editor .se-result{display:grid;gap:12px;padding-top:16px;border-top:1px solid var(--se-border)}
.store-editor .se-result img{display:block;max-width:100%;height:auto;border-radius:6px;border:1px solid var(--se-border)}
.store-editor.se-saving .se-layout{display:none}
.store-editor.se-saving .se-result{border-top:0;padding-top:0;gap:14px}
.store-editor.se-saving .se-result img{width:100%;max-height:64vh;max-height:64dvh;object-fit:contain;border:0;border-radius:0;-webkit-touch-callout:default;user-select:auto;-webkit-user-select:auto}
.store-editor .se-save-help{padding:12px;border-radius:6px;background:#f5eee1;color:#594731;font-size:15px;text-align:center}
.store-editor .se-result-actions{display:flex;gap:12px;flex-wrap:wrap}
.store-editor .se-result-actions .se-primary{flex:1 0 100%}
.store-editor .se-details{border-top:1px solid var(--se-border);padding-top:4px}
.store-editor .se-details summary{min-height:44px;padding:10px 0;cursor:pointer;color:#7a1f1f;font-size:14px;font-weight:700}
.store-editor .se-details[open] summary{margin-bottom:8px}
.store-editor .se-adjustments{display:grid;gap:14px}
.store-editor label.se-consent{display:flex;align-items:flex-start;gap:10px;padding:6px 0;min-height:44px;font-weight:400;font-size:13px;cursor:pointer}
.store-editor .se-consent input{flex:0 0 20px;width:20px;height:20px;min-height:20px;margin:2px 0 0;padding:0;accent-color:#7a1f1f}
.store-editor .se-lead-result{padding:10px 12px;border:1px solid var(--se-border);border-radius:6px;font-size:13px}
@media(max-width:700px){
 .store-editor{width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:16px 16px max(20px,env(safe-area-inset-bottom));border-radius:12px}
 .store-editor .se-head{gap:10px;margin-bottom:16px}
 .store-editor h2{font-size:21px}
 .store-editor .se-layout{grid-template-columns:minmax(0,1fr);gap:18px}
 .store-editor .se-preview{position:static;padding:10px}
 .store-editor canvas{max-height:42vh;max-height:42dvh}
 .store-editor .se-controls{gap:14px}
 .store-editor .se-close{padding:8px 12px}
}
@supports not (height:100dvh){.store-editor{max-height:calc(100vh - 24px)}}
