/* Home callout: source artwork stays intact; the viewport crops the long rope. */
#home-page .brand-overview{padding-top:0;overflow:visible}
.home-custom-callout{position:relative;display:flex;flex-direction:column;align-items:center;padding:0 18px 10px;z-index:1}
.home-custom-visual{position:relative;width:clamp(190px,25vw,280px);height:clamp(330px,43vw,470px);margin-top:clamp(-130px,-12vw,-80px);pointer-events:none}
.home-custom-visual svg{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 9px 8px #0000000b)}
.home-custom-second-rope{position:absolute;top:0;right:11%;width:5px;height:31%;background:repeating-linear-gradient(35deg,#c9c8c3 0 2px,#fcfcf8 2px 4px);border-radius:6px;box-shadow:1px 0 2px #0002;z-index:-1}
.home-custom-button{border:0;background:#0051ed;color:#fff;border-radius:30px;padding:12px 22px;font-size:12px;line-height:1.35;min-height:42px;margin:12px 0 0;transition:transform .2s,background .2s}
.home-custom-button:hover{background:#003dcc;transform:translateY(-2px)}
#home-page .home-partner{position:relative}
#home-page .brand-numbers{padding-top:20px}
.custom-page{background:#fff;color:#171b23;min-height:100vh;padding-bottom:70px;font-size:14px;line-height:1.5}
#cart-page[hidden]{display:none!important}
.custom-page *{box-sizing:border-box}
.custom-page button,.custom-page input,.custom-page textarea,.custom-page select{font-size:inherit}
.custom-page button{line-height:1.4}
.custom-header{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:25px max(24px,4vw);border-bottom:1px solid #e9edf2;background:#fff}
.custom-header>a{display:block;line-height:0}
.custom-header img{display:block;filter:brightness(0) saturate(100%) invert(23%) sepia(96%) saturate(3972%) hue-rotate(215deg) brightness(97%) contrast(109%);width:128px;height:auto}
.custom-header nav{display:flex;align-items:center;gap:28px;font-size:12px}
.custom-header nav>span{color:#8b929e}
.custom-header button{background:#edf3ff;color:#0051ed;padding:9px 15px;border-radius:24px;font-size:12px}
#custom-cart-count{display:inline-grid;place-items:center;background:#0051ed;color:#fff;border-radius:50%;width:20px;height:20px;margin-left:8px;font-size:10px}
.custom-intro{max-width:1450px;margin:auto;padding:32px 4vw 22px;display:flex;align-items:center;gap:20px}
.custom-intro>span,.custom-eyebrow{font-size:10px;letter-spacing:1.4px;color:#0051ed;margin:0}
.custom-intro p{font-size:12px;color:#798190;margin:0;border-left:1px solid #dce3ef;padding-left:20px}
.custom-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(330px,.85fr);gap:clamp(32px,5vw,76px);max-width:1450px;padding:0 4vw;margin:auto;align-items:start}
.custom-visual{min-width:0}
.custom-stage{position:relative;background:#f6f7f9;border:1px solid #f0f1f4;overflow:hidden;min-height:540px;display:flex;align-items:center;flex-direction:column;border-radius:4px}
.stage-caption{font-size:9px;letter-spacing:1.5px;color:#8b929d;align-self:flex-start;margin:22px 24px 0}
.model-space{position:relative;display:grid;place-items:center;width:100%;height:440px;perspective:1100px;isolation:isolate}
.model-space:after{content:'';position:absolute;bottom:12px;width:48%;height:16px;border-radius:50%;background:#172b4d12;filter:blur(12px);z-index:-1}
.custom-model{position:relative;transform-style:preserve-3d;cursor:grab;touch-action:pan-y;outline-offset:15px;user-select:none;will-change:transform}
.custom-model.is-dragging{cursor:grabbing;touch-action:none}
.model-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:#f9f7f2;overflow:hidden;border-radius:var(--cut-radius,2px);clip-path:var(--cut-path,none);box-shadow:0 14px 26px #172b4d16;pointer-events:none}
.model-front{transform:translateZ(var(--model-depth,2px))}
.model-back{transform:rotateY(180deg) translateZ(var(--model-depth,2px))}
.model-face>img,.model-face>svg{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.model-face.has-art>img{object-fit:cover}
.custom-model.is-glossy .model-face:after{content:'';position:absolute;inset:0;background:linear-gradient(115deg,transparent 25%,#ffffff69 43%,transparent 63%);pointer-events:none;opacity:.7}
.model-edge{position:absolute;top:0;height:100%;width:calc(var(--model-depth,2px) * 2);background:repeating-linear-gradient(90deg,#dad5ca 0 1px,#ede9df 1px 2px);transform-style:preserve-3d;pointer-events:none}
.model-left{left:0;transform:translateX(-50%) rotateY(90deg)}
.model-right{right:0;transform:translateX(50%) rotateY(90deg)}
.custom-model.is-photo .model-face{background:#fff;border-radius:3px}
.stage-actions{display:flex;flex-wrap:wrap;max-width:calc(100% - 16px);justify-content:center;gap:4px;padding:4px;border-radius:22px;background:#fff;border:1px solid #e8ebf1}
.stage-actions button{background:transparent;color:#687385;border-radius:20px;padding:6px 14px;font-size:10px}
.stage-actions button.is-active{color:#0051ed;background:#eef3ff}
.stage-actions :is([data-model-zoom],[data-flat-zoom]){background:#eef3ff;color:#0051ed;min-width:30px;padding:3px 7px;font-size:16px}
.stage-brush{display:flex;justify-content:center;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 8px 0;font-size:11px;color:#3f2a10}
.stage-brush[hidden]{display:none}
.stage-brush button{padding:5px 8px;background:#fff3d6;border-radius:5px}
.stage-history{display:flex;gap:6px;align-self:flex-start;margin:6px 0 0 24px}
.stage-history[hidden]{display:none}
.stage-history button{display:grid;place-items:center;width:31px;height:31px;border-radius:7px;background:#fff;color:#11469b}
.stage-history button:disabled{opacity:.48;cursor:default}
.stage-history svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:649px){.stage-history{margin-left:14px}}
.stage-hint{font-size:10px;color:#8a939e;margin:12px 15px 18px;text-align:center}
.custom-templates{padding:25px 0 0}
.template-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}
.template-heading h2{font-size:16px;margin:0;letter-spacing:0}
.template-heading p{color:#0051ed;font-size:11px;margin:3px 0 0}
.template-one{font-size:10px;color:#8a929e}
.custom-search{display:flex;position:relative;margin:16px 0}
.custom-search input{width:100%;border:1px solid #e0e5ec;border-radius:4px;padding:10px 35px 10px 12px;background:#fff;font-size:11px}
.custom-search>span:last-child{position:absolute;right:13px;top:6px;font-size:22px;color:#0051ed;pointer-events:none}
.custom-template-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.custom-template-card{position:relative;min-width:0;display:block;cursor:pointer}
.custom-template-card>input{position:absolute;top:8px;right:8px;z-index:1;accent-color:#0051ed;width:15px;height:15px;margin:0;cursor:pointer}
.template-thumb{height:100px;display:grid;place-items:center;background:#f6f7f9;border:1px solid #e9edf3;border-radius:4px;overflow:hidden;transition:border-color .18s}
.template-thumb img{width:100%;height:100%;object-fit:contain}
.custom-template-card:has(input:checked) .template-thumb{border:2px solid #0051ed;background:#f0f5ff}
.custom-template-card:has(input:focus-visible) .template-thumb{outline:2px solid #ff642b;outline-offset:3px}
.template-blank-symbol{font-size:25px;color:#0051ed;line-height:1}
.custom-template-card>span:last-child{display:block;font-size:10px;color:#596578;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:6px}
.custom-template-card:has(input:checked)>span:last-child{color:#0051ed}
.custom-template-empty{grid-column:1/-1;padding:20px 10px;font-size:12px;color:#8892a0;border:1px dashed #dde4ee;text-align:center}
.template-pagination{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:13px 0 0;font-size:10px;color:#7c8695}
.template-pagination p{margin:0}
.template-pagination>div{display:flex;gap:10px;align-items:center}
.template-pagination button{width:25px;height:25px;border-radius:50%;background:#edf3ff;color:#0051ed}
.template-pagination button:disabled{opacity:.35}
.custom-template-help{font-size:10px;color:#8b93a0;max-width:390px;margin:13px 0 0;line-height:1.6}
.custom-settings{min-width:0;padding-top:10px}
.custom-title-row{display:flex;gap:15px;align-items:center;justify-content:space-between}
.custom-title-row h1{font-size:32px;letter-spacing:-.6px;line-height:1.2;margin:8px 0 0;color:#171b23}
#custom-unit-top{font-size:12px;color:#0051ed;white-space:nowrap}
.custom-description{color:#8b93a0;font-size:12px;margin:14px 0 28px}
.config-field{display:flex;flex-direction:column;gap:10px;margin-bottom:23px}
.config-field>span,.custom-settings legend{font-size:12px;color:#303d50}
.config-field small{font-size:10px;color:#98a1af;margin-left:4px}
.config-field input:not([type=file]),.config-field textarea,.config-field select{width:100%;border:1px solid #dfe5ed;border-radius:4px;background:#fff;padding:11px 12px;color:#263346;min-width:0;outline-offset:2px;font-size:12px}
.config-field textarea{resize:vertical;min-height:90px}
.config-field input::placeholder,.config-field textarea::placeholder{color:#a4adba}
.custom-settings fieldset{border:0;padding:0;margin:0 0 23px;min-width:0}
.custom-settings legend{padding:0;margin:0 0 10px}
.custom-settings legend>span{color:#929aaa;font-size:10px;margin-left:4px}
.config-choices{display:flex;gap:7px;flex-wrap:wrap}
.config-choice{position:relative;display:block;cursor:pointer}
.config-choice input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.config-choice>span{display:block;border:1px solid #e0e5ed;border-radius:3px;background:#fff;color:#657082;font-size:11px;padding:8px 11px;line-height:1.3;transition:border-color .15s,background .15s}
.config-choice input:checked+span{background:#eef3ff;color:#0051ed;border-color:#0051ed}
.config-choice input[name="ink"][value="Gold"]+span{background:linear-gradient(125deg,#b27f27,#f4cf6d 28%,#fff5cb 44%,#d4a447 64%,#f2d581);color:#2b1c05}
.config-choice input[name="ink"][value="Silver"]+span{background:linear-gradient(125deg,#949da9,#c9d0da 28%,#fff 44%,#a5afbe 64%,#e4e9ef);color:#263344}
.config-choice input[name="ink"]:is([value="Gold"],[value="Silver"])+span{position:relative;overflow:hidden;isolation:isolate}
.config-choice input[name="ink"]:is([value="Gold"],[value="Silver"])+span::before{content:'';position:absolute;z-index:-1;top:-45%;bottom:-45%;left:0;width:25%;background:#fff9;filter:blur(4px);transform:translateX(-240%) skewX(-24deg);animation:ink-light-sweep 4.2s ease-in-out infinite;pointer-events:none}
@keyframes ink-light-sweep{0%,52%{transform:translateX(-240%) skewX(-24deg)}83%,100%{transform:translateX(570%) skewX(-24deg)}}
@media(prefers-reduced-motion:reduce){.config-choice input[name="ink"]:is([value="Gold"],[value="Silver"])+span::before{animation:none;transform:translateX(125%) skewX(-24deg)}}
.config-choice input:disabled+span{background:#f6f7f9;color:#b5bdc8;border-color:#eef0f4;text-decoration:line-through;cursor:not-allowed}
.config-choice input:disabled{cursor:not-allowed}
.config-choice input:focus-visible+span{outline:2px solid #ff642b;outline-offset:2px}
.config-help{font-size:10px;color:#8b93a0;line-height:1.6;margin:9px 0 0}
.config-disabled{width:100%;border:1px solid #edf0f5;border-radius:4px;padding:11px 12px;color:#a4adba;background:#f7f8fa;font-size:11px;cursor:not-allowed}
.config-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.quantity-row{display:flex;align-items:center;border:1px solid #dfe5ed;width:max-content;border-radius:4px;overflow:hidden}
.quantity-row button{background:#fff;color:#0051ed;width:42px;height:40px;font-size:18px}
.quantity-row label{width:85px}
.quantity-row input{border:0;width:100%;text-align:center;appearance:textfield;-moz-appearance:textfield;height:40px;font-size:12px}
.quantity-row input::-webkit-inner-spin-button,.quantity-row input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#quantity-help{font-size:10px;color:#8b93a0;margin:8px 0 0}
.custom-upload{position:relative;display:flex;align-items:center;gap:15px;border:1px dashed #cad5e5;background:#fafbfe;border-radius:5px;padding:18px;cursor:pointer;font-size:11px;color:#68778e}
.custom-upload small{display:block;margin:5px 0 0;font-size:9px}
.custom-upload input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}
.custom-upload:focus-within{outline:2px solid #0051ed;outline-offset:2px}
.upload-symbol{font-size:24px;line-height:1;color:#0051ed}
.custom-file-list{list-style:none;padding:0;margin:0}
.custom-file-list li{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #eef1f5}
.custom-file-list li>img{width:38px;height:38px;object-fit:cover;border-radius:4px}
.custom-file-list li>div{flex:1;min-width:0;font-size:11px;color:#59697e}
.custom-file-list strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.custom-file-list small{display:block;margin:2px 0 0;font-size:9px}
.custom-file-list button{background:none;color:#b25e4c;padding:5px;font-size:10px}
.custom-file-list .file-type{display:grid;place-items:center;width:38px;height:38px;background:#eef3ff;color:#0051ed;font-size:9px;border-radius:4px}
.config-feedback{font-size:11px;color:#b04a32;line-height:1.6;margin:0}
.custom-price{padding-top:21px;margin-top:4px;border-top:1px solid #e5eaf0}
.custom-price>div{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#8b93a0;font-size:11px;margin-bottom:12px}
.custom-price strong{color:#526276;font-size:12px}
.custom-price .custom-total{font-size:13px;color:#344259}
.custom-price .custom-total strong{font-size:25px;color:#0051ed;letter-spacing:-.5px}
.custom-price p{font-size:10px;color:#919aa8;line-height:1.6;margin:10px 0 20px}
.custom-primary{display:flex;align-items:center;justify-content:space-between;gap:25px;background:#0051ed;color:#fff;border:0;border-radius:4px;padding:15px 19px;font-size:12px;width:100%;transition:background .2s;min-height:49px}
.custom-primary:hover{background:#003fbc}
#save-custom-product{background:#ff6028}
.custom-primary>span{font-size:20px;line-height:1}
.custom-secondary{border:1px solid #d5e0f2;border-radius:4px;padding:10px 15px;background:white;color:#0051ed;font-size:11px}
.custom-save-hint{font-size:10px;color:#9aa3b0;line-height:1.6;text-align:center;margin:13px 0 0}
.custom-cart-summary{max-width:1340px;margin:70px auto 0;padding:35px 4vw 0;border-top:1px solid #e5eaf0}
.cart-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}
.cart-heading h2{font-size:25px;line-height:1.2;margin:8px 0 0;letter-spacing:-.4px}
.custom-cart-empty{padding:30px 24px;background:#f7f9fc;border-radius:4px;color:#8c96a6;font-size:12px;text-align:center}
.configured-item{display:grid;grid-template-columns:70px 1fr auto;gap:20px;border-bottom:1px solid #edf0f5;padding:22px 0;align-items:start}
.configured-item>img{width:70px;height:80px;object-fit:contain;background:#f7f8fa;border-radius:4px}
.configured-item h3{font-size:14px;margin:0 0 6px;color:#26354d}
.configured-item p{font-size:11px;color:#8490a1;line-height:1.7;margin:0;white-space:pre-line;overflow-wrap:anywhere}
.configured-item .item-note{margin-top:6px;color:#5e6f85}
.configured-item .item-files{margin-top:8px;display:flex;flex-wrap:wrap;gap:7px}
.item-files button{background:#f0f4fc;color:#0051ed;border-radius:4px;padding:5px 8px;font-size:10px;text-align:left;max-width:220px;overflow-wrap:anywhere}
.item-price{font-size:14px;color:#0051ed;text-align:right}
.item-controls{display:flex;gap:10px;justify-content:flex-end;margin-top:12px}
.item-controls button{background:none;padding:5px 0;font-size:10px;color:#6b7b92}
.item-controls button:last-child{color:#b96b58}
#custom-cart-totals{margin:25px 0;max-width:430px;margin-left:auto}
#custom-cart-totals>div{display:flex;justify-content:space-between;align-items:center;gap:25px;font-size:13px;color:#53667e}
#custom-cart-totals strong{font-size:24px;color:#0051ed}
#custom-cart-totals p{color:#9aa3af;font-size:11px;line-height:1.6;margin:7px 0 0}
#copy-custom-summary{max-width:430px;margin-left:auto}
#custom-cart-feedback{font-size:11px;color:#0051ed}
@media(min-width:1500px){.custom-layout{gap:90px}.custom-stage{min-height:620px}.model-space{height:520px}.template-thumb{height:118px}}
@media(max-width:899px){.custom-layout{grid-template-columns:minmax(0,1fr) minmax(300px,1fr);gap:25px;padding:0 24px}.custom-intro{padding-left:24px;padding-right:24px}.custom-stage{min-height:470px}.model-space{height:370px}.custom-template-grid{gap:7px}.template-thumb{height:75px}.custom-title-row{flex-wrap:wrap}.custom-header{padding:20px 24px}.custom-header nav{gap:16px}.config-pair{gap:14px}.config-choice>span{padding:8px;font-size:10px}}
@media(max-width:649px){.custom-header{padding:18px 20px;gap:12px}.custom-header img{width:104px}.custom-header nav{gap:12px;font-size:11px}.custom-header nav>span{display:none}.custom-header button{font-size:10px;padding:7px 10px}#custom-cart-count{width:17px;height:17px;font-size:9px;margin-left:5px}.custom-intro{padding:23px 20px 18px;display:block}.custom-intro>span{font-size:9px}.custom-intro p{border:0;padding:0;font-size:11px;margin:8px 0 0}.custom-layout{grid-template-columns:1fr;padding:0 20px;gap:32px}.custom-stage{min-height:390px}.model-space{height:290px}.stage-caption{font-size:8px;margin:16px 17px 0}.stage-hint{font-size:9px}.custom-templates{padding-top:20px}.template-thumb{height:88px}.custom-template-help{font-size:10px}.custom-settings{padding-top:0}.custom-title-row{flex-wrap:nowrap}.custom-title-row h1{font-size:29px}.custom-description{margin-bottom:24px}.config-choice>span{padding:9px 10px;font-size:11px}.custom-price .custom-total strong{font-size:25px}.custom-cart-summary{margin-top:45px;padding:30px 20px 0}.cart-heading{gap:12px}.cart-heading h2{font-size:23px}.custom-secondary{font-size:10px;padding:9px 10px}.configured-item{grid-template-columns:53px 1fr;gap:12px}.configured-item>img{width:53px;height:65px}.configured-item>div:last-child{grid-column:2;display:flex;justify-content:space-between;align-items:center;gap:10px}.item-controls{margin:0}.item-price{text-align:left;font-size:13px}#custom-cart-totals{max-width:none}#copy-custom-summary{max-width:none}.home-custom-visual{width:210px;height:355px;margin-top:-80px}.home-custom-button{font-size:11px;padding:10px 20px;min-height:38px}.home-custom-callout{padding-bottom:5px}#home-page .brand-numbers{padding-top:22px}}
@media(prefers-reduced-motion:reduce){.home-custom-button,.custom-primary,.template-thumb{transition:none}.custom-model{will-change:auto}}

.custom-page .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.home-custom-visual{width:clamp(240px,30vw,360px);height:clamp(350px,43vw,490px)}
.home-custom-visual svg{position:absolute;top:0;left:7%;width:62%;height:100%}
.home-custom-visual .home-tag-back{left:32%;top:24px;filter:brightness(.94) drop-shadow(0 10px 9px #00000012)}
.home-custom-callout{padding-bottom:14px}
@media(max-width:649px){.home-custom-visual{width:265px;height:355px}.home-custom-visual .home-tag-back{top:18px}}

.home-custom-button{margin-top:36px}
/* Volumetric WebGL product view, v1.28 */
.product-canvas{display:block;width:100%;height:100%;cursor:grab;touch-action:pan-y;outline-offset:-5px;border-radius:4px;user-select:none}
.product-canvas.is-dragging{cursor:grabbing;touch-action:none}
.custom-stage{background:radial-gradient(ellipse at 50% 42%,#fff 0%,#f5f6f9 68%);min-height:550px}
.model-space{height:430px}.model-space:after{bottom:25px;width:37%;background:#162b4d1c;filter:blur(13px)}
.model-badge{position:absolute;top:22px;right:20px;display:flex;gap:7px;align-items:center;color:#0051ed;font-size:10px;background:#fff;border:1px solid #e1e8f6;padding:6px 9px;border-radius:20px}
.model-status:empty{display:none}.model-status{padding:10px 24px;color:#7b5260;font-size:12px;text-align:center}
.custom-size-action{display:flex;justify-content:space-between;gap:12px;border:1px dashed #b9cef9;border-radius:4px;padding:12px;color:#0051ed;font-size:12px;background:#f7faff;text-decoration:none}
#custom-size-field .config-help{margin:0;line-height:1.6}.basket-mockup-note{padding:12px;background:#f0f5ff;color:#315581;font-size:11px;line-height:1.7;border-radius:5px;margin:12px 0 0}
@media(max-width:899px){.model-space{height:350px}.custom-stage{min-height:465px}}
@media(max-width:649px){.model-space{height:330px}.custom-stage{min-height:440px}.model-badge{top:19px;right:12px;font-size:9px}.stage-caption{margin-left:14px;letter-spacing:1px}}
/* White studio view and compact size tools, v1.29 */
.custom-stage{background:#dfe4ec;border-color:#d6dfe9}
.model-space:after{bottom:31px;width:33%;height:8px;background:#4054740c;filter:blur(10px)}
.product-canvas{touch-action:none}.product-canvas:focus-visible{outline:2px solid #739cff;outline-offset:-3px}
.custom-settings .config-size-legend{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px}
.config-custom-size{display:inline-flex;align-items:center;gap:10px;font-size:11px;font-weight:500;text-decoration:none;color:#0051ed;border:1px dashed #bed1f8;background:#f6f9ff;border-radius:4px;padding:6px 9px}
.config-custom-size:hover{background:#eaf1ff;border-color:#0051ed}.config-custom-size:focus-visible{outline:2px solid #739cff;outline-offset:3px}
.template-enlarge-dialog{padding:18px 18px 12px;border:1px solid #e2e9f5;border-radius:12px;background:#fff;width:min(740px,calc(100% - 36px));max-width:740px;max-height:92dvh;overflow:auto;box-shadow:0 24px 80px #122b5240;cursor:zoom-out}
.template-enlarge-dialog::backdrop{background:#10254880;backdrop-filter:blur(4px)}
.template-enlarge-dialog>img{display:block;width:100%;height:auto;max-height:79dvh;object-fit:contain;background:#fff}
.template-enlarge-dialog>p{font-size:11px;color:#8a99ae;text-align:center;margin:12px 0 0}
.template-enlarge-close{position:absolute;top:11px;right:11px;display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#f1f5fc;color:#527098;font-size:22px;box-shadow:0 0 0 3px #fff}
@media(max-width:649px){.template-enlarge-dialog{padding:12px 12px 10px;width:calc(100% - 26px);border-radius:9px}.template-enlarge-dialog>p{font-size:10px}.config-custom-size{font-size:10px;padding:5px 8px}.stage-hint{font-size:9px}}

.custom-settings legend>.config-legend-title{font-size:12px;color:#303d50;margin-left:0}
/* Compact options and a softly lit, darker studio, v1.31. */
.custom-stage{background:linear-gradient(180deg,#c6cfdc 0%,#b6c2d2 100%);border-color:#b2bfd0}
.stage-caption,.stage-hint{color:#607086}
.product-canvas{position:relative;z-index:1}
.product-canvas.is-painting{cursor:crosshair}
.model-space.has-brush-palette{grid-template-columns:minmax(0,1fr) auto;padding-right:8px}
.model-brush-palette{display:grid;gap:12px;width:clamp(62px,7vw,84px);z-index:2}
.model-brush-palette[hidden]{display:none}
.model-brush-palette button{display:grid;justify-items:center;gap:5px;padding:0;background:transparent;color:#1f2733;font-size:9px;text-align:center;text-transform:uppercase}
.model-brush-swatch{display:grid;place-items:center;width:43px;height:43px;border-radius:50%;background:var(--brush-ink);color:var(--brush-icon);border:1px solid #19294126}
.model-brush-swatch svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.model-brush-palette button[aria-pressed=true] .model-brush-swatch{box-shadow:0 0 5px 3px #0861dfb3,0 0 12px 5px #1179ff63}
.model-brush-palette button:focus-visible{outline:2px solid #0051ed;outline-offset:2px;border-radius:5px}
.model-space:after{display:none}
.product-ground-shadow{position:absolute;pointer-events:none;z-index:0;height:15px;transform:translateX(-50%);border-radius:50%;background:#243853;filter:blur(13px);opacity:.23}
.template-stage-image{
  display:block;width:min(84%,560px);height:90%;min-height:0;object-fit:contain;
  filter:drop-shadow(0 8px 16px #24385328);
}
.stage-actions #model-preview-toggle{color:#0051ed}
.stage-actions #model-preview-toggle:hover{background:#eef3ff}
.clothing-palette{
  position:absolute;right:14px;bottom:13px;z-index:3;display:flex;align-items:center;gap:8px;
  padding:6px 9px;border-radius:30px;border:1px solid #e1e8f6;background:#f8fbff;color:#315581;
  font-size:11px;box-shadow:0 3px 14px #12254814;
}
.guide-hero-visual .clothing-palette{bottom:43px}
.clothing-swatches{display:flex;gap:7px}
.clothing-swatches button{
  width:24px;height:24px;padding:0;border:1px solid #7b8ea36b;border-radius:50%;
  background:var(--clothing-swatch);
}
.clothing-swatches button[aria-pressed=true]{outline:2px solid #0051ed;outline-offset:1px}
.clothing-swatches button:focus-visible{outline:2px solid #ff642b;outline-offset:2px}
.print-swatches{display:grid;grid-template-columns:repeat(auto-fill,minmax(30px,1fr));gap:7px;max-width:390px;padding:3px}
.print-swatches label{position:relative;display:grid;place-items:center;min-height:30px;cursor:pointer}
.print-swatches input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.print-swatches span{width:26px;height:26px;border:1px solid #61758e66;border-radius:50%;background:var(--ink-color)}
.print-swatches input:checked+span{outline:2px solid #0051ed;outline-offset:2px}
.print-swatches input:focus-visible+span{outline:2px solid #ff642b;outline-offset:2px}
.config-choices .config-custom-size{padding:8px 11px;line-height:1.3;font-size:11px;min-height:32px;align-self:stretch}
@media(max-width:649px){.config-choices .config-custom-size{font-size:11px;padding:9px 10px}}

.template-enlarge-dialog{padding:0;width:min(740px,calc(100% - 26px),79dvh);max-height:94dvh;overflow:hidden;cursor:default}
.template-enlarge-frame{position:relative;background:#fff}
.template-enlarge-frame>img{display:block;width:100%;height:auto;max-height:79dvh;object-fit:contain;object-position:center top;cursor:zoom-out}
.template-enlarge-close,.template-enlarge-arrow{z-index:1;box-shadow:0 2px 12px #17365b25}
.template-enlarge-arrow{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border:1px solid #d9e3f1;border-radius:50%;background:#fff;color:#0051ed;font-size:28px;line-height:1;display:grid;place-items:center}
.template-enlarge-arrow.previous{left:10px}
.template-enlarge-arrow.next{right:10px}
.template-enlarge-arrow:hover{background:#eef4ff}
.template-enlarge-arrow[hidden]{display:none}
.template-enlarge-caption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px 12px;padding:12px 16px;font-size:11px;color:#647a94;border-top:1px solid #edf1f7}
#template-enlarge-position{color:#17365b;font-weight:600}
.base-color-dot{display:inline-block;width:10px;height:10px;margin-right:6px;border:1px solid #61758e66;border-radius:50%;background:var(--base-color);vertical-align:middle}
.print-add-row{margin:0 0 18px;padding:8px;background:linear-gradient(90deg,#f3f8ff,#e4f0ff);border-radius:5px}
.print-add-row .print-row-action{background:#fff;border-color:#84b3ff;padding:9px 12px;cursor:pointer}
.print-add-row .print-row-action:hover{background:#eaf3ff;border-color:#0051ed}
.print-row-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px;color:#303d50;font-size:12px}
.print-remove{background:transparent;color:#9e3927;font-size:11px;padding:4px 2px;text-decoration:underline}
.print-remove:disabled{opacity:.48;cursor:default}
.print-brush-notice{background:#fff3d6;border:1px solid #f5c46f;border-left:4px solid #e47b22;border-radius:5px;padding:12px;margin:0 0 22px;color:#654019;font-size:12px}
.print-brush-notice p{margin:4px 0 8px}

@media(min-width:650px){
  body[data-page="customize"]{display:flex;flex-direction:column;height:100dvh;overflow:hidden}
  body[data-page="customize"] #site-header{flex:none}
  .custom-page{display:flex;flex-direction:column;flex:1;min-height:0;padding-bottom:0}
  .custom-intro{flex:none;width:100%;margin:0 auto}
  .custom-layout{
    --panel-gap:clamp(32px,5vw,76px);
    --outer-gutter:calc(4vw + max(0px,(100vw - 1450px) / 2));
    width:100%;flex:1;min-height:0;margin:0 auto;gap:var(--panel-gap);align-items:stretch;
  }
  .custom-visual,.custom-settings{
    position:relative;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b9c5d6 transparent;
    scroll-padding-block:8px;padding-bottom:32px;
  }
  .custom-visual{
    margin-inline:calc(-1 * var(--outer-gutter)) calc(-.5 * var(--panel-gap));
    padding-inline:var(--outer-gutter) calc(var(--panel-gap) / 2);
  }
  .custom-settings{
    margin-inline:calc(-.5 * var(--panel-gap)) calc(-1 * var(--outer-gutter));
    padding-inline:calc(var(--panel-gap) / 2) var(--outer-gutter);
  }
  .custom-layout > section:focus-visible{outline:2px solid #739cff;outline-offset:-2px}
}
@media(min-width:650px) and (max-width:899px){
  .custom-layout{--panel-gap:25px;--outer-gutter:24px}
}
@media(min-width:1500px){.custom-layout{--panel-gap:90px}}

.model-box-toggle{position:absolute;z-index:3;right:12px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:42px;height:42px;padding:0;border-radius:50%;background:#fff;color:#344867;border:1px solid #e2e8f1;box-shadow:0 3px 12px #1b355521}
.model-box-toggle[hidden]{display:none}
.model-box-toggle svg{width:23px;height:23px}
.model-box-toggle:hover,.model-box-toggle[aria-pressed=true]{color:#0051ed;background:#eef4ff}
.model-box-toggle[aria-pressed=true] .box-eye-slash{display:none}
.model-box-toggle:focus-visible{outline:2px solid #0051ed;outline-offset:3px}

.mobile-preview-shortcut{display:none}
@media(max-width:649px){
 body[data-page="customize"] .mobile-preview-shortcut:not([hidden]){
  position:absolute;inset:100% 0 auto;z-index:1;display:flex;align-items:center;justify-content:center;
  gap:8px;min-height:42px;padding:8px 14px;overflow:hidden;background:#ff8c59dd;color:#401b0a;
  border:1px solid #e76a36a8;border-radius:0 0 12px 12px;backdrop-filter:blur(8px);
  font-size:12px;font-weight:700;box-shadow:0 4px 14px #612a1920;
 }
 .mobile-preview-shortcut span{font-size:17px;line-height:1}
 .mobile-preview-shortcut::after{
  content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(112deg,transparent 29%,#fff0 41%,#fff8 50%,#fff0 59%,transparent 71%);
  transform:translateX(-100%);animation:mobile-preview-sweep 4.8s ease-in-out infinite;
 }
 .mobile-preview-shortcut:focus-visible{outline:2px solid #8f3a13;outline-offset:-3px}
 @keyframes mobile-preview-sweep{
  0%,15%{transform:translateX(-100%)}
  63%,100%{transform:translateX(100%)}
 }
}
@media(prefers-reduced-motion:reduce){.mobile-preview-shortcut::after{animation:none}}

.seal-box-palette {
  position:absolute;left:12px;bottom:12px;z-index:3;display:flex;align-items:center;gap:5px;
  max-width:calc(100% - 24px);padding:4px 6px;border-radius:18px;border:1px solid #e1e8f6;
  background:#f8fbff;color:#315581;box-shadow:0 3px 14px #12254814;font-size:11px;
}
.seal-box-palette[hidden]{display:none}
.seal-box-palette>span{margin-inline:3px;white-space:nowrap}
.seal-box-palette button{
  display:inline-flex;align-items:center;gap:4px;padding:5px 6px;border-radius:12px;
  border:1px solid transparent;background:transparent;color:#344867;line-height:1.1;font-size:11px;
}
.seal-box-palette button i{
  width:11px;height:11px;flex:none;border-radius:50%;border:1px solid #7b8ea36b;
  background:var(--seal-box-swatch);
}
.seal-box-palette button[aria-pressed=true]{border-color:#91b8ff;background:#e7f0ff;color:#0046bd}
.seal-box-palette button:focus-visible{outline:2px solid #ff642b;outline-offset:1px}
.guide-hero-visual .seal-box-palette{bottom:43px}
@media(max-width:380px){
  .seal-box-palette{gap:2px}
  .seal-box-palette>span{font-size:10px}
  .seal-box-palette button{padding-inline:4px}
}

/* Design studio */
.custom-stage{
 --studio-ink:#111827;
 background:var(--studio-background,linear-gradient(180deg,#8eb9f7 0%,#85b1f1 32%,#155ee0 64%,#084ed6 100%));
 border-color:#b1c0df;isolation:isolate;
}
.custom-stage[data-dark]{--studio-ink:#fff}
.custom-stage :is(.stage-caption,.stage-hint,.model-status,.model-brush-palette button){color:var(--studio-ink)}
.custom-stage:has(.studio-background-reset:disabled) .stage-hint{color:#fff}
.custom-stage .stage-caption{font-weight:700;letter-spacing:.19em}
.studio-view-modes{
 position:absolute;top:22px;right:20px;z-index:3;display:flex;gap:7px;
}
.studio-view-modes button{
 min-width:43px;min-height:22px;border:1.5px solid currentColor;border-radius:20px;background:transparent;
 color:var(--studio-ink);font-size:12px;padding:0 8px;
}
.studio-view-modes button[aria-pressed=true]{background:#fff;color:#175cd1}
.custom-stage .model-badge{top:57px;right:84px;padding:3px 8px;background:#ffffffeb}
.studio-background-tools{position:absolute;top:56px;right:20px;z-index:4;display:flex;gap:4px}
.custom-page :is(.studio-background-toggle,.studio-background-reset){
 display:grid;place-items:center;width:27px;height:27px;padding:0;
 background:transparent;color:var(--studio-ink);border:1px solid currentColor;border-radius:5px;
}
.studio-background-tools>button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.studio-background-reset:disabled{opacity:.4;cursor:default}
.studio-background-palette{
 position:absolute;top:calc(100% + 6px);right:0;width:max-content;padding:8px;
 background:#fff;color:#172338;border:1px solid #d8e0ef;border-radius:8px;box-shadow:0 4px 16px #1723382b;
}
.studio-background-palette[hidden]{display:none}
.studio-background-swatches{display:flex;gap:6px}
.custom-page .studio-background-swatches button{
 width:23px;height:23px;padding:0;border:1px solid #7b859b;border-radius:50%;background:var(--preview-swatch);
}
.studio-background-swatches button[aria-pressed=true]{outline:2px solid #0051ed;outline-offset:1px}
.studio-background-custom{display:none}
.studio-background-custom input{width:34px;height:24px;padding:1px;border:1px solid #aeb8cc;border-radius:4px;background:#fff;cursor:pointer}
@media(max-width:649px){
 .studio-view-modes{top:12px;right:12px}
 .studio-view-modes button{min-height:28px}
 .studio-background-tools{top:48px;right:12px}
 .custom-stage .model-badge{top:50px;right:75px}
}
.studio-flat-viewport{
 position:absolute;inset:0;display:grid;place-items:center;
 grid-template:minmax(0,1fr) / minmax(0,1fr);
 overflow:hidden;touch-action:pan-y;user-select:none;
}
.studio-flat-viewport:focus-visible{outline:2px solid #fff;outline-offset:-3px}
.studio-flat-viewport :is(.studio-flat-art,.template-stage-image){
 min-width:0;min-height:0;transform:scale(var(--studio-flat-zoom,1));
}
.studio-flat-viewport[hidden]{display:none}
.studio-flat-art{
 display:block;position:relative;z-index:1;width:100%;height:100%;object-fit:contain;
 padding:24px 40px;filter:drop-shadow(0 14px 18px #153f9c49);
}
.studio-flat-art[hidden],.studio-enlarge-template[hidden]{display:none}
.model-space:has(.studio-flat-viewport:not([hidden])) .product-ground-shadow{display:none}
.studio-design-modes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 16px}
.studio-template-mode,.custom-page .studio-reference-mode{
 position:relative;display:flex;align-items:center;justify-content:center;gap:7px;min-height:43px;
 border-radius:12px;padding:7px;font-size:12px;line-height:1.25;text-align:center;
}
.custom-page :is(.studio-template-mode,.studio-reference-mode){background:#fff;color:#49586e;border:1px solid #dce3ef;cursor:pointer}
.custom-page .studio-design-modes [aria-pressed=true]{background:#084fdc;color:#fff;border-color:#084fdc;box-shadow:0 5px 11px #0046c92b}
.studio-design-modes i{width:11px;height:11px;border-radius:50%;border:1px solid currentColor;flex:none}
.studio-design-modes [aria-pressed=true] i{background:currentColor}
.studio-notes{
 background:#fff;border:1px solid #dce4ef;border-radius:9px;padding:14px;margin:0 0 20px;
}
.studio-notes-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.studio-notes-heading h2{font-size:15px;margin:0;color:#26354d;line-height:1.2;letter-spacing:0}
.studio-notes-heading>span,.studio-note-footer small{color:#586982;font-size:10px}
.studio-notes-help{margin:6px 0 12px;color:#596a83;font-size:11px;line-height:1.5}
.studio-note-box{border:1px solid #c9d6e8;border-radius:6px;background:#fff;overflow:hidden}
.studio-note-box:focus-within{border-color:#0051ed;box-shadow:0 0 0 2px #cbdcff}
.studio-note-box textarea{
 display:block;width:100%;min-height:72px;resize:vertical;border:0;padding:8px 9px;
 color:#233754;background:#fff;outline:none;font-size:12px;line-height:1.5;
}
.studio-note-tools,.studio-note-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.studio-note-tools{padding:5px 7px;border-top:1px solid #edf0f6;color:#647590;font-size:10px}
.studio-upload{
 position:relative;display:inline-flex;align-items:center;gap:4px;min-height:29px;padding:3px 6px;
 border:1px solid #dbe5f3;border-radius:5px;color:#235096;font-size:10px;cursor:pointer;
}
.studio-upload:focus-within{outline:2px solid #0051ed}
.studio-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.studio-note-footer{margin-top:5px}
.studio-notes .custom-file-list:not(:empty){
 max-height:105px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a8bde1 transparent;
}
.custom-page .studio-note-format,.custom-page .studio-enlarge-template{
 padding:3px 0;background:transparent;color:#0647b6;font-size:11px;text-decoration:underline;text-underline-offset:2px;
}
.custom-design-panel[hidden]{display:none}
.template-browser[hidden],.customer-reference-panel[hidden],.reference-upload-card[hidden],.reference-progress[hidden],.reference-upload-card img[hidden],.reference-upload-card [hidden],.reference-ai-bar[hidden],.live-preview-card[hidden]{display:none!important}
.reference-intents{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.custom-page .reference-intents button{padding:9px 6px;background:#f4f7ff;border:1px solid #dce4f2;border-radius:7px;color:#3c5274;font-size:11px;text-align:center;line-height:1.35}
.custom-page .reference-intents button[aria-pressed=true]{border-color:#0051ed;color:#0051ed;background:#edf3ff}
.reference-help{margin:9px 0;color:#596a83;font-size:10px;line-height:1.5}
.reference-uploads{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.reference-upload-card{min-width:0;padding:8px;border:1px solid #dae4f2;border-radius:8px;background:#fff}
.reference-upload-card>strong{display:block;font-size:11px;color:#263e62;margin-bottom:6px}
.custom-page .reference-upload-card [data-reference-upload]{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;width:100%;min-height:88px;border:1px dashed #9db6de;border-radius:5px;padding:6px;color:#1755a9;background:#f5f8ff;font-size:10px}
.reference-upload-card img{max-width:100%;height:62px;object-fit:contain}
.reference-upload-card [data-reference-icon]{font-size:22px}
.reference-upload-card>small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;color:#63738a;margin-top:5px}
.reference-upload-card>small[data-reference-status]{white-space:normal;line-height:1.4}
.reference-upload-card.is-locked{background:#f6f7fa}
.reference-upload-card.is-locked [data-reference-upload]{color:#7d8ba1;border-color:#ccd3df;background:#edf0f6;cursor:pointer}
.reference-upload-card [data-reference-remove]{padding:4px 0;background:transparent;color:#a74627;font-size:10px;text-decoration:underline}
.reference-upload-card [data-reference-pages]{display:block;font-size:9px;margin-top:5px;color:#586b88}
.reference-upload-card select{width:100%;min-height:28px;border:1px solid #cedbf0;border-radius:4px;background:#fff;font-size:10px;margin-top:4px;padding:3px}
.reference-progress{height:4px;background:#dae7ff;border-radius:4px;overflow:hidden;margin-top:7px}
.reference-progress span{display:block;width:0;height:100%;background:#0051ed;transition:width .22s ease-out}
.reference-upload-card[data-reference-slot=logo]{grid-column:1/-1}
.reference-upload-card[data-reference-slot=logo] [data-reference-upload]{min-height:88px}
.reference-lock-dialog{width:min(360px,calc(100% - 32px));padding:22px;border:1px solid #dbe4f2;border-radius:12px;color:#233652}
.reference-lock-dialog::backdrop{background:#10254288}
.reference-lock-dialog h2{font-size:18px;margin:0 0 10px}
.reference-lock-dialog p{font-size:13px;line-height:1.5}
.reference-lock-dialog button{margin-top:10px;border:0;border-radius:6px;background:#0051ed;color:#fff;padding:10px 20px}
.custom-page .reference-ai-bar{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:47px;overflow:hidden;margin-top:12px;padding:9px;border-radius:7px;background:#0051ed;color:#fff;font-size:12px;cursor:default}
.reference-ai-bar::after{content:'';position:absolute;z-index:-1;inset:-70% -40%;background:linear-gradient(110deg,transparent 40%,var(--reference-sweep-color,#ffffff5c) 50%,transparent 60%);transform:translateX(-100%);animation:reference-sweep 4.5s ease-in-out infinite}
.reference-ai-bar small{display:block;font-size:9px;opacity:.85;margin-top:3px}
.reference-ai-spark{font-size:21px;animation:reference-blink 2s ease-in-out infinite}
@keyframes reference-sweep{0%,25%{transform:translateX(-100%)}75%,100%{transform:translateX(100%)}}
@keyframes reference-blink{0%,100%{opacity:.4}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){.reference-progress span{transition:none}.reference-ai-bar::after,.reference-ai-spark{animation:none}}
@media(max-width:1099px){#reference-mobile-notes:not(:empty){margin-top:14px}}

@media(min-width:1100px){
 body[data-page="customize"] .custom-intro{display:none}
 .custom-page .custom-layout{
  grid-template-columns:minmax(245px,24.1fr) minmax(0,45.6fr) minmax(285px,30.3fr);
  padding:0;gap:0;max-width:none;align-items:stretch;
 }
 .custom-design-panel{
  display:flex;flex-direction:column;min-width:0;min-height:0;overflow:clip;
  padding:clamp(13px,1vw,19px) clamp(15px,1.4vw,27px) 12px;
  border-right:1px solid #d7e0ed;
 }
 .custom-page .custom-visual,.custom-page .custom-settings{margin:0;min-width:0}
 .custom-page .custom-visual{padding:0;overflow:hidden}
 .custom-page .custom-settings{
  padding:clamp(25px,3.2vw,60px) clamp(18px,1.55vw,30px) 24px;
  border-left:1px solid #d7e0ed;
 }
 .custom-page .custom-stage{height:100%;min-height:0;border:0;border-radius:0;padding-bottom:15px}
 .custom-page .model-space{flex:1;min-height:0;height:auto;grid-auto-rows:minmax(0,1fr)}
 .custom-page .stage-caption{margin:26px 25px 4px;font-size:10px}
 .custom-page .stage-hint{margin:8px 14px 0}
 .custom-page .stage-actions button{font-size:12px;padding:7px 13px}
 .custom-page .stage-actions :is([data-model-zoom],[data-flat-zoom]){font-size:18px}
 .custom-page .model-badge{top:55px;right:84px;padding:3px 8px;background:#ffffffeb}
 .studio-background-tools{top:50px}
 .studio-background-custom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;font-size:11px}
 .custom-stage .stage-history{margin-bottom:1px}
 .studio-title-block .custom-eyebrow{display:none}
 .studio-title-block .custom-title-row h1{
  color:#29364a;font-size:clamp(24px,2.2vw,41px);margin:0;line-height:1.04;letter-spacing:-.035em;
 }
 #studio-desktop-title #custom-unit-top{display:none}
 .studio-title-block .custom-description{margin:5px 0 10px;font-size:11px;line-height:1.4;color:#596982}
 .custom-design-panel:focus-visible{outline:2px solid #739cff;outline-offset:-2px}
 #studio-desktop-templates{display:flex;min-height:0}
 .custom-design-panel .custom-templates:not([hidden]){
  display:flex;flex-direction:column;width:100%;min-width:0;
  border:1px solid #dce4ef;border-radius:9px;padding:11px 12px 9px;margin-bottom:10px;
 }
 .custom-design-panel .studio-design-modes{flex:none}
 .custom-design-panel .template-browser:not([hidden]){display:flex;flex-direction:column;min-height:0}
 .custom-design-panel .template-browser>:not(.custom-template-grid){flex:none}
 .custom-design-panel .customer-reference-panel:not([hidden]){min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:3px}
 .custom-design-panel .custom-template-help{display:none}
 .custom-design-panel .custom-search{margin:8px 0}
 .custom-design-panel .custom-template-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:10px;min-height:0;max-height:clamp(195px,38dvh,420px);
  overflow:auto;scrollbar-width:thin;scrollbar-color:#2b63d2 #edf2fa;padding:2px 6px 4px 2px;
 }
 .custom-design-panel .template-thumb{height:auto;aspect-ratio:1.34;background:#fff}
 .custom-design-panel .template-pagination{margin:7px 0 0}
 .custom-design-panel .template-pagination>div{display:none}
 .custom-design-panel .studio-notes{padding:11px 12px;margin:0}
 .custom-design-panel .studio-note-box textarea{resize:none}
 .custom-page .custom-settings fieldset,.custom-page .custom-settings .config-field{margin-bottom:18px}
 .custom-page .custom-settings .custom-price{padding-top:15px}
 .custom-page .custom-settings .builder-cart-link{margin-top:9px}
 #studio-desktop-live{margin-top:26px}
}
@media(min-width:1100px) and (max-height:740px){
 .custom-design-panel{padding-block:10px}
 .studio-title-block .custom-description{margin-bottom:7px}
 .custom-design-panel .custom-templates:not([hidden]){padding:8px 10px;margin-bottom:8px}
 .custom-design-panel .studio-design-modes{margin-bottom:8px}
 .custom-design-panel .custom-search{margin:5px 0 7px}
 .custom-design-panel .custom-search input{padding-block:7px}
 .custom-design-panel .custom-search>span:last-child{top:3px}
 .custom-design-panel .studio-notes{padding-block:8px}
 .custom-design-panel .studio-notes-help{margin-bottom:7px}
 .custom-design-panel .studio-note-box textarea{height:54px;min-height:54px}
 .custom-design-panel .custom-file-list:not(:empty){max-height:62px}
}
@media(min-width:1100px) and (max-height:640px){
 body[data-page="customize"]{height:auto;min-height:100dvh;overflow:auto}
 .custom-page .custom-layout{min-height:610px}
 .custom-page .custom-settings{max-height:610px}
}
@media(max-width:1099px){
 .custom-page .studio-enlarge-template{display:none}
}

/* Generate Design V2 */
.custom-page .studio-design-modes .studio-reference-mode[aria-pressed=true]{background:var(--orange);border-color:var(--orange);box-shadow:0 5px 11px #ff602835}
#quantity-plus,.basket-item [data-quantity][data-delta="1"],[data-cart-count]{background:var(--orange);color:#fff}
#quantity-plus:hover,.basket-item [data-quantity][data-delta="1"]:hover{background:var(--orange);color:#fff;box-shadow:inset 0 0 0 1px #74321b5c}
.logo-reference-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.logo-reference-head small{color:#576784;font-variant-numeric:tabular-nums}
#reference-logo-add{min-height:40px;border:1px dashed #b9c8df;background:#fff5ed;color:#a9380d;border-radius:7px;margin-top:8px;padding:7px 10px}
#reference-logo-add:disabled{opacity:.5;cursor:default}
.logo-reference-list{list-style:none;margin:5px 0 0;padding:0;display:grid;gap:4px}
.logo-reference-list li{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:7px;align-items:center;min-width:0;font-size:10px;padding:4px;background:#fff;border:1px solid #e6ebf3;border-radius:6px}
.logo-reference-list img{width:34px;height:29px;object-fit:contain;background:#f0f3f8}
.logo-reference-list li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.logo-reference-list button{font-size:9px;background:#f8ece9;color:#883815;padding:5px;border-radius:5px}
#reference-logo-status{display:block;margin-top:3px;color:#984014;line-height:1.4}
#studio-additional-upload[hidden],#custom-file-list[hidden],.design-ai-panel[hidden],.studio-cart-notice[hidden],.design-ai-results[hidden],.design-ai-downloads[hidden],#design-ai-side[hidden]{display:none}
.reference-ai-badge{position:absolute;right:5px;top:-7px;z-index:1;isolation:isolate;overflow:hidden;padding:2px 5px;border-radius:999px;background:var(--orange);color:#231b16;font-size:8px;font-weight:700;line-height:1.15;white-space:nowrap}
.reference-ai-badge[hidden]{display:none}
.reference-ai-badge::after{content:'';position:absolute;z-index:-1;inset:-35%;background:linear-gradient(110deg,transparent 42%,#ffffff91 50%,transparent 58%);transform:translateX(-100%);animation:reference-sweep 4s ease-in-out infinite}
.custom-page [data-reference-intent="logo"]{position:relative}
#reference-logo-ai{top:auto;bottom:-7px}
.custom-page .design-ai-panel .reference-ai-bar{--reference-sweep-color:#ff6028a8;background:linear-gradient(115deg,#2676ea,#1459d7 55%,#094bd0);cursor:pointer}
.design-ai-panel .reference-ai-spark{color:var(--orange)}
.design-ai-panel .reference-ai-bar:disabled{opacity:.73;cursor:wait}
.design-ai-result-head{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;font-size:11px;margin:8px 0}
#design-ai-side{display:flex;gap:3px}
#design-ai-side button{background:#f1f4fa;color:#173150;border:1px solid #d8e0ee;border-radius:5px;padding:5px 7px;font-size:9px}
#design-ai-side [aria-pressed=true]{background:#124fc0;color:#fff;border-color:#124fc0}
.design-ai-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.design-ai-grid button{display:grid;align-content:start;gap:5px;min-width:0;padding:5px;border-radius:7px;border:1px solid #dce5f3;background:#fff;color:#173150;font-size:9px;line-height:1.25}
.design-ai-grid button[aria-pressed=true]{border-color:var(--orange);box-shadow:inset 0 0 0 1px var(--orange);background:#fff5ed}
.design-ai-grid img{width:100%;height:auto;display:block;object-fit:contain;background:repeating-conic-gradient(#e8edf4 0% 25%,#fff 0% 50%) 50%/12px 12px;border-radius:3px}
.design-ai-downloads{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.design-ai-downloads a{font-size:10px;color:#124fc0;text-decoration:underline}
.design-ai-dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:7px}
.design-ai-dialog #design-ai-cancel{background:#edf2fa;color:#203956}
.design-ai-dialog #design-ai-confirm{background:var(--orange);color:#fff}
.studio-cart-notice{position:absolute;z-index:12;top:50%;left:50%;transform:translate(-50%,-50%);width:max-content;max-width:90%;border-radius:999px;padding:14px 21px;background:var(--orange);color:#fff;font-size:clamp(12px,1.1vw,16px);font-weight:700;text-align:center;box-shadow:0 10px 28px #25211e40;overflow:hidden;pointer-events:none}
.studio-cart-notice::after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,transparent 35%,#fff5 49%,transparent 63%);animation:studio-cart-sweep 850ms ease-out 1 both}
@keyframes studio-cart-sweep{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
.custom-page #custom-form-feedback.mobile-cart-notice{background:#fff0e6;color:#9d3109!important;border:1px solid #efc4a8;border-radius:8px;padding:10px 12px;font-weight:700}
@media(max-width:649px){.design-ai-grid{gap:7px}}
@media(prefers-reduced-motion:reduce){.studio-cart-notice::after,.reference-ai-badge::after{animation:none}}

#studio-cord-photo {width: 100%; height: auto; margin-top: 16px; border-radius: 12px}
.custom-page[data-accessory] :is(.studio-notes,.custom-templates,.live-preview-card) {display: none !important}
.custom-size-controls { margin-top: .55rem; }
.custom-size-fields { display: flex; align-items: end; gap: .6rem; margin-top: .65rem; max-width: 20rem; }
.custom-size-fields label { flex: 1; min-width: 0; font-size: .8rem; font-weight: 600; }
.custom-size-fields input { display: block; width: 100%; padding: .55rem; border: 1px solid #c5d2e3; border-radius: .25rem; color: inherit; background: #fff; font: inherit; margin-top: .2rem; }
.custom-size-fields input[aria-invalid="true"] { border-color: #a92330; }
.custom-size-fields > span { padding-bottom: .5rem; }
#custom-size-error:not(:empty) { color: #a92330; }
