/* Keep the complete product and primary inputs inside the visible viewport. */
.zip-page .zip-preview-tools{border-top:1px solid #ffffff26;margin-top:8px;color:#d7ddcd}
.zip-preview-tools>summary{cursor:pointer;font-size:12px;font-weight:600;line-height:1.5;padding:10px 2px}
.zip-preview-tools-content{padding-bottom:4px}
.zip-preview-tools-content .sf-pan-tools{padding-top:5px}
.zip-preview-tools-content .zip-visual-caption{margin:6px 0;font-size:10px;line-height:1.6}
@media(min-width:1001px){
 .zip-page .zip-visual.zip-sticky-preview{position:sticky;top:var(--zip-preview-top,106px);height:calc(100dvh - var(--zip-preview-top,106px) - 12px);max-height:1100px;display:grid;grid-template-rows:auto minmax(160px,1fr) auto auto auto;align-content:stretch;overflow:visible}
 .zip-sticky-preview>.zip-visual-heading{grid-row:1;padding-top:8px}
 .zip-page .zip-sticky-preview>.zip-scene-shell{grid-row:2;height:auto;min-height:160px;margin-top:9px}
 .zip-sticky-preview>.zip-quick-size{grid-row:3}
 .zip-sticky-preview>.zip-live-quote{grid-row:4;padding-block:8px}
 .zip-sticky-preview>.zip-preview-tools{grid-row:5;margin-top:0}
 .zip-sticky-preview>.zip-preview-tools>summary{padding-block:7px}
 .sf-friendly-page .zip-sticky-preview>.zip-quick-size{padding-block:10px 7px;margin-block:8px}
 .sf-friendly-page .zip-sticky-preview .zip-quick-size .zip-help{margin-block:4px 8px}
 .zip-sticky-preview .zip-live-quote strong{font-size:23px}
}
@media(min-width:1001px) and (max-height:760px){
 .zip-sticky-preview>.zip-visual-heading{padding-top:2px}
 .sf-friendly-page .zip-sticky-preview>.zip-quick-size{padding-block:7px 4px;margin-block:6px}
 .zip-sticky-preview .zip-quick-heading{margin-bottom:4px}
 .sf-friendly-page .zip-sticky-preview .zip-quick-size .zip-help{display:none}
 .sf-friendly-page .zip-sticky-preview .zip-quick-size input[type=number]{min-height:38px;padding-block:6px;font-size:16px}
 .sf-friendly-page .zip-sticky-preview .zip-quick-size .zip-dimension-result{margin-top:6px}
 .zip-sticky-preview>.zip-live-quote{padding-block:5px}
 .zip-sticky-preview .zip-live-quote strong{font-size:21px}
 .zip-sticky-preview>.zip-preview-tools>summary{padding-block:5px}
}
@media(max-width:1000px){.zip-page .zip-visual.zip-sticky-preview{position:static;height:auto;display:block}}

/* Reserve the space for the product; dimensions occupy one compact dock. */
@media(min-width:1001px){
 .sf-friendly-page .zip-sticky-preview>.zip-quick-size{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:9px 0 5px;margin:7px 0}
 .zip-sticky-preview .zip-quick-size>.zip-input-row{grid-column:1/-1;grid-row:1}
 .zip-sticky-preview .zip-quick-heading{grid-column:2;grid-row:2;margin:0;gap:10px;flex-wrap:nowrap}
 .zip-sticky-preview .zip-quick-heading h2{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .sf-friendly-page .zip-sticky-preview .zip-quick-size>.zip-help{display:none}
 .sf-friendly-page .zip-sticky-preview .zip-quick-size>.zip-dimension-result{grid-column:1;grid-row:2;margin:0;align-self:center;justify-content:flex-start;gap:10px;font-size:10px}
 .zip-sticky-preview .zip-quick-heading .pg-entry{font-size:10px!important;min-height:28px!important;padding:5px 7px!important}
 .zip-sticky-preview .zip-quick-heading>a{font-size:10px}
 .sf-friendly-page .zip-sticky-preview .zip-quick-size input[type=number]{min-height:42px;padding-block:8px;font-size:18px}
 .zip-sticky-preview>.zip-visual-heading{padding-top:4px}
 .zip-sticky-preview>.zip-live-quote{padding-block:5px}
 .zip-page .zip-sticky-preview>.zip-scene-shell{min-height:240px}
 .zip-page .zip-visual.zip-sticky-preview{grid-template-rows:auto minmax(240px,1fr) auto auto auto}
}
@media(min-width:1001px) and (max-width:1250px){.zip-sticky-preview .zip-quick-heading .pg-entry{max-width:115px}.zip-sticky-preview .zip-quick-size>.zip-dimension-result>span:first-child{display:none}}

/* The image has its own stable, tall frame. Form height never squeezes it. */
@media(min-width:1001px){
 .zip-page .zip-visual.zip-sticky-preview{display:block;height:auto;max-height:none;top:var(--zip-preview-top,106px)}
 .zip-page .zip-sticky-preview>.zip-scene-shell{width:min(73.333333%,calc((100dvh - var(--zip-preview-top,106px) - 72px) * .88));aspect-ratio:1.2;height:auto;min-height:0;max-height:none;margin:9px auto 0}
 .zip-page .zip-visual.zip-sticky-preview.is-editing-dimensions{position:relative;top:auto}
 .zip-sticky-preview>.zip-visual-heading{padding-top:4px}
}
@media(max-width:1000px){.zip-page .zip-scene-shell{height:auto;aspect-ratio:1.2;min-height:360px}}

/* The default preview fills its column; the inspection dialog uses the whole window. */
@media(min-width:1001px){.zip-page .zip-sticky-preview>.zip-scene-shell{width:100%;aspect-ratio:1.25;height:auto;margin-inline:0}}
.zip-page .zip-scene-shell.sf-controlled-scene{grid-template-columns:56px minmax(0,1fr) 42px;border-radius:16px}
.zip-page .zip-scene-shell .zip-views{padding:8px 3px}
.zip-page .zip-scene-shell .zip-views button{font-size:10px;padding-inline:1px}
.zip-page .zip-visual-heading{gap:12px;align-items:center}
.zip-page .zip-visual-heading>span{margin-left:auto}
.zip-expand-preview{display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:34px;padding:7px 11px;border:1px solid #69765d;border-bottom-width:3px;border-radius:9px;background:#2b3323;color:#eef3e6;font:650 12px/1.4 Arial,sans-serif;cursor:pointer}
.zip-expand-preview:hover{border-color:#ffad55;color:#ffbd75}
.zip-preview-fullscreen{box-sizing:border-box;inset:0;margin:0;max-width:none;max-height:none;width:100vw;height:100dvh;padding:0;border:0;background:#10140f;color:#f2f4eb;overflow:hidden}
.zip-preview-fullscreen[open]{display:flex;flex-direction:column}
.zip-preview-fullscreen::backdrop{background:#000d}
.zip-fullscreen-header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px;border-bottom:1px solid #414b36}
.zip-fullscreen-header h2{font-size:18px;line-height:1.4;margin:0;font-weight:650}
.zip-fullscreen-header button{padding:9px 15px;border:1px solid #758366;border-radius:9px;background:#293322;color:#f2f4eb;font:650 14px/1.4 Arial,sans-serif;cursor:pointer}
.zip-fullscreen-body{flex:1;min-height:0;padding:12px;display:flex;justify-content:center;align-items:stretch}
.zip-page .zip-fullscreen-body>.zip-scene-shell{margin:0;width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto;flex:1;grid-template-columns:74px minmax(0,1fr) 58px}
.zip-preview-fullscreen .zip-stage{min-height:0}
@media(max-width:540px){.zip-expand-preview{font-size:10px;padding:6px 8px}.zip-fullscreen-header{padding:9px 12px}.zip-fullscreen-header h2{font-size:15px}.zip-fullscreen-body{padding:6px}.zip-page .zip-fullscreen-body>.zip-scene-shell{grid-template-columns:54px minmax(0,1fr) 42px}}

/* Primary dimensions stay above the image and remain immediately reachable. */
.zip-page .zip-sticky-preview>.zip-quick-size{border-top:0;border-bottom:1px solid #ffffff26;margin:0 0 10px;padding:8px 0 10px}
@media(min-width:1001px){.sf-friendly-page .zip-sticky-preview>.zip-quick-size{margin:0 0 10px;padding:8px 0 10px}.zip-page .zip-sticky-preview>.zip-scene-shell{margin-top:0}}

/* Independently scroll the preview column without moving the configuration. */
@media(min-width:1001px){
 .zip-page .zip-visual.zip-sticky-preview{max-height:calc(100dvh - var(--zip-preview-top,106px) - 12px);overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#758366 #171b14;scrollbar-gutter:stable;padding-right:8px}
 .zip-page .zip-visual.zip-sticky-preview::-webkit-scrollbar{width:7px}
 .zip-page .zip-visual.zip-sticky-preview::-webkit-scrollbar-track{background:#171b14;border-radius:8px}
 .zip-page .zip-visual.zip-sticky-preview::-webkit-scrollbar-thumb{background:#758366;border-radius:8px}
}
