.config-page{background:#f6f6f2}.config-page header{position:static}.config-back{font-size:12px;color:white}.config-main{max-width:1500px;margin:auto;padding:40px 4% 65px}.config-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:32px}.config-heading .eyebrow{font-size:9px}.config-heading h1{font-size:36px;line-height:1.1;letter-spacing:-1.2px;margin:12px 0 0}.config-workspace{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(330px,1fr);gap:30px;align-items:start}.config-stage{min-width:0;position:sticky;top:20px;background:white;border:1px solid #e8e8e2}.stage-top,.stage-bottom{display:flex;align-items:center;justify-content:space-between;padding:19px 24px;font-size:10px;letter-spacing:1px}.stage-top label{font-size:10px;letter-spacing:0;color:#777;display:flex;gap:8px;align-items:center}.canvas-wrap{position:relative;max-width:710px;margin:auto;aspect-ratio:1;background:#fff}.canvas-wrap canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.canvas-wrap canvas:active{cursor:grabbing}.canvas-status{position:absolute;inset:0;display:grid;place-items:center;background:#ffffffbb;color:#555;font-size:13px;padding:35px;text-align:center}.canvas-status[hidden]{display:none}.stage-bottom{border-top:1px solid #eee;letter-spacing:0;font-size:12px;gap:15px}.stage-badge{white-space:nowrap;color:#999;font-size:8px;letter-spacing:1px}.stage-help{font-size:11px;color:#888;line-height:1.5;padding:0 24px;margin:0 0 18px}.stage-actions{display:flex;flex-wrap:wrap;gap:8px;padding:0 24px 24px}.stage-actions button{font-size:10px;padding:11px 12px}.config-editor{background:white;border:1px solid #e8e8e2;min-width:0}.config-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #e5e5df}.config-tabs button{padding:20px 10px;border:0;background:#fafaf7;font-size:12px;font-weight:bold;border-bottom:3px solid transparent;color:#999}.config-tabs button[aria-selected=true]{border-color:var(--yellow);color:#141414;background:white}.config-tabs span{margin-left:6px}.config-panel{padding:30px}.config-panel[hidden]{display:none}.config-panel h2{font-size:27px;letter-spacing:-.8px;margin:0 0 26px}.config-panel>label,.config-panel div>label{display:block;font-size:11px;font-weight:bold;margin:20px 0 9px}.config-panel input:not([type=range]),.config-panel textarea{width:100%;padding:14px;border:1px solid #dcdcd5;border-radius:0;background:#fff;font:inherit;font-size:13px}.config-panel select{font-size:12px;padding:14px}.config-panel input[type=range]{width:100%;accent-color:#141414;margin:5px 0}.config-panel input[type=color]{padding:3px;height:46px}.config-sku{font-size:10px;color:#999;line-height:1.6;margin-top:20px;overflow-wrap:anywhere}.config-base-price{display:flex;justify-content:space-between;align-items:center;padding:24px 0;margin:5px 0 10px;border-bottom:1px solid #eee;font-size:12px}.config-base-price strong{font-size:22px;letter-spacing:-.5px}.full{width:100%;margin-top:12px}.config-panel .button{font-size:11px;padding:18px 22px}.config-hint{font-size:11px;line-height:1.7;color:#777}.design-add{display:flex;gap:10px;margin-top:24px}.upload-button{display:flex;align-items:center;justify-content:center;padding:13px 15px;border:1px solid #ddd;font-size:11px;cursor:pointer;flex:1;font-weight:700}.design-add .outline{font-size:11px;flex:1}.upload-formats{font-size:9px;color:#999;margin:10px 0 22px}.layer-list{display:flex;flex-direction:column;gap:7px;margin:12px 0}.layer-list button{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;border:1px solid #ddd;background:#f7f7f4;padding:12px 14px;font-size:11px}.layer-list button.active{border-color:#141414;box-shadow:inset 3px 0 var(--yellow)}.layer-list small{font-size:9px;color:#999}.control-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}.config-panel label>span{float:right;color:#999;font-weight:400}.layer-actions{display:flex;justify-content:space-between;gap:10px;margin:22px 0}.text-button{border:0;background:none;text-decoration:underline;font-size:10px;color:#777;padding:5px 0}.design-summary{font-size:12px;line-height:1.8;color:#555;border-bottom:1px solid #eee;padding-bottom:20px}.design-summary strong{font-size:15px;color:#141414}.summary-pricing{border-top:1px solid #eee;border-bottom:1px solid #eee;margin-top:24px;padding:18px 0}.summary-pricing>div{display:flex;justify-content:space-between;gap:15px;padding:7px 0;font-size:12px}.summary-pricing>div:first-child strong{font-size:19px}.config-message{padding:0 30px 24px;margin:0;font-size:11px;line-height:1.6;color:#666}.config-editor [hidden]{display:none}.config-page footer{margin-top:0}@media(min-width:1400px){.canvas-wrap{max-width:650px}}@media(max-width:900px){.config-workspace{grid-template-columns:1fr 1fr;gap:18px}.config-panel{padding:22px}.config-heading h1{font-size:31px}.stage-top,.stage-bottom{padding:16px}.stage-actions{padding:0 16px 18px}.stage-help{padding:0 16px}.config-base-price strong{font-size:18px}}@media(max-width:700px){.config-main{padding:28px 5% 40px}.config-heading{margin-bottom:24px;align-items:flex-start}.config-heading h1{font-size:29px}.config-heading .outline{font-size:9px;padding:10px}.config-workspace{grid-template-columns:1fr;gap:18px}.config-stage{position:static}.canvas-wrap{max-width:470px}.config-panel{padding:24px}.config-panel h2{font-size:26px}.config-tabs button{padding:17px 10px}.stage-actions button{font-size:10px}.config-message{padding:0 24px 22px}.stage-top label{font-size:9px}.stage-top{font-size:9px}.config-back{font-size:10px}.config-page header{flex-wrap:nowrap}.config-page .brand img{width:120px;height:64px}}
.design-add .upload-button{display:flex;margin:0}.config-cart-link{font-weight:bold;color:#141414;text-decoration:underline;display:inline-block;margin-top:8px}
.canvas-wrap{overflow:hidden}.canvas-wrap.stitch-zoom canvas{transform:scale(1.75);transform-origin:50% 43%}.upload-formats{line-height:1.7}.stage-badge{color:#6d6d60}

.design-add.drag-over{outline:2px dashed #b39a00;outline-offset:8px;background:#fff8ca}.checkbox-label{display:flex!important;align-items:flex-start;gap:10px;line-height:1.5}.config-panel .checkbox-label input{width:auto!important;margin-top:2px}.cutout-controls{margin-top:20px;border-top:1px solid #eee}.config-page button:focus-visible,.config-page canvas:focus-visible,.config-page select:focus-visible{outline:3px solid #b39a00;outline-offset:3px}.design-add.processing{opacity:.6;pointer-events:none}

.picker-label{font-size:13px;margin:24px 0 10px}.picker-note{font-size:11px;line-height:1.6;color:#777;margin:0 0 14px}.cap-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:365px;overflow-y:auto;overscroll-behavior:contain;padding:4px 8px 4px 4px}.picker-group{grid-column:1/-1;font-size:10px;letter-spacing:1px;color:#777;margin:10px 0 2px}.cap-choice{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:0;padding:10px 8px 12px;background:#fff;border:1px solid #deded7;text-align:center;color:#141414;cursor:pointer}.cap-choice img{width:100%;height:110px;object-fit:contain;mix-blend-mode:multiply;margin-bottom:10px}.cap-choice strong{font-size:12px;line-height:1.4}.cap-choice span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10px;line-height:1.5;color:#777;margin-top:4px}.cap-choice:hover{border-color:#999;background:#fafaf5}.cap-choice.active{border:2px solid #141414;padding:9px 7px 11px;background:#fffbe3}.cap-choice.active::after{content:'✓';position:absolute;top:6px;right:6px;background:var(--yellow);border-radius:50%;width:20px;height:20px;line-height:20px;font-size:12px;font-weight:bold}.color-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:240px;overflow-y:auto;padding:4px}.color-picker .cap-choice img{height:70px;margin-bottom:7px}.color-picker .cap-choice strong{font-size:10px}.config-panel input[type=hidden]{display:none}@media(max-width:700px){.cap-picker{max-height:340px}.cap-choice img{height:120px}.color-picker{grid-template-columns:repeat(3,minmax(0,1fr))}}
.thread-swatches{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.thread-swatch{width:42px;height:42px;border:2px solid #fff;border-radius:50%;padding:0;box-shadow:0 0 0 1px #ddd;cursor:pointer;background:repeating-linear-gradient(110deg,transparent 0 2px,#ffffff25 2px 3px,#00000015 3px 4px),var(--thread)}.thread-swatch[aria-pressed=true]{outline:3px solid #174a39;outline-offset:2px}.thread-swatch:hover{transform:scale(1.06)}.stitch-check{padding:14px;background:#f6f6f2;margin-top:20px;font-size:12px}.stitch-check p{margin:0 0 10px;line-height:1.5}.stitch-check.invalid{background:#fff0e5;color:#923c09}.area-calibration{margin:0 24px 20px;font-size:11px;color:#666;line-height:1.5}.area-calibration summary{cursor:pointer;font-weight:bold}.area-calibration input{width:100%;padding:8px;border:1px solid #ddd;margin:7px 0}.area-calibration label{display:block;margin-top:12px}.area-calibration p{margin:10px 0}.config-panel .stitch-check label{margin-top:12px}.canvas-wrap.stitch-zoom canvas{transform-origin:50% 48%}
.stitch-summary-warning{color:#923c09;background:#fff0e5;padding:12px;line-height:1.6}

.cap-select-bar{display:flex;align-items:center;gap:16px;padding:18px 24px;border-bottom:1px solid #eee}.cap-select-bar .button{font-size:12px;padding:14px 18px;white-space:nowrap}.cap-select-bar>span{font-size:12px;line-height:1.5;color:#666}.cap-picker-open{overflow:hidden}.cap-picker-dialog{width:min(900px,calc(100vw - 32px));max-height:calc(100dvh - 40px);box-sizing:border-box;border:0;padding:28px;background:#f6f6f2;color:#141414;overflow:auto;overscroll-behavior:contain}.cap-picker-dialog::backdrop{background:#0009}.cap-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.cap-dialog-heading h2{font-size:28px;margin:0;letter-spacing:-.8px}.cap-dialog-heading button{font-size:26px;padding:4px 14px;min-height:44px}.cap-picker-dialog>label{display:block;font-size:12px;font-weight:bold;margin-bottom:9px}.cap-picker-dialog input[type=search]{width:100%;padding:14px;border:1px solid #dcdcd5;background:#fff;font:inherit;font-size:16px;box-sizing:border-box}.cap-picker-dialog .cap-picker{grid-template-columns:repeat(4,minmax(0,1fr));max-height:none;overflow:visible;padding:4px}.cap-picker-dialog .cap-choice img{height:145px}.cap-picker-dialog [hidden]{display:none}.cap-picker-dialog button:focus-visible,.cap-picker-dialog input:focus-visible{outline:3px solid #b39a00;outline-offset:3px}.config-stage{scroll-margin-top:16px}@media(max-width:700px){.cap-select-bar{padding:14px 16px;gap:12px}.cap-select-bar .button{padding:14px;font-size:12px}.cap-select-bar>span{font-size:11px}.cap-picker-dialog{padding:20px 16px;max-height:calc(100dvh - 24px);width:calc(100vw - 20px)}.cap-dialog-heading h2{font-size:24px}.cap-picker-dialog .cap-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.cap-picker-dialog .cap-choice img{height:125px}}

.mobile-config-nav,.mobile-base-price,.mobile-restore{display:none}.mobile-editor-dialog{border:0;padding:0}.mobile-sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;background:white;border-bottom:1px solid #eee;position:sticky;top:0;z-index:2}.mobile-sheet-heading strong{font-size:15px}.mobile-sheet-heading button{min-height:44px;padding:10px 16px;font-size:12px}.mobile-editor-dialog::backdrop{background:#0008}
@media(max-width:700px){
 html:has(.config-page){height:100%;overflow:hidden;scroll-padding:0}.config-page{height:100vh;height:100dvh;overflow:hidden;display:flex;flex-direction:column}.config-page .announcement,.config-page footer,.config-heading{display:none}.config-page header{flex:0 0 56px;height:56px;min-height:56px;padding:4px 12px;gap:10px}.config-page header .brand img{width:88px;height:46px}.config-page header .config-back{font-size:10px;line-height:1.3;color:white}.config-page header .customer-header-link{font-size:10px;padding:8px 0}.config-main{flex:1;min-height:0;width:100%;max-width:none;padding:0;margin:0;display:flex}.config-workspace{display:flex;flex:1;min-height:0;width:100%;gap:0;align-items:stretch}.config-stage{position:relative;top:auto;display:flex;flex-direction:column;flex:1;min-height:0;width:100%;border:0;background:#f6f6f2;scroll-margin:0}.cap-select-bar{flex:none;padding:8px 12px;gap:12px;background:white}.cap-select-bar .button{font-size:12px;padding:10px 14px;min-height:44px}.cap-select-bar>span{font-size:11px;line-height:1.3}.stage-top{flex:none;padding:8px 12px;min-height:32px}.canvas-wrap{flex:1;min-height:0;max-width:none;width:100%;margin:0;aspect-ratio:auto;display:block;background:#fff}.canvas-wrap canvas{position:absolute;inset:0;margin:auto;width:100%;height:auto;max-width:100%;max-height:100%;aspect-ratio:1;flex:none}.stage-bottom{flex:none;padding:10px 12px;min-height:40px;gap:8px;background:white}.stage-bottom #stageName{font-size:11px}.stage-bottom .stage-badge{display:none}.mobile-base-price{display:block;white-space:nowrap;font-size:14px}.stage-help,.area-calibration{display:none}.stage-actions{flex:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:6px 12px;background:white}.stage-actions button{font-size:0;padding:0;min-width:0;min-height:44px;display:grid;place-items:center;margin:0}.stage-actions button::before{font-size:22px;line-height:1}.stage-actions #zoomEmbroidery::before{content:'⊕'}.stage-actions #centerLayer::before{content:'⊙'}.stage-actions #downloadPreview::before{content:'↓'}.stage-actions #undoDesign::before{content:'↶'}.stage-actions #mobileRestoreDesign::before{content:'▤'}.mobile-config-nav{flex:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0 0 env(safe-area-inset-bottom);background:white;border-top:1px solid #ddd;width:100%;gap:0}.mobile-config-nav button{border:0;border-right:1px solid #eee;background:white;min-height:64px;padding:8px 4px;font-size:12px;font-weight:bold;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;letter-spacing:0}.mobile-config-nav button span{font-size:23px;line-height:1}.mobile-config-nav button:last-child{background:#141414;color:white;border:0}.mobile-editor-dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:80vh;max-height:80dvh;overflow:auto;overscroll-behavior:contain;border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom);background:white}.mobile-editor-dialog .config-editor{border:0}.mobile-editor-dialog .config-tabs{display:none}.mobile-editor-dialog .config-panel{padding:18px 20px}.mobile-editor-dialog .config-panel h2{font-size:24px;margin-bottom:18px}.mobile-editor-dialog input,.mobile-editor-dialog select,.mobile-editor-dialog textarea{font-size:16px!important}.mobile-editor-dialog .config-message:empty{display:none}.mobile-editor-dialog .config-message{padding:0 20px 20px}.mobile-editor-dialog .color-picker{max-height:200px}.mobile-editor-dialog .config-panel>button[data-next]{display:none}.mobile-editor-dialog .upload-formats{font-size:11px}.mobile-editor-dialog .config-hint{font-size:12px}.mobile-editor-dialog .config-panel .button{min-height:48px}.cap-picker-dialog{z-index:10}.mobile-editor-dialog .config-panel input[type=hidden]{display:none}
}

.design-help-button{border:0;border-radius:8px;background:linear-gradient(115deg,#5635ca,#a71983,#bd3522);color:white;font-size:12px;line-height:1.3;font-weight:800;padding:14px 16px;min-height:44px;cursor:pointer;box-shadow:0 4px 14px #a7198330}.design-help-button:hover{filter:brightness(1.08)}.design-help-button>span{font-size:18px;margin-right:5px}.cap-select-bar #selectedCapName{flex:1}.design-help-dialog{width:min(660px,calc(100vw - 28px));max-height:calc(100dvh - 32px);border:0;border-radius:16px;padding:28px;overflow:auto;overscroll-behavior:contain;color:#141414;background:white}.design-help-dialog::backdrop{background:#0009}.help-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.help-heading h2{font-size:28px;line-height:1.15;letter-spacing:-.8px;margin:10px 0}.help-eyebrow{font-size:9px;letter-spacing:1px;color:#913583;font-weight:bold}.help-heading>button{min-width:44px;min-height:44px;font-size:25px;padding:4px 12px}.help-intro{font-size:13px;line-height:1.6;color:#666}.design-help-dialog label:not(.help-checkbox){display:block;font-size:12px;font-weight:bold;margin:18px 0 8px}.design-help-dialog input:not([type=checkbox]),.design-help-dialog select,.design-help-dialog textarea{width:100%;min-width:0;padding:12px;border:1px solid #ddd;border-radius:6px;background:white;color:#141414;font:inherit;font-size:16px}.help-pair{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.help-checkbox{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.5;margin:18px 0 10px}.help-checkbox input{flex:none;margin:2px 0;accent-color:#7933b9;width:18px;height:18px}.help-note{font-size:11px;line-height:1.5;color:#777;margin:8px 0}.help-product{padding:12px;background:#f6f2fa;font-size:12px;line-height:1.5;border-radius:6px}.help-submit{width:100%;margin-top:12px}.help-honeypot{position:absolute;left:-9999px;opacity:0;pointer-events:none}#helpStatus{font-size:13px;line-height:1.6}#helpStatus:empty{display:none}.design-help-dialog button:focus-visible{outline:3px solid #e9ca00;outline-offset:3px}@media(max-width:700px){.cap-select-bar #selectedCapName{display:none}.cap-select-bar .design-help-button{margin-left:auto;padding:10px 12px;font-size:11px}.design-help-dialog{padding:20px 16px;width:calc(100vw - 20px);max-height:calc(100dvh - 24px)}.help-heading h2{font-size:24px}.help-pair{grid-template-columns:1fr}.help-intro{font-size:12px}}

@media(max-width:700px){.cap-select-bar{gap:8px}.cap-select-bar .button{gap:8px;padding:10px 12px;font-size:11px}}

.cap-discount-tiers{margin:20px 0;background:#f4f4f4;border-radius:8px;padding:16px}.cap-discount-tiers summary{font-weight:700;cursor:pointer}.cap-discount-tiers table{width:100%;border-collapse:collapse;font-size:13px;margin-top:12px;text-align:center}.cap-discount-tiers caption{font-size:11px;color:#666;padding-bottom:10px;line-height:1.5}.cap-discount-tiers th,.cap-discount-tiers td{padding:7px}.cap-discount-tiers tbody tr:nth-child(even){background:#e5e5e5}.cap-discount-tiers tbody tr.active{background:#242424;color:#fff}.cap-discount-tiers[hidden]{display:none}

/* Let the mobile product preview participate in normal page scrolling. */
@media(max-width:700px){
 html:has(.config-page){height:auto;overflow-y:auto;scroll-padding:16px}
 .config-page{height:auto;min-height:100dvh;overflow:visible;display:block}
 .config-page .config-main{flex:none;min-height:0}
 .config-page .config-workspace{flex:none;display:block}
 .config-page .config-stage{flex:none;min-height:0}
 .config-page .canvas-wrap{flex:none;aspect-ratio:1;width:100%;min-height:0}
 .config-page .config-order-bar{position:sticky;bottom:0}
}
