.store-editor { display:grid; grid-template-columns:350px minmax(0,1fr); gap:24px; align-items:start; }
.modal-card:has(.store-editor) { width:1180px; max-width:calc(100vw - 32px); }
.store-editor-preview { position:sticky; top:0; min-width:0; }
.store-editor-preview iframe { width:100%; height:640px; border:1px solid #d9e4eb; border-radius:8px; background:#fff; }
.store-editor-fields { min-width:0; }
.store-editor-fields .field input,.store-editor-fields textarea,.store-editor-fields select { min-width:0; width:100%; box-sizing:border-box; }
.store-editor-fields input[type=checkbox] { width:auto; }
.store-admin-tabs { display:flex; gap:6px; margin-bottom:18px; flex-wrap:wrap; }
.store-module { border-top:1px solid #dce6ed; padding:16px 0; }
.store-module-tools { display:flex; gap:6px; justify-content:flex-end; margin-bottom:8px; }
.store-thumb { width:64px; height:48px; object-fit:cover; border-radius:4px; vertical-align:middle; margin-right:8px; }
.store-order-info { white-space:pre-wrap; overflow-wrap:anywhere; }
@media(max-width:900px) { .store-editor { grid-template-columns:minmax(0,1fr); } .store-editor-preview { position:static; } .store-editor-preview iframe { height:420px; } }
.store-front { margin:0; background:#f0f4f5; color:#233335; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:16px; letter-spacing:0; }
.store-front * { box-sizing:border-box; letter-spacing:0; }
.store-share-qr { display:flex; flex-direction:column; align-items:center; gap:12px; margin:16px 0; }
.store-share-qr img { max-width:100%; object-fit:contain; }
@media(pointer:coarse) and (max-width:1024px) {
  html:has(.store-front) { width:100%; overflow-x:clip; }
  .store-front { width:100%; max-width:100%; overflow-x:clip; touch-action:pan-y; }
  .store-front input,.store-front textarea,.store-front select { font-size:16px; }
}
.store-front button,.store-front input,.store-front textarea,.store-front select { font:inherit; }
.store-front button,.store-front a { -webkit-tap-highlight-color:transparent; }
.store-front button { cursor:pointer; border:1px solid #d3dfe1; border-radius:6px; padding:10px 14px; background:#fff; color:inherit; min-height:44px; }
.store-front button:disabled { opacity:.5; cursor:not-allowed; }
.store-front a { color:inherit; text-decoration:none; }
#storeRoot { max-width:640px; min-height:100vh; margin:0 auto; background:#fff; padding-bottom:100px; }
.store-nav { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:12px 16px; background:#fff; border-bottom:1px solid #e3eaec; }
.store-brand { display:flex; gap:9px; align-items:center; font-weight:700; }
.store-brand img { width:30px; height:30px; }
.store-nav button { border:0; padding:6px 8px; }
.store-cover { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; background:#e5edee; }
#storeRoot[data-cover-mode=full] .store-cover,.store-product[data-cover-mode=full] img { aspect-ratio:auto; height:auto; max-height:none; object-fit:initial; }
.store-editor-fields .store-image-preview { display:block; width:240px; max-width:100%; height:160px; object-fit:contain; object-position:left center; background:#f6f9fc; border:1px solid #dce6ed; border-radius:4px; }
.store-image-empty { padding:28px 16px; border:1px dashed #b8cddc; text-align:center; color:#667c8a; }
.store-image-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.store-image-actions input[type=file] { flex:1 1 220px; min-width:0; }
.store-image-modes { display:flex; flex-wrap:wrap; gap:18px; padding:8px 0; }
.store-image-modes label { display:flex; align-items:center; gap:6px; }
.store-editor-fields .store-image-modes input { width:auto; }
.store-crop-dialog { width:min(760px,calc(100vw - 24px)); max-height:94dvh; padding:0; border:0; border-radius:8px; color:#24364b; }
.store-crop-dialog::backdrop { background:#13212db3; }
.store-crop-dialog header,.store-crop-dialog footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:14px 18px; }
.store-crop-dialog h3 { font-size:18px; margin:0; }
.store-crop-stage { height:min(52dvh,480px); min-height:220px; background:#e7eef2; overflow:hidden; }
.store-crop-stage img { display:block; max-width:100%; }
.store-crop-tools { display:flex; gap:8px; padding:12px 18px; flex-wrap:wrap; }
.store-crop-tools [data-zoom] { width:42px; height:42px; padding:0; font-size:23px; }
.store-settings-table { overflow-x:auto; }
.store-settings-table table { min-width:850px; }
.store-settings-table th:nth-child(1) { width:18%; }
.store-settings-table th:nth-child(2) { width:14%; }
.store-settings-table th:nth-child(3) { width:28%; }
.store-settings-table input:not([type=checkbox]),.store-settings-table select,.store-settings-table textarea { width:100%; min-width:0; }
.store-settings-table textarea { resize:vertical; margin-bottom:8px; }
.store-dialog-body .store-choice { border:0; padding:0; margin:0 0 18px; min-width:0; }
.store-dialog-body .store-choice legend { font-size:14px; margin-bottom:8px; }
.store-dialog-body .store-choice label { display:flex; gap:8px; align-items:center; overflow-wrap:anywhere; }
.store-dialog-body .store-choice input { width:18px; height:18px; margin:0; flex:none; }
.store-required { color:#c5343f; }
.store-price-band { display:grid; grid-template-columns:1fr 1fr; min-height:82px; }
.store-price { background:var(--store-theme,#159b83); color:white; display:flex; align-items:baseline; gap:8px; padding:17px 16px; flex-wrap:wrap; }
.store-price strong { font-size:32px; font-weight:650; }
.store-price del { font-size:13px; opacity:.9; }
.store-countdown { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; padding:10px; background:var(--store-accent,#f4db73); color:#25392f; font-size:13px; text-align:center; font-variant-numeric:tabular-nums; }
.store-countdown strong { font-size:16px; }
.store-title { padding:22px 20px; border-bottom:1px solid #e2e9e9; }
.store-title h1 { font-size:25px; line-height:1.5; margin:0 0 10px; overflow-wrap:anywhere; }
.store-title p { color:#637977; line-height:1.7; white-space:pre-wrap; margin:10px 0; overflow-wrap:anywhere; }
.store-meta { display:flex; gap:12px; flex-wrap:wrap; color:#5e7471; font-size:14px; }
.store-remaining { color:#d9363e; font-weight:700; }
.store-payment-form > .full { grid-column:1 / -1; }
.store-payment-form [hidden] { display:none; }
.store-payment-form .field { min-width:0; }
[data-wechat-reauth][hidden] { display:none; }
.store-bottom:not(:has(a)) .store-primary { width:100%; }
.store-section { padding:22px 20px; border-bottom:1px solid #e3ebea; }
.store-section h2 { font-size:20px; margin:0 0 14px; border-left:4px solid var(--store-theme,#159b83); padding-left:10px; }
.store-section p { white-space:pre-wrap; margin:0; line-height:1.85; overflow-wrap:anywhere; }
.store-section img { display:block; width:100%; height:auto; }
.store-section video { display:block; width:100%; aspect-ratio:16/9; background:#172521; }
.store-bottom { position:fixed; z-index:20; bottom:0; left:50%; transform:translateX(-50%); width:min(640px,100%); display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px calc(12px + env(safe-area-inset-bottom)); background:#fff; border-top:1px solid #dde7e4; }
.store-front .store-primary { background:var(--store-theme,#159b83); color:#fff; border:0; font-weight:600; }
.store-bottom .store-primary { min-width:150px; }
.store-catalog { padding:16px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.store-product { overflow:hidden; border:1px solid #dce7e4; border-radius:8px; }
.store-product img { display:block; width:100%; aspect-ratio:1.3; object-fit:cover; }
.store-product h2 { font-size:17px; line-height:1.5; margin:10px; overflow-wrap:anywhere; }
.store-product p { margin:10px; color:#18866e; font-weight:700; }
.store-empty { padding:40px 20px; text-align:center; color:#657d76; }
.store-front dialog { width:min(540px,calc(100vw - 24px)); max-height:90dvh; border:0; border-radius:8px; padding:0; box-shadow:0 14px 50px #0003; color:#233335; }
.store-front dialog::backdrop { background:#172e3480; }
.store-dialog-head { position:sticky; top:0; z-index:2; background:#fff; display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-bottom:1px solid #e3ebea; }
.store-dialog-body { padding:20px; overflow-wrap:anywhere; min-width:0; }
.store-dialog-body h2 { font-size:21px; line-height:1.5; margin:0 0 18px; }
.store-dialog-body>button { margin-top:10px; margin-right:8px; }
.store-dialog-body label { display:block; font-size:14px; margin-bottom:6px; }
.store-dialog-body input,.store-dialog-body textarea,.store-dialog-body select { display:block; width:100%; min-width:0; padding:11px 12px; border:1px solid #cdded8; border-radius:4px; margin-bottom:18px; font-size:16px; }
.store-dialog-body .store-primary { width:100%; }
.store-order-row { padding:18px 0; border-bottom:1px solid #dfe8e5; overflow-wrap:anywhere; }
.store-order-row h3 { font-size:17px; margin:0 0 10px; }
.store-order-row p { color:#677d75; font-size:14px; }
#storeToast { position:fixed; z-index:100; inset:20% auto auto 50%; transform:translateX(-50%); margin:0; border:0; width:max-content; max-width:min(420px,calc(100vw - 32px)); box-sizing:border-box; background:#203c35; color:white; padding:12px 18px; border-radius:6px; font-size:16px; line-height:1.5; overflow-wrap:anywhere; pointer-events:none; }
#storeToast:empty { display:none; }
.store-purchases-summary { display:flex; flex-wrap:wrap; gap:12px 24px; margin:14px 0; }
.store-purchases-table { width:100%; min-width:860px; }
.store-purchases-table td { vertical-align:top; overflow-wrap:anywhere; }
.store-purchases-fields { min-width:180px; white-space:pre-wrap; }
.payment-account-editor { border-top:1px solid #dce7ef; margin-top:20px; padding-top:16px; }
.payment-account-editor h3 { font-size:17px; margin:0 0 16px; }
.payment-account-table { min-width:780px; margin-top:16px; }
.payment-account-table .is-selected { background:#eef7ff; }
.payment-account-scenes { min-width:0; border:0; margin:0; padding:0; }
.payment-account-scenes legend { color:#667e98; font-size:14px; margin-bottom:8px; }
.payment-account-scenes label { display:inline-flex; align-items:center; gap:8px; margin:8px 18px 8px 0; }
.payment-account-scenes input { width:18px; height:18px; flex:none; }
.payment-account-editor textarea { resize:vertical; }
.store-share-direction { margin:0 0 18px; line-height:1.65; }
.store-share-preview { display:flex; align-items:flex-start; gap:12px; padding:14px 0; border-top:1px solid #dce7ef; border-bottom:1px solid #dce7ef; }
.store-share-preview img { width:72px; height:72px; object-fit:cover; flex:none; }
.store-share-preview > div { min-width:0; }
.store-share-preview strong { display:block; font-size:16px; overflow-wrap:anywhere; }
.store-share-preview p { margin:8px 0 0; color:#607875; font-size:14px; line-height:1.5; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
@media(max-width:360px) { .store-catalog { grid-template-columns:1fr; } .store-title h1 { font-size:22px; } .store-bottom .store-primary { min-width:120px; } }
