/* Door Builder UX layer (configurator redesign v1.23). Loaded only on composite products. */
/* ===== CDI Configurator UX layer ===== */
:root{--cdi-o:#ff7a00;--cdi-o-d:#e06a00;--cdi-o-l:#fff4ea;--cdi-ink:#1f2328;--cdi-mute:#6b7280;--cdi-line:#e5e7eb;--cdi-bg:#f7f7f8;--cdi-ok:#16a34a}
body.cdi-cfg .composite_component, body.cdi-cfg #summary, body.cdi-cfg .cdi-cfg-groups, body.cdi-cfg .cdi-cfg-help, body.cdi-cfg .cdi-cfg-nudge, body.cdi-cfg .cdi-cfg-mbar, body.cdi-cfg .cdi-cfg-modal{font-family:"Open Sans",system-ui,sans-serif}

/* --- progress groups --- */
.cdi-cfg-groups{display:flex;gap:6px;margin:0 0 14px;padding:0;list-style:none}
.cdi-cfg-groups li{flex:1;min-width:0}
.cdi-cfg-groups .g{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:var(--cdi-mute);text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
.cdi-cfg-groups .n{flex:none;width:22px;height:22px;border-radius:50%;border:2px solid var(--cdi-line);display:grid;place-items:center;font-size:11px;background:#fff;color:var(--cdi-mute)}
.cdi-cfg-groups .bar{height:4px;border-radius:4px;background:var(--cdi-line);margin-top:8px;overflow:hidden}
.cdi-cfg-groups .bar i{display:block;height:100%;width:0;background:var(--cdi-o);transition:width .35s ease}
.cdi-cfg-groups li.is-cur .g{color:var(--cdi-ink)}
.cdi-cfg-groups li.is-cur .n{border-color:var(--cdi-o);color:var(--cdi-o)}
.cdi-cfg-groups li.is-done .n{border-color:var(--cdi-o);background:var(--cdi-o);color:#fff}
.cdi-cfg-groups li.is-done .g{color:var(--cdi-ink)}
.cdi-cfg-groups li.is-done .bar i{width:100%!important}

/* --- step card --- */
body.cdi-cfg .composite_component .component_title_wrapper{margin-bottom:4px}
body.cdi-cfg .composite_component .step_title{font-size:22px;font-weight:800;color:var(--cdi-ink);letter-spacing:-.01em}
body.cdi-cfg .cdi-cfg-sub{text-align:center;color:var(--cdi-mute);font-size:14px;margin:2px 0 14px;line-height:1.45}
body.cdi-cfg .composite_component .component_section_title{display:none}

/* option cards */
body.cdi-cfg .composite_component:not(.accessories-step) .component_option_thumbnail_container{transition:transform .12s ease}
body.cdi-cfg .composite_component:not(.accessories-step) .component_option_thumbnail_container{border:2px solid var(--cdi-line)!important;border-radius:12px!important;background:#fff;cursor:pointer;position:relative;transition:border-color .15s, box-shadow .15s}
body.cdi-cfg .composite_component:not(.accessories-step) .component_option_thumbnail_container:hover{border-color:var(--cdi-o)!important;box-shadow:0 6px 18px rgba(255,122,0,.14)}
body.cdi-cfg .composite_component:not(.accessories-step) .component_option_thumbnail_container:has(.component_option_thumbnail.selected){border-color:var(--cdi-o)!important;box-shadow:0 0 0 3px rgba(255,122,0,.18)}
body.cdi-cfg .composite_component:not(.accessories-step) .component_option_thumbnail{position:static!important;border:0!important;box-shadow:none!important}
body.cdi-cfg .composite_component:not(.accessories-step) .component_option_thumbnail.selected:after{content:"";position:absolute;top:8px;right:8px;width:22px;height:22px;border-radius:50%;background:var(--cdi-o) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;z-index:2}
body.cdi-cfg .component_option_thumbnail .thumbnail_description span{font-weight:700;color:var(--cdi-ink)}
body.cdi-cfg .composite_component .component_option_thumbnail_container:has(.cdi-rec){border-color:var(--cdi-ok)!important;box-shadow:0 0 0 3px rgba(22,163,74,.18)}
body.cdi-cfg .cdi-rec-tag{position:absolute;left:50%;bottom:-11px;transform:translateX(-50%);white-space:nowrap;z-index:3;background:var(--cdi-ok);color:#fff;font-size:11px;font-weight:800;padding:3px 8px;border-radius:999px}

/* --- help row --- */
.cdi-cfg-help{margin:-4px auto 16px;max-width:640px}
.cdi-cfg-help .row{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.cdi-cfg-help button.lnk{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:6px;font-size:13.5px;font-weight:700;color:var(--cdi-o);padding:7px 12px;border-radius:999px;background:var(--cdi-o-l);border:1px solid #ffd9b5}
.cdi-cfg-help button.lnk:hover{background:#ffe8d2}
.cdi-cfg-help button.lnk.ghost{background:#fff;color:var(--cdi-ink);border-color:var(--cdi-line)}
.cdi-cfg-help button.lnk.ghost:hover{border-color:var(--cdi-o)}
.cdi-cfg-help .panel{display:none;margin-top:12px;text-align:left;background:#fff;border:1px solid var(--cdi-line);border-left:4px solid var(--cdi-o);border-radius:10px;padding:16px 18px;font-size:14px;line-height:1.55;color:var(--cdi-ink)}
.cdi-cfg-help.open .panel{display:block}
.cdi-cfg-help .panel h4{margin:0 0 6px;font-size:15px;font-weight:800}
.cdi-cfg-help .panel ul{margin:6px 0 0;padding-left:18px}
.cdi-cfg-help .panel li{margin:3px 0}
.cdi-cfg-help .panel .tip{margin-top:10px;font-size:13px;color:var(--cdi-mute)}
.cdi-cfg-help .calc{margin-top:12px;padding:12px;border-radius:8px;background:var(--cdi-bg);display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cdi-cfg-help .calc label{display:block;font-size:12px;font-weight:700;color:var(--cdi-mute);margin-bottom:4px;text-transform:uppercase;letter-spacing:.03em}
.cdi-cfg-help .calc select,.cdi-cfg-help .calc input{width:100%;box-sizing:border-box;height:40px;border:1px solid #d1d5db;border-radius:8px;padding:0 10px;font:inherit;font-size:14px;background:#fff}
.cdi-cfg-help .calc .full{grid-column:1/-1}
.cdi-cfg-help .calc .or{grid-column:1/-1;text-align:center;font-size:12px;color:var(--cdi-mute);font-weight:700}
.cdi-cfg-help .calc .out{grid-column:1/-1;font-size:14px;padding:10px 12px;border-radius:8px;background:#fff;border:1px dashed #d1d5db;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.cdi-cfg-help .calc .out b{color:var(--cdi-ink)}
.cdi-cfg-help .calc .out button{all:unset;cursor:pointer;background:var(--cdi-ok);color:#fff;font-weight:800;font-size:13px;padding:8px 14px;border-radius:8px}
.cdi-cfg-help .calc .out.warn{border-color:#f59e0b;background:#fffbeb}

/* --- not-sure confirm note --- */
.cdi-cfg-confirmed{display:none;margin:0 auto 14px;max-width:640px;background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;border-radius:10px;padding:10px 14px;font-size:13.5px;text-align:center}

/* --- summary --- */
body.cdi-cfg #summary{max-height:calc(100vh - 40px);display:flex;flex-direction:column;border-radius:12px}
body.cdi-cfg #summary .summary__list{max-height:none!important;overflow:auto!important;flex:1 1 auto;scroll-behavior:smooth}
body.cdi-cfg #summary .summary__item{padding:8px 12px!important;gap:8px;display:flex!important;flex-direction:row!important;justify-content:space-between;align-items:flex-start}
body.cdi-cfg #summary .summary__meta{display:flex;flex-direction:column;min-width:0}
body.cdi-cfg #summary .summary__label{font-size:10.5px!important;letter-spacing:.05em}
body.cdi-cfg #summary .summary__value{font-size:13px!important;line-height:1.35}
body.cdi-cfg #summary .summary__edit{all:unset;cursor:pointer;font-size:11.5px;font-weight:700;color:var(--cdi-o);padding:2px 0;flex:none}
body.cdi-cfg #summary .summary__edit:hover{text-decoration:underline}
body.cdi-cfg #summary .summary__item.cdi-new{animation:cdiFlash 1.2s ease}
@keyframes cdiFlash{0%{background:var(--cdi-o-l)}100%{background:transparent}}
.cdi-flag{align-self:flex-start;width:fit-content;display:inline-block;margin-top:3px;font-size:10.5px;font-weight:800;color:#065f46;background:#d1fae5;border-radius:999px;padding:1px 7px}
body.cdi-cfg #summary .summary__progress{background:var(--cdi-o)!important;transition:width .35s ease}
.cdi-sum-help{margin:10px 12px 12px;padding-top:10px;border-top:1px solid var(--cdi-line);font-size:12.5px;color:var(--cdi-mute);line-height:1.45}
.cdi-sum-help a{color:var(--cdi-o);font-weight:800;text-decoration:none;white-space:nowrap}

/* --- nudge --- */
.cdi-cfg-nudge{position:fixed;right:20px;bottom:20px;z-index:9998;width:330px;max-width:calc(100vw - 32px);background:#fff;border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.18);border:1px solid var(--cdi-line);padding:16px 16px 14px;transform:translateY(20px);opacity:0;pointer-events:none;transition:all .25s ease}
.cdi-cfg-nudge.show{transform:none;opacity:1;pointer-events:auto}
.cdi-cfg-nudge .x{all:unset;cursor:pointer;position:absolute;top:8px;right:12px;font-size:20px;color:var(--cdi-mute)}
.cdi-cfg-nudge h5{margin:0 22px 4px 0;font-size:15px;font-weight:800;color:var(--cdi-ink)}
.cdi-cfg-nudge p{margin:0 0 12px;font-size:13px;color:var(--cdi-mute);line-height:1.45}
.cdi-cfg-nudge .acts{display:flex;flex-direction:column;gap:8px}
.cdi-cfg-nudge .acts button,.cdi-cfg-nudge .acts a{all:unset;cursor:pointer;text-align:center;font-weight:800;font-size:13.5px;padding:10px 12px;border-radius:8px}
.cdi-cfg-nudge .acts .p{background:var(--cdi-o);color:#fff}
.cdi-cfg-nudge .acts .s{border:1px solid var(--cdi-line);color:var(--cdi-ink)}

/* --- accessories (extras) --- */
body.cdi-cfg .accessories-step .accessory-group-title,body.cdi-cfg .accessories-step .component_title_wrapper{display:none}
.cdi-xtra h3{margin:6px 0 4px;text-align:center;font-size:22px;font-weight:800;color:var(--cdi-ink)}
.cdi-xtra{max-width:none;margin:0 auto}
.cdi-xtra .lead{text-align:center;color:var(--cdi-mute);font-size:14px;margin:0 0 14px}
.cdi-xtra-foot .cdi-continue{font-size:16px;padding:14px 32px}
.cdi-xtra .go{all:unset;box-sizing:border-box;cursor:pointer;display:block;width:100%;text-align:center;background:var(--cdi-o);color:#fff;font-weight:800;font-size:16px;padding:15px 18px;border-radius:10px;box-shadow:0 6px 16px rgba(255,122,0,.25)}
.cdi-xtra .go:hover{background:var(--cdi-o-d)}
.cdi-xtra .tog{all:unset;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;margin:14px auto 0;font-size:14px;font-weight:700;color:var(--cdi-ink)}
.cdi-xtra .tog .chev{transition:transform .2s}
.cdi-xtra.open .tog .chev{transform:rotate(180deg)}
body.cdi-cfg .accessories-step .component_option_thumbnails_container{display:none!important}
body.cdi-cfg .accessories-step.cdi-x-open .component_option_thumbnails_container{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;max-width:none;margin:4px 0 0!important;padding:0!important}
body.cdi-cfg .accessories-step .component_option_thumbnail_container{width:auto!important;max-width:none!important;margin:0!important;padding:0!important;float:none!important;border:0!important;background:transparent!important}
body.cdi-cfg .accessories-step .component_option_thumbnail{display:flex!important;flex-direction:row!important;width:100%!important;max-width:none!important;align-items:center;gap:10px;padding:8px 10px!important;border:1px solid var(--cdi-line)!important;border-radius:10px!important;background:#fff;height:100%;box-sizing:border-box}
body.cdi-cfg .accessories-step .component_option_thumbnail.cdi-has{border-color:var(--cdi-o)!important;background:var(--cdi-o-l)}
body.cdi-cfg .accessories-step .thumbnail_image{flex:none;width:56px!important;height:56px!important;margin:0!important;padding:0!important}
body.cdi-cfg .accessories-step .thumbnail_image img{width:56px!important;height:56px!important;object-fit:contain}
body.cdi-cfg .accessories-step .thumbnail_description{flex:1;display:flex!important;flex-direction:row!important;width:auto!important;align-items:center;justify-content:space-between;gap:8px;text-align:left!important;padding:0!important;min-width:0}
body.cdi-cfg .accessories-step .thumbnail_description>span{font-size:13px!important;line-height:1.25;font-weight:600!important}
body.cdi-cfg .accessories-step .accessory-qty-controls{flex:none;display:flex!important;align-items:center;gap:4px;margin:0!important}
body.cdi-cfg .accessories-step .qty-btn{width:26px!important;height:26px!important;min-width:0!important;padding:0!important;border-radius:6px!important;font-size:15px!important;line-height:1!important}
body.cdi-cfg .accessories-step .qty-display{min-width:22px;text-align:center;font-size:13px;font-weight:700;padding:0!important;border:0!important}
body.cdi-cfg .accessories-step .wccp-step-nav .wccp-next-btn{visibility:hidden}

/* --- exit modal --- */
.cdi-cfg-modal{position:fixed;inset:0;z-index:99999;background:rgba(17,24,39,.55);display:none;align-items:center;justify-content:center;padding:16px}
.cdi-cfg-modal.show{display:flex}
.cdi-cfg-modal .box{background:#fff;border-radius:16px;max-width:440px;width:100%;padding:26px 24px 20px;position:relative;text-align:center}
.cdi-cfg-modal .box h3{margin:0 0 6px;font-size:20px;font-weight:800;color:var(--cdi-ink)}
.cdi-cfg-modal .box p{margin:0 0 16px;font-size:14px;color:var(--cdi-mute);line-height:1.5}
.cdi-cfg-modal .acts{display:flex;flex-direction:column;gap:8px}
.cdi-cfg-modal .acts a,.cdi-cfg-modal .acts button{all:unset;cursor:pointer;font-weight:800;font-size:14.5px;padding:12px;border-radius:10px}
.cdi-cfg-modal .acts .p{background:var(--cdi-o);color:#fff}
.cdi-cfg-modal .acts .s{border:1px solid var(--cdi-line);color:var(--cdi-ink)}
.cdi-cfg-modal .acts .t{color:var(--cdi-mute);font-weight:600;font-size:13px}

/* --- mobile --- */
.cdi-cfg-mbar{display:none}
.cdi-sheet-done{all:unset;display:none;cursor:pointer;box-sizing:border-box;margin:12px 12px 0;text-align:center;background:var(--cdi-o);color:#fff;font-weight:800;font-size:15px;padding:13px;border-radius:10px}
/* Most Popular label inside the card */
body.cdi-cfg .composite_component:not(.accessories-step) .component_option_thumbnail_container{padding-top:38px!important}
body.cdi-cfg .composite_component .wccp-labels-wrap{top:9px!important;left:10px!important;right:auto!important;z-index:4!important}
body.cdi-cfg .composite_component .wccp-label{border-radius:999px!important;font-size:11.5px!important;font-weight:800!important;padding:4px 10px!important;box-shadow:0 2px 6px rgba(255,122,0,.3)}

/* stuck nudge: louder */
.cdi-cfg-nudge{width:380px;padding:0;overflow:hidden;border:2px solid var(--cdi-o);border-radius:16px;box-shadow:0 24px 60px rgba(0,0,0,.28);transform:translateY(40px) scale(.94)}
.cdi-cfg-nudge.show{animation:cdiNudgeIn .5s cubic-bezier(.2,1.4,.4,1) both, cdiNudgeRing 1.6s ease-out .5s 3, cdiNudgeWiggle .6s ease-in-out 1.4s 1}
@keyframes cdiNudgeIn{from{transform:translateY(40px) scale(.94);opacity:0}to{transform:none;opacity:1}}
@keyframes cdiNudgeRing{0%{box-shadow:0 24px 60px rgba(0,0,0,.28),0 0 0 0 rgba(255,122,0,.55)}100%{box-shadow:0 24px 60px rgba(0,0,0,.28),0 0 0 18px rgba(255,122,0,0)}}
@keyframes cdiNudgeWiggle{0%,100%{transform:none}20%{transform:rotate(-2deg)}40%{transform:rotate(2deg)}60%{transform:rotate(-1.5deg)}80%{transform:rotate(1deg)}}
.cdi-cfg-nudge h5{margin:0!important;text-transform:none!important;letter-spacing:0!important;background:var(--cdi-o);color:#fff!important;font-size:17px!important;padding:15px 46px 15px 16px;display:flex;align-items:center;gap:10px;line-height:1.25}
.cdi-cfg-nudge h5:before{content:"";flex:none;width:28px;height:28px;border-radius:50%;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.1 9a3 3 0 015.8 1c0 2-3 2.5-3 4.5M12 18h.01' fill='none' stroke='%23ff7a00' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat}
.cdi-cfg-nudge .x{color:#fff!important;top:12px!important;right:14px!important;font-size:24px!important;opacity:.9}
.cdi-cfg-nudge p{padding:14px 16px 0;margin:0 0 14px!important;font-size:14px!important;color:var(--cdi-ink)!important}
.cdi-cfg-nudge .acts{padding:0 16px 16px}
.cdi-cfg-nudge .acts button,.cdi-cfg-nudge .acts a{font-size:14.5px!important;padding:12px!important;border-radius:10px!important}
.cdi-cfg-nudge .acts .p{box-shadow:0 6px 16px rgba(255,122,0,.3)}
.cdi-cfg-nudge .acts .p:hover{background:var(--cdi-o-d)}
.cdi-cfg-nudge .acts .s:hover{border-color:var(--cdi-o)}
@media (prefers-reduced-motion:reduce){.cdi-cfg-nudge.show{animation:none;transform:none;opacity:1}}
/* Back link + Continue footer */
body.cdi-cfg .composite_component:not(.accessories-step) .wccp-next-btn{visibility:hidden!important}
body.cdi-cfg .composite_component .wccp-prev-btn{font-size:13.5px!important;font-weight:700!important;color:var(--cdi-mute)!important;padding:4px 0!important}
body.cdi-cfg .composite_component .wccp-prev-btn:hover{color:var(--cdi-o)!important}
body.cdi-cfg .composite_component .wccp-prev-btn[disabled]{visibility:hidden}
.cdi-cfg-foot{display:flex;align-items:center;gap:12px;border-top:1px solid var(--cdi-line);padding:12px 2px 2px;margin-top:10px;min-height:48px}
.cdi-cfg-foot .cnt{font-size:13px;font-weight:700;color:var(--cdi-mute)}
.cdi-cfg-foot .hint{margin-left:auto;font-size:13px;color:var(--cdi-mute)}
.cdi-cfg-foot .cdi-continue{all:unset;display:none;margin-left:auto;cursor:pointer;background:var(--cdi-o);color:#fff;font-weight:800;font-size:15px;padding:12px 28px;border-radius:10px;box-shadow:0 6px 16px rgba(255,122,0,.25);transition:background .15s, transform .15s}
.cdi-cfg-foot .cdi-continue:hover{background:var(--cdi-o-d);transform:translateX(2px)}
.cdi-cfg-foot.is-ready .hint{display:none}
.cdi-cfg-foot.is-ready .cdi-continue{display:inline-block;animation:cdiPopIn .25s ease}
@keyframes cdiPopIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
/* extras: bigger tap-to-add tiles */
body.cdi-cfg .accessories-step.cdi-x-open .component_option_thumbnails_container{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))!important;gap:12px!important}
body.cdi-cfg .accessories-step .component_option_thumbnail{flex-direction:column!important;align-items:center!important;text-align:center;gap:8px!important;padding:14px 10px 12px!important;border:2px solid var(--cdi-line)!important;border-radius:12px!important;cursor:pointer;position:relative;transition:border-color .15s, box-shadow .15s}
body.cdi-cfg .accessories-step .component_option_thumbnail:hover{border-color:var(--cdi-o)!important;box-shadow:0 6px 18px rgba(255,122,0,.14)}
body.cdi-cfg .accessories-step .component_option_thumbnail.cdi-has{border-color:var(--cdi-o)!important;background:var(--cdi-o-l);box-shadow:0 0 0 3px rgba(255,122,0,.18)}
body.cdi-cfg .accessories-step .component_option_thumbnail.cdi-has:after{content:"Added";position:absolute;top:8px;right:8px;background:var(--cdi-o);color:#fff;font-size:10.5px;font-weight:800;padding:2px 8px;border-radius:999px}
body.cdi-cfg .accessories-step .thumbnail_image{width:auto!important;height:auto!important}
body.cdi-cfg .accessories-step .thumbnail_image img{width:auto!important;height:84px!important;max-width:100%;object-fit:contain}
body.cdi-cfg .accessories-step .thumbnail_description{flex-direction:column!important;justify-content:flex-start!important;align-items:center!important;text-align:center!important;gap:10px!important;width:100%!important;flex:1}
body.cdi-cfg .accessories-step .thumbnail_description>span{font-size:13.5px!important;font-weight:700!important;min-height:34px;display:flex;align-items:center}
body.cdi-cfg .accessories-step .accessory-qty-controls{gap:6px!important;margin-top:auto!important}
body.cdi-cfg .accessories-step .qty-btn{width:32px!important;height:32px!important;font-size:18px!important;border-radius:8px!important}
body.cdi-cfg .accessories-step .qty-display{min-width:26px;font-size:15px!important}
/* ===== gamey layer ===== */
/* 1 pick pop */
body.cdi-cfg .component_option_thumbnail_container.cdi-pop{animation:cdiPop .38s cubic-bezier(.2,1.5,.4,1)}
@keyframes cdiPop{0%{transform:scale(1)}40%{transform:scale(1.05)}100%{transform:scale(1)}}
body.cdi-cfg .component_option_thumbnail_container.cdi-pop .component_option_thumbnail.selected:after{animation:cdiCheck .45s cubic-bezier(.2,1.8,.4,1)}
@keyframes cdiCheck{0%{transform:scale(0) rotate(-45deg)}100%{transform:scale(1) rotate(0)}}
body.cdi-cfg #summary .summary__item.cdi-new{animation:cdiSlideIn .5s cubic-bezier(.2,1.2,.4,1), cdiFlash 1.4s ease}
@keyframes cdiSlideIn{from{transform:translateX(18px);opacity:0}to{transform:none;opacity:1}}
/* 2 section burst */
.cdi-cfg-groups li.cdi-burst .n{animation:cdiBurst .7s ease}
@keyframes cdiBurst{0%{box-shadow:0 0 0 0 rgba(255,122,0,.6);transform:scale(1)}30%{transform:scale(1.35)}100%{box-shadow:0 0 0 14px rgba(255,122,0,0);transform:scale(1)}}
.cdi-toast{position:fixed;left:50%;top:84px;z-index:99990;transform:translate(-50%,-16px);opacity:0;pointer-events:none;display:flex;align-items:center;gap:10px;background:#fff;color:var(--cdi-ink);border:2px solid var(--cdi-o);font:600 14px/1.3 "Open Sans",system-ui,sans-serif;padding:8px 18px 8px 8px;border-radius:999px;box-shadow:0 14px 34px -8px rgba(255,122,0,.45);transition:transform .35s cubic-bezier(.2,1.4,.4,1),opacity .25s;white-space:nowrap}
.cdi-toast:before{content:"";flex:none;width:28px;height:28px;border-radius:50%;background:var(--cdi-o) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat}
.cdi-toast b{color:var(--cdi-o);margin-right:4px;font-weight:800}
.cdi-toast.show{opacity:1;transform:translate(-50%,0)}
/* 3 kit ring */
body.cdi-cfg #summary .summary__head{display:flex;align-items:center;gap:10px}
body.cdi-cfg #summary .summary__head .summary__title{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.cdi-cfg #summary .summary__bar,body.cdi-cfg #summary .summary__progress{display:none!important}
.cdi-ring{position:relative;flex:none;width:40px;height:40px}
.cdi-ring svg{width:40px;height:40px;transform:rotate(-90deg)}
.cdi-ring circle{fill:none;stroke-width:3.6}
.cdi-ring .bg{stroke:#eef0f3}
.cdi-ring .fg{stroke:var(--cdi-o);stroke-linecap:round;transition:stroke-dashoffset .6s cubic-bezier(.2,1,.3,1),stroke .3s}
.cdi-ring .pct{position:absolute;inset:0;display:grid;place-items:center;font:800 10.5px "Open Sans",sans-serif;color:var(--cdi-ink)}
.cdi-ring.full .fg{stroke:#16a34a}
.cdi-ring.full .pct{color:#16a34a}
/* 4 almost there */
.cdi-cfg-foot.is-near .cnt{color:var(--cdi-o)!important}
/* 5 name the opening */
.cdi-name{width:100%;max-width:420px;box-sizing:border-box;margin:0 auto 14px;text-align:left}
.cdi-name label{display:block;font-size:12px;font-weight:800;color:var(--cdi-ink);margin-bottom:5px;text-transform:uppercase;letter-spacing:.04em}
.cdi-name label span{color:var(--cdi-mute);font-weight:600;text-transform:none;letter-spacing:0}
.cdi-name input{width:100%;box-sizing:border-box;height:42px;border:1.5px solid #d1d5db;border-radius:10px;padding:0 12px;font:500 15px "Open Sans",sans-serif;background:#fff}
.cdi-name input:focus{outline:none;border-color:var(--cdi-o);box-shadow:0 0 0 3px rgba(255,122,0,.15)}
body.cdi-cfg #summary .summary__title.named{color:var(--cdi-o)!important}
.cdi-name-inline{width:100%;box-sizing:border-box;font:800 15px "Open Sans",sans-serif;border:1.5px solid var(--cdi-o);border-radius:6px;padding:3px 6px}
/* 7 resume banner */
.cdi-resume{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:linear-gradient(135deg,#fff7ed,#fff);border:1.5px solid #fdba74;border-radius:14px;padding:12px 14px;margin:0 0 12px;box-shadow:0 8px 24px -10px rgba(255,122,0,.4);animation:cdiSlideIn .4s ease}
.cdi-resume .ic{width:38px;height:38px;border-radius:50%;background:var(--cdi-o);color:#fff;display:grid;place-items:center;font-size:20px;font-weight:800;flex:none}
.cdi-resume .tx{flex:1;min-width:180px;line-height:1.3}
.cdi-resume .tx b{display:block;font-size:15px;color:var(--cdi-ink)}
.cdi-resume .tx small{font-size:12.5px;color:var(--cdi-mute)}
.cdi-resume button{all:unset;cursor:pointer;font-weight:800;font-size:14px;border-radius:999px;padding:10px 18px}
.cdi-resume .go{background:var(--cdi-o);color:#fff;box-shadow:0 6px 16px rgba(255,122,0,.3)}
.cdi-resume .no{color:var(--cdi-mute);font-weight:700}
@media (max-width:1024px){.cdi-toast{top:auto;bottom:86px;white-space:normal;max-width:calc(100vw - 32px);text-align:center;border-radius:14px}.cdi-resume .go{flex:1;text-align:center}}
@media (prefers-reduced-motion:reduce){.cdi-pop,.cdi-burst .n,#summary .summary__item.cdi-new{animation:none!important}}

@media (max-width:1024px){body.cdi-cfg .accessories-step.cdi-x-open .component_option_thumbnails_container{grid-template-columns:1fr 1fr!important}}
@media (max-width:1024px){
  body.cdi-cfg .composite_component:not(.accessories-step) .component_option_thumbnails_container{display:grid!important;grid-template-columns:1fr 1fr;gap:10px;padding:0!important}
  body.cdi-cfg .composite_component:not(.accessories-step) .component_option_thumbnail_container{width:auto!important;max-width:none!important;flex:none!important;margin:0!important;padding:0!important;float:none!important}
  body.cdi-cfg .composite_component:not(.accessories-step) .thumbnail_image{padding:8px!important}
  body.cdi-cfg .composite_component:not(.accessories-step) .thumbnail_image img{max-height:110px;width:auto!important;margin:0 auto;display:block}
  body.cdi-cfg .composite_component:not(.accessories-step) .thumbnail_description span{font-size:13px!important}
  body.cdi-cfg .composite_component .step_title{font-size:19px}
  .cdi-cfg-groups .g .t{display:none}
  .cdi-cfg-groups li.is-cur .g .t{display:inline}
  body.cdi-cfg.cdi-has-mbar{padding-bottom:70px}
  .cdi-cfg-mbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:9997;background:#fff;border-top:1px solid var(--cdi-line);box-shadow:0 -6px 20px rgba(0,0,0,.08);padding:10px 14px calc(10px + env(safe-area-inset-bottom));align-items:center;gap:10px}
  .cdi-cfg-mbar .info{flex:1;min-width:0;font-size:12px;color:var(--cdi-mute);line-height:1.3}
  .cdi-cfg-mbar .info b{display:block;color:var(--cdi-ink);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .cdi-cfg-mbar button{all:unset;cursor:pointer;font-weight:800;font-size:13.5px;padding:10px 14px;border-radius:8px;border:1px solid var(--cdi-line);color:var(--cdi-ink)}
  .cdi-cfg-mbar a{all:unset;cursor:pointer;width:40px;height:40px;border-radius:8px;background:var(--cdi-o-l);display:grid;place-items:center}
  body.cdi-cfg .cdi-sum-col{display:none}
  body.cdi-cfg.cdi-sheet .cdi-sum-col{display:block!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:0!important;height:100%!important;z-index:9999;max-height:none!important;width:auto!important;margin:0!important;padding:0!important;background:transparent!important;display:flex!important;flex-direction:column;justify-content:flex-end;pointer-events:none}
  body.cdi-cfg.cdi-sheet .cdi-cfg-mbar{display:none}
  body.cdi-cfg.cdi-sheet .cdi-sheet-done{display:block}
  body.cdi-cfg.cdi-sheet #summary{pointer-events:auto;position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;z-index:10000;width:auto!important;max-height:80vh!important;border-radius:16px 16px 0 0;box-shadow:0 -12px 40px rgba(0,0,0,.25);padding:16px 16px calc(16px + env(safe-area-inset-bottom))!important;background:#fff}
  body.cdi-cfg.cdi-sheet:before{content:"";position:fixed;inset:0;background:rgba(17,24,39,.45);z-index:9998}
  .cdi-cfg-nudge{left:12px;right:12px;width:auto;bottom:82px}
  .cdi-cfg-foot .cdi-continue{flex:1;text-align:center}
  body.cdi-cfg .composite_component .wccp-label{font-size:10px!important;padding:3px 7px!important}
  body.cdi-cfg .composite_component .wccp-label img{display:none!important}
  body.cdi-cfg .composite_component:not(.accessories-step) .component_option_thumbnail_container{padding-top:30px!important}
  body.cdi-cfg .composite_component .wccp-labels-wrap{top:7px!important;left:8px!important}
  .cdi-cfg-foot .hint{font-size:12px}
}

/* --- desktop: fit whole configurator in the window, no page scroll --- */
html.cdi-fit, html.cdi-fit body{height:100%;overflow:hidden!important}
html.cdi-fit .cdi-fit-main{height:var(--cdi-fit-h,calc(100vh - 90px))!important;min-height:0!important;box-sizing:border-box;overflow:hidden;padding-bottom:14px!important}
html.cdi-fit .cdi-fit-fill{height:100%!important;min-height:0!important}
html.cdi-fit .cdi-fit-cols{height:100%!important;min-height:0!important;align-items:stretch!important}
html.cdi-fit .cdi-fit-cols>*{height:100%!important;min-height:0!important;box-sizing:border-box}
html.cdi-fit .cdi-sum-col>*{height:100%;min-height:0}
html.cdi-fit #summary{position:relative!important;max-height:100%!important;height:auto}
html.cdi-fit .cdi-fit-mid{display:flex!important;flex-direction:column!important}
html.cdi-fit .cdi-fit-stage{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
html.cdi-fit .cdi-fit-stage .wccp-composite-root{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;margin:0!important}
html.cdi-fit .wccp-composite-root>.cdi-cfg-groups{flex:none}
html.cdi-fit .wccp-composite-root>.composite_component:not([style*="none"]){display:flex!important;flex-direction:column;flex:1 1 auto;min-height:0;margin-bottom:0!important}
html.cdi-fit .wccp-composite-root>.composite_component>*{flex:none}
html.cdi-fit .wccp-composite-root>.composite_component>.component_inner{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:4px 6px 18px!important;margin:0 -6px;overscroll-behavior:contain}
html.cdi-fit .cdi-cfg-help .panel{max-height:34vh;overflow:auto}
html.cdi-fit .composite_component:not(.accessories-step) .thumbnail_image img{max-height:clamp(120px,24vh,280px)!important;max-width:100%!important;width:auto!important;height:auto!important;margin:0 auto;object-fit:contain}
html.cdi-fit .cdi-fit-right{display:flex!important;flex-direction:column;gap:14px}
html.cdi-fit .cdi-fit-right>*{height:auto!important;flex:none}
html.cdi-fit .cdi-fit-trust{margin:0!important;width:auto!important}
html.cdi-fit .cdi-fit-trust>*{width:auto!important;max-width:none!important}
html.cdi-fit .composite_component .wccp-step-nav{margin-bottom:0!important;padding-top:0!important;padding-bottom:0!important}
html.cdi-fit .composite_component .step_title{font-size:21px}
html.cdi-fit .cdi-cfg-sub{margin:0 0 10px}
html.cdi-fit .cdi-cfg-help{margin:0 auto 12px}
html.cdi-fit .wccp-composite-root>.composite_component>.component_inner{
  background:linear-gradient(#fff 30%,rgba(255,255,255,0)) center top,linear-gradient(rgba(255,255,255,0),#fff 70%) center bottom,radial-gradient(farthest-side at 50% 0,rgba(0,0,0,.12),rgba(0,0,0,0)) center top,radial-gradient(farthest-side at 50% 100%,rgba(0,0,0,.12),rgba(0,0,0,0)) center bottom;
  background-repeat:no-repeat;background-size:100% 40px,100% 40px,100% 12px,100% 12px;background-attachment:local,local,scroll,scroll}
@media (max-height:760px){html.cdi-fit .composite_component:not(.accessories-step) .thumbnail_image img{max-height:clamp(110px,20vh,180px)!important}}

/* desktop: summary lives under the door image, left column removed */
html.cdi-fit .cdi-sum-col{display:none!important}
html.cdi-fit .cdi-fit-cols{flex-wrap:nowrap!important}
html.cdi-fit .cdi-fit-mid{flex:1 1 0%!important;min-width:0!important;width:auto!important;max-width:none!important}
html.cdi-fit .cdi-fit-right{flex:0 0 clamp(320px,26vw,460px)!important;width:clamp(320px,26vw,460px)!important;max-width:none!important}
html.cdi-fit .cdi-fit-right>:first-child img{max-height:clamp(200px,calc(100vh - 560px),460px)!important;max-width:100%!important;width:auto!important;height:auto!important;display:block;margin:0 auto}
html.cdi-fit .cdi-fit-right>.cdi-fit-sumblock{flex:1 1 auto!important;min-height:0!important;height:auto!important;display:flex!important;flex-direction:column}
html.cdi-fit .cdi-fit-sumblock #summary{flex:1 1 auto;min-height:0;max-height:100%!important;width:auto!important;margin:0!important}

/* "In stock / returns" box removed from the configurator */
body.cdi-cfg .cdi-fit-trust{display:none!important}

/* Back lives in the card footer; top step nav hidden */
body.cdi-cfg .composite_component .wccp-step-nav{display:none!important}
.cdi-cfg-foot .cdi-back{all:unset;cursor:pointer;flex:none;font-weight:700;font-size:14px;color:var(--cdi-ink);padding:11px 18px;border:1.5px solid #d1d5db;border-radius:10px;background:#fff;transition:border-color .15s,color .15s}
.cdi-cfg-foot .cdi-back:hover{border-color:var(--cdi-o);color:var(--cdi-o)}
.cdi-cfg-foot .cnt{margin-left:4px}
@media (max-width:1024px){.cdi-cfg-foot{flex-wrap:wrap}.cdi-cfg-foot .cnt{order:-1;width:100%;margin:0 0 2px}.cdi-cfg-foot .cdi-back{padding:12px 16px}}

/* last step: green Complete button */
.cdi-xtra{text-align:center}
.cdi-xtra .last{display:inline-block;background:#dcfce7;color:#166534;font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;padding:4px 10px;border-radius:999px;margin-bottom:2px}
.cdi-cfg-foot .cdi-complete{background:#16a34a!important;font-size:17px!important;padding:15px 36px!important;box-shadow:0 8px 20px rgba(22,163,74,.35)!important;animation:cdiPopIn .25s ease, cdiGreenPulse 2.4s ease-out 1.5s infinite!important}
.cdi-cfg-foot .cdi-complete:hover{animation:none!important}
@keyframes cdiGreenPulse{0%{box-shadow:0 8px 20px rgba(22,163,74,.35),0 0 0 0 rgba(22,163,74,.5)}70%,100%{box-shadow:0 8px 20px rgba(22,163,74,.35),0 0 0 14px rgba(22,163,74,0)}}
@media (prefers-reduced-motion:reduce){.cdi-cfg-foot .cdi-complete{animation:none!important}}
.cdi-cfg-foot .cdi-complete{position:relative!important;overflow:hidden!important}
.cdi-cfg-foot .cdi-complete:after{content:"";position:absolute;top:0;bottom:0;left:-60%;width:40%;background:linear-gradient(105deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.55) 50%,rgba(255,255,255,0) 100%);transform:skewX(-20deg);animation:cdiShine 3s ease-in-out 1s infinite;pointer-events:none}
@keyframes cdiShine{0%{left:-60%}35%,100%{left:130%}}
@media (prefers-reduced-motion:reduce){.cdi-cfg-foot .cdi-complete:after{animation:none;display:none}}

/* Summary title in normal case */
body.cdi-cfg #summary .summary__title{text-transform:none!important;letter-spacing:0!important;font-size:16px!important;font-weight:800!important}

/* the Complete button: modern, flat, glowing */
.cdi-cfg-foot .cdi-complete{display:inline-flex!important;align-items:center;gap:12px;text-transform:uppercase;letter-spacing:.1em;font-size:16px!important;font-weight:800!important;padding:17px 22px 17px 30px!important;border-radius:999px!important;
  background:linear-gradient(135deg,#22c55e 0%,#16a34a 100%)!important;color:#fff!important;text-shadow:none;
  box-shadow:0 10px 30px -6px rgba(22,163,74,.55)!important;transform:translateY(0);transition:transform .2s ease, box-shadow .2s ease}
.cdi-cfg-foot .cdi-complete .ar{flex:none;width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.22);display:grid;place-items:center;transition:transform .25s ease, background .25s ease}
.cdi-cfg-foot .cdi-complete:hover{background:linear-gradient(135deg,#22c55e 0%,#16a34a 100%)!important;transform:translateY(-2px);box-shadow:0 16px 40px -8px rgba(22,163,74,.7)!important}
.cdi-cfg-foot .cdi-complete:hover .ar{transform:translateX(4px);background:rgba(255,255,255,.32)}
.cdi-cfg-foot .cdi-complete:active{transform:translateY(0) scale(.98);box-shadow:0 6px 18px -6px rgba(22,163,74,.6)!important}
.cdi-cfg-foot .cdi-complete.is-done .ar{transform:translateX(8px)}
@keyframes cdiGreenPulse{0%{box-shadow:0 10px 30px -6px rgba(22,163,74,.55),0 0 0 0 rgba(34,197,94,.45)}70%,100%{box-shadow:0 10px 30px -6px rgba(22,163,74,.55),0 0 0 14px rgba(34,197,94,0)}}
.cdi-confetti{position:fixed;z-index:100000;width:8px;height:12px;border-radius:2px;pointer-events:none;margin:-6px 0 0 -4px;animation:cdiConfetti .95s cubic-bezier(.15,.7,.3,1) forwards}
@keyframes cdiConfetti{0%{transform:translate(0,0) rotate(0);opacity:1}100%{transform:translate(var(--dx),calc(var(--dy) + 140px)) rotate(var(--rot));opacity:0}}
@media (max-width:1024px){.cdi-cfg-foot .cdi-complete{justify-content:center;font-size:15px!important;padding:15px 18px!important}}

/* desktop dense mode: shrink cards until every option fits */
html.cdi-fit .composite_component .component_inner.cdi-dense .component_option_thumbnails_container{display:grid!important;grid-template-columns:repeat(var(--cdi-cols,4),minmax(0,1fr))!important;gap:12px!important;padding:0!important;margin:0 auto!important;width:100%;max-width:var(--cdi-gridw,100%)!important}
html.cdi-fit .composite_component:not(.accessories-step) .component_inner.cdi-dense .component_option_thumbnail_container{width:auto!important;max-width:none!important;margin:0!important;float:none!important;padding-top:30px!important}
html.cdi-fit .composite_component:not(.accessories-step) .component_inner.cdi-dense .thumbnail_image{padding:4px!important}
html.cdi-fit .composite_component:not(.accessories-step) .component_inner.cdi-dense .thumbnail_image img{max-height:var(--cdi-img,140px)!important;max-width:100%!important;width:auto!important;height:auto!important;margin:0 auto;display:block}
html.cdi-fit .composite_component:not(.accessories-step) .component_inner.cdi-dense .thumbnail_description span{font-size:13px!important;line-height:1.3}
html.cdi-fit .composite_component:not(.accessories-step) .component_inner.cdi-dense .thumbnail_description{padding:4px 6px 8px!important}
html.cdi-fit .composite_component .component_inner.cdi-dense .wccp-labels-wrap{top:6px!important;left:8px!important}
html.cdi-fit .composite_component .component_inner.cdi-dense .wccp-label{font-size:10.5px!important;padding:3px 8px!important}
html.cdi-fit .composite_component:not(.accessories-step) .component_inner.cdi-dense .component_option_thumbnail.selected:after{top:5px;right:6px;width:20px;height:20px;background-size:12px}
html.cdi-fit .accessories-step .component_inner.cdi-dense .thumbnail_image img{height:var(--cdi-img,84px)!important;max-width:100%}
html.cdi-fit .accessories-step .component_inner.cdi-dense .component_option_thumbnail{padding:10px 8px!important;gap:6px!important}
html.cdi-fit .accessories-step .component_inner.cdi-dense .thumbnail_description>span{min-height:0!important;font-size:12.5px!important}
html.cdi-fit .composite_component .component_inner.cdi-dense .thumbnail_description{margin-top:6px!important}
html.cdi-fit .composite_component .component_inner.cdi-dense img,html.cdi-fit .composite_component .component_inner.cdi-dense .thumbnail_image,html.cdi-fit .composite_component .component_inner.cdi-dense .component_option_thumbnail_container{transition:none!important}

/* smoother step changes: options fade in; hidden while being sized */
html.cdi-fit .wccp-composite-root>.composite_component:not([style*="none"])>.component_inner{animation:cdiStepIn .18s ease-out}
@keyframes cdiStepIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
html.cdi-fit .component_inner .component_option_thumbnails_container{transition:opacity .18s ease}
html.cdi-fit .component_inner.cdi-sizing .component_option_thumbnails_container{opacity:0;transition:none}
@media (prefers-reduced-motion:reduce){html.cdi-fit .wccp-composite-root>.composite_component>.component_inner{animation:none}}

/* compact header (desktop): title + hint left, help buttons right, help opens as a dropdown */
.cdi-head{position:relative}
html.cdi-fit .cdi-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 12px;padding:0 0 10px;border-bottom:1px solid var(--cdi-line)}
html.cdi-fit .cdi-head-l{min-width:0;text-align:left}
html.cdi-fit .cdi-head .component_title_wrapper{margin:0!important}
html.cdi-fit .cdi-head .step_title_wrapper,html.cdi-fit .cdi-head .component_title{text-align:left!important;margin:0!important;padding:0!important;line-height:1.2}
html.cdi-fit .cdi-head .step_title{font-size:20px!important}
html.cdi-fit .cdi-head .cdi-cfg-sub{text-align:left;margin:3px 0 0!important;font-size:13.5px}
html.cdi-fit .cdi-head .cdi-cfg-help{margin:0!important;max-width:none;flex:none;position:static}
html.cdi-fit .cdi-head .cdi-cfg-help .row{justify-content:flex-end;flex-wrap:nowrap}
html.cdi-fit .cdi-head .cdi-cfg-help .panel{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:40;margin:0;max-height:60vh;overflow:auto;box-shadow:0 20px 44px rgba(0,0,0,.2)}
html.cdi-fit .cdi-name{margin:0 auto 10px}
html.cdi-fit .cdi-xtra{display:grid;grid-template-columns:1fr;justify-items:start;text-align:left;margin:0 0 12px;padding:0 0 10px;border-bottom:1px solid var(--cdi-line)}
html.cdi-fit .cdi-xtra h3{font-size:20px;margin:4px 0 2px;text-align:left}
html.cdi-fit .cdi-xtra .lead{text-align:left;margin:0;font-size:13.5px}

/* auto-layout: centre the option grid vertically when there's spare room (auto margins collapse if it ever overflows) */
html.cdi-fit .composite_component:not(.accessories-step) .component_inner.cdi-dense{display:flex!important;flex-direction:column}
html.cdi-fit .composite_component:not(.accessories-step) .component_inner.cdi-dense>.component_selections{margin:auto 0!important;width:100%}
html.cdi-fit .composite_component:not(.accessories-step) .component_inner.cdi-dense .thumbnail_description span{font-size:14px!important}
/* door picture card fills the full width of the right column (no white gap beside it) */
html.cdi-fit .cdi-fit-right>:first-child,html.cdi-fit .cdi-fit-right .wccp_product_zoom-container{width:100%!important;max-width:none!important;margin:0!important;box-sizing:border-box}
html.cdi-fit .cdi-fit-right .wccp_product_zoom-container{display:flex;align-items:center;justify-content:center;height:clamp(200px,calc(100vh - 560px),460px)!important;overflow:hidden}
html.cdi-fit .cdi-fit-right .wccp_product_zoom-container img{width:100%!important;height:100%!important;max-height:none!important;max-width:100%!important;object-fit:contain;margin:0!important}
/* options with a badge (Most Popular, etc.) gently pulse until something on the step is picked */
body.cdi-cfg .composite_component:not(.accessories-step) .component_option_thumbnail_container:has(.wccp-label){border-color:#ffc58f!important}
body.cdi-cfg .composite_component:not(.accessories-step):not(:has(.component_option_thumbnail.selected)) .component_option_thumbnail_container:has(.wccp-label){animation:cdiPopular 2.2s ease-in-out infinite}
body.cdi-cfg .composite_component:not(.accessories-step):not(:has(.component_option_thumbnail.selected)) .component_option_thumbnail_container:has(.wccp-label) .wccp-label{animation:cdiBadge 2.2s ease-in-out infinite}
body.cdi-cfg .composite_component .component_option_thumbnail_container:has(.wccp-label):hover,body.cdi-cfg .composite_component .component_option_thumbnail_container:has(.wccp-label):hover .wccp-label{animation-play-state:paused}
@keyframes cdiPopular{0%,100%{box-shadow:0 0 0 0 rgba(255,122,0,0)}50%{box-shadow:0 0 0 6px rgba(255,122,0,.22),0 8px 22px rgba(255,122,0,.18)}}
@keyframes cdiBadge{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
@media (prefers-reduced-motion:reduce){body.cdi-cfg .component_option_thumbnail_container:has(.wccp-label),body.cdi-cfg .component_option_thumbnail_container .wccp-label{animation:none!important}}
/* summary: little picture of each chosen option */
body.cdi-cfg #summary .summary__item{align-items:center!important}
.cdi-sum-ic{flex:none;width:38px;height:38px;border-radius:9px;background:#fff;border:1px solid var(--cdi-line);display:grid;place-items:center;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.cdi-sum-ic img{width:100%;height:100%;object-fit:contain;padding:2px;box-sizing:border-box}
body.cdi-cfg #summary .summary__meta{flex:1 1 auto}
/* pick celebration: picture flies to the summary, ring bumps */
.cdi-fly{position:fixed;z-index:100001;pointer-events:none;object-fit:contain;background:#fff;border-radius:12px;box-shadow:0 14px 32px rgba(17,24,39,.18),0 0 0 2px rgba(255,122,0,.55);transform-origin:center;will-change:transform,opacity;margin:0!important;max-width:none!important;max-height:none!important;padding:4px;box-sizing:border-box}
@keyframes cdiLand{0%{transform:scale(.6)}55%{transform:scale(1.18);box-shadow:0 0 0 4px rgba(255,122,0,.28)}100%{transform:none;box-shadow:0 1px 3px rgba(0,0,0,.06)}}
.cdi-sum-ic.cdi-land{animation:cdiLand .42s cubic-bezier(.2,1.4,.4,1)}
.cdi-ring.cdi-bump{animation:cdiRingBump .45s cubic-bezier(.2,1.6,.4,1)}
@keyframes cdiRingBump{0%{transform:scale(1)}40%{transform:scale(1.25)}100%{transform:scale(1)}}
/* no empty badge strip on steps that have no badges */
html.cdi-fit .composite_component:not(.accessories-step) .component_inner.cdi-dense:not(:has(.wccp-label)) .component_option_thumbnail_container{padding-top:10px!important}
/* option names: compact, max 2 lines */
html.cdi-fit .composite_component:not(.accessories-step) .component_inner.cdi-dense .thumbnail_description{margin-top:4px!important;padding:4px 8px 6px!important}
html.cdi-fit .composite_component:not(.accessories-step) .component_inner.cdi-dense .thumbnail_description span{font-size:13px!important;line-height:1.3!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* hover preview */
/* ---- phone polish (v1.13) ---- */
@media (max-width:1024px){
  body.cdi-cfg div:has(> [id^="code_block"] > .wccp-composite-root){padding-left:0!important;padding-right:10px!important;box-sizing:border-box!important}
  body.cdi-cfg .cdi-head{display:flex!important;flex-wrap:wrap;align-items:flex-start;gap:8px 10px;text-align:left!important;margin-bottom:10px}
  body.cdi-cfg .cdi-head-l{flex:1;min-width:0;text-align:left!important}
  body.cdi-cfg .cdi-head .component_title,body.cdi-cfg .cdi-head .component_title_wrapper{text-align:left!important;margin:0!important}
  body.cdi-cfg .cdi-head .step_title{font-size:19px!important;line-height:1.2!important}
  body.cdi-cfg .cdi-cfg-sub{font-size:13.5px!important;line-height:1.35!important;margin:3px 0 0!important;text-align:left!important}
  body.cdi-cfg .cdi-head .cdi-cfg-help{display:contents}
  body.cdi-cfg .cdi-head .cdi-cfg-help .row{flex:0 1 auto;max-width:100%;min-width:0;margin:0!important;display:flex!important;flex-wrap:wrap;gap:8px}
  body.cdi-cfg .cdi-head .cdi-cfg-help .lnk{font-size:13px!important;padding:7px 11px!important;white-space:nowrap}
  body.cdi-cfg .cdi-head .cdi-cfg-help .panel{flex:1 1 100%;margin:0!important}
  body.cdi-cfg .cdi-name{margin:0 0 12px!important}
  body.cdi-cfg .cdi-name label{font-size:11px!important;margin-bottom:4px!important}
  body.cdi-cfg .cdi-name input{font-size:16px!important;padding:9px 12px!important}
  body.cdi-cfg .composite_component:not(.accessories-step) .thumbnail_image{padding:6px!important}
  body.cdi-cfg .composite_component:not(.accessories-step) .thumbnail_image img{width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:1/1;object-fit:contain}
  body.cdi-cfg .composite_component:not(.accessories-step) .thumbnail_description{padding:2px 8px 10px!important;margin:0!important}
  body.cdi-cfg .composite_component:not(.accessories-step) .thumbnail_description span{font-size:13px!important;line-height:1.3!important;display:block}
  body.cdi-cfg .cdi-cfg-groups{margin-bottom:10px!important}
  body.cdi-cfg .cdi-cfg-help .panel{padding:14px!important}
  body.cdi-cfg .cdi-cfg-help .calc{grid-template-columns:1fr!important}
  body.cdi-cfg .cdi-cfg-help select,body.cdi-cfg .cdi-cfg-help input{font-size:16px!important;width:100%!important}
  body.cdi-cfg .accessories-step .qty-btn{min-width:40px!important;min-height:40px!important}
}
.cdi-cfg-mbar .mb,.cdi-cfg-mbar .mdone{display:none!important}
@media (max-width:1024px){
  .cdi-cfg-mbar.has-back .mb{display:grid!important;place-items:center;width:40px;height:40px;padding:0!important;font-size:18px!important;flex:0 0 auto}
  .cdi-cfg-mbar.is-final .ms{padding:10px!important;font-size:12.5px!important;flex:0 0 auto}
  .cdi-cfg-mbar.is-final{gap:8px!important}
  .cdi-cfg-mbar.is-final .mdone{display:block!important;background:#16a34a!important;color:#fff!important;border-color:#16a34a!important;text-transform:uppercase;letter-spacing:.04em;font-size:13px!important;padding:12px 14px!important;border-radius:999px!important;box-shadow:0 6px 16px rgba(22,163,74,.35)}
  .cdi-cfg-mbar.is-final .info{display:none}
  .cdi-cfg-mbar.is-final .mdone{flex:1;text-align:center}
}
/* tablet (768-1024): same bottom bar + kit sheet as phones, but 3-across cards */
@media (min-width:768px) and (max-width:1024px){
  body.cdi-cfg .composite_component:not(.accessories-step) .component_option_thumbnails_container,
  body.cdi-cfg .accessories-step.cdi-x-open .component_option_thumbnails_container{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
  body.cdi-cfg .composite_component:not(.accessories-step) .thumbnail_image img{max-width:200px!important;margin:0 auto!important}
  .cdi-cfg-groups .g .t{display:inline!important}
  body.cdi-cfg.cdi-sheet #summary{left:50%!important;right:auto!important;width:600px!important;max-width:100%!important;transform:translateX(-50%)}
  .cdi-cfg-nudge{left:auto;right:16px;width:360px}
  .cdi-toast{max-width:480px}
}

/* "Help me choose" gets noticed: after 5s on a step with no pick it lights up solid orange and shakes */
@keyframes cdiWiggle{0%,100%{transform:none}8%{transform:scale(1.12) rotate(-5deg)}16%{transform:scale(1.12) rotate(5deg)}24%{transform:scale(1.12) rotate(-5deg)}32%{transform:scale(1.12) rotate(5deg)}40%{transform:scale(1.12) rotate(0)}55%{transform:none}}
@keyframes cdiHelpRing{0%{box-shadow:0 0 0 0 rgba(255,122,0,.6)}100%{box-shadow:0 0 0 14px rgba(255,122,0,0)}}
body.cdi-cfg .cdi-cfg-help button.lnk.cdi-lit{background:var(--cdi-o)!important;color:#fff!important;border-color:var(--cdi-o)!important}
body.cdi-cfg .cdi-cfg-help button.lnk.cdi-wiggle{animation:cdiWiggle 1s ease-in-out,cdiHelpRing 1.1s ease-out 2}
@media (prefers-reduced-motion:reduce){body.cdi-cfg .cdi-cfg-help button.lnk.cdi-wiggle{animation:cdiHelpRing 1.1s ease-out 2}}
/* option cards stay white (selected, hovered, added) so product photos sit on a clean background */
body.cdi-cfg .composite_component .component_option_thumbnail,body.cdi-cfg .composite_component .component_option_thumbnail.selected,body.cdi-cfg .composite_component .component_option_thumbnail:hover,body.cdi-cfg .accessories-step .component_option_thumbnail.cdi-has,body.cdi-cfg .composite_component:not(.accessories-step) .component_option_thumbnail_container,body.cdi-cfg .composite_component .thumbnail_image{background:#fff!important}

/* tall pictures: one-row steps whose subjects are narrow get taller picture boxes (white sides trimmed) */
html.cdi-fit .composite_component:not(.accessories-step) .component_inner.cdi-dense.cdi-tall .thumbnail_image img{width:min(100%,var(--cdi-img))!important;height:var(--cdi-imgh)!important;max-height:none!important;object-fit:cover!important;object-position:center!important}

/* large monitors (Studio Display full screen etc.): keep the builder a sensible width and scale text up so it doesn't look tiny and stretched */
@media (min-width:1700px) and (min-height:1000px){
  html.cdi-fit .cdi-fit-cols{max-width:1880px!important;margin-left:auto!important;margin-right:auto!important;width:100%!important}
  html.cdi-fit body.cdi-cfg .composite_component .step_title{font-size:28px!important}
  html.cdi-fit body.cdi-cfg .cdi-cfg-sub{font-size:16px!important}
  html.cdi-fit body.cdi-cfg .cdi-cfg-groups .g{font-size:14px}
  html.cdi-fit body.cdi-cfg .cdi-cfg-help button.lnk{font-size:15px;padding:9px 16px}
  html.cdi-fit .composite_component:not(.accessories-step) .component_inner.cdi-dense .thumbnail_description span{font-size:16px!important}
  html.cdi-fit .composite_component .component_inner.cdi-dense .wccp-label{font-size:12.5px!important;padding:4px 10px!important}
  html.cdi-fit .accessories-step .component_inner.cdi-dense .thumbnail_description>span{font-size:14.5px!important}
  html.cdi-fit body.cdi-cfg #summary{font-size:15px}
  html.cdi-fit body.cdi-cfg .cdi-cfg-foot{font-size:15px}
  html.cdi-fit body.cdi-cfg .cdi-cfg-foot .cdi-continue,html.cdi-fit body.cdi-cfg .cdi-cfg-foot .cdi-back{font-size:16px!important}
}
/* The builder lifts option cards 2px on hover; next to the pointer that makes a card flicker in and out of hover. Keep the border/shadow hover only. */
body.cdi-cfg .composite_component .component_option_thumbnail_container:hover:not(.selected){transform:none!important}
