/* ===== "Build your car" block with popups ===== */
.cfgh .z-config__media{pointer-events:none}
.cfgh-stack{position:relative;width:100%;height:100%}
.cfgh-stack img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain}
.cfgh-stack--hero img{-webkit-mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent),linear-gradient(to bottom,transparent,#000 8%,#000 78%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent),linear-gradient(to bottom,transparent,#000 8%,#000 78%,transparent);mask-composite:intersect}
.cfgh-l{opacity:0;transition:opacity .5s var(--ease-out-quart)}
.cfgh-l.is-on{opacity:1}

/* stage buttons fill the original cells */
.cfgh .z-config__stages li{padding:0;position:relative;transition:color .25s var(--ease-out-quart)}
.cfgh-stage{all:unset;box-sizing:border-box;width:100%;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:calc(16 * var(--c-u));padding:calc(40 * var(--c-u)) calc(8 * var(--c-u));cursor:pointer;color:inherit;text-align:center}
.cfgh .z-config__stages li:hover,.cfgh .z-config__stages li.is-done{color:#fff}
.cfgh .z-config__stages li:hover .z-config__hint{opacity:.85}
.cfgh .z-config__stages li.is-done .z-config__hint{opacity:.8;color:#8fb4f5}
.cfgh-stage:focus-visible{outline:2px solid #8fb4f5;outline-offset:-6px}
.cfgh .z-config__emblem{cursor:pointer;font:inherit;padding:0}
.cfgh .z-config__emblem:hover{background:#2a62c2}
.cfgh .z-config__orbit{opacity:1}
.cfgh-total{margin:calc(24 * var(--c-u)) 0 0;text-align:center;font-size:calc(14 * var(--c-u));color:#ffffff99;letter-spacing:-.01em}
.cfgh-total b{font-weight:500;color:#fff}

/* popup */
html.cfgh-lock{overflow:hidden}
.cfgh-dlg{width:min(600px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid rgb(255 255 255 / 12%);border-radius:8px;background:#0f1416;color:#fff;font-family:"Site Inter",Arial,sans-serif;box-shadow:0 30px 80px rgb(0 0 0 / 55%);overflow:auto;scrollbar-width:thin}
.cfgh-dlg::backdrop{background:rgb(4 8 8 / 72%);backdrop-filter:blur(4px)}
.cfgh-dlg[open]{animation:cfgh-in .32s var(--ease-out-quart,ease)}
@keyframes cfgh-in{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
.cfgh-dlg__head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:24px 24px 4px}
.cfgh-dlg__step{margin:0 0 6px;font-size:13px;color:rgb(255 255 255 / 50%)}
.cfgh-dlg__head h2{margin:0;font-size:26px;font-weight:500;letter-spacing:-.03em;line-height:1.1}
.cfgh-x{flex:none;width:36px;height:36px;border:0;border-radius:50%;background:rgb(255 255 255 / 8%);color:#fff;font-size:22px;line-height:1;cursor:pointer;transition:background .2s}
.cfgh-x:hover{background:rgb(255 255 255 / 16%)}
.cfgh-panel{padding:16px 24px 8px}
.cfgh-stack--mini{aspect-ratio:16/9;height:auto;margin:-6px 0 6px;border-radius:6px;background:#030a09;overflow:hidden}

.cfgh-rows{display:grid;gap:10px}
.cfgh-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;width:100%;padding:16px 18px;border:1px solid rgb(255 255 255 / 12%);border-radius:6px;background:none;color:#fff;font:inherit;text-align:left;cursor:pointer;transition:border-color .2s,background .2s}
.cfgh-row:hover{border-color:rgb(255 255 255 / 32%)}
.cfgh-row.is-on{border-color:#3b7ee6;background:rgb(47 111 214 / 12%)}
.cfgh-row__main{display:grid;gap:4px}
.cfgh-row__main b{font-size:20px;font-weight:500}
.cfgh-row__main span{font-size:13px;color:rgb(255 255 255 / 60%)}
.cfgh-row__main small{font-size:13px;color:rgb(255 255 255 / 80%);line-height:1.4}
.cfgh-row__price{font-size:16px;white-space:nowrap}

.cfgh-group{margin-top:14px}
.cfgh-group__title{margin:0 0 8px;font-size:15px;font-weight:500}
.cfgh-group__title span{font-weight:400;color:rgb(255 255 255 / 60%)}
.cfgh-sws{display:flex;flex-wrap:wrap;gap:6px}
.cfgh-sw{flex:1 1 92px;max-width:112px;display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 6px 10px;border:1px solid transparent;border-radius:6px;background:none;color:#fff;font:inherit;cursor:pointer;transition:background .2s,border-color .2s}
.cfgh-sw:hover{background:rgb(255 255 255 / 5%)}
.cfgh-sw.is-on{border-color:#3b7ee6;background:rgb(47 111 214 / 12%)}
.cfgh-sw__dot{width:40px;height:40px;border-radius:50%;background:radial-gradient(circle at 32% 28%,rgb(255 255 255 / 40%),transparent 46%),var(--sw);box-shadow:inset 0 0 0 1px rgb(255 255 255 / 22%)}
.cfgh-sw__name{font-size:12px;line-height:1.25;text-align:center}
.cfgh-sw__price{font-size:11px;color:rgb(255 255 255 / 55%)}
.cfgh-sws--wheels{justify-content:center;gap:12px}
.cfgh-sw--wheel{max-width:150px;flex-basis:130px}
.cfgh-sw--wheel img{width:76px;height:76px;border-radius:50%}
.cfgh-row:focus-visible,.cfgh-sw:focus-visible,.cfgh-link:focus-visible{outline:2px solid #8fb4f5;outline-offset:2px}

.cfgh-dlg__foot{position:sticky;bottom:0;display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px;padding:14px 24px;background:#0f1416;border-top:1px solid rgb(255 255 255 / 10%)}
.cfgh-dlg__total{font-size:14px;color:rgb(255 255 255 / 60%)}
.cfgh-dlg__total b{margin-left:6px;font-size:20px;font-weight:500;color:#fff}
.cfgh-dlg__btns{display:flex;align-items:center;gap:16px}
.cfgh-link{border:0;background:none;padding:6px 0;color:rgb(255 255 255 / 70%);font:inherit;font-size:14px;cursor:pointer}
.cfgh-link:hover{color:#fff}
.cfgh-note{margin:0;padding:0 24px 16px;font-size:11px;color:rgb(255 255 255 / 38%)}

.cfgh-lines{border-top:1px solid rgb(255 255 255 / 10%)}
.cfgh-line{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid rgb(255 255 255 / 10%);font-size:14px}
.cfgh-line span{color:rgb(255 255 255 / 80%)}
.cfgh-line b{font-weight:500;white-space:nowrap}
.cfgh-sum{display:flex;justify-content:space-between;align-items:baseline;padding:14px 0 6px}
.cfgh-sum b{font-size:26px;font-weight:500;letter-spacing:-.02em}
.cfgh-form{display:grid;gap:12px;margin-top:10px}
.cfgh-form__row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cfgh-form label{display:grid;gap:6px;font-size:13px;color:rgb(255 255 255 / 60%)}
.cfgh-form input:not([type=checkbox]){box-sizing:border-box;width:100%;padding:12px;border:1px solid rgb(255 255 255 / 18%);border-radius:4px;background:#0a0e0e;color:#fff;font:inherit;font-size:15px}
.cfgh-form input:not([type=checkbox]):focus{outline:none;border-color:#3b7ee6}
.cfgh-form .cfgh-consent{display:flex;gap:10px;align-items:flex-start;font-size:12px;line-height:1.4}
.cfgh-consent input{width:18px;height:18px;margin:1px 0 0;flex:none;accent-color:#3b7ee6}
.cfgh-form .z-button{width:100%}
.cfgh-done{margin:12px 0 4px;padding:14px 16px;border-radius:6px;background:rgb(47 111 214 / 14%);font-size:14px;line-height:1.5}

@media (max-width:1099px) and (min-width:601px){
  .cfgh-stage{padding:calc(40 * var(--c-u)) calc(8 * var(--c-u))}
}
@media (max-width:600px){
  .cfgh-stage{padding:calc(24 * var(--c-u)) 0;gap:calc(8 * var(--c-u))}
  .cfgh-dlg{width:100%;max-width:100%;max-height:92dvh;margin:auto 0 0;border-radius:12px 12px 0 0;border-bottom:0}
  .cfgh-dlg[open]{animation:cfgh-up .32s var(--ease-out-quart,ease)}
  @keyframes cfgh-up{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
  .cfgh-dlg__head{padding:20px 16px 4px}
  .cfgh-dlg__head h2{font-size:22px}
  .cfgh-panel{padding:14px 16px 6px}
  .cfgh-dlg__foot{padding:12px 16px}
  .cfgh-note{padding:0 16px 14px}
  .cfgh-sw{flex-basis:30%}
  .cfgh-form__row{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){.cfgh-l,.cfgh-dlg[open]{transition:none;animation:none}}
.cfgh-dlg__foot[hidden],.cfgh-panel[hidden]{display:none!important}

/* demo badge + footer credit (Raddev orange + Manrope) */
@font-face{font-family:"Raddev Manrope";src:url("assets/fonts/raddev-manrope-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}

.demo-tag{position:fixed;right:0;top:50%;z-index:45;transform:translateY(-50%);writing-mode:vertical-rl;padding:14px 7px;border-radius:6px 0 0 6px;background:#fc5000;color:#070607;font-family:"Raddev Manrope",Manrope,Arial,sans-serif;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;text-decoration:none;box-shadow:0 4px 18px rgb(0 0 0 / 25%)}
.demo-tag{pointer-events:none;user-select:none}
.site-credit{font-weight:600;color:#fff}
@media (max-width:600px){.demo-tag{top:auto;bottom:96px;padding:10px 5px;font-size:10px}}
@media print{.demo-tag{display:none}}

/* catalogue: a brand with one model in stock gets one wide card instead of a lonely third */
@media(min-width:1100px){
  .z-stock__grid[data-kind=models][data-model-count="1"] .z-stock-card{grid-column:1/-1}
  .z-stock__grid[data-kind=models][data-model-count="1"] .z-stock-card__photo{height:calc(440 * var(--z-u))}
}
.z-stock__grid[data-kind=models] .z-stock-card__photo img{object-position:50% 72%}

/* hero: narrow desktops show more of the right side so the car isn't cut */
@media (min-width:1100px) and (max-width:1279px){.z-hero__photo{object-position:75% 50%}}
