.sonw-cfg{--ink:#171914;--muted:#6b6d66;--line:#d5d5d0;--soft:#f4f4f2;--yellow:#ffda40;--sale:#d8412f;margin:0 0 8px;color:var(--ink)}
.sonw-cfg [hidden]{display:none!important}
.sonw-cfg-field{margin:0 0 18px;padding:0;border:0}
.sonw-cfg .sonw-pdp-option-label{display:block;margin:0 0 8px;padding:0;color:var(--ink);font-family:inherit;font-size:13px;font-weight:600;letter-spacing:0;text-transform:none}
.sonw-cfg .sonw-pdp-select{position:relative}
.sonw-cfg .sonw-pdp-select::after{content:"";position:absolute;right:18px;top:50%;width:8px;height:8px;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:translateY(-70%) rotate(45deg);pointer-events:none}
.sonw-cfg .sonw-pdp-select select{width:100%;height:52px;min-height:52px;margin:0;padding:0 44px 0 16px;border:1.5px solid var(--line);border-radius:8px;background:#fff none;box-shadow:none;color:var(--ink);font:inherit;font-size:13px;font-weight:500;-webkit-appearance:none;appearance:none;cursor:pointer}
.sonw-cfg .sonw-pdp-select select:focus{border-color:var(--ink);outline:3px solid var(--yellow);outline-offset:1px}
.sonw-cfg-drop{position:relative;display:block;margin:0;cursor:pointer}
.sonw-cfg-drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.sonw-cfg-drop-empty,.sonw-cfg-drop-done{display:flex;align-items:center;gap:14px;min-height:76px;padding:14px 16px;border:1.5px dashed #c9c9c4;border-radius:8px;background:var(--soft)}
.sonw-cfg-drop-empty{flex-direction:column;justify-content:center;gap:4px;text-align:center}
.sonw-cfg-drop-empty svg{width:26px;height:26px;fill:none;stroke:var(--ink);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sonw-cfg-drop b{font-size:13px;font-weight:600}
.sonw-cfg-drop small{color:var(--muted);font-size:11px}
.sonw-cfg-drop-done{border-style:solid;border-color:var(--ink);background:#fff}
.sonw-cfg-upload.has-photo [data-sonw-preview]{display:none}
.sonw-cfg-drop-done img{width:56px;height:56px;border-radius:6px;object-fit:cover;background:var(--soft)}
.sonw-cfg-drop-done>span{display:flex;flex-direction:column;min-width:0}
.sonw-cfg-drop-done b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sonw-cfg-drop-done small{text-decoration:underline}
.sonw-cfg-drop:focus-within .sonw-cfg-drop-empty,.sonw-cfg-drop:focus-within .sonw-cfg-drop-done{outline:3px solid var(--yellow);outline-offset:2px}
.sonw-cfg-upload.is-busy .sonw-cfg-drop{opacity:.6;pointer-events:none}
.sonw-cfg-progress{height:8px;margin:10px 0 0;border-radius:999px;background:#ecece8;overflow:hidden}
.sonw-cfg-progress span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ffda40,#f2b705);transition:width .2s ease}
.sonw-cfg-status{min-height:1em;margin:6px 0 0;color:var(--muted);font-size:11px}
.sonw-cfg-status.is-error{color:var(--sale);font-weight:500}
.sonw-cfg-extras{display:grid;gap:8px}
.sonw-cfg-check{display:flex;align-items:center;gap:12px;margin:0;padding:12px 14px;border:1.5px solid var(--line);border-radius:8px;background:#fff;font-size:13px;font-weight:500;cursor:pointer}
.sonw-cfg-check:has(input:checked){border-color:var(--ink)}
.sonw-cfg-check input{width:18px;height:18px;margin:0;accent-color:var(--ink)}
.sonw-cfg-check span{flex:1}
.sonw-cfg-check b{font-weight:600;white-space:nowrap}
/* Canvas preview under the upload field */
.sonw-cfg-mockup{position:relative;margin:-6px 0 18px;border-radius:14px;background:linear-gradient(180deg,#f1f1ef,#e7e7e4);overflow:hidden}
.sonw-cfg-mockup .sonw-cfg-stage{aspect-ratio:1/1}
.sonw-cfg-stage{display:grid;place-items:center;padding:9% 12%}
.sonw-cfg-canvas{display:block;border-radius:2px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.12),0 14px 28px rgba(0,0,0,.22)}
.sonw-cfg-mockup .sonw-cfg-tool{position:absolute;top:16px;display:grid;place-items:center;width:48px;height:48px;min-height:0;margin:0;padding:0;border:0;border-radius:50%!important;background:#fff;color:#171914;box-shadow:0 2px 10px rgba(0,0,0,.14);cursor:pointer}
.sonw-cfg-tool.is-left{left:16px}
.sonw-cfg-tool.is-right{right:16px}
.sonw-cfg-tool svg{width:22px;height:22px}
.sonw-cfg svg,.sonw-cfg-dialog svg{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.sonw-cfg-tool:focus-visible,.sonw-cfg-crop-button:focus-visible{outline:3px solid #ffda40;outline-offset:2px}
.sonw-cfg-mockup .sonw-cfg-crop-button{display:flex;align-items:center;justify-content:center;gap:8px;width:calc(100% - 32px);min-height:48px;margin:0 16px 16px;padding:0 16px;border:1.5px solid #171914;border-radius:8px;background:#fff;color:#171914;font:inherit;font-size:13px;font-weight:600;text-transform:none;letter-spacing:0;cursor:pointer}
.sonw-cfg-crop-button svg{width:20px;height:20px}
.sonw-cfg-warning{margin:0 16px 12px;padding:10px 12px;border-radius:8px;background:#fff4e5;color:#7a4300;font-size:11px;line-height:1.45}
.sonw-cfg-dialog{max-width:none;max-height:none;margin:auto;padding:0;border:0;border-radius:14px;background:#fff;color:#171914}
.sonw-cfg-dialog::backdrop{background:rgba(23,25,20,.6)}
.sonw-cfg-dialog.is-zoom{width:min(92vw,900px);background:linear-gradient(180deg,#f1f1ef,#e7e7e4)}
.sonw-cfg-dialog.is-zoom .sonw-cfg-stage{height:min(86vh,900px);padding:6%}
.sonw-cfg-close{position:absolute;top:10px;right:14px;z-index:1;margin:0;padding:0;border:0;background:none;font-size:28px;line-height:1;color:#171914;cursor:pointer}
.sonw-cfg-dialog.is-editor{width:min(96vw,620px)}
.sonw-cfg-editor{display:flex;flex-direction:column;padding:18px}
.sonw-cfg-editor-head{position:relative;display:flex;align-items:center;justify-content:space-between}
.sonw-cfg-editor-head .sonw-cfg-close{position:static}
.sonw-cfg-editor-title{margin:0;font-size:16px;font-weight:700}
.sonw-cfg-editor-hint{margin:2px 0 12px;color:#6b6d66;font-size:12px}
.sonw-cfg-editor-canvas{display:block;width:100%;height:min(58vh,460px);border-radius:10px;background:#1f201c;touch-action:none;cursor:grab}
.sonw-cfg-editor-canvas:active{cursor:grabbing}
.sonw-cfg-editor-canvas:focus-visible{outline:3px solid #ffda40;outline-offset:2px}
.sonw-cfg-editor .sonw-cfg-warning{margin:10px 0 0}
.sonw-cfg-editor-zoom{display:flex;align-items:center;gap:10px;margin:14px 0 10px}
.sonw-cfg-editor-zoom input{flex:1;accent-color:#171914}
.sonw-cfg-editor-zoom button{display:grid;place-items:center;width:40px;height:40px;min-height:0;margin:0;padding:0;border:1.5px solid #d5d5d0;border-radius:50%!important;background:#fff;color:#171914;font-size:18px;line-height:1;cursor:pointer}
.sonw-cfg-editor-tools{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.sonw-cfg-editor-tools button{display:inline-flex;align-items:center;gap:6px;min-height:42px;margin:0;padding:0 14px;border:1.5px solid #d5d5d0;border-radius:8px;background:#fff;color:#171914;font:inherit;font-size:12px;font-weight:600;text-transform:none;letter-spacing:0;cursor:pointer}
.sonw-cfg-editor-tools button[hidden]{display:none}
.sonw-cfg-editor-tools svg{width:18px;height:18px}
.sonw-cfg-editor-tools [data-reset]{margin-left:auto;border-color:transparent;text-decoration:underline}
.sonw-cfg-editor-actions{display:grid;grid-template-columns:1fr 2fr;gap:8px}
.sonw-cfg-editor-actions button{min-height:50px;margin:0;padding:0 18px;border:1.5px solid #d5d5d0;border-radius:8px;background:#fff;color:#171914;font:inherit;font-size:14px;font-weight:600;text-transform:none;letter-spacing:0;cursor:pointer}
.sonw-cfg-editor-actions [data-save]{border-color:#171914;background:#171914;color:#fff}
@media(max-width:849px){.sonw-cfg-mockup{border-radius:12px}.sonw-cfg-mockup .sonw-cfg-tool{top:12px;width:44px;height:44px}.sonw-cfg-tool.is-left{left:12px}.sonw-cfg-tool.is-right{right:12px}}
@media(max-width:549px){.sonw-cfg-dialog.is-editor{width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.sonw-cfg-editor{height:100%;padding:14px}.sonw-cfg-editor-canvas{flex:1;height:auto;min-height:0}}
/* Generic fields (all former WCPA forms) */
.sonw-cfg-group{margin:0;padding:0;border:0;min-width:0}
.sonw-cfg-options{display:grid;gap:8px}
.sonw-cfg-check img{flex:none;width:44px;height:44px;border-radius:6px;object-fit:cover;background:var(--soft)}
.sonw-cfg-check:has(input:focus-visible){outline:3px solid var(--yellow);outline-offset:2px}
.sonw-cfg-check input[type="radio"]{accent-color:var(--ink)}
.sonw-cfg .sonw-pdp-option-label small{color:var(--muted);font-size:11px;font-weight:400}
.sonw-cfg .sonw-cfg-input{width:100%;min-height:52px;margin:0;padding:12px 16px;border:1.5px solid var(--line);border-radius:8px;background:#fff;box-shadow:none;color:var(--ink);font:inherit;font-size:13px}
.sonw-cfg textarea.sonw-cfg-input{min-height:96px;resize:vertical}
.sonw-cfg .sonw-cfg-input:focus{border-color:var(--ink);outline:3px solid var(--yellow);outline-offset:1px}
.sonw-cfg-note{margin:0;padding:12px 14px;border-radius:8px;background:#fff8dc;color:var(--ink);font-size:12px;line-height:1.5}
.sonw-cfg-files{display:grid;gap:6px;margin:8px 0 0;padding:0;list-style:none}
.sonw-cfg-files li{display:flex;align-items:center;gap:10px;margin:0;padding:8px 12px;border-radius:8px;background:var(--soft);font-size:12px}
.sonw-cfg-files span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sonw-cfg-files button{display:grid;place-items:center;width:28px;height:28px;min-height:0;margin:0;padding:0;border:0;border-radius:50%!important;background:#fff;color:var(--ink);font-size:15px;line-height:1;cursor:pointer}
/* Own total line when the page has no SONW price block (PPNT before the product-page port) */
.sonw-cfg-total{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:4px 0 14px;padding:12px 0 0;border-top:1px solid var(--line);font-size:14px}
.sonw-cfg-total strong{font-size:18px;font-weight:700}
.sonw-cfg-total del{color:var(--muted);font-size:13px;font-weight:400}
