.custom-v2__heading{margin:0 0 12px;font-size:1.1rem}.custom-v2__notice{margin:8px 0;color:#a33}.custom-v2__layout{display:grid;gap:16px}.custom-v2__face{border:1px solid #ddd;border-radius:8px;padding:12px;margin-bottom:12px}.custom-v2__face h4{margin:0 0 8px}.custom-v2__dims{display:grid;grid-template-columns:1fr 1fr;gap:8px}.custom-v2__face label,.custom-v2__dialog label{display:block;margin:8px 0}.custom-v2__face input[type=number]{width:100%;padding:8px;border:1px solid #aaa;border-radius:4px}.custom-v2__thumb{display:block;width:80px;max-height:80px;object-fit:contain;margin:8px 0}.custom-v2__button{background:#191919;color:#fff;border:0;border-radius:4px;padding:11px 18px;cursor:pointer}.custom-v2__button:disabled{opacity:.45;cursor:not-allowed}.custom-v2__price{font-weight:600}.custom-v2__scene{position:relative;height:240px;perspective:500px;overflow:hidden;background:#f3f3f3;border-radius:8px}.custom-v2__surface{position:absolute;background-size:cover;background-position:center;border:1px solid #ccc;display:grid;place-items:center;color:#666}.custom-v2__surface span{background:#ffffffb5;padding:3px 6px}.custom-v2__surface--a{left:10%;top:6%;width:62%;height:59%}.custom-v2__surface--b{left:10%;top:65%;width:62%;height:29%;transform-origin:top;transform:skewX(-28deg)}.custom-v2__surface--c{left:72%;top:6%;width:22%;height:59%;transform-origin:left;transform:skewY(24deg)}.custom-v2__dialog{width:min(92vw,600px);max-height:90vh;overflow:auto;border:0;border-radius:8px;padding:20px}.custom-v2__dialog::backdrop{background:#0009}.custom-v2__dialog canvas{display:block;max-width:100%;max-height:46vh;margin:auto;background:#eee}.custom-v2__dialog input[type=range]{width:100%}.custom-v2__actions{display:flex;justify-content:flex-end;gap:12px;margin-top:16px}
theme-customization-v2[hidden],theme-customization-v2 [hidden]{display:none!important}.custom-v2__face input[type=number]{box-sizing:border-box}.custom-v2__face [data-crop-face]{padding:8px 12px;border:1px solid #777;border-radius:4px;background:#fff;cursor:pointer}
.custom-v2__faces--set-size .custom-v2__set-face{display:grid;grid-template-columns:minmax(64px,85px) minmax(0,1fr) minmax(56px,auto);gap:12px;align-items:center;margin:0;padding:10px 0;border:0;border-bottom:1px solid #dedbd3;border-radius:0}.custom-v2__set-icon{text-align:center;font-size:12px;line-height:1.3}.custom-v2__set-icon svg{display:block;width:100%;height:60px}.custom-v2__set-face .custom-v2__dims{min-width:0;gap:8px}.custom-v2__set-face label{min-width:0;margin:0;font-size:12px}.custom-v2__set-face input[type=number]{min-width:0;padding:8px 6px}.custom-v2__set-face-price{text-align:right;font-size:14px;font-weight:600;overflow-wrap:anywhere}@media(max-width:480px){.custom-v2__faces--set-size .custom-v2__set-face{grid-template-columns:56px minmax(0,1fr) minmax(48px,auto);gap:6px}.custom-v2__set-icon svg{height:48px}.custom-v2__set-face .custom-v2__dims{gap:4px}.custom-v2__set-face-price{font-size:12px}}
theme-product-detail[data-custom-pricing-state] .product-detail__price .product-price{display:none}.product-detail__custom-price[hidden]{display:none!important}
.custom-v2__dialog canvas{touch-action:none;cursor:grab}.custom-v2__dialog canvas:active{cursor:grabbing}
.custom-v2__dialog{box-sizing:border-box;width:min(96vw,910px);max-width:none;padding:0;background:#f5f7fb;color:#101b3a}.custom-v2__dialog-header{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid #d5dae3}.custom-v2__dialog-header h3{margin:0;font-size:16px}.custom-v2__dialog-header button{font-size:24px;border:0;background:none;cursor:pointer}.custom-v2__stage{margin:16px;background:#73777d;min-height:200px;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:10px}.custom-v2__image-wrap{position:relative;display:inline-flex;max-width:100%;overflow:hidden;line-height:0}.custom-v2__image-wrap>img{display:block;width:auto;height:auto;max-width:100%;max-height:55vh}.custom-v2__crop-frame{position:absolute;box-sizing:border-box;border:2px solid #fff;box-shadow:0 0 0 2000px #0008;cursor:move;touch-action:none}.custom-v2__image-choices{display:flex;gap:8px;overflow-x:auto;padding:0 16px 12px}.custom-v2__image-choice{flex:0 0 55px;width:55px;height:55px;padding:2px;border:1px solid #ccc;border-radius:5px;background:#fff}.custom-v2__image-choice[aria-pressed=true]{border:2px solid #14213d}.custom-v2__image-choice img{width:100%;height:100%;object-fit:cover}.custom-v2__controls{display:flex;flex-wrap:wrap;gap:12px;padding:0 16px}.custom-v2__controls label{flex:1 1 150px;font-size:12px}.custom-v2__actions{padding:16px;border-top:1px solid #d5dae3;margin:0}.custom-v2__actions [data-v2-cancel]{padding:10px 24px;border:0}.custom-v2__actions [data-v2-apply]{flex:1}.custom-v2__dialog [data-v2-dialog-error]{margin:0 16px;color:#a33}.custom-v2__dialog [data-v2-canvas][hidden]{display:none!important}@media(max-width:600px){.custom-v2__dialog{width:96vw;max-height:94vh}.custom-v2__stage{margin:8px;padding:5px}.custom-v2__image-wrap>img{max-height:42vh}.custom-v2__controls{gap:4px 12px}.custom-v2__controls label{flex-basis:110px}}
.custom-v2__image-wrap>img{max-height:40vh}@media(max-width:600px){.custom-v2__image-wrap>img{max-height:34vh}}

/* Custom size controls follow the product page's restrained form styling. */
.custom-v2__face{border-color:#dedbd3;border-radius:4px;padding:16px}.custom-v2__face h4{font-size:16px;line-height:1.4;font-weight:600}.custom-v2__dims{gap:12px}.custom-v2__face label{font-size:14px;margin:8px 0 12px}.custom-v2__face input[type=number]{display:block;margin-top:6px;min-height:44px;padding:10px 12px;border:1px solid #bdbab2;border-radius:0;background:transparent;color:inherit;font:inherit}.custom-v2__face input[type=number]:focus{outline:1px solid #191919;outline-offset:0}.custom-v2__face [data-crop-face]{min-height:42px;padding:10px 16px;border:1px solid #191919;border-radius:0;background:transparent;color:#191919;font:inherit;font-size:14px;cursor:pointer}.custom-v2__face [data-crop-face]:hover{background:#191919;color:#fff}.custom-v2__crop-size{position:absolute;top:6px;right:6px;max-width:calc(100% - 12px);padding:4px 6px;background:#191919c9;color:#fff;font-size:12px;line-height:1.2;white-space:nowrap;pointer-events:none}.custom-v2__crop-size:empty{display:none}

.custom-v2__image-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.custom-v2__image-row .custom-v2__thumb{width:64px;height:64px;max-height:64px;object-fit:contain;margin:0}

.custom-v2__face [data-change-face]{min-height:42px;padding:10px 16px;border:1px solid #191919;border-radius:0;background:transparent;color:#191919;font:inherit;font-size:14px;cursor:pointer}.custom-v2__face [data-change-face]:hover{background:#191919;color:#fff}

.custom-v2__dimension-help{display:block;margin:4px 0 12px;font-size:12px;line-height:1.4;font-weight:400;color:#666}.custom-v2__face input[aria-invalid=true]{border-color:#a33}

.custom-v2__faces--loading .custom-v2__face{position:relative;overflow:hidden}.custom-v2__faces--loading .custom-v2__face::before{content:"";position:absolute;inset:0;z-index:1;background:rgba(255,255,255,.72)}.custom-v2__faces--loading .custom-v2__face::after{content:"";position:absolute;z-index:2;left:50%;top:50%;width:28px;height:28px;margin:-14px 0 0 -14px;border:2px solid #c8c4bd;border-top-color:#191919;border-radius:50%;animation:custom-v2-spin .8s linear infinite;box-sizing:border-box}@keyframes custom-v2-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.custom-v2__faces--loading .custom-v2__face::after{animation-duration:1.8s}}

.custom-v2__price{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding-top:16px;border-top:1px solid #dedbd3;font-size:14px;font-weight:400}.custom-v2__price-value{font-size:16px;font-weight:600;text-align:right;overflow-wrap:anywhere}


/* Square scene preview: surfaces share edges and keep their own cropped image. */
.custom-v2__scene{width:100%;height:auto;aspect-ratio:1 / 1;perspective:none;background:transparent;isolation:isolate}
.custom-v2__surface{box-sizing:border-box;transform:none;border:0;background-color:#e9e9e7;background-size:cover;background-position:center}
.custom-v2__surface span{font-size:clamp(12px,3vw,16px);background:#ffffffe0}
.custom-v2__scene[data-scene-faces="two"] .custom-v2__surface--a{left:20%;top:10%;width:60%;height:48%;clip-path:none}
.custom-v2__scene[data-scene-faces="two"] .custom-v2__surface--b{left:6%;top:58%;width:88%;height:30%;clip-path:polygon(15.909% 0,84.091% 0,100% 100%,0 100%)}
.custom-v2__scene[data-scene-faces="three"] .custom-v2__surface--c{left:8%;top:14%;width:35%;height:55%;clip-path:polygon(0 0,100% 14.545%,100% 85.455%,0 100%)}
.custom-v2__scene[data-scene-faces="three"] .custom-v2__surface--a{left:43%;top:15%;width:49%;height:46%;clip-path:polygon(0 15.217%,100% 0,100% 100%,0 100%)}
.custom-v2__scene[data-scene-faces="three"] .custom-v2__surface--b{left:8%;top:61%;width:84%;height:29%;clip-path:polygon(0 27.586%,41.667% 0,100% 0,66.667% 100%)}

.custom-v2__surface--a{background-color:#e7e6e3}.custom-v2__surface--b{background-color:#f1f0ed}.custom-v2__surface--c{background-color:#d9d8d5}

.custom-v2__scene[data-projected="true"] .custom-v2__surface.custom-v2__surface{left:0;top:0;width:100%;height:100%;clip-path:none;transform-origin:0 0;background-size:100% 100%;backface-visibility:hidden}
.custom-v2__scene[data-projected="true"] .custom-v2__surface span{font-size:clamp(28px,7vw,40px)}

.custom-v2__scene-label{position:absolute;z-index:2;transform:translate(-50%,-50%);padding:3px 6px;background:#ffffffe0;color:#666;font-size:14px;line-height:1.2;pointer-events:none}
.custom-v2__scene[data-scene-faces="two"] [data-v2-label="A"]{left:50%;top:34%}.custom-v2__scene[data-scene-faces="two"] [data-v2-label="B"]{left:50%;top:73%}
.custom-v2__scene[data-scene-faces="three"] [data-v2-label="A"]{left:67%;top:39%}.custom-v2__scene[data-scene-faces="three"] [data-v2-label="B"]{left:52%;top:72%}.custom-v2__scene[data-scene-faces="three"] [data-v2-label="C"]{left:25%;top:40%}

/* Scene editing: a compact, centered preview with keyboard-accessible surfaces. */
.custom-v2__scene{aspect-ratio:3 / 2}
.custom-v2__scene[data-projected="true"] .custom-v2__surface.custom-v2__surface{height:auto;aspect-ratio:1 / 1;padding:0;cursor:pointer}
.custom-v2__scene .custom-v2__surface:hover{box-shadow:inset 0 0 0 5px #f4dfb3}
.custom-v2__scene .custom-v2__surface:focus-visible{outline:4px solid #f4dfb3;outline-offset:-4px;box-shadow:inset 0 0 0 5px #f4dfb3}
.custom-v2__scene-size{position:absolute;z-index:3;padding:3px 6px;background:#fffffff0;color:#222;font-size:12px;line-height:1.2;white-space:nowrap;pointer-events:none;transform:translate(-100%,calc(-100% - 4px))}
.custom-v2__scene-size[data-position="bottom"]{transform:translate(-100%,4px)}
.custom-v2__faces--scene{display:none}
[data-scene-price] .custom-v2__price{margin-top:0}
.custom-v2__editor-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:10px;align-items:end;padding:16px}
.custom-v2__editor-fields label{min-width:0;margin:0;font-size:13px}.custom-v2__editor-fields input{display:block;width:100%;height:42px;margin-top:6px;padding:8px;box-sizing:border-box;border:1px solid #a8acb4;font:inherit}
.custom-v2__editor-fields button{min-height:42px;padding:8px 14px;border:1px solid #222;background:#fff;color:#222;cursor:pointer}
.custom-v2__drop-prompt{width:100%;min-height:240px;border:2px dashed #acb3bb;background:#f5f7fb;color:#222;cursor:pointer;line-height:1.5}
.custom-v2__stage.is-dragging{outline:3px solid #496f65;outline-offset:-3px}.custom-v2__stage [data-v2-frame][hidden]{display:none!important}
@media(max-width:480px){.custom-v2__editor-fields{gap:6px;padding:12px}.custom-v2__editor-fields button{padding:8px;font-size:12px}.custom-v2__scene-size{font-size:10px}.custom-v2__drop-prompt{min-height:180px}}

.custom-v2__controls:has([data-scene-face-quote]:not([hidden])){display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px}
.custom-v2__controls .custom-v2__face-quote{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-left:auto;color:#101b3a;font-size:13px;text-align:right}
.custom-v2__face-quote strong{font-size:15px;white-space:nowrap}
@media(max-width:480px){.custom-v2__controls .custom-v2__face-quote{gap:6px;font-size:12px}.custom-v2__face-quote strong{font-size:13px}}

/* Two-sided panel previews share the crop geometry. */
.custom-v2__faces--panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.custom-v2__faces--panel .custom-v2__face{min-width:0;margin:0;padding:0;border:0}
.custom-v2__faces--panel .custom-v2__face h4{margin:0 0 8px}
.custom-v2__panel-stage{aspect-ratio:1;display:flex;justify-content:center;align-items:center;padding:8%;background:#f1f0ec;box-sizing:border-box}
.custom-v2__panel-shape{position:relative;display:flex;align-items:center;justify-content:center;width:auto;height:100%;max-width:100%;max-height:100%;overflow:hidden;background:#d9d8d4;box-shadow:inset 0 0 0 2px #333}
.custom-v2__panel-shape .custom-v2__thumb{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;object-fit:fill;margin:0}
.custom-v2__panel-shape [data-crop-face]{position:relative;z-index:1;min-height:0;padding:8px;background:#fff;font-size:12px;max-width:85%}
.custom-v2__panel-shape.has-image [data-crop-face]{position:absolute;bottom:14%;background:#fffffff0}
.custom-v2__faces--panel .custom-v2__image-row{margin-top:8px}.custom-v2__faces--panel [data-change-face]{font-size:12px;min-height:36px;padding:7px 10px}
.custom-v2__faces--panel [data-face-status]{margin:4px 0;color:#a33;font-size:12px}.custom-v2__faces--panel .custom-v2__price{grid-column:1/-1}
.custom-v2__crop-notice{margin:10px 16px;color:#555;font-size:12px;line-height:1.4}
@media(max-width:600px){.custom-v2__faces--panel{gap:8px}.custom-v2__panel-stage{padding:6%}.custom-v2__panel-shape [data-crop-face]{font-size:11px;padding:6px}}

/* Panel controls: image and outline remain independent. */
.custom-v2__panel-stage{background:transparent}
.custom-v2__face .custom-v2__panel-shape[data-crop-face]{display:block;position:relative;width:auto;height:100%;min-height:0;max-width:100%;max-height:100%;padding:0;overflow:hidden;border:0;background:#d9d8d4;box-shadow:none;cursor:pointer}
.custom-v2__panel-shape::after{content:"";position:absolute;inset:0;border:2px solid #191919;border-radius:inherit;pointer-events:none}
.custom-v2__face .custom-v2__panel-shape[data-crop-face]:hover{background:#d9d8d4}
.custom-v2__panel-shape:hover::after,.custom-v2__panel-shape:focus-visible::after{border-color:#f4dfb3;box-shadow:inset 0 0 0 1px #9a7c4e,0 0 0 1px #9a7c4e}
.custom-v2__panel-shape:focus-visible{outline:2px solid #9a7c4e;outline-offset:3px}
.custom-v2__panel-upload{margin:12px 16px 0;padding:9px 14px;border:1px solid #191919;background:#fff;color:#191919;cursor:pointer}

.custom-v2__panel-prompt{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:90%;color:#333;font-size:14px;line-height:1.3;text-align:center;pointer-events:none}
.custom-v2__panel-shape .custom-v2__thumb:not([hidden]) + .custom-v2__panel-prompt{display:none}

.custom-v2__editor-meta{display:flex;align-items:center;gap:12px;padding:0 16px 12px}
.custom-v2__editor-meta .custom-v2__controls,.custom-v2__editor-meta .custom-v2__controls:has([data-scene-face-quote]:not([hidden])){flex:1 1 auto;min-width:0;padding:0}
.custom-v2__editor-meta .custom-v2__controls label{flex:0 0 auto}
.custom-v2__editor-meta .custom-v2__crop-notice{flex:0 1 auto;margin:0 0 0 auto;text-align:right}
@media(max-width:480px){.custom-v2__editor-meta{gap:8px}.custom-v2__editor-meta .custom-v2__crop-notice{font-size:11px}}

.custom-v2__face [data-crop-face][data-v2-loading=true]{cursor:wait;opacity:.72}
.custom-v2__image-row [data-crop-face][data-v2-loading=true]{display:inline-flex;align-items:center;gap:8px}
.custom-v2__image-row [data-crop-face][data-v2-loading=true]::before{content:"";width:14px;height:14px;flex:0 0 14px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:custom-v2-spin .8s linear infinite;box-sizing:border-box}
.custom-v2__panel-shape[data-v2-loading=true]::before{content:"";position:absolute;z-index:2;left:50%;top:50%;width:24px;height:24px;margin:-12px 0 0 -12px;border:2px solid #191919;border-top-color:transparent;border-radius:50%;animation:custom-v2-spin .8s linear infinite;box-sizing:border-box}
@media(prefers-reduced-motion:reduce){.custom-v2__image-row [data-crop-face][data-v2-loading=true]::before,.custom-v2__panel-shape[data-v2-loading=true]::before{animation-duration:1.8s}}
