/* STORZA24 visual editor — compact no-code workspace, inspired by open-source Puck. */
body.s24-pro-editor{background:#edf2f8;color:#1a3049}
body.s24-pro-editor .ed-bar{padding:9px clamp(13px,2vw,26px);min-height:53px;box-shadow:0 2px 9px #122d4c1b}
body.s24-pro-editor .ed-brand{font-size:23px}
body.s24-pro-editor main{max-width:none;width:100%;padding:10px clamp(9px,1.2vw,18px) 16px}
body.s24-pro-editor .ed-heading{display:none}
.s24-pro-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 11px;background:#fff;border:1px solid #dce5f0;border-radius:12px;margin-bottom:10px;box-shadow:0 2px 9px #223b5c0c}
.s24-pro-title{display:flex;flex-direction:column;min-width:0}
.s24-pro-title strong{font-size:15px;line-height:1.4;color:#122f4d}
.s24-pro-template-label{font:650 11px/1.3 system-ui,sans-serif;color:#61809b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.s24-pro-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px}
.s24-pro-actions button,.s24-pro-actions a{min-height:36px;display:inline-flex;align-items:center;justify-content:center;padding:7px 11px;border:1px solid #b8cde5;background:#f4f8ff;color:#18558e;border-radius:8px;text-decoration:none;font:800 12px/1.2 system-ui,sans-serif;white-space:nowrap;cursor:pointer}
.s24-pro-actions #ed-save{background:#e7f1ff;border-color:#bfd8f4;color:#11529b}
.s24-pro-actions #ed-publish{background:#0d65ce;color:#fff;border-color:#0d65ce}
.s24-pro-actions #ed-undo{background:#f5f7fa;border-color:#e0e5ea;color:#4b6782}
.s24-pro-actions .s24-edit-state{font-size:11px;min-height:34px;padding:5px 8px}
.s24-pro-actions .s24-pro-preview[aria-pressed="true"]{background:#122f53;color:#fff}
body.s24-pro-editor .ed-workspace{display:grid;grid-template-columns:minmax(0,1fr) clamp(230px,20vw,286px);gap:11px;align-items:start}
body.s24-pro-editor .ed-preview-area{grid-column:1;grid-row:1;min-width:0;min-height:550px;max-height:calc(100dvh - 144px);overflow:auto;background:#e4eaf2;padding:11px;border:1px solid #d4dfeb;border-radius:13px;scrollbar-width:thin}
body.s24-pro-editor .ed-controls{grid-column:2;grid-row:1;min-width:0;max-height:calc(100dvh - 144px);overflow-y:auto;position:sticky;top:9px;display:flex;flex-direction:column;gap:8px;padding:11px;background:#fff;border:1px solid #d7e3f0;border-radius:13px;box-shadow:0 4px 16px #1c365216;scrollbar-width:thin}
body.s24-pro-editor .ed-toolbar{display:flex;flex-direction:column;gap:6px;align-items:stretch;border:0;border-bottom:1px solid #e4ebf3;padding:0 0 9px;margin:0;border-radius:0;background:transparent}
body.s24-pro-editor .ed-toolbar label{font:850 11px system-ui,sans-serif;color:#55708c}
body.s24-pro-editor .ed-toolbar select{width:100%;min-width:0;max-width:none;min-height:36px;padding:7px 8px;font-size:12px}
body.s24-pro-editor .ed-toolbar .s24-editor-products{padding:6px;border:0;background:#f2f6ff;font-size:11px}
body.s24-pro-editor #ed-status{min-height:0;margin:0;padding:7px 9px;font-size:11px;line-height:1.3}
.s24-pro-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.s24-pro-tab{border:1px solid #dde7f2;background:#f7f9fc;border-radius:8px;display:flex;align-items:center;gap:5px;justify-content:flex-start;text-align:left;color:#395775;min-height:34px;padding:6px 7px;font:760 11px/1.2 system-ui,sans-serif;cursor:pointer}
.s24-pro-tab span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.s24-pro-tab .s24-pro-icon{font-size:14px;line-height:1}
.s24-pro-tab:hover,.s24-pro-tab:focus-visible{background:#e9f3ff;border-color:#9fc6ef}
.s24-pro-tab.active,.s24-pro-tab[aria-pressed="true"]{background:#e6f1ff;border-color:#84b9ed;color:#075cab}
.s24-pro-inspector{border:1px solid #e1e9f3;border-radius:9px;background:#fff;padding:10px;display:flex;flex-direction:column;gap:8px}
.s24-pro-inspector-title{font-size:14px!important;line-height:1.3;margin:0;color:#214260}
.s24-pro-description{font-size:11px;line-height:1.4;color:#647d98;margin:0}
.s24-pro-tiny{font:600 10px/1.5 system-ui,sans-serif;color:#8497ab;margin:0}
.s24-pro-link,.s24-pro-action{display:block;text-align:left;width:100%;min-height:33px;padding:8px 10px;border:1px solid #d1e2f5;border-radius:8px;background:#eff6ff;color:#15599a;text-decoration:none;font:760 11px/1.35 system-ui,sans-serif;cursor:pointer}
.s24-pro-link:hover,.s24-pro-action:hover{background:#dcefff;border-color:#9dbee1}
.s24-pro-field{display:grid;gap:4px;font:750 11px/1.3 system-ui,sans-serif;color:#415d79}
.s24-pro-field input,.s24-pro-field textarea{width:100%;min-width:0;max-width:100%;padding:8px 9px;border:1px solid #bbcde0;background:#fff;color:#102944;border-radius:8px;font:500 12px/1.35 system-ui,sans-serif}
.s24-pro-field textarea{resize:vertical;min-height:64px}
.s24-pro-field input:focus,.s24-pro-field textarea:focus{outline:2px solid #3285d7;outline-offset:1px}
body.s24-pro-editor:not([data-s24-pro-tab="ontwerp"]) .ed-color-panel,
body.s24-pro-editor:not([data-s24-pro-tab="ontwerp"]) .s24-block-settings,
body.s24-pro-editor:not([data-s24-pro-tab="ontwerp"]) .ed-device-tools,
body.s24-pro-editor:not([data-s24-pro-tab="ontwerp"]) .ed-block-add{display:none!important}
body.s24-pro-editor .ed-color-panel,body.s24-pro-editor .s24-block-settings,body.s24-pro-editor .ed-device-tools,body.s24-pro-editor .ed-block-add{margin:0;padding:8px;border:1px solid #edf0f5;border-radius:9px}
body.s24-pro-editor .ed-color-title strong,body.s24-pro-editor .s24-block-settings h2{font-size:12px}
body.s24-pro-editor .ed-color-title p{display:none}
body.s24-pro-editor .ed-color-title button{padding:6px 7px;min-height:32px;font-size:11px;width:100%}
body.s24-pro-editor .ed-color-controls{display:grid;gap:7px}
body.s24-pro-editor .ed-color-controls label{font-size:11px}
body.s24-pro-editor .ed-color-preview{display:none}
body.s24-pro-editor #ed-history[hidden]{display:none!important}
body.s24-pro-editor #ed-history{margin:0;border:1px solid #e2eaf4;padding:8px;background:#fff;border-radius:9px}
body.s24-pro-editor #ed-history h2{font-size:12px}
body.s24-pro-editor #ed-history p{font-size:11px}
body.s24-pro-editor #ed-history .ed-history-controls{display:grid;gap:7px}
body.s24-pro-editor #ed-history select{width:100%}
body.s24-pro-editor .ed-preview-head{display:flex;align-items:center;justify-content:space-between;gap:10px;position:sticky;top:0;z-index:5;padding:7px 10px;background:#fff;border:1px solid #e2e7ee;border-radius:7px;margin-bottom:7px;font-size:12px}
body.s24-pro-editor .ed-preview-head span{font-size:10px;color:#8091a3}
body.s24-pro-editor .ed-canvas{padding:clamp(12px,2vw,22px);max-width:1180px;margin:auto;box-shadow:0 9px 27px #1431541c;border-radius:8px}
body.s24-pro-editor .ed-canvas .ed-block{margin:13px 0;padding:clamp(12px,1.4vw,20px);border:1px solid #e4ebf4;border-radius:8px;cursor:pointer}
body.s24-pro-editor .ed-canvas .ed-block:hover{outline:2px solid #aed0f2;outline-offset:0}
body.s24-pro-editor .ed-canvas .ed-top{padding:12px 7px}
body.s24-pro-editor .ed-canvas .ed-product{padding:9px}
body.s24-pro-editor .ed-canvas .ed-products{gap:9px}
body.s24-pro-editor #ed-canvas.s24-template{--ed-accent:var(--s24-accent);border-color:var(--s24-accent);background:var(--s24-page)}
body.s24-pro-editor #ed-canvas.s24-template .ed-block{background:var(--s24-paper)}
body.s24-pro-editor #ed-canvas.s24-template .ed-shop-cta{background:var(--s24-accent);color:#fff}
body.s24-pro-editor #ed-canvas.s24-template .ed-top{background:var(--s24-paper);border-bottom:3px solid var(--s24-accent)}
body.s24-pro-editor #ed-canvas[data-s24-family="boutique"]{font-family:Georgia,'Times New Roman',serif}
body.s24-pro-editor #ed-canvas[data-s24-family="boutique"] .ed-block h2{font-family:Georgia,'Times New Roman',serif;letter-spacing:.015em}
body.s24-pro-editor #ed-canvas[data-s24-family="catalog"] .ed-products{grid-template-columns:repeat(auto-fill,minmax(133px,1fr))}
body.s24-pro-editor #ed-canvas[data-s24-family="market"] .ed-block{border-radius:18px}
body.s24-pro-editor #ed-canvas[data-s24-family="minimal"] .ed-block{border:0;border-bottom:1px solid #dae0e6;border-radius:0}
body.s24-pro-editor #ed-canvas[data-s24-family="showcase"] .ed-block[data-block="hero"]{background:var(--s24-accent);color:#fff}
body.s24-pro-editor #ed-canvas[data-s24-family="showcase"] .ed-block[data-block="hero"] h2{color:#fff}
body.s24-pro-editor #ed-canvas[data-s24-variant="3"] .ed-block[data-block="hero"]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
body.s24-pro-editor #ed-canvas[data-s24-variant="3"] .ed-block[data-block="hero"] .ed-photo-wrap{grid-column:2;grid-row:1/span 6}
body.s24-pro-editor #ed-canvas[data-s24-variant="3"] .ed-block[data-block="hero"] .ed-photo-wrap img{height:100%;max-height:320px;object-fit:cover}
body.s24-pro-editor #ed-canvas[data-s24-variant="4"] .ed-products .ed-product:nth-child(3n+1){grid-row:span 2}
body.s24-pro-editor #ed-canvas[data-s24-variant="5"] .ed-block{border-radius:20px}
body.s24-pro-editor.s24-visitor-preview .ed-controls{display:none!important}
body.s24-pro-editor.s24-visitor-preview .ed-workspace{display:block!important}
body.s24-pro-editor.s24-visitor-preview .ed-preview-area{max-height:none;height:auto;overflow:visible;padding:14px}
body.s24-pro-editor.s24-visitor-preview .ed-preview-head{display:none}
body.s24-pro-editor footer{padding:8px;font-size:11px}
@media(max-width:920px){
 body.s24-pro-editor .ed-workspace{grid-template-columns:minmax(0,1fr) 230px}
 body.s24-pro-editor .s24-pro-title{display:none}
 body.s24-pro-editor .s24-pro-actions{width:100%;justify-content:flex-start}
}
@media(max-width:800px){
 body.s24-pro-editor main{padding:8px}
 body.s24-pro-editor .ed-workspace{display:block}
 body.s24-pro-editor .ed-controls{position:static;max-height:none;overflow:visible;display:flex;padding:10px}
 body.s24-pro-editor .ed-preview-area{max-height:none;min-height:350px;overflow:visible;padding:8px}
 body.s24-pro-editor:not(.s24-mobile-preview) .ed-preview-area{display:none!important}
 body.s24-pro-editor.s24-mobile-preview .ed-controls{display:none!important}
 body.s24-pro-editor.s24-mobile-preview .ed-preview-area{display:block!important}
 .s24-pro-topbar{padding:7px;margin-bottom:6px}
 .s24-pro-actions{gap:5px}
 .s24-pro-actions button,.s24-pro-actions a{padding:7px 8px;font-size:11px;min-height:36px}
 .s24-pro-actions .s24-edit-state{font-size:10px;order:99}
 .s24-pro-nav{grid-template-columns:repeat(3,minmax(0,1fr))}
 .s24-pro-tab{justify-content:center}
 body.s24-pro-editor #ed-canvas[data-s24-variant="3"] .ed-block[data-block="hero"]{display:block}
}
