.h5-product-summary,.h5-product-title,.h5-preview-tools{display:none}
.h5-customizer-sheet[open]{display:flex;flex-direction:column;position:fixed;inset:auto 0 0;width:min(100%,600px);max-width:100%;max-height:90dvh;margin:0 auto;padding:0;border:1px solid #e5d2b8;border-radius:24px 24px 0 0;background:#fffcf6;color:#453120;box-sizing:border-box;z-index:2000}
.h5-customizer-sheet::backdrop{background:#21190f77}
.h5-customizer-sheet>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #e9dfd0;flex:none}
.h5-customizer-sheet h2{font-size:20px;margin:0}
.h5-customizer-sheet button{min-height:44px;font:inherit;color:inherit;border:1px solid #dfc8a8;background:#fffaf2;border-radius:12px;padding:10px 14px;cursor:pointer}
.h5-sheet-content{padding:16px;overflow-y:auto;overscroll-behavior:contain;min-height:0}
.h5-sheet-content fieldset{border:0;margin:0;padding:0;display:grid;gap:10px}
.h5-sheet-content fieldset button{text-align:left;white-space:normal;overflow-wrap:anywhere}
.h5-sheet-content button[aria-pressed=true]{border-color:#ba8b41;background:#fff0d7}
.h5-customizer-sheet>footer{padding:12px 16px calc(12px + env(safe-area-inset-bottom));flex:none}
.h5-customizer-sheet>footer button{width:100%;background:#825c32;color:#fff}
html.h5-sheet-open,html.h5-sheet-open body{overflow:hidden!important;overscroll-behavior:none}
@media(max-width:850px){
 body.h5-workspace.h5-customizing{background:#faf7f1;color:#423121}
 body.h5-workspace.h5-customizing .app-shell{padding:0 14px calc(100px + env(safe-area-inset-bottom))!important;gap:10px!important}
 body.h5-workspace.h5-customizing .topbar{margin:0!important;padding:12px 0!important;min-height:62px!important;gap:8px!important}
 body.h5-workspace.h5-customizing .brand-logo{max-width:126px!important}
 body.h5-workspace.h5-customizing .account-center{min-width:44px!important;width:auto!important;padding:4px!important;border:0!important;background:transparent!important;box-shadow:none!important}
 body.h5-workspace.h5-customizing .account-center .account-info,body.h5-workspace.h5-customizing .account-center .account-name,body.h5-workspace.h5-customizing .cloud-mobile-entry,body.h5-workspace.h5-customizing .gift-engine-entry{display:none!important}
 body.h5-workspace.h5-customizing .preview-band{display:block!important;padding:0!important;border:0!important;background:none!important}
 body.h5-workspace.h5-customizing .product-preview{display:flex!important;flex-direction:column;gap:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
 body.h5-workspace.h5-customizing .h5-product-tools,body.h5-workspace.h5-customizing .preview-controls,body.h5-workspace.h5-customizing .workbench-preview-bottom,body.h5-workspace.h5-customizing .professional-settings,body.h5-workspace.h5-customizing .creator-intro{display:none!important}
 body.h5-workspace.h5-customizing .pc-product-selector{display:grid!important;grid-template-columns:minmax(0,1fr) 66px!important;gap:8px!important;width:100%!important;margin-bottom:12px!important}
 body.h5-workspace.h5-customizing .pc-product-selector>h2{display:block!important;position:static!important;grid-column:1/-1;width:auto!important;height:auto!important;clip-path:none!important;border:0!important;padding:0!important;margin:0 0 2px!important;font-size:16px!important}
 body.h5-workspace.h5-customizing .pc-product-options{display:flex!important;gap:6px!important;padding:0!important;overflow-x:auto!important;min-width:0;scrollbar-width:none}
 body.h5-workspace.h5-customizing .pc-product-option{flex:1 0 58px!important;min-width:58px!important;height:auto!important;min-height:82px!important;display:flex!important;flex-direction:column!important;gap:4px!important;padding:8px 3px!important;border:1px solid #eee5d8!important;border-radius:14px!important;white-space:normal!important;background:#fffaf4!important}
 body.h5-workspace.h5-customizing .pc-product-option[aria-pressed=true]{border-color:#dba747!important;background:#fff0d7!important}
 body.h5-workspace.h5-customizing .pc-product-option img{width:32px!important;height:32px!important;flex:none!important}
 body.h5-workspace.h5-customizing .pc-product-name{font-size:14px!important;line-height:1.3!important;white-space:normal!important;overflow-wrap:anywhere!important;display:block!important;text-align:center!important}
 body.h5-workspace.h5-customizing .pc-product-option small,body.h5-workspace.h5-customizing .pc-product-selected{display:none!important}
 body.h5-workspace.h5-customizing .pc-product-all{grid-column:2;grid-row:2;min-width:0!important;white-space:normal!important;flex-direction:column;border-radius:14px!important;font-size:13px!important;padding:6px 2px!important;position:relative;gap:3px!important}
 body.h5-workspace.h5-customizing .pc-product-all::before{content:'▦';font-size:32px;line-height:34px;color:#b58b48}
 body.h5-workspace.h5-customizing .pc-product-count{position:absolute;right:4px;top:3px;background:#f8e9cd;border-radius:8px;padding:0 3px;font-size:10px}
 body.h5-workspace.h5-customizing .h5-product-title{display:block;margin:0 0 10px;font-size:22px;line-height:1.35}
 body.h5-workspace.h5-customizing #frameStage{width:100%!important;height:clamp(260px,43svh,420px)!important;min-height:260px!important;margin:0!important;border-radius:20px 20px 0 0!important;background:#f1ece3!important;overflow:hidden!important}
 body.h5-workspace.h5-customizing #frameStage .mug-view-switch{display:none!important}
 body.h5-workspace.h5-customizing .h5-preview-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:12px 6px 16px;background:#f1ece3;border-radius:0 0 20px 20px;margin:0;gap:4px}
 .h5-preview-tools button{display:flex;flex-direction:column;align-items:center;gap:8px;min-height:84px;min-width:0;border:0;background:none;color:#453120;font:inherit;font-size:15px;line-height:1.3;padding:0 2px;cursor:pointer}
 .h5-preview-tools button>span{width:48px;height:48px;display:grid;place-items:center;border:1px solid #fffaf2;border-radius:50%;background:#fffaf5;box-shadow:0 4px 12px #6b4a1510}
 .h5-preview-tools button[aria-pressed=true]>span{background:#f9e4b7;box-shadow:0 0 0 2px #fffaf6}
 .h5-preview-tools img{width:26px;height:26px}
 body.h5-workspace.h5-customizing .h5-product-summary:not([hidden]){display:grid;gap:10px;margin:12px 0 0;padding-bottom:12px}
 .h5-product-summary button,.h5-product-summary a{font:inherit;min-height:44px;box-sizing:border-box;cursor:pointer}
 .h5-spec-entry,.h5-artwork-entry,.h5-settings-entry,.h5-next-entry{border:1px solid #ddc4a3;background:#fffcf7;border-radius:15px;color:#473322;display:flex;align-items:center;gap:10px;padding:10px 12px;min-width:0;width:100%;text-align:left}
 .h5-spec-entry{flex-wrap:wrap}
 .h5-spec-entry>span{font-size:14px}.h5-spec-entry strong{font-size:14px;flex:1;min-width:60px;font-weight:400;overflow-wrap:anywhere}
 .h5-spec-entry b{font-size:14px;border-radius:24px;padding:10px 12px;background:#825c32;color:#fff;font-weight:600;margin-left:auto}
 .h5-artwork-entry img{width:56px;height:64px;object-fit:contain;border-radius:9px;flex:none;background:#f0e9dd}
 .h5-artwork-entry>div{flex:1;min-width:0}.h5-artwork-entry strong{display:block;font-size:16px;line-height:1.5}
 .h5-artwork-entry [data-change-photo],.h5-artwork-entry a{display:inline-flex;align-items:center;padding:0 6px 0 0;border:0;background:transparent;font-size:14px;color:#7c6146;text-decoration:none}
 .h5-artwork-entry [data-edit-artwork]{border:0;border-radius:24px;padding:10px 12px;background:#825c32;color:#fff;max-width:90px;flex:none}
 .h5-settings-entry{justify-content:space-between;font-size:16px;min-height:52px!important}
 .h5-next-entry>div{flex:1;min-width:0}.h5-next-entry strong{font-size:23px;display:block}.h5-next-entry small{display:block;color:#8b7965;font-size:12px;line-height:1.6;margin-top:3px}
 .h5-next-entry button{flex:1;max-width:190px;border:0;border-radius:13px;background:linear-gradient(110deg,#f8dd9a,#f3c96c);padding:12px 10px;color:#4b321a;font-weight:700;font-size:16px;min-height:50px}
 [data-customizer-status]:empty{display:none}[data-customizer-status]{font-size:14px;color:#886840;margin:0;line-height:1.6}
 body.h5-workspace.h5-customizing .app-shell>.editor{display:none!important}
 body.h5-workspace.h5-customizing .h5-customizer-sheet .editor{display:block!important;width:100%!important;padding:0!important;overflow:visible!important;background:none!important;border:0!important;height:auto!important;max-height:none!important}
 body.h5-workspace.h5-customizing .h5-customizer-sheet .editor>*{margin:0 0 12px!important;max-width:100%;box-sizing:border-box}
 body.h5-workspace.h5-customizing:not([data-h5-product=frame]):not([data-h5-product=puzzleLamp]) .h5-customizer-sheet .editor>:not(.h5-active-editor){display:none!important}
 body.h5-workspace.h5-customizing .h5-customizer-sheet .h5-active-editor{display:grid!important;gap:12px!important;background:transparent!important;border:0!important;padding:0!important}
 .h5-customizer-sheet[data-mode=edit] #orderPanel,.h5-customizer-sheet[data-mode=edit] .h5-delivery-control,.h5-customizer-sheet[data-mode=edit] #aiImageCreationPanel{display:none!important}
 .h5-customizer-sheet[data-mode=checkout] .h5-active-editor>:not(.h5-delivery-control){display:none!important}
 .h5-customizer-sheet[data-mode=checkout] #orderPanel{display:block!important;padding:0!important;border:0!important}
 .h5-customizer-sheet[data-mode=checkout] #submitOrder{display:none!important}
 .h5-customizer-sheet input,.h5-customizer-sheet textarea,.h5-customizer-sheet select{max-width:100%;box-sizing:border-box;font-size:16px;min-height:44px}
 .h5-customizer-sheet [hidden],.h5-product-summary [hidden]{display:none!important}
 body.h5-workspace.h5-customizing[data-h5-mode=workbench] .h5-bottom-nav{display:flex}
 body.proof-review-mode .h5-bottom-nav{display:none!important}
 body.h5-workspace.h5-customizing .site-record-footer{display:none!important}
}

@media(max-width:850px){
body.h5-workspace.h5-customizing .preview-caption{display:none!important}
body.h5-workspace.h5-customizing .h5-preview-tools{width:100%!important;box-sizing:border-box;align-self:stretch!important}
body.h5-workspace.h5-customizing .h5-product-title{align-self:stretch;text-align:left!important}
body.h5-workspace.h5-customizing .pc-product-label{flex:none!important;width:100%!important;max-width:none!important;min-width:0!important}
body.h5-workspace.h5-customizing .pc-product-name{width:100%!important;max-width:none!important;white-space:normal!important;overflow:visible!important}
body.h5-workspace.h5-customizing .user-card{min-width:44px!important;width:44px!important;padding:5px!important;background:#f2e4d0!important;border:0!important;box-shadow:none!important;border-radius:50%!important}
body.h5-workspace.h5-customizing .user-card .user-meta,body.h5-workspace.h5-customizing .user-menu-caret{display:none!important}
body.h5-workspace.h5-customizing .user-menu-shell{order:2}
body.h5-workspace.h5-customizing .status-strip{gap:8px!important}
body.h5-workspace.h5-customizing .logo-shine img{width:120px!important}
body.h5-workspace.h5-customizing .product-preview.pc-product-layout{align-items:stretch!important}
body.h5-workspace.h5-customizing #frameStage{height:clamp(260px,43svh,420px)!important;min-height:260px!important;max-height:420px!important}
body.h5-workspace.h5-customizing .pc-product-all::before{content:'';width:30px;height:30px;background:linear-gradient(#bd975d,#bd975d) 0 0/12px 12px no-repeat,linear-gradient(#bd975d,#bd975d) 100% 0/12px 12px no-repeat,linear-gradient(#bd975d,#bd975d) 0 100%/12px 12px no-repeat,linear-gradient(#bd975d,#bd975d) 100% 100%/12px 12px no-repeat}
}
.h5-preview-extras{display:none}
@media(max-width:850px){body.h5-workspace.h5-customizing .h5-preview-extras{display:flex;flex-wrap:wrap;gap:8px;background:#f1ece3;padding:0 10px 4px}.h5-preview-extras button{font:inherit;font-size:13px;min-height:44px;border:1px solid #d8bd90;border-radius:24px;padding:8px 12px;background:#fff9ed;color:#6d4d2b}}
@media(max-width:850px){body.h5-frame-order .h5-product-title,body.h5-frame-order .h5-preview-tools,body.h5-frame-order .h5-preview-extras{display:none!important}.h5-customizer-sheet[data-mode=legacy-proof] label{display:flex;align-items:center;gap:8px;min-height:48px;font-size:15px}.h5-customizer-sheet[data-mode=legacy-proof] input{width:22px;height:22px;flex:none}}
/* Product-specific styles must not hide the shared theme browser after leaving customization. */
@media(max-width:850px){body.h5-workspace[data-h5-mode=themes] .editor>#aiImageCreationPanel{display:block!important}}
/* Product editors occupy their own page; preview stays visible while controls scroll. */
@media(max-width:850px){
 body.h5-workspace.h5-customizing .h5-customizer-sheet[data-mode=edit]{inset:0;margin:0;width:100%;height:100dvh;max-height:100dvh;max-width:none;border:0;border-radius:0;background:#222423;color:#f5f2e9;overflow:hidden;display:grid;grid-template-rows:auto minmax(150px,38dvh) minmax(0,1fr) auto}
 .h5-customizer-sheet[data-mode=edit]>header{padding:8px 14px;border-color:#41463c;gap:8px}
 .h5-customizer-sheet[data-mode=edit]>header h2{font-size:17px}
 .h5-customizer-sheet[data-mode=edit]>header button{color:#f5f2e9;background:transparent;border-color:#61665a;min-height:44px}
 .h5-edit-preview{display:flex;flex-direction:column;min-height:0;padding:6px 14px;overflow:hidden}
 .h5-edit-meta{font-size:13px;line-height:1.5;margin:0 0 8px;color:#d9ddce;flex:none}
 .h5-edit-canvas-space{flex:1;min-height:0;display:grid;place-items:center;position:relative;overflow:hidden}
 .h5-edit-canvas-space canvas{display:block;touch-action:none;max-width:100%;max-height:100%;border:1px solid #a68a4b;box-sizing:border-box;background:#30342c}
 .h5-edit-loading{position:absolute;inset:auto;margin:0;color:#ddd;font-size:13px;background:#222c;padding:8px}
 .h5-edit-gesture{font-size:12px;line-height:1.5;color:#c0c5b7;text-align:center;margin:7px 0 0;flex:none}
 .h5-customizer-sheet[data-mode=edit]>.h5-sheet-content{background:#2c3029;padding:12px 14px;overflow:auto;overscroll-behavior:contain;min-height:0;border-radius:16px 16px 0 0}
 body.h5-workspace.h5-customizing .h5-customizer-sheet[data-mode=edit] .editor,body.h5-workspace.h5-customizing .h5-customizer-sheet[data-mode=edit] .editor label,body.h5-workspace.h5-customizing .h5-customizer-sheet[data-mode=edit] .editor h3,body.h5-workspace.h5-customizing .h5-customizer-sheet[data-mode=edit] .editor p,body.h5-workspace.h5-customizing .h5-customizer-sheet[data-mode=edit] .editor small{color:#e4e6dd!important}
 .h5-customizer-sheet[data-mode=edit] input,.h5-customizer-sheet[data-mode=edit] select,.h5-customizer-sheet[data-mode=edit] textarea{accent-color:#edbd70}
 .h5-customizer-sheet[data-mode=edit] select,.h5-customizer-sheet[data-mode=edit] input:not([type=range]):not([type=checkbox]),.h5-customizer-sheet[data-mode=edit] textarea{background:#363c31!important;color:#f5f2e9!important;border-color:#666b5a!important}
 .h5-customizer-sheet[data-mode=edit] .editor button{background:#34392e;color:#f5f2e9;border-color:#626854;min-height:44px}
 .h5-customizer-sheet[data-mode=edit]>footer{padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:#222423;border-top:1px solid #41463c}
 .h5-customizer-sheet[data-mode=edit]>footer button{background:#edbd70;color:#30261a;border:0;border-radius:24px;min-height:46px;font-weight:700}
}
@media(max-width:850px) and (orientation:landscape) and (max-height:550px){
 body.h5-workspace.h5-customizing .h5-customizer-sheet[data-mode=edit]{grid-template-columns:minmax(0,1fr) minmax(260px,1fr);grid-template-rows:auto minmax(0,1fr) auto}
 .h5-customizer-sheet[data-mode=edit]>header,.h5-customizer-sheet[data-mode=edit]>footer{grid-column:1/-1}
 .h5-customizer-sheet[data-mode=edit] .h5-edit-preview{grid-column:1;grid-row:2}
 .h5-customizer-sheet[data-mode=edit]>.h5-sheet-content{grid-column:2;grid-row:2;border-radius:0}
}
/* Keep the native dialog closed state authoritative after returning to the product. */
.h5-customizer-sheet:not([open]){display:none!important}
