/* Shared StampOz editor: production artwork stays in mm; chrome stays in CSS px. */
.stampoz-editor,.stampoz-editor-view{font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#152b3e;box-sizing:border-box}
.stampoz-editor{background:#fff;border:1px solid #dbe4ec;border-radius:16px;overflow:visible;margin:20px 0;clear:both;width:100%}
.stampoz-editor *,.stampoz-editor-view *{box-sizing:border-box}
.stampoz-editor-view{padding:24px;background:#f4f8fb;border-radius:16px}
.stampoz-preview-heading{margin-bottom:18px}
.stampoz-live-badge{display:inline-flex;align-items:center;gap:7px;font-size:10px;letter-spacing:1.5px;font-weight:750;color:#23648e}
.stampoz-live-badge:before{content:"";width:6px;height:6px;border-radius:50%;background:#2780b4;box-shadow:0 0 0 3px #2780b415}
.stampoz-preview-heading h2{font:650 23px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;letter-spacing:-.5px;color:#152b3e;margin:9px 0 5px}
.stampoz-preview-heading p{font-size:13px;line-height:1.5;color:#61768a;margin:0!important}
.stampoz-editor-view>strong{display:inline-block;font-size:12px;font-weight:600;color:#35566f;background:white;border:1px solid #d9e3eb;border-radius:6px;padding:5px 9px;margin-bottom:14px}
.stampoz-editor-paper{display:flex;align-items:center;justify-content:center;min-height:170px;padding:24px 8px 12px;background:#eaf0f5;border:1px solid #dce5ed;border-radius:10px;overflow:visible}
.stampoz-editor-stage{flex:none;max-width:100%}
.stampoz-editor-art{background:white;box-shadow:0 2px 10px #1c38531a,0 0 0 1px #99aebb;position:relative;line-height:0}
.stampoz-editor-art svg{width:100%;height:100%;overflow:visible}
.stampoz-editor-ruler{position:relative;height:30px;margin-top:9px;border-top:1px solid #879ba9;font:10px/1 Arial,sans-serif;color:#506a7b}
.stampoz-ruler-tick{position:absolute;top:0;height:5px;border-left:1px solid #879ba9}
.stampoz-ruler-tick.major{height:8px}
.stampoz-ruler-tick>span{position:absolute;top:12px;left:0;transform:translateX(-50%)}
.stampoz-ruler-tick.first>span{transform:none}.stampoz-ruler-tick.last>span{transform:translateX(-100%)}
.stampoz-editor-caption{font-size:11px!important;line-height:1.6!important;color:#5e7485;margin:12px 0!important}
.stampoz-editor-check{display:flex!important;align-items:center;gap:9px;font-size:12px!important;line-height:1.5;font-weight:400!important;margin:10px 0!important;cursor:pointer;color:#3d586d}
.stampoz-editor-check input{appearance:auto;width:16px!important;height:16px!important;min-height:16px!important;margin:0!important;display:inline-block!important;accent-color:#226d9c;flex:none;padding:0!important}
.stampoz-editor-status{margin:16px 0 0;padding:11px 13px;border:1px solid #c9dfec;border-radius:8px;background:#eaf4fa;font-size:12px;color:#245777}
.stampoz-editor-status strong{font-size:12px;font-weight:650}.stampoz-editor-status.has-errors{background:#fff6ed;border-color:#f0d7bd;color:#865026}
.stampoz-editor-status p{margin:5px 0 0!important;font-size:12px!important;line-height:1.45!important}
.stampoz-editor-fields{padding:24px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 16px}
.stampoz-fields-heading{grid-column:1/-1;margin-bottom:2px}
.stampoz-fields-heading>span{font-size:10px;font-weight:750;letter-spacing:1.5px;color:#487189}
.stampoz-fields-heading h2{font:650 23px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;letter-spacing:-.5px;color:#152b3e;margin:8px 0}
.stampoz-fields-heading p{font-size:12px;color:#61768a;line-height:1.5;margin:0!important}
.stampoz-editor-fields label{font-size:12px;font-weight:650;color:#203e55;display:block;margin:0}
.stampoz-editor-fields [data-field="name"],.stampoz-editor-fields [data-field="extra"],.stampoz-editor-fields [data-field="statement"],.stampoz-editor-fields [data-field="headline"],.stampoz-editor-fields [data-field="lines"],.stampoz-editor-fields>.stampoz-editor-check,.stampoz-editor-note{grid-column:1/-1}
.stampoz-editor-fields input,.stampoz-editor-fields textarea,.stampoz-editor-fields select{display:block;width:100%;min-height:45px;font:15px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;border:1px solid #c8d5df;border-radius:7px;background:#fff;color:#19374c;padding:11px 12px;margin-top:7px;transition:border-color .15s,box-shadow .15s;box-shadow:0 1px 2px #142c3e05}
.stampoz-editor-fields textarea{min-height:88px;resize:vertical}
.stampoz-editor input:focus,.stampoz-editor textarea:focus,.stampoz-editor select:focus{outline:2px solid #2780b455;outline-offset:2px;border-color:#2780b4;box-shadow:0 0 0 3px #2780b40d}
.stampoz-editor-note{font-size:11px!important;line-height:1.6!important;color:#607688;margin:0!important;padding-top:14px;border-top:1px solid #e8edf2}
.stampoz-generated-impression{display:block;background:white;padding:12px}.stampoz-generated-impression svg{max-width:100%;height:auto;display:block}
.stampoz-live-gallery .woocommerce-product-gallery__wrapper,.stampoz-live-gallery .woocommerce-product-gallery__trigger{display:none!important}
.stampoz-editor[hidden],.stampoz-generated-impression[hidden]{display:none!important}
/* Product page: a single impression workbench beside the form. */
.stampoz-editor-product .shop-detail-section{padding-top:30px!important}
.stampoz-editor-product .content-column h1{font-size:32px;line-height:1.18;letter-spacing:-.6px;margin-bottom:13px}
.stampoz-editor-product form.cart{display:block!important}
.stampoz-editor-product .stampoz-preview-docked{display:block!important;margin:0!important;width:100%!important;border:1px solid #dbe4ec;border-radius:16px;overflow:hidden;box-shadow:0 8px 28px #1b38500a}
.stampoz-editor-product .stampoz-legacy-approval{border:0!important;background:none!important;padding:0!important;margin:18px 0!important}
.stampoz-editor-product .stampoz-legacy-approval>legend,.stampoz-editor-product .stampoz-legacy-approval>.stampoz-personalisation__notice{display:none}
.stampoz-editor-product .stampoz-proof-approval{margin:0!important;padding:15px;background:#f7fafc;border:1px solid #e1e8ee;border-radius:9px}
.stampoz-editor-product .stampoz-proof-approval label{display:flex;align-items:flex-start;gap:10px;font:12px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#425e72;margin:0}
.stampoz-editor-product .stampoz-proof-approval input{appearance:auto;flex:none;width:16px;height:16px;accent-color:#226d9c;margin-top:2px}
.stampoz-editor-product form.cart button[name="add-to-cart"]{width:100%;border-radius:9px;background:#216e9e!important;box-shadow:0 3px 9px #216e9e1c;margin-top:12px}
.stampoz-editor-product form.cart button[name="add-to-cart"]:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.stampoz-editor-product .woocommerce-message{margin:0 0 25px!important;border-radius:8px}
@media(min-width:1000px){.stampoz-editor-gallery{position:sticky;top:95px;align-self:flex-start}.stampoz-editor-product .stampoz-editor{margin-top:20px}.stampoz-editor-product .gallery-column .inner-column{padding-right:12px}}
@media(max-width:999px){.stampoz-editor-product .stampoz-editor-gallery{display:none}.stampoz-editor-product .content-column{width:100%;max-width:100%;flex-basis:100%}.stampoz-editor-product .content-column h1{font-size:29px}.stampoz-editor-product .shop-detail-section{padding-top:20px!important}}
@media(max-width:700px){
 .stampoz-editor{border-radius:12px;margin:16px 0}.stampoz-editor-view{position:sticky;top:0;z-index:3;padding:12px;background:#f4f8fb;box-shadow:0 3px 12px #14243b12;border-radius:12px}
 .stampoz-preview-heading{margin-bottom:9px}.stampoz-preview-heading h2{font-size:16px;margin:0}.stampoz-live-badge,.stampoz-preview-heading p{display:none}
 .stampoz-editor-view>strong{font-size:10px;padding:3px 7px;margin-bottom:9px}.stampoz-editor-paper{min-height:80px;padding:10px 3px 0;border-radius:7px}.stampoz-editor-ruler{height:25px}
 .stampoz-editor-caption{font-size:10px!important;margin:8px 0!important;line-height:1.4!important}.stampoz-editor-view>.stampoz-editor-check{display:none!important}.stampoz-editor-view>.stampoz-scale-toggle{display:flex!important;font-size:11px!important;margin:7px 0!important}
 .stampoz-editor-status{padding:7px 9px;margin-top:7px;max-height:72px;overflow:auto}.stampoz-editor-status strong,.stampoz-editor-status p{font-size:11px!important}
 .stampoz-editor-fields{padding:18px;gap:16px;grid-template-columns:1fr}.stampoz-editor-fields label{grid-column:1/-1}.stampoz-fields-heading h2{font-size:21px}.stampoz-editor-fields input,.stampoz-editor-fields textarea,.stampoz-editor-fields select{font-size:16px}
}

/* Constrain the workbench inside themes that make product galleries flex containers. */
.stampoz-preview-docked>.stampoz-editor-view{width:100%;min-width:0}

/* The theme's hidden-overflow wrapper otherwise disables sticky previews. */
body.stampoz-editor-product{overflow-x:clip}
.stampoz-editor-product .site{overflow:clip!important}
@media(max-width:700px){
 .stampoz-editor-product .stampoz-editor-view{top:86px}
 .stampoz-editor-view .stampoz-preview-heading,.stampoz-editor-view .stampoz-editor-caption{display:none}
 .stampoz-editor-view>strong:after{content:" · enlarged preview";font-weight:400;color:#61768a}
 .stampoz-editor-view>.stampoz-scale-toggle{margin:5px 0!important}
 .stampoz-editor-status{padding:5px 8px;margin-top:5px}
 .stampoz-editor-fields input,.stampoz-editor-fields textarea,.stampoz-editor-fields select{scroll-margin-top:420px}
}

/* Hide legacy gallery thumbnails while the impression editor is active. */
.stampoz-live-gallery>.flex-viewport,.stampoz-live-gallery>.flex-control-nav{display:none!important}
.stampoz-editor-product .stampoz-stamp-production-fields{padding:18px 22px!important;border:1px solid #dbe4ec!important;border-radius:12px!important;background:#fff!important;margin:20px 0!important}
.stampoz-editor-product .stampoz-stamp-production-fields h3{font:650 18px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;margin:0 0 12px!important;color:#203e55}
.stampoz-editor-product .stampoz-stamp-production-fields select{width:100%;min-height:44px;border:1px solid #c8d5df!important;border-radius:7px;padding:9px 12px!important;font-size:15px}
.stampoz-editor-product .stampoz-stamp-production-fields p{margin:10px 0!important;font-size:12px!important;line-height:1.5!important}
.stampoz-editor-product .stampoz-stamp-production-fields [hidden]{display:none!important}
.stampoz-editor-product .stampoz-proof-approval label{font-size:12px!important;line-height:1.6!important;font-weight:400!important}
/* Shared Maker: the same workbench, with a clear template chooser. */
body.stampoz-editor-maker-page{overflow-x:clip}
.stampoz-editor-maker-page .site{overflow:clip!important}
.stampoz-shared-maker{display:block!important;overflow:visible!important;max-width:1220px!important;margin:30px auto 50px!important;padding:26px!important;border:0!important;background:#fff!important;box-shadow:none!important}
.stampoz-studio-intro{margin:0 0 28px}.stampoz-studio-intro>span{font-size:11px;font-weight:700;letter-spacing:1.8px;color:#487189}.stampoz-studio-intro h1{font-size:38px;line-height:1.15;letter-spacing:-1px;margin:9px 0 12px}.stampoz-studio-intro p{font-size:15px;color:#61768a;margin:0}
.stampoz-shared-maker>label{display:block!important;font-size:12px;font-weight:650;color:#203e55;margin-bottom:24px}
.stampoz-shared-maker>label select{display:block;width:100%;min-height:50px;margin-top:9px;padding:12px 14px;border:1px solid #bdcedc;border-radius:9px;background:#f8fbfd;font-size:16px;color:#19374c}
.stampoz-shared-maker>.stampoz-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start;border:0;background:transparent}
.stampoz-shared-maker .stampoz-editor-view{position:sticky;top:105px;border:1px solid #dbe4ec;min-width:0}
.stampoz-shared-maker .stampoz-editor-fields{border:1px solid #dbe4ec;border-radius:16px;background:white}
.stampoz-shared-maker>button{display:block!important;width:100%;padding:16px 22px;border:0;border-radius:9px;background:#216e9e;color:#fff;font-size:16px;font-weight:650;cursor:pointer}
.stampoz-shared-maker>button[hidden]{display:none!important}
.stampoz-shared-maker>button:disabled{opacity:.45;cursor:not-allowed}.stampoz-shared-maker>p[role="status"]{font-size:12px;color:#61768a;margin:15px 0}
@media(max-width:999px){.stampoz-shared-maker>.stampoz-editor{display:block}.stampoz-shared-maker .stampoz-editor-view{position:sticky;top:86px;z-index:3}}
@media(max-width:700px){.stampoz-shared-maker{padding:0 15px!important;margin:25px auto!important}.stampoz-studio-intro h1{font-size:30px}.stampoz-studio-intro p{font-size:14px}.stampoz-shared-maker .stampoz-editor-fields{border:0}}

/* Catalogue previews share a consistent canvas without stretching the impression. */
.stampoz-template-card{position:relative;display:flex;align-items:center;justify-content:center;height:190px;margin:0 0 12px;padding:18px 16px 35px;background:#f5f8fb;border:1px solid #e0e8ef;border-radius:12px}
.stampoz-template-card svg{display:block;width:auto;height:auto;max-width:100%;max-height:135px;margin:auto;background:white;box-shadow:0 1px 6px #223c5110}
.stampoz-template-card:after{content:attr(data-dimensions);position:absolute;bottom:9px;left:0;right:0;text-align:center;font:11px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#536f82;letter-spacing:.3px}

/* Accessible, zoomable view of the same live artwork. No effect on saved geometry. */
.stampoz-preview-button{appearance:none!important;min-height:44px;padding:10px 16px!important;border:1px solid #216e9e!important;border-radius:8px!important;background:#216e9e!important;color:#fff!important;font:600 15px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;cursor:pointer;touch-action:manipulation}
.stampoz-preview-button:focus-visible{outline:3px solid #efab32!important;outline-offset:3px}
.stampoz-preview-button:disabled{opacity:.45;cursor:default}
.stampoz-preview-button[hidden]{display:none!important}
.stampoz-editor-view>.stampoz-preview-button,.stampoz-review-preview{width:100%;margin-top:12px;grid-column:1/-1}
.stampoz-product-preview-link{display:block;margin:12px 0 20px}
body.stampoz-preview-open{overflow:hidden!important}
.stampoz-preview-dialog{box-sizing:border-box;width:min(960px,96vw);max-width:96vw;max-height:94vh;max-height:94dvh;padding:20px;border:0;border-radius:14px;background:#fff;color:#152b3e;box-shadow:0 10px 60px #0005;font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.stampoz-preview-dialog[open]{display:flex;flex-direction:column;gap:12px;overflow:auto}
.stampoz-preview-dialog::backdrop{background:#112638cc}
.stampoz-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none}
.stampoz-preview-toolbar strong{font-size:18px}
.stampoz-preview-info{margin:0!important;font:13px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;color:#435f72}
.stampoz-preview-zoom{display:flex;align-items:center;gap:10px;flex:none}
.stampoz-preview-zoom output{min-width:50px;text-align:center;font-weight:600}
.stampoz-preview-scroll{overflow:auto;min-height:120px;max-height:56vh;max-height:56dvh;padding:16px;background:#edf2f6;border:1px solid #d9e3eb;border-radius:8px;flex:1 1 auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.stampoz-preview-large-art{background:#fff;line-height:0;flex:none;max-width:none;box-shadow:0 0 0 1px #98aabd}
.stampoz-preview-large-art svg{display:block;width:100%;height:100%;max-width:none}
@media(max-width:700px){
 .stampoz-editor-product .stampoz-editor-view,.stampoz-shared-maker .stampoz-editor-view{position:relative;top:auto;z-index:auto}
 .stampoz-editor-fields input,.stampoz-editor-fields textarea,.stampoz-editor-fields select{scroll-margin-top:110px}
 .stampoz-preview-dialog{width:100vw;max-width:100vw;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;margin:0;padding:16px;padding-bottom:max(16px,env(safe-area-inset-bottom));border-radius:0}
 .stampoz-preview-scroll{max-height:none}
 .stampoz-preview-toolbar strong{font-size:16px}
}
