.custom3d{max-width:1500px;margin:auto;padding:40px 5% 80px}.custom3d-intro h1{font-size:48px;margin:8px 0}.custom3d-layout{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:28px;margin-top:30px;align-items:start}.custom3d-preview{position:sticky;top:24px;background:#eeeff1;border-radius:22px;overflow:hidden;text-align:center}.custom3d-preview p{font-size:12px;padding:12px;color:#656970}#custom-viewer{height:620px;width:100%}#custom-viewer canvas{display:block;width:100%;height:100%}.custom3d-views{display:flex;justify-content:center;gap:8px}.custom3d button,.custom3d select,.custom3d input{font:inherit}.custom3d-views button,.custom3d-photo{background:white;border:1px solid #ddd;border-radius:20px;padding:9px 14px;cursor:pointer}.custom3d-controls{background:white;border:1px solid #e0ded9;border-radius:20px;padding:22px;min-width:0}.custom3d-field,.custom3d-contact label{display:grid;gap:6px;margin-bottom:18px;font-weight:600}.custom3d select,.custom3d-contact input{width:100%;padding:10px;border:1px solid #ccc;border-radius:6px;background:white;min-width:0}.custom3d-group{border:0;border-top:1px solid #eee;margin:20px 0 0;padding:18px 0}.custom3d-group legend{font-weight:700;padding-top:15px}.custom3d-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.custom3d-choice{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;gap:5px;min-height:98px;padding:6px;border:1px solid #d5d8dc;border-radius:10px;cursor:pointer;font-size:11px;overflow-wrap:anywhere}.custom3d-choice:has(input:checked){border:2px solid #b88c3c;background:#fffaf0;padding:5px}.custom3d-choice:focus-within{outline:2px solid #334d72;outline-offset:2px}.custom3d-choice input{position:absolute;opacity:0;width:1px;height:1px}.custom3d-choice img{width:48px;height:44px;object-fit:contain}.custom3d-swatch{width:36px;height:28px;border-radius:5px;border:1px solid #aaa}.custom3d-choice small{font-size:10px;color:#666}.custom3d-photo{font-size:12px;margin-top:8px}.custom3d-price{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #ddd;padding:22px 0}.custom3d-price strong{font-size:25px}#custom-breakdown>div{display:flex;justify-content:space-between;gap:14px;font-size:13px;padding:5px 0}.custom3d-contact{border:0;margin:25px 0 0;padding:0}.custom3d-contact legend{font-weight:700;margin-bottom:15px}.custom3d-controls>.btn{width:100%}.custom3d button:disabled{opacity:.5;cursor:not-allowed}#fabric-dialog{max-width:min(700px,90vw);border:0;border-radius:18px;padding:24px}#fabric-dialog::backdrop{background:#0009}#fabric-dialog img{display:block;max-width:100%;max-height:65vh;object-fit:contain;margin:auto}#fabric-dialog form{text-align:right}#fabric-dialog p{font-size:13px;color:#666}#custom-status,#custom-notice{font-size:13px}#custom-status{color:#a01b27}@media(max-width:1000px){.custom3d-layout{grid-template-columns:minmax(0,1fr) 330px}#custom-viewer{height:500px}.custom3d{padding:25px 3%}}@media(max-width:760px){.custom3d-layout{grid-template-columns:1fr}.custom3d-preview{position:relative;top:0}#custom-viewer{height:390px}.custom3d-controls{padding:18px}.custom3d-intro h1{font-size:36px}}

.custom3d [hidden]{display:none!important}.custom3d-controls,.custom3d-controls legend,.custom3d-controls label,.custom3d-controls strong,.custom3d-views button,#fabric-dialog{color:#22252a}.custom3d-preview{color:#656970}
/* Custom 3D light workspace */
body:has(#custom3d){background:#f1f6f9;color:#17232e}.custom3d{max-width:1600px;padding:30px 3% 60px;color:#17232e}.custom3d-intro h1{font-size:clamp(28px,3vw,44px);letter-spacing:-.035em}.custom3d-intro p{color:#657587;margin-bottom:20px}.custom3d .eyebrow{color:#ac7922;font-size:11px;letter-spacing:.18em}.custom3d-steps{display:flex;justify-content:space-between;gap:15px;padding:18px 24px;border:1px solid #e3ebf0;background:white;border-radius:14px;box-shadow:0 5px 18px #17394a05;font-size:13px}.custom3d-steps>*{display:flex;align-items:center;gap:12px;color:#35485a;text-decoration:none}.custom3d-steps b{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#edf3f6;color:#445466}.custom3d-steps>span:first-child b{background:#12372f;color:white;outline:3px solid #11b879}.custom3d-layout{grid-template-columns:minmax(0,1.55fr) minmax(340px,1fr);gap:20px;margin-top:20px}.custom3d-preview{background:#eaf1f5;border:9px solid white;border-radius:17px;box-shadow:0 6px 25px #1c3d4d08;top:20px}.custom3d-preview-head{display:flex;align-items:center;justify-content:space-between;padding:12px 12px 0}.custom3d-preview-head strong{background:#172a34;color:white;padding:10px 15px;border-radius:10px;font-size:13px}.custom3d-preview-head button{background:white;border:1px solid #dce5eb;border-radius:9px;font-size:22px;cursor:pointer;width:38px;height:38px}#custom-viewer{height:560px}.custom3d-controls{padding:16px;border:1px solid #e1e9ed;border-radius:17px;box-shadow:0 6px 25px #1c3d4d08}.custom3d-controls h2{font-size:17px;margin:0 0 13px}.custom3d-model-select{display:none}#custom-shapes{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}.custom3d-shape{display:flex;flex-direction:column;align-items:center;gap:7px;padding:10px;background:white;border:1px solid #dde6ec;border-radius:9px;cursor:pointer;color:#263844;font-size:12px!important}.custom3d-shape[aria-pressed=true]{border-color:#08b477;background:#f0fff7;box-shadow:inset 0 0 0 1px #08b477}.shape-icon{display:block;background:#253746;width:66px;height:30px;clip-path:polygon(15% 0,85% 0,100% 50%,85% 100%,15% 100%,0 50%)}.shape-icon.octagon{width:34px;height:34px;clip-path:polygon(30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%)}.custom3d-group{margin:8px 0;padding:9px;border:1px solid #e6edf1;border-radius:10px;position:relative}.custom3d-group summary{list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer;font-size:12px;min-height:22px}.custom3d-group summary::-webkit-details-marker{display:none}.custom3d-group summary:after{content:'';margin-left:4px;flex:0 0 26px;width:26px;height:26px;border:1px solid #e2eae9;border-radius:8px;background:#f5f8f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235a756c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") center/18px no-repeat;transition:transform .18s ease,background-color .18s ease}.custom3d-group[open]>summary:after{transform:rotate(180deg)}.custom3d-group summary:hover:after{background-color:#e8f6ef}.custom3d-group summary:focus-visible{border-radius:5px}.custom3d-group summary small{margin-left:auto;font-size:10px;color:#73808c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:48%}.custom3d-group[open]>.custom3d-choices{margin-top:8px}.custom3d-choice{min-height:66px;font-size:10px;padding:5px;border-radius:7px;gap:4px}.custom3d-choice:has(input:checked){border:1px solid #08b477;box-shadow:inset 0 0 0 1px #08b477;background:#f1fff7;padding:5px}.custom3d-choice img{height:31px;width:38px}.custom3d-swatch{width:30px;height:23px}.custom3d-photo{font-size:10px!important;padding:5px 8px;margin-top:7px;color:#4b6771}.custom3d-toggle-group{padding-right:65px;min-height:48px}.custom3d-toggle-group summary:after{display:none}.custom3d-toggle-group summary{pointer-events:none}.custom3d-toggle{position:absolute;right:10px;top:12px;width:39px;height:23px;background:#cad4dc;border:0;border-radius:20px;cursor:pointer}.custom3d-toggle:after{content:'';display:block;position:absolute;top:3px;left:3px;width:17px;height:17px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:transform .15s}.custom3d-toggle[aria-checked=true]{background:#08b477}.custom3d-toggle[aria-checked=true]:after{transform:translateX(16px)}.custom3d-views button[aria-pressed=true]{color:#078452;border-color:#08b477}.custom3d-views{margin-top:8px}#custom-summary{margin-top:20px;border-top:1px solid #e1e8ed;padding-top:16px}.custom3d-summary-heading{display:flex;align-items:center;justify-content:space-between}.custom3d-summary-heading button{border:0;background:none;text-decoration:underline;color:#718290;font-size:11px;cursor:pointer}#custom-selection-name{font-size:12px;font-weight:600;color:#475e6c}#custom-selected{font-size:11px;margin:14px 0}#custom-selected>div{display:flex;justify-content:space-between;gap:15px;padding:3px 0}#custom-selected dt{color:#70818c}#custom-selected dd{margin:0;text-align:right}.custom3d-price{padding:14px 0;font-size:13px}.custom3d-price strong{font-size:21px}.custom3d-contact{margin-top:14px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.custom3d-contact legend{font-size:13px;margin-bottom:8px}.custom3d-contact label{font-size:11px;margin-bottom:0}.custom3d-contact label:first-of-type{grid-column:1/-1}.custom3d-contact input{padding:8px;font-size:13px}#custom-add{width:100%;margin-top:14px;background:#00ad70;color:white;border:0;border-radius:10px;padding:13px;cursor:pointer}.custom3d-field{font-size:12px;margin-bottom:12px}.custom3d-preview:fullscreen{border:0;border-radius:0;display:flex;flex-direction:column}.custom3d-preview:fullscreen #custom-viewer{flex:1;height:auto}.custom3d button:focus-visible,.custom3d summary:focus-visible{outline:3px solid #428bad;outline-offset:2px}
@media(max-width:1100px){#custom-viewer{height:480px}.custom3d-layout{grid-template-columns:minmax(0,1fr) 365px}.custom3d-steps{font-size:11px}}@media(max-width:800px){.custom3d-layout{grid-template-columns:1fr}.custom3d-preview{position:relative;top:0}#custom-viewer{height:410px}.custom3d-steps{padding:12px;gap:7px}.custom3d-steps>*{gap:7px}.custom3d-steps b{flex-shrink:0;width:26px;height:26px}}@media(max-width:450px){.custom3d{padding:22px 12px}.custom3d-steps{font-size:10px}.custom3d-steps>*{flex-direction:column;text-align:center}#custom-viewer{height:310px}.custom3d-controls{padding:12px}.custom3d-intro h1{font-size:30px}.custom3d-preview{border-width:6px}}
body:has(#custom3d) .public-header{color:#f8f4ec}.custom3d-preview{top:90px}.custom3d-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px}.custom3d-gallery button{background:#f6f9fa;border:1px solid #dae5ec;border-radius:9px;padding:3px;cursor:pointer;overflow:hidden}.custom3d-gallery img{width:100%;aspect-ratio:1.5;object-fit:contain}.custom3d-preview:fullscreen .custom3d-gallery{display:none}@media(max-width:800px){.custom3d-preview{top:0}}



/* Visual-only choices; names remain in the section summary and accessible labels. */
.custom3d-choice{min-height:46px;padding:5px;gap:0}.custom3d-choice:has(input:checked){padding:5px}.custom3d-group{padding:8px;margin:6px 0}.custom3d-group[open]>.custom3d-choices{margin-top:6px}.custom3d-choices{gap:5px}.custom3d-option-symbol{font-size:27px;line-height:1;color:#344954}.custom3d-toggle-group{padding-right:65px}

/* Material preview: deliberate hold, no extra row below the choices. */
.custom3d-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.custom3d-choice.has-material-photo{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:pan-y}
.custom3d-choice.has-material-photo img{pointer-events:none;-webkit-user-drag:none}
.custom3d-choice.has-material-photo:before{content:'';position:absolute;right:5px;top:5px;width:9px;height:7px;border:1px solid #71928b;border-radius:2px;background:radial-gradient(circle,#71928b 1px,transparent 2px);opacity:.7}
.custom3d-choice.is-holding:after{content:'';position:absolute;bottom:0;left:0;right:0;height:3px;background:#08b477;transform-origin:left;animation:material-hold 0.35s linear forwards}
@keyframes material-hold{from{transform:scaleX(0)}to{transform:scaleX(1)}}
#fabric-dialog{width:min(520px,calc(100vw - 32px),calc(100dvh - 175px));max-width:none;max-height:calc(100dvh - 24px);padding:18px;border:1px solid #e3ebe8;border-radius:20px;background:#fff;box-shadow:0 24px 90px #071e2840;overflow:auto;color:#172d35}
#fabric-dialog::backdrop{background:#0b1c2866;backdrop-filter:blur(5px)}
.material-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.material-dialog-header>div{min-width:0}.material-dialog-header span{font-size:9px;letter-spacing:.18em;font-weight:700;color:#078459}
#fabric-dialog h2{font-size:21px;line-height:1.25;margin:4px 0 0;overflow-wrap:anywhere}#fabric-dialog form{margin:0}
.material-dialog-close{display:grid;place-items:center;width:38px;height:38px;border:1px solid #dbe7e2;border-radius:50%;background:#f2f8f5;color:#24483c;cursor:pointer;flex-shrink:0}.material-dialog-close:hover{background:#e1f5e9;border-color:#0caf79}.material-dialog-close svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.material-photo-square{position:relative;aspect-ratio:1;width:100%;overflow:hidden;border-radius:12px;background:#edf3f0;display:grid;place-items:center}
#fabric-dialog #fabric-image{width:100%;height:100%;max-height:none;max-width:none;object-fit:cover;object-position:center;position:absolute;inset:0;margin:0}
#fabric-dialog #fabric-status{padding:20px;text-align:center;font-size:12px;color:#61766b}#fabric-dialog #fabric-caption{font-size:11px;line-height:1.5;margin:13px 0 0;color:#74817b}
@media(prefers-reduced-motion:reduce){.custom3d-choice.is-holding:after{animation:none;transform:scaleX(1)}}

/* Keep a continued touch hold from invoking image actions in the preview. */
#fabric-dialog{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
#fabric-dialog #fabric-image{pointer-events:none;-webkit-user-drag:none}
@media(prefers-reduced-motion:reduce){.custom3d-group summary:after{transition:none}}

/* Colour cards share one row while their swatches retain their original size. */
.custom3d-colour-row{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(50px,1fr);overflow-x:auto;padding:3px;margin-inline:-3px;scrollbar-width:thin;scrollbar-color:#bdd6cd transparent}
.custom3d-colour-row .custom3d-choice{min-width:0;touch-action:pan-x pan-y}
.custom3d-colour-row .custom3d-swatch{flex:none}

/* Explicit configure → review → cart flow. */
.custom3d-steps button{border:0;background:none;padding:0;text-align:left;cursor:pointer;font-size:inherit}
.custom3d-steps [aria-current=step] b{background:#12372f;color:#fff;outline:3px solid #11b879}
#custom-form{scroll-margin-top:100px}#custom-continue{width:100%;background:#00ad70;color:white;border:0;border-radius:10px;padding:13px;cursor:pointer}
#custom-reset{border:0;background:none;color:#667c86;text-decoration:underline;font-size:12px;cursor:pointer;padding:8px 0}
.custom3d[data-step=review] #custom-summary{margin:0;border:0;padding:0}
#custom-selected>div{display:grid;grid-template-columns:42px 1fr;gap:3px 10px;padding:10px 0;border-bottom:1px solid #edf2f4;align-items:center}
#custom-selected dt{font-size:11px}#custom-selected dd{text-align:left;font-size:13px;font-weight:600;grid-column:2}
.custom3d-review-visual{grid-row:1/3;display:grid;place-items:center;width:42px;height:42px;background:#f2f7f8;border-radius:9px;color:#08a773;font-size:20px}
.custom3d-review-visual img{width:36px;height:36px;object-fit:contain}
.custom3d-contact label:first-of-type{grid-column:auto}.custom3d-contact p{grid-column:1/-1;font-size:12px;color:#70818c;line-height:1.5;margin:4px 0}

.custom3d-steps{scroll-margin-top:90px}

/* Review is a compact confirmation workspace, with contacts as the next action. */
.custom3d-production-note{margin:16px 0 0;padding:14px 16px;border:1px solid var(--work-line);border-left:3px solid #c79b35;background:var(--work-panel-soft);color:var(--work-muted);font-size:12px;line-height:1.65}.custom3d-production-note strong{color:var(--work-ink)}
.custom3d[data-step=review] .custom3d-intro{display:none}
.custom3d[data-step=review]{padding-top:16px}
.custom3d[data-step=review] .custom3d-layout{grid-template-columns:minmax(0,1fr) minmax(480px,1.2fr);gap:18px;margin-top:12px}
.custom3d[data-step=review] #custom-viewer{height:clamp(240px,42vh,440px)}
.custom3d[data-step=review] .custom3d-gallery{display:none}
.custom3d[data-step=review] .custom3d-preview p{margin:4px 0;padding:8px}
.custom3d[data-step=review] #custom-selected{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;margin:8px 0}
.custom3d[data-step=review] #custom-selected>div{grid-template-columns:32px minmax(0,1fr);padding:6px 0;gap:1px 8px}
.custom3d[data-step=review] #custom-selected dd{font-size:12px;line-height:1.3;overflow-wrap:anywhere}
.custom3d[data-step=review] .custom3d-review-visual{width:32px;height:32px}.custom3d[data-step=review] .custom3d-review-visual img{width:30px;height:30px}
.custom3d[data-step=review] #custom-selection-name{margin:4px 0 8px}
.custom3d[data-step=review] .custom3d-summary-heading h2{margin-bottom:6px}
.custom3d[data-step=review] .custom3d-price{padding:8px 0}
.custom3d[data-step=review] .custom3d-contact{padding:10px 12px 12px;background:#effbf5;border:1px solid #8cd8b9;border-radius:12px;margin-top:8px;gap:8px 12px}
.custom3d[data-step=review] .custom3d-contact legend{padding:0 6px;color:#087a52;font-weight:750;margin:0}
.custom3d[data-step=review] .custom3d-contact label{display:block;line-height:1.4}
.custom3d[data-step=review] .custom3d-contact input{display:block;margin-top:3px;border-color:#b9d9cd;background:#fff;height:36px}
.custom3d[data-step=review] .custom3d-contact input:focus{outline:3px solid #00ad7033;border-color:#00ad70}
.contact-required{color:#087a52}
.custom3d[data-step=review] .custom3d-contact p{font-size:11px;margin:0}
.custom3d[data-step=review] #custom-add{margin-top:10px;padding:11px}
#custom-notice:empty,#custom-status:empty{display:none}
@media(max-width:900px){.custom3d[data-step=review] .custom3d-layout{grid-template-columns:1fr}.custom3d[data-step=review] #custom-viewer{height:230px}.custom3d[data-step=review] .custom3d-preview{position:relative;top:0}}
@media(max-width:450px){.custom3d[data-step=review] #custom-selected{gap:0 10px}.custom3d[data-step=review] .custom3d-contact{grid-template-columns:1fr}.custom3d[data-step=review] #custom-selected dd{font-size:11px}}

@media(min-width:901px){
.custom3d[data-step=review] .custom3d-steps{padding:12px 20px}
.custom3d[data-step=review] .custom3d-controls{padding:12px}
.custom3d[data-step=review] #custom-selected>div{padding:3px 0}
.custom3d[data-step=review] .custom3d-contact input{height:32px;padding:6px 8px}
.custom3d[data-step=review] .custom3d-contact{padding:8px 10px 10px;gap:6px 12px}
}

/* Preserve the hero across steps and keep the final action compact. */
.custom3d[data-step=review] .custom3d-intro{display:block}
.custom3d[data-step=review]{padding-top:30px}
.custom3d[data-step=review] #custom-add{display:block;width:50%;margin-left:auto}
#draft-status{font-size:11px;color:#637d78;margin:7px 0 0;text-align:right}#draft-status:empty{display:none}
@media(max-width:600px){.custom3d[data-step=review] #custom-add{width:100%}}

#custom3d{scroll-margin-top:80px}

.custom3d-folding-notice{margin:8px 0 10px;padding:10px 12px;border:1px solid #b9dccf;border-left:3px solid #08a773;border-radius:9px;background:#f1fbf6;color:#526c63;font-size:11px;line-height:1.5}.custom3d-folding-notice strong{display:block;color:#173e32;font-size:12px}.custom3d-folding-notice[hidden]{display:none}
