/* Keep the whole action label readable next to the side silhouette. */
.viewport #stage-state-toggle{width:150px!important;min-width:150px!important;max-width:calc(100% - 24px)!important}
.viewport #stage-state-toggle .stage-action-label{flex:0 0 auto!important;font-size:14px!important;overflow:visible!important;text-overflow:clip!important}
.viewport.render-unavailable .stage-toolbar,.viewport.render-unavailable #stage-state-toggle,.viewport.render-unavailable .stage-dimensions-toggle{display:none!important}
.static-product-preview{position:absolute;inset:12px 12px 205px;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.static-product-preview img{width:100%;height:calc(100% - 48px);min-height:0;object-fit:contain;display:block}
.static-product-preview figcaption{max-width:56ch;font-size:14px;line-height:1.5;text-align:center;padding:8px 12px;color:#40474d}
.render-unavailable #loading{z-index:3;font-size:14px;line-height:1.5}
.render-unavailable #loading strong{font-size:16px}
@media(max-width:700px){.viewport #stage-state-toggle{width:140px!important;min-width:140px!important}.static-product-preview{inset:6px 6px 180px}.static-product-preview figcaption{font-size:14px;padding:4px}.render-unavailable #loading{padding:12px;bottom:8px}.render-unavailable #loading span{font-size:14px}}

.render-unavailable ~ .stage-identity p{display:none}

.product-stage:has(.render-unavailable) .stage-caption span{display:none}
.viewport.render-unavailable{min-height:540px!important}
.static-product-preview img{flex:1;min-height:0;height:0}
.static-product-preview figcaption{flex:0 0 auto}
@media(max-width:700px){.viewport.render-unavailable{min-height:460px!important}.static-product-preview{bottom:190px}}
