html body .product-image-viewer{width:min(1100px,calc(100vw - 32px));height:min(820px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--admin-border,#ddd);border-radius:18px;background:var(--theme-background,#fff);color:var(--theme-font,#26364b);overflow:hidden}
.product-image-viewer[open]{display:flex;flex-direction:column}.product-image-viewer:not([open]){display:none}.product-image-viewer::backdrop{background:#11121bb8;backdrop-filter:blur(5px)}
.product-view-toolbar{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--admin-border,#ddd);gap:12px;flex:none}.product-view-toolbar>div{display:flex;gap:8px;align-items:center}.product-image-viewer button{padding:10px 14px;min-height:40px;border:1px solid var(--admin-border,#ddd);border-radius:10px;background:var(--theme-background,#fff);color:inherit;font:inherit;font-size:13px;cursor:pointer}.product-view-toolbar output{min-width:48px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums}.product-image-viewer [data-view-close]{font-size:23px;padding:3px 12px}.product-image-viewer button:disabled{opacity:.5;cursor:default}
.product-view-viewport{flex:1;min-height:0;overflow:auto;cursor:grab;background:color-mix(in srgb,var(--theme-primary,#57528f) 5%,var(--theme-background,#fff));overscroll-behavior:contain}.product-view-viewport.dragging{cursor:grabbing}.product-view-stage{display:grid;place-items:center;min-width:100%;min-height:100%}.product-view-stage img{display:block;max-width:none!important;max-height:none!important;object-fit:contain;user-select:none}.product-image-viewer footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border-top:1px solid var(--admin-border,#ddd);flex:none}.product-image-viewer footer>div{display:flex;flex-wrap:wrap;gap:10px}.product-image-viewer [data-view-status]{flex:1;min-width:0;margin:0;font-size:12px;line-height:1.6}.product-image-viewer [data-view-save]{background:var(--theme-button,var(--theme-primary,#57528f));color:var(--theme-button-text,#fff)}
@media(max-width:600px){html body .product-image-viewer{width:calc(100vw - 16px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);border-radius:14px}.product-view-toolbar{padding:10px;gap:6px}.product-view-toolbar>div{gap:4px}.product-view-toolbar button{padding:8px 10px}.product-image-viewer footer{display:grid;padding:12px;gap:10px}.product-image-viewer footer>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.product-image-viewer footer button{padding:10px 6px;font-size:11px}}
