/* Original prototype CSS scoped to the WooCommerce configurator. */
body.single-product .entry-summary .td-door-prototype{--ink:#332820;--muted:#75685c;--brown:#865026;--line:#e2d8cc;--bg:#f7f2eb;--card:#fffdf9;--green:#38634b}body.single-product .entry-summary .td-door-prototype *{box-sizing:border-box}body.single-product .entry-summary .td-door-prototype{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 system-ui,sans-serif}body.single-product .entry-summary .td-door-prototype button,body.single-product .entry-summary .td-door-prototype input,body.single-product .entry-summary .td-door-prototype select{font:inherit;color:inherit}body.single-product .entry-summary .td-door-prototype button,body.single-product .entry-summary .td-door-prototype select,body.single-product .entry-summary .td-door-prototype input{border:1px solid var(--line);border-radius:9px;background:white;padding:10px 13px}body.single-product .entry-summary .td-door-prototype button{cursor:pointer}body.single-product .entry-summary .td-door-prototype button:hover{border-color:var(--brown)}body.single-product .entry-summary .td-door-prototype button:focus-visible,body.single-product .entry-summary .td-door-prototype input:focus-visible,body.single-product .entry-summary .td-door-prototype select:focus-visible,body.single-product .entry-summary .td-door-prototype summary:focus-visible{outline:3px solid #b47b43;outline-offset:2px}body.single-product .entry-summary .td-door-prototype button:disabled{cursor:not-allowed;opacity:.5}body.single-product .entry-summary .td-door-prototype header{background:#6b5240;color:white;padding:17px 5%;display:flex;align-items:center;gap:30px}body.single-product .entry-summary .td-door-prototype header strong{font-size:22px;letter-spacing:.04em}body.single-product .entry-summary .td-door-prototype nav:not(.woocommerce-breadcrumb){display:flex;gap:25px;font-size:14px;flex:1}body.single-product .entry-summary .td-door-prototype main{max-width:1440px;margin:auto;padding:22px 30px 110px}body.single-product .entry-summary .td-door-prototype .crumb{font-size:13px;color:var(--muted);margin-bottom:18px}body.single-product .entry-summary .td-door-prototype .demo{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#eee5d9;padding:10px 14px;border-radius:9px;font-size:13px;margin-bottom:20px}body.single-product .entry-summary .td-door-prototype .demo select{padding:6px}body.single-product .entry-summary .td-door-prototype .layout{display:grid;grid-template-columns:minmax(250px, .75fr) minmax(530px,1.65fr) minmax(235px,.72fr);gap:22px;align-items:start}body.single-product .entry-summary .td-door-prototype .left,body.single-product .entry-summary .td-door-prototype .right{position:sticky;top:16px}body.single-product .entry-summary .td-door-prototype .photo{height:410px;background:#ede6dc;overflow:hidden;border-radius:13px;position:relative}body.single-product .entry-summary .td-door-prototype .photo img{position:absolute;width:433%;max-width:none;left:-27%;top:-48%;pointer-events:none}body.single-product .entry-summary .td-door-prototype .photo-note{font-size:12px;color:var(--muted);margin:9px 0 20px}body.single-product .entry-summary .td-door-prototype h1{font-size:34px;line-height:1.1;margin:0 0 8px}body.single-product .entry-summary .td-door-prototype h2{font-size:21px;margin:0}body.single-product .entry-summary .td-door-prototype h3{font-size:16px;margin:0}body.single-product .entry-summary .td-door-prototype p{margin:5px 0;color:var(--muted)}body.single-product .entry-summary .td-door-prototype .card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:18px;margin-bottom:14px}body.single-product .entry-summary .td-door-prototype .config-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}body.single-product .entry-summary .td-door-prototype .steps{display:flex;gap:5px;margin-bottom:15px;flex-wrap:wrap}body.single-product .entry-summary .td-door-prototype .steps a{font-size:12px;text-decoration:none;color:var(--muted);padding:6px 9px;border:1px solid var(--line);border-radius:20px}body.single-product .entry-summary .td-door-prototype .steps a.done{background:#e7efe6;color:var(--green)}body.single-product .entry-summary .td-door-prototype .head{display:flex;gap:10px;align-items:center;margin-bottom:12px}body.single-product .entry-summary .td-door-prototype .num{border-radius:50%;background:#efe5d8;color:var(--brown);width:29px;height:29px;display:grid;place-items:center;font-weight:700;font-size:14px}body.single-product .entry-summary .td-door-prototype .head div{flex:1}body.single-product .entry-summary .td-door-prototype .hint{font-size:13px;color:var(--muted)}body.single-product .entry-summary .td-door-prototype .choices{display:flex;gap:8px;flex-wrap:wrap}body.single-product .entry-summary .td-door-prototype .choice{padding:9px 14px;min-height:44px;text-align:left}body.single-product .entry-summary .td-door-prototype .choice.active{border:2px solid var(--brown);background:#f5e9db;padding:8px 13px;font-weight:650}body.single-product .entry-summary .td-door-prototype .sizes{display:grid;grid-template-columns:1.4fr 1fr;gap:16px}body.single-product .entry-summary .td-door-prototype .label{display:block;font-size:13px;font-weight:600;margin:8px 0}body.single-product .entry-summary .td-door-prototype input[type=number],body.single-product .entry-summary .td-door-prototype select{width:100%}body.single-product .entry-summary .td-door-prototype input[type=checkbox]{accent-color:var(--brown);width:17px;height:17px;vertical-align:middle}body.single-product .entry-summary .td-door-prototype .check{display:flex;align-items:center;gap:8px;margin:12px 0;font-size:14px}body.single-product .entry-summary .td-door-prototype .types{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}body.single-product .entry-summary .td-door-prototype .types button{min-height:76px}body.single-product .entry-summary .td-door-prototype .types small{display:block;font-weight:400;color:var(--muted)}body.single-product .entry-summary .td-door-prototype .types b{display:block;font-size:15px}body.single-product .entry-summary .td-door-prototype .part{display:grid;grid-template-columns:42px 1fr auto;gap:11px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}body.single-product .entry-summary .td-door-prototype .part-icon{width:40px;height:40px;border-radius:8px;background:#f1e9df;display:grid;place-items:center;font-size:20px;color:var(--brown)}body.single-product .entry-summary .td-door-prototype .part small{font-size:12px;display:block;color:var(--muted)}body.single-product .entry-summary .td-door-prototype .tag{font-size:11px;color:var(--green);background:#eaf1e8;padding:3px 7px;border-radius:5px;white-space:nowrap}body.single-product .entry-summary .td-door-prototype .tag.required{background:#f4e8d8;color:#83501f}body.single-product .entry-summary .td-door-prototype .edit{font-size:13px;padding:6px 10px}body.single-product .entry-summary .td-door-prototype .muted{color:var(--muted)}body.single-product .entry-summary .td-door-prototype .inline-edit{background:#f7f1e8;padding:12px;border-radius:8px;margin:3px 0 10px;display:grid;gap:8px;grid-template-columns:1fr 1fr}body.single-product .entry-summary .td-door-prototype .inline-edit label{font-size:12px}body.single-product .entry-summary .td-door-prototype .inline-edit select{padding:7px;font-size:14px}body.single-product .entry-summary .td-door-prototype .notice{background:#f6eddf;border-left:3px solid #b17a3e;padding:10px 12px;font-size:13px;margin:12px 0}body.single-product .entry-summary .td-door-prototype .err{color:#a3382b;font-size:13px;margin-top:5px}body.single-product .entry-summary .td-door-prototype .summary{font-size:14px}body.single-product .entry-summary .td-door-prototype .summary dl{margin:15px 0}body.single-product .entry-summary .td-door-prototype .summary dt{color:var(--muted);font-size:12px}body.single-product .entry-summary .td-door-prototype .summary dd{margin:0 0 8px;font-weight:600}body.single-product .entry-summary .td-door-prototype .line{border-top:1px solid var(--line);padding:9px 0;display:flex;justify-content:space-between;gap:8px}body.single-product .entry-summary .td-door-prototype .price{font-size:25px;font-weight:750;line-height:1.2;margin:12px 0}body.single-product .entry-summary .td-door-prototype .primary{background:var(--brown);color:#fff;border-color:var(--brown);font-weight:700;width:100%;padding:13px}body.single-product .entry-summary .td-door-prototype .secondary{width:100%;margin-top:8px;background:transparent;color:var(--brown)}body.single-product .entry-summary .td-door-prototype .qty{display:flex;align-items:center;justify-content:space-between;margin:12px 0}body.single-product .entry-summary .td-door-prototype .qty button{padding:5px 12px}body.single-product .entry-summary .td-door-prototype .technical{width:100%;border-radius:6px;display:block}body.single-product .entry-summary .td-door-prototype .tech summary{cursor:pointer;font-weight:650}body.single-product .entry-summary .td-door-prototype .tech p{font-size:13px}body.single-product .entry-summary .td-door-prototype .buttons{display:flex;gap:8px;flex-wrap:wrap}body.single-product .entry-summary .td-door-prototype .extra{padding:12px;background:#f8f3ed;border-radius:8px;margin:10px 0}body.single-product .entry-summary .td-door-prototype .extra .form{display:grid;grid-template-columns:1fr 1fr;gap:8px}body.single-product .entry-summary .td-door-prototype .extra label{font-size:12px}body.single-product .entry-summary .td-door-prototype .remove{color:#a3382b;border:0;background:transparent;padding:3px}body.single-product .entry-summary .td-door-prototype .mobilebar{display:none}body.single-product .entry-summary .td-door-prototype .foot{padding:30px;background:#6b5240;color:white;text-align:center}body.single-product .entry-summary .td-door-prototype .mini{font-size:12px;color:var(--muted)}body.single-product .entry-summary .td-door-prototype .technical-link{color:var(--brown);font-size:14px}body.single-product .entry-summary .td-door-prototype dialog{border:1px solid var(--line);border-radius:14px;max-width:90vw;width:820px;padding:22px}body.single-product .entry-summary .td-door-prototype dialog::backdrop{background:#0007}body.single-product .entry-summary .td-door-prototype dialog img{width:100%}body.single-product .entry-summary .td-door-prototype dialog .close{float:right}body.single-product .entry-summary .td-door-prototype .progress{font-size:13px;color:var(--green)}@media(max-width:1150px){body.single-product .entry-summary .td-door-prototype .layout{grid-template-columns: minmax(220px,.7fr) minmax(470px,1.5fr)}body.single-product .entry-summary .td-door-prototype .right{grid-column:2;position:static}body.single-product .entry-summary .td-door-prototype .left{grid-row:1/span 2}body.single-product .entry-summary .td-door-prototype .photo{height:360px}}@media(max-width:750px){body.single-product .entry-summary .td-door-prototype header{padding:13px 16px}body.single-product .entry-summary .td-door-prototype header nav{display:none}body.single-product .entry-summary .td-door-prototype main{padding:14px 12px 100px}body.single-product .entry-summary .td-door-prototype .layout{display:flex;flex-direction:column;gap:12px}body.single-product .entry-summary .td-door-prototype .left,body.single-product .entry-summary .td-door-prototype .right,body.single-product .entry-summary .td-door-prototype .center{width:100%;position:static}body.single-product .entry-summary .td-door-prototype .left{display:block}body.single-product .entry-summary .td-door-prototype .photo{height:340px;max-width:260px;margin:auto}body.single-product .entry-summary .td-door-prototype .photo img{top:-48%}body.single-product .entry-summary .td-door-prototype .left .tech{display:none}body.single-product .entry-summary .td-door-prototype .demo{align-items:start;flex-direction:column}body.single-product .entry-summary .td-door-prototype .card{padding:14px}body.single-product .entry-summary .td-door-prototype .sizes{grid-template-columns:1fr}body.single-product .entry-summary .td-door-prototype .types{grid-template-columns:1fr 1fr}body.single-product .entry-summary .td-door-prototype .mobilebar{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:5;background:#fffdf9;border-top:1px solid var(--line);padding:10px 14px;align-items:center;gap:10px;box-shadow:0 -3px 16px #0001}body.single-product .entry-summary .td-door-prototype .mobilebar button{width:auto;flex:1}body.single-product .entry-summary .td-door-prototype .mobilebar strong{font-size:14px}body.single-product .entry-summary .td-door-prototype .right{padding-bottom:8px}body.single-product .entry-summary .td-door-prototype .inline-edit{grid-template-columns:1fr}body.single-product .entry-summary .td-door-prototype .part{grid-template-columns:34px 1fr auto}body.single-product .entry-summary .td-door-prototype .part-icon{width:34px;height:34px}body.single-product .entry-summary .td-door-prototype .config-title{align-items:start}body.single-product .entry-summary .td-door-prototype .steps{gap:3px}body.single-product .entry-summary .td-door-prototype .steps a{padding:5px 7px}body.single-product .entry-summary .td-door-prototype .photo-note{text-align:center}body.single-product .entry-summary .td-door-prototype h1{font-size:28px}body.single-product .entry-summary .td-door-prototype .extra .form{grid-template-columns:1fr 1fr}}


/* Store-template instance: all rules stay inside the configurator root. */
body.single-product .entry-summary .td-door-prototype{display:block;width:100%;max-width:100%;min-width:0;margin:0;color:var(--ink);font:16px/1.5 system-ui,sans-serif;isolation:isolate}
body.single-product .entry-summary .td-door-prototype *, body.single-product .entry-summary .td-door-prototype *::before, body.single-product .entry-summary .td-door-prototype *::after{box-sizing:border-box}
body.single-product .entry-summary .td-door-prototype img{max-width:100%}
body.single-product .entry-summary .td-door-prototype button,body.single-product .entry-summary .td-door-prototype input,body.single-product .entry-summary .td-door-prototype select{font-family:inherit;line-height:inherit}
body.single-product .entry-summary .td-door-prototype__main{width:100%;max-width:1440px;margin:0 auto;padding:22px 30px 60px}
body.single-product .entry-summary .td-door-prototype .photo img{position:static;inset:auto;width:100%;height:100%;max-width:100%;object-fit:contain;pointer-events:auto}
body.single-product .entry-summary .td-door-prototype .part-photo img{width:100%;height:100%;object-fit:contain}
body.single-product .entry-summary .td-door-prototype .part-preview img{max-width:100%;height:auto;object-fit:contain}
body.single-product .entry-summary .td-door-prototype .product-options{border:0;margin:0;padding:0;min-width:0;grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
body.single-product .entry-summary .td-door-prototype .product-options legend{font-weight:600;font-size:13px;margin-bottom:6px}
body.single-product .entry-summary .td-door-prototype .product-option{display:flex;align-items:center;gap:7px;min-width:0;padding:5px;background:white;border:1px solid var(--line);border-radius:7px;cursor:pointer;font-size:12px;line-height:1.25}
body.single-product .entry-summary .td-door-prototype .product-option.chosen{border-color:var(--brown);background:#f4e9dc}
body.single-product .entry-summary .td-door-prototype .product-option input{flex:none;margin:0;accent-color:var(--brown)}
body.single-product .entry-summary .td-door-prototype .product-option img,body.single-product .entry-summary .td-door-prototype .option-placeholder{width:46px;height:42px;object-fit:contain;flex:none;background:white;border-radius:4px}
body.single-product .entry-summary .td-door-prototype .option-placeholder{display:grid;place-items:center}
body.single-product .entry-summary .td-door-prototype .option-placeholder svg{width:36px;height:36px}
body.single-product .entry-summary .td-door-prototype .product-option span{overflow-wrap:anywhere}
body.single-product .entry-summary .td-door-prototype .trim-controls{display:grid;grid-template-columns:1fr 105px;gap:8px;margin:7px 0}
body.single-product .entry-summary .td-door-prototype .trim-controls label{font-size:12px}
body.single-product .entry-summary .td-door-prototype .trim-controls select,body.single-product .entry-summary .td-door-prototype .trim-controls input{width:100%;margin-top:4px}
@media(max-width:750px){body.single-product .entry-summary .td-door-prototype__main{padding:14px 12px 125px}body.single-product .entry-summary .td-door-prototype .layout{width:100%;min-width:0}body.single-product .entry-summary .td-door-prototype .left,body.single-product .entry-summary .td-door-prototype .center,body.single-product .entry-summary .td-door-prototype .right{min-width:0}body.single-product .entry-summary .td-door-prototype .product-options{grid-template-columns:1fr}body.single-product .entry-summary .td-door-prototype .trim-controls{grid-template-columns:1fr 90px}body.single-product .entry-summary .td-door-prototype .product-option img{width:42px}}
body.single-product .product-entry-wrapper:has(.td-door-prototype){width:min(calc(100vw - 48px),1440px);max-width:1440px;margin-inline:auto}
@media(max-width:750px){body.single-product .product-entry-wrapper:has(.td-door-prototype){width:calc(100vw - 24px);max-width:none;margin-inline:auto}}

body.single-product .entry-summary:has(.td-door-prototype)>.product_title,body.single-product .entry-summary:has(.td-door-prototype)>.td-door-configurator-heading,body.single-product .entry-summary:has(.td-door-prototype)>.price,body.single-product .entry-summary:has(.td-door-prototype)>.woocommerce-product-details__short-description,body.single-product .entry-summary:has(.td-door-prototype)>.product_meta,body.single-product .entry-summary:has(.td-door-prototype)>.ct-product-divider{display:none!important}
body.single-product .product-entry-wrapper:has(.td-door-prototype){display:block!important;width:min(calc(100vw - 48px),1440px);max-width:1440px;margin-inline:auto}
body.single-product .product-entry-wrapper:has(.td-door-prototype)>.entry-summary{width:100%;max-width:none;margin:0}
.td-door-prototype .photo-placeholder{display:grid;place-items:center;width:100%;height:100%;padding:20px;color:var(--muted);text-align:center}
.td-door-prototype .technical-placeholder{display:grid;place-items:center;min-height:220px;width:100%;padding:24px;background:#f1e9df;border:1px dashed var(--line);border-radius:8px;color:var(--muted);text-align:center;font-size:14px}
.td-door-prototype dialog .technical-placeholder{min-height:320px}
@media(max-width:750px){body.single-product .product-entry-wrapper:has(.td-door-prototype){width:calc(100vw - 24px);max-width:none;margin-inline:auto}}
body.single-product:has(.td-door-prototype) .ct-breadcrumbs{display:none!important}

/* Keep the prototype's palette link and four-across package choices free from theme button defaults. */
body.single-product .entry-summary .td-door-prototype .more-swatches,
body.single-product .entry-summary .td-door-prototype .more-swatches:hover,
body.single-product .entry-summary .td-door-prototype .more-swatches:focus{display:inline-block!important;width:auto!important;min-width:0!important;min-height:0!important;height:auto!important;margin:0!important;padding:4px 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--brown)!important;font:600 13px/1.4 system-ui,sans-serif!important;text-align:left!important;text-transform:none!important}
body.single-product .entry-summary .td-door-prototype .center .types{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
body.single-product .entry-summary .td-door-prototype .center .types>button{width:100%!important;min-width:0!important}
body.single-product .entry-summary .td-door-prototype .center .types .choice{display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important;justify-content:flex-start!important;gap:3px!important;padding:7px 4px!important;min-width:0!important;min-height:112px!important;font-size:14px!important;line-height:21px!important}
body.single-product .entry-summary .td-door-prototype .center .types .choice.active{padding:6px 3px!important}
body.single-product .entry-summary .td-door-prototype .center .types b{font-size:12px!important;line-height:1.2!important}
body.single-product .entry-summary .td-door-prototype .center .types small{font-size:11px!important;line-height:1.2!important}
body.single-product .entry-summary .td-door-prototype .center .types .purchase-icon{height:48px!important;width:60px!important;color:var(--brown)!important}
@media(max-width:480px){body.single-product .entry-summary .td-door-prototype .center .types{gap:4px!important}body.single-product .entry-summary .td-door-prototype .center .types .choice,body.single-product .entry-summary .td-door-prototype .center .types .choice.active{min-height:110px!important;padding:5px 2px!important}body.single-product .entry-summary .td-door-prototype .center .types b{font-size:11px!important}body.single-product .entry-summary .td-door-prototype .center .types small{font-size:10px!important}body.single-product .entry-summary .td-door-prototype .center .types .purchase-icon{width:45px!important;height:44px!important}}

/* Use the full page canvas and remove the theme's empty top gap on live products. */
body.single-product:has(.td-door-prototype) #main-container .ct-container-full{padding-top:0!important;margin-top:-40px!important;background:#f7f2eb!important}
body.single-product .entry-summary .td-door-prototype{width:100vw!important;max-width:none!important;margin-left:calc(50% - 50vw)!important;margin-right:0!important}
/* The WooCommerce demo selector is useful on the QA fixture, not on product pages. */
body.single-product .entry-summary .td-door-prototype .demo{display:none!important}
body.single-product .entry-summary .td-door-prototype #mounting>p:first-child{display:none!important}
/* The prototype already provides specifications and package details; hide legacy Woo sections below it. */
body.single-product:has(.td-door-prototype) .woocommerce-tabs,
body.single-product:has(.td-door-prototype) .related.products{display:none!important}

/* Match the prototype's excluded status with a readable dark label. */
body.single-product .entry-summary .td-door-prototype .tag.excluded{color:#4f392a!important;background:#eee8e0!important}
body.single-product .entry-summary .td-door-prototype .product-option.unavailable{opacity:.55;cursor:not-allowed}body.single-product .entry-summary .td-door-prototype .option-unavailable{display:block;color:#8a4638;font-size:11px;margin-top:2px}
/* Optional component controls: paired fields and a button matching the configurator. */
body.single-product .entry-summary .td-door-prototype .inline-edit .form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;grid-column:1/-1;align-items:end}
body.single-product .entry-summary .td-door-prototype .inline-edit .form label{display:block;min-width:0}
body.single-product .entry-summary .td-door-prototype .inline-edit .form input,body.single-product .entry-summary .td-door-prototype .inline-edit .form select{width:100%;margin-top:4px}
body.single-product .entry-summary .td-door-prototype .part-actions .optional-remove{border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--brown);padding:6px 10px;font-size:13px;line-height:1.3}
body.single-product .entry-summary .td-door-prototype .part-actions .optional-remove:hover{border-color:var(--brown);background:#f5e9db}
/* Align labels and controls consistently within the paired optional fields. */
body.single-product .entry-summary .td-door-prototype .inline-edit .form{align-items:start}
body.single-product .entry-summary .td-door-prototype .inline-edit .form label{display:flex;flex-direction:column;gap:4px}
body.single-product .entry-summary .td-door-prototype .inline-edit .form input,body.single-product .entry-summary .td-door-prototype .inline-edit .form select{margin:0;min-height:50px}
