/* Scoped to the photo workspace: catalogue cards and other dialogs stay intact. */
#checkoutForm [hidden]{display:none!important}
body.qs-themed #productModal.has-photo-editor{width:min(1180px,calc(100% - 32px));max-width:1180px}
body.qs-themed #productModal.has-photo-editor .detail-grid{display:block}
body.qs-themed #productModal.has-photo-editor .detail-gallery{display:none}
body.qs-themed #productModal.has-photo-editor .detail-content{padding:24px 28px}
body.qs-themed #productModal.has-photo-editor .detail-copy{max-width:70ch}
body.qs-themed #productModal .design-studio{display:grid;grid-template-columns:minmax(0,1fr) 300px;margin-top:18px;border-radius:20px;background:#f5f7fa;border:1px solid #ccd5df;overflow:hidden}
body.qs-themed #productModal .design-studio .design-editor-header{grid-column:1/-1;background:linear-gradient(110deg,#f8fafc,#e6ebf1);padding:18px 22px}
body.qs-themed #productModal .design-studio .design-editor-header{flex-wrap:wrap;gap:10px;align-items:center}
body.qs-themed #productModal .design-studio .design-editor-header>div{flex:1 1 160px;min-width:0}
body.qs-themed #productModal .design-studio .design-editor-header .preview-badge{flex:none}
body.qs-themed #productModal .design-studio [data-draft-status]{flex:0 0 100%;order:4;width:100%;border-top:1px solid #d6dce4;padding-top:8px}
body.qs-themed #productModal .design-studio .design-editor-header strong{font-size:1.2rem}
body.qs-themed #productModal .studio-stage{min-width:0;padding:20px;align-self:start}
body.qs-themed #productModal .studio-preview-bar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;align-items:center;font-size:.85rem;font-weight:700;margin-bottom:14px}
body.qs-themed #productModal .studio-preview-bar label{display:flex;align-items:center;gap:8px;min-height:44px;font-weight:500;cursor:pointer}
body.qs-themed #productModal .studio-preview-bar input{width:18px;height:18px;accent-color:#315c79}
body.qs-themed #productModal .design-studio .design-canvas-wrap{margin:0;padding:24px;min-height:0;border-radius:14px;background-color:#e2e7ed;background-image:conic-gradient(#e0e6ed 25%,#f7f9fc 0 50%,#e0e6ed 0 75%,#f7f9fc 0);background-size:20px 20px;background-position:0 0}
body.qs-themed #productModal .studio-hint{font-size:.82rem;line-height:1.6;color:#526276;margin:12px 0}
body.qs-themed #productModal .studio-history{display:flex;flex-wrap:wrap;gap:8px}
body.qs-themed #productModal .studio-history button{min-height:44px;border:1px solid #c8d2df;border-radius:10px;background:white;color:#20334b;padding:8px 14px;font-weight:700}
body.qs-themed #productModal .studio-history button:disabled{opacity:.45;cursor:default}
body.qs-themed #productModal .design-studio .design-toolbox{background:#fff;border-left:1px solid #d6dee7;padding:20px;min-width:0}
body.qs-themed #productModal .studio-tools-heading{display:grid;gap:5px;margin-bottom:18px}
body.qs-themed #productModal .studio-tools-heading span{font-size:.78rem;color:#58697c}
body.qs-themed #productModal .design-studio .design-controls{grid-template-columns:1fr;gap:16px}
body.qs-themed #productModal .design-studio .control-card{padding:0;border:0;background:none;box-shadow:none}
body.qs-themed #productModal .design-studio .control-title{font-size:.85rem}
body.qs-themed #productModal .design-studio input[type=range]{min-height:32px}
body.qs-themed #productModal .design-studio .quick-actions{grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}
body.qs-themed #productModal .design-studio .quick-actions button{font-size:.8rem;min-height:44px}
body.qs-themed #productModal .design-studio .lock-card{padding:12px;min-height:68px;margin-bottom:16px}
body.qs-themed #productModal .design-studio .lock-card small{line-height:1.5}
body.qs-themed #productModal .design-studio .move-panel{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px;border-radius:12px;margin-bottom:16px}
body.qs-themed #productModal .design-studio .move-arrows{flex:none;display:grid;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,44px);gap:4px}
body.qs-themed #productModal .design-studio .move-arrows .up{grid-column:2;grid-row:1}
body.qs-themed #productModal .design-studio .move-arrows .left{grid-column:1;grid-row:2}
body.qs-themed #productModal .design-studio .move-arrows .down{grid-column:2;grid-row:2}
body.qs-themed #productModal .design-studio .move-arrows .right{grid-column:3;grid-row:2}
body.qs-themed #productModal .studio-help{font-size:.82rem;line-height:1.6;color:#536479;margin-bottom:16px}
body.qs-themed #productModal .studio-help summary{min-height:44px;display:list-item;align-content:center;cursor:pointer;color:#233851;font-weight:700}
body.qs-themed #productModal .design-studio .reset-design{width:100%;min-height:44px;background:#fff5f4;color:#9b3641;border-color:#e6bec4;border-radius:10px}
body.qs-themed #productModal .design-studio :is(button,input,summary,canvas):focus-visible{outline:3px solid #315c79;outline-offset:3px}
body.qs-themed #productModal.has-photo-editor .design-panel{background:transparent;padding:0;border:0;box-shadow:none}
@media(max-width:800px){
 body.qs-themed #productModal.has-photo-editor{width:calc(100% - 16px)}
 body.qs-themed #productModal.has-photo-editor .detail-content{padding:16px}
 body.qs-themed #productModal .design-studio{grid-template-columns:1fr}
 body.qs-themed #productModal .design-studio .design-editor-header{padding:16px;align-items:flex-start}
 body.qs-themed #productModal .design-studio .preview-badge{font-size:.65rem}
 body.qs-themed #productModal .studio-stage{padding:14px}
 body.qs-themed #productModal .design-studio .design-canvas-wrap{padding:16px}
 body.qs-themed #productModal .design-studio .design-toolbox{border-left:0;border-top:1px solid #d6dee7;padding:16px}
 body.qs-themed #productModal .design-studio .design-controls{grid-template-columns:1fr 1fr}
}
@media(prefers-reduced-motion:reduce){body.qs-themed #productModal .design-studio *{transition:none!important}}
