/* =====================================================================
   CDIC — online order configurator (css/configurator.css)
   Paper, ink, and the four process colours, like the rest of the site.
   ===================================================================== */
.cfg { --line: #2C1B13; --soft: #F6F3EE; --hl: #FFF8DB; padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 6vw, 80px); background: var(--page); color: var(--ink); font-family: var(--font-body); }
.cfg *, .cfg-info *, .cfg-rel * { box-sizing: border-box; }
.cfg__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 1024px) { .cfg__grid { grid-template-columns: 400px minmax(0, 1fr); gap: 40px; } }
@media (min-width: 1280px) { .cfg__grid { grid-template-columns: 440px minmax(0, 1fr); } }
.cfg__sticky { display: grid; gap: 16px; }
@media (min-width: 1024px) { .cfg__sticky { position: sticky; top: 92px; } }

/* ---------- preview ---------- */
.cfg-prev { background: #fff; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 5px 5px 0 var(--cyan), 10px 10px 0 var(--magenta), 15px 15px 0 var(--yellow); }
.cfg-prev__stage { position: relative; aspect-ratio: 7 / 6; background: radial-gradient(circle at 30% 20%, #fff 0, #F3EFE8 70%); }
.cfg-prev__stage::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(44,27,19,.08) 1px, transparent 1px); background-size: 14px 14px; pointer-events: none; }
.cfg-prev__stage img, .cfg-prev__mock { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.cfg-prev__stage img { object-fit: contain; padding: 18px; }
.cfg-prev__mock svg { width: 100%; height: 100%; display: block; }
.cfg-prev__stage[data-view="mock"] img { opacity: 0; transform: scale(.96); pointer-events: none; }
.cfg-prev__stage[data-view="photo"] .cfg-prev__mock { opacity: 0; transform: scale(.96); }
.cfg-prev__badge { position: absolute; left: 12px; top: 12px; background: var(--ink); color: #fff; font: 800 11px/1 var(--font-body); letter-spacing: .08em; padding: 7px 10px; border-radius: 6px; }
.cfg-prev__badge:empty { display: none; }
.cfg-prev__tabs { display: flex; border-top: 2px solid var(--line); }
.cfg-prev__tabs button { flex: 1; border: 0; background: #fff; padding: 11px 10px; font: 700 12.5px var(--font-body); color: var(--muted); display: flex; gap: 7px; align-items: center; justify-content: center; cursor: pointer; }
.cfg-prev__tabs button + button { border-left: 2px solid var(--line); }
.cfg-prev__tabs button.is-on { background: var(--ink); color: #fff; }
.cfg-prev__tabs button[hidden] { display: none; }

/* ---------- price ---------- */
.cfg-price { background: var(--brown); color: #fff; border-radius: 16px; padding: 20px 22px; position: relative; overflow: hidden; }
.cfg-price::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--cyan) 33%, var(--magenta) 33% 66%, var(--yellow) 66%); }
.cfg-price__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cfg-price__lbl { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); opacity: .7; }
.cfg-price__old s { opacity: .6; font-size: 13px; }
.cfg-price__old em { font-style: normal; background: var(--magenta); color: #fff; font-weight: 800; font-size: 11px; padding: 3px 7px; border-radius: 5px; margin-left: 4px; }
.cfg-price__val { margin-top: 6px; display: flex; align-items: baseline; gap: 6px; }
.cfg-price__val b { font-size: clamp(34px, 4.4vw, 44px); font-weight: 900; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.cfg-price__val span { font-weight: 800; color: var(--sand); }
.cfg-price__val b.is-pop { animation: cfgPop .45s var(--ease); }
@keyframes cfgPop { 0% { transform: translateY(6px); opacity: .4; } 100% { transform: none; opacity: 1; } }
.cfg-price__unit { font-size: 12.5px; color: rgba(255,255,255,.7); margin-top: 6px; min-height: 1em; }
.cfg-price__lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.cfg-price__lines:empty { display: none; }
.cfg-price__lines li { display: flex; justify-content: space-between; font-size: 12.5px; color: rgba(255,255,255,.8); border-top: 1px dashed rgba(255,255,255,.18); padding-top: 4px; }
.cfg-price__eta { margin-top: 14px; font-size: 12.5px; font-weight: 600; color: var(--sand); display: flex; gap: 8px; align-items: center; }
.cfg-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cfg-trust li { display: flex; gap: 12px; align-items: center; background: #fff; border: 1.5px solid #E6DFD5; border-radius: 12px; padding: 11px 14px; font-size: 12.5px; color: var(--muted); }
.cfg-trust i { width: 34px; height: 34px; border-radius: 9px; background: var(--soft); display: grid; place-items: center; color: var(--ink); flex: none; }
.cfg-trust b { display: block; color: var(--ink); font-size: 13px; }
@media (max-width: 1023px) { .cfg-trust { display: none; } .cfg-prev__stage { aspect-ratio: 16 / 10; } }

/* ---------- steps ---------- */
.cfg__main { min-width: 0; }
.cfg-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cfg-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: s; }
.cfg-steps[hidden] { display: none; }
.cfg-steps li { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 2px solid #E6DFD5; border-radius: 12px; background: #fff; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; transition: border-color .2s, background .2s; }
.cfg-steps li b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--ink); font-size: 12px; flex: none; }
.cfg-steps li.is-on { border-color: var(--ink); color: var(--ink); box-shadow: 3px 3px 0 var(--yellow); }
.cfg-steps li.is-on b { background: var(--ink); color: #fff; }
.cfg-steps li.is-done b { background: #1f8a4c; color: #fff; }
.cfg-steps li.is-done b::before { content: '✓'; }
.cfg-steps li.is-done b { font-size: 0; } .cfg-steps li.is-done b::before { font-size: 13px; }
@media (max-width: 640px) { .cfg-steps li span { display: none; } .cfg-steps li { justify-content: center; } }

.cfg-step { border: 2px solid var(--line); border-radius: 18px; background: #fff; padding: clamp(18px, 3vw, 30px); margin: 0; display: none; min-width: 0; }
.cfg-step.is-on { display: block; animation: cfgIn .4s var(--ease); }
@keyframes cfgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cfg-step__t { display: flex; align-items: center; gap: 12px; font: 800 clamp(20px, 2.4vw, 26px)/1.15 var(--font-body); letter-spacing: -.03em; padding: 0; margin: 0 0 6px; float: left; width: 100%; }
.cfg-step__t span { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 15px; flex: none; }
.cfg-step__t + * { clear: both; }
.cfg-step__intro { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 10px 0 4px; clear: both; }
.cfg-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 22px; margin-top: 20px; clear: both; }
.cfg-f { min-width: 0; }
.cfg-f--cards, .cfg-f--qty, .cfg-f--swatch, .cfg-f[data-wide] { grid-column: 1 / -1; }
.cfg-f[hidden] { display: none; }
@media (max-width: 640px) { .cfg-fields { grid-template-columns: minmax(0, 1fr); } }
.cfg-f__h { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.cfg-l { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0 0 8px; }
.cfg-f__h .cfg-l { margin: 0; }
.cfg-tip { position: relative; color: var(--gold-deep); cursor: help; font-size: 13px; }
.cfg-tip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: max-content; max-width: 260px; background: var(--ink); color: #fff; font: 500 12px/1.45 var(--font-body); letter-spacing: 0; text-transform: none; padding: 9px 11px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 5; }
.cfg-tip:hover::after, .cfg-tip:focus::after, .cfg-tip.is-on::after { opacity: 1; }
.cfg-in { width: 100%; padding: 13px 14px; border: 2px solid #E6DFD5; border-radius: 11px; background: #fff; font: 600 15px var(--font-body); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
select.cfg-in { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 38px; }
textarea.cfg-in { resize: vertical; min-height: 90px; line-height: 1.5; }
.cfg-in:focus { border-color: var(--ink); box-shadow: 3px 3px 0 var(--cyan); }
.cfg-in.is-bad { border-color: var(--magenta); box-shadow: 3px 3px 0 rgba(236,0,140,.25); animation: cfgShake .35s; }
@keyframes cfgShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.cfg-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.cfg-hint { display: block; margin-top: 7px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.cfg-hint.is-ok { color: #1f8a4c; font-weight: 700; } .cfg-hint.is-bad { color: var(--magenta); font-weight: 700; }

/* option cards */
.cfg-choice { display: grid; gap: 10px; grid-template-columns: repeat(var(--c, 3), minmax(0, 1fr)); }
.cfg-choice--1 { --c: 1; } .cfg-choice--2 { --c: 2; } .cfg-choice--3 { --c: 3; } .cfg-choice--4 { --c: 4; } .cfg-choice--5, .cfg-choice--6 { --c: 3; }
@media (max-width: 780px) { .cfg-choice--3, .cfg-choice--4, .cfg-choice--5, .cfg-choice--6 { --c: 2; } }
@media (max-width: 400px) { .cfg-choice { --c: 1 !important; } .cfg-choice--sw { --c: 3 !important; } }
.cfg-choice + .cfg-row2, .cfg-choice + .cfg-drop { margin-top: 18px; }
.cfg-opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 13px 14px 13px 15px; border: 2px solid #E6DFD5; border-radius: 12px; background: #fff; cursor: pointer; font-family: var(--font-body); color: var(--ink); transition: border-color .18s, box-shadow .18s, transform .18s; min-height: 64px; }
.cfg-opt:hover { border-color: #b9ab9b; transform: translateY(-1px); }
.cfg-opt b { font-size: 14px; font-weight: 800; line-height: 1.25; }
.cfg-opt small { font-size: 12px; color: var(--muted); line-height: 1.35; font-weight: 500; }
.cfg-opt > i { font-size: 17px; color: var(--gold-deep); margin-bottom: 4px; }
.cfg-opt em { position: absolute; top: -9px; right: 10px; background: var(--magenta); color: #fff; font: 800 9.5px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: 4px 6px; border-radius: 4px; font-style: normal; }
.cfg-opt.is-on { border-color: var(--ink); background: var(--hl); box-shadow: 3px 3px 0 var(--cyan), 6px 6px 0 var(--magenta); }
.cfg-opt.is-on::after { content: '✓'; position: absolute; right: 10px; bottom: 9px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; display: grid; place-items: center; }
.cfg-opt[hidden] { display: none; }
.cfg-opt__sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); display: block; margin-bottom: 4px; }
.cfg-choice--sw .cfg-opt { align-items: center; text-align: center; min-height: 0; padding: 10px 6px; }

/* the big radio cards of steps 2-4 */
.cfg-card { position: relative; cursor: pointer; display: block; }
.cfg-card input { position: absolute; opacity: 0; pointer-events: none; }
.cfg-card__in { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 2px solid #E6DFD5; border-radius: 14px; background: #fff; height: 100%; transition: border-color .18s, box-shadow .18s; }
.cfg-card__in i { font-size: 20px; color: var(--gold-deep); margin-bottom: 4px; }
.cfg-card__in b { font-size: 15px; font-weight: 800; }
.cfg-card__in small { font-size: 12.5px; color: var(--muted); }
.cfg-card input:checked + .cfg-card__in { border-color: var(--ink); background: var(--hl); box-shadow: 3px 3px 0 var(--cyan), 6px 6px 0 var(--magenta); }
.cfg-card input:focus-visible + .cfg-card__in { outline: 2px solid var(--gold); outline-offset: 3px; }
.cfg-card--sm .cfg-card__in { flex-direction: row; align-items: center; gap: 10px; padding: 12px 14px; flex-wrap: wrap; }
.cfg-card--sm .cfg-card__in i { margin: 0; }

/* quantity chips */
.cfg-qty { display: flex; flex-wrap: wrap; gap: 8px; }
.cfg-chip { border: 2px solid #E6DFD5; background: #fff; border-radius: 999px; padding: 9px 15px; font: 800 13.5px var(--font-body); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; font-variant-numeric: tabular-nums; }
.cfg-chip:hover { border-color: #b9ab9b; }
.cfg-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 2px 2px 0 var(--yellow); }
.cfg-chip[hidden] { display: none; }
.cfg-chip--in { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 14px; cursor: text; }
.cfg-chip--in input { width: 88px; border: 0; outline: 0; font: 800 13.5px var(--font-body); background: var(--soft); border-radius: 999px; padding: 6px 10px; color: var(--ink); }
.cfg-num { display: flex; align-items: stretch; border: 2px solid #E6DFD5; border-radius: 11px; overflow: hidden; background: #fff; }
.cfg-num:focus-within { border-color: var(--ink); box-shadow: 3px 3px 0 var(--cyan); }
.cfg-num .cfg-in { border: 0; border-radius: 0; text-align: center; box-shadow: none !important; -moz-appearance: textfield; }
.cfg-num .cfg-in::-webkit-inner-spin-button { -webkit-appearance: none; }
.cfg-num button { border: 0; background: var(--soft); width: 44px; font: 800 18px var(--font-body); color: var(--ink); cursor: pointer; flex: none; }
.cfg-num span { display: grid; place-items: center; padding: 0 12px; font-weight: 800; font-size: 13px; color: var(--muted); background: var(--soft); }

/* files */
.cfg-drop { position: relative; display: block; border: 2.5px dashed #cdbfae; border-radius: 16px; padding: 24px 18px; text-align: center; background: var(--soft); transition: border-color .2s, background .2s; cursor: pointer; }
.cfg-drop > input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.cfg-drop > i { font-size: 30px; color: var(--gold-deep); }
.cfg-drop > b { display: block; font-size: 15.5px; margin: 8px 0 4px; }
.cfg-drop > span { font-size: 12.5px; color: var(--muted); }
.cfg-drop.is-drag { border-color: var(--ink); background: var(--hl); }
.cfg-files { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; text-align: left; position: relative; z-index: 2; }
.cfg-files li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid #E6DFD5; border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.cfg-files li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.cfg-files li small { color: var(--muted); }
.cfg-files li button { border: 0; background: var(--soft); width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 16px; }
.cfg-brief { margin-top: 18px; }
.cfg-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
@media (max-width: 640px) { .cfg-row2 { grid-template-columns: minmax(0, 1fr); } }
.cfg-row2 > [data-deadline-wrap].is-hl .cfg-in { border-color: var(--ink); background: var(--hl); }
.cfg-company { margin-top: 2px; padding: 4px 16px 16px; border-left: 4px solid var(--yellow); background: #FFFDF3; border-radius: 0 12px 12px 0; }
.cfg-company[hidden] { display: none; }
.cfg-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 13.5px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.cfg-check input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; margin-top: 1px; }
.cfg-check b { color: var(--ink); }
.cfg-promo { display: flex; gap: 6px; }
.cfg-promo button { border: 2px solid var(--ink); background: var(--ink); color: #fff; border-radius: 11px; padding: 0 14px; font: 800 13px var(--font-body); cursor: pointer; }
.cfg-recap { margin-top: 22px; border: 2px solid var(--ink); border-radius: 14px; padding: 16px 18px; background: var(--soft); }
.cfg-recap__t { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.cfg-recap dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 12px 0 0; font-size: 13.5px; }
.cfg-recap dt { color: var(--muted); font-weight: 600; }
.cfg-recap dd { margin: 0; font-weight: 700; }
.cfg-err { margin: 14px 0 0; padding: 11px 14px; border-radius: 10px; background: #FDECF5; color: #9b0a5c; font-weight: 700; font-size: 13.5px; }
.cfg-err[hidden] { display: none; }
.cfg-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.cfg-next { border: 0; background: var(--ink); color: #fff; border-radius: 12px; padding: 15px 24px; font: 800 15px var(--font-body); cursor: pointer; display: inline-flex; gap: 10px; align-items: center; box-shadow: 3px 3px 0 var(--cyan), 6px 6px 0 var(--magenta), 9px 9px 0 var(--yellow); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.cfg-next:hover { transform: translate(-2px, -2px); }
.cfg-next:active { transform: translate(5px, 5px); box-shadow: none; }
.cfg-back { border: 0; background: none; color: var(--muted); font: 700 14px var(--font-body); cursor: pointer; padding: 10px 4px; display: inline-flex; gap: 8px; align-items: center; }
.cfg-back:hover { color: var(--ink); }
[data-submit].is-busy { opacity: .6; pointer-events: none; }
.cfg-done { text-align: center; border: 2px solid var(--ink); border-radius: 18px; background: #fff; padding: clamp(24px, 4vw, 44px); box-shadow: 5px 5px 0 var(--cyan), 10px 10px 0 var(--magenta), 15px 15px 0 var(--yellow); }
.cfg-done[hidden] { display: none; }
.cfg-done img { width: 140px; height: auto; }
.cfg-done h2 { font: 900 clamp(26px, 3.4vw, 36px)/1.1 var(--font-body); letter-spacing: -.04em; margin: 8px 0 10px; }
.cfg-done p { color: var(--muted); max-width: 520px; margin: 0 auto; line-height: 1.6; }
.cfg-done__acts { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 22px 0 10px; }
.cfg-toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 13px 18px; border-radius: 12px; font: 600 14px/1.4 var(--font-body); max-width: min(92vw, 460px); text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 99999; box-shadow: 4px 4px 0 var(--magenta); }
.cfg-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* mobile price bar */
.cfg-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--brown); color: #fff; border-top: 3px solid var(--yellow); }
.cfg-bar small { display: block; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); opacity: .8; }
.cfg-bar b { font-size: 20px; font-weight: 900; }
.cfg-bar button { border: 0; background: var(--gold); color: var(--brown); font: 800 14px var(--font-body); border-radius: 10px; padding: 12px 16px; display: inline-flex; gap: 8px; align-items: center; }
.cfg-bar[hidden] { display: none; }
@media (min-width: 1024px) { .cfg-bar { display: none; } }
@media (max-width: 1023px) { body:has(.cfg-bar) .cx-dock { bottom: 74px; } body:has(.cfg-bar) .cx-foot { padding-bottom: 80px; } }

/* ---------- info, FAQ, related ---------- */
.cfg-info { background: #fff; border-top: 2px solid var(--ink); padding: clamp(40px, 6vw, 80px) 0; font-family: var(--font-body); color: var(--ink); }
.cfg-info__grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .cfg-info__grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.cfg-info__t { font: 800 clamp(24px, 3vw, 34px)/1.1 var(--font-body); letter-spacing: -.04em; margin: 0 0 22px; }
.cfg-specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cfg-specs li { display: flex; gap: 14px; align-items: flex-start; }
.cfg-specs i { width: 42px; height: 42px; border-radius: 11px; border: 2px solid var(--ink); display: grid; place-items: center; flex: none; box-shadow: 3px 3px 0 var(--cyan); background: var(--page); }
.cfg-specs li:nth-child(3n+2) i { box-shadow: 3px 3px 0 var(--magenta); } .cfg-specs li:nth-child(3n) i { box-shadow: 3px 3px 0 var(--yellow); }
.cfg-specs div > b { display: block; font-size: 15px; margin-bottom: 3px; }
.cfg-specs span b { color: var(--ink); }
.cfg-specs span { font-size: 14px; color: var(--muted); line-height: 1.55; }
.cfg-faq details { border: 2px solid #E6DFD5; border-radius: 12px; margin-bottom: 10px; background: var(--page); }
.cfg-faq details[open] { border-color: var(--ink); background: #fff; }
.cfg-faq summary { list-style: none; cursor: pointer; padding: 15px 18px; font-weight: 800; font-size: 15px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.cfg-faq summary::-webkit-details-marker { display: none; }
.cfg-faq summary i { transition: transform .25s; font-size: 13px; }
.cfg-faq details[open] summary i { transform: rotate(45deg); }
.cfg-faq p { margin: 0; padding: 0 18px 16px; color: var(--muted); line-height: 1.6; font-size: 14.5px; }
.cfg-rel { background: var(--page-2); border-top: 2px solid var(--ink); padding: clamp(36px, 5vw, 64px) 0; font-family: var(--font-body); }
.cfg-rel__grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 8px; }
.cfg-rel__a { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 18px; color: var(--ink); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.cfg-rel__a:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--cyan), 6px 6px 0 var(--magenta), 9px 9px 0 var(--yellow); }
.cfg-rel__a i { font-size: 20px; color: var(--gold-deep); margin-bottom: 6px; }
.cfg-rel__a b { font-size: 16px; }
.cfg-rel__a small { color: var(--muted); font-size: 13px; }
.cfg-rel__a span { margin-top: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cfg [hidden] { display: none !important; }

/* side card of the quote page */
.cfg-how { background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 22px; box-shadow: 5px 5px 0 var(--cyan), 10px 10px 0 var(--magenta), 15px 15px 0 var(--yellow); }
.cfg-how img { width: 96px; height: auto; display: block; margin: -6px 0 6px; }
.cfg-how__t { font-size: 20px; font-weight: 900; letter-spacing: -.03em; display: block; margin-bottom: 12px; }
.cfg-how ol { margin: 0; padding: 0; list-style: none; counter-reset: h; display: grid; gap: 14px; }
.cfg-how li { counter-increment: h; position: relative; padding-left: 44px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.cfg-how li::before { content: counter(h); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 800; display: grid; place-items: center; }
.cfg-how li b { display: block; color: var(--ink); font-size: 14.5px; }
.cfg-how__wa { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 18px; padding: 12px; border-radius: 11px; background: #25D366; color: #fff !important; font-weight: 800; font-size: 14px; text-decoration: none; }

/* ---------- side column: scrolls inside itself when taller than the screen ---------- */
@media (min-width: 1024px) {
  .cfg__sticky { max-height: calc(100vh - 104px); overflow-y: auto; overscroll-behavior: contain; padding: 0 18px 18px 0; margin-right: -18px; scrollbar-width: thin; scrollbar-color: rgba(44,27,19,.25) transparent; }
  .cfg__sticky::-webkit-scrollbar { width: 6px; } .cfg__sticky::-webkit-scrollbar-thumb { background: rgba(44,27,19,.2); border-radius: 6px; }
}
.cfg-price__quote { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: #fff; background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.3); border-radius: 10px; padding: 10px 12px; }
.cfg-price__quote i { color: var(--yellow); margin-right: 4px; }
.cfg.is-quote .cfg-price__val b { font-size: clamp(28px, 3.4vw, 36px); }

/* ---------- compact quantity picker ---------- */
.cfg-qp { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; border: 2px solid var(--ink); border-radius: 13px; background: #fff; box-shadow: 3px 3px 0 var(--yellow); }
.cfg-qp__st { border: 0; background: var(--soft); color: var(--ink); cursor: pointer; font-size: 14px; transition: background .15s; }
.cfg-qp__st:first-child { border-radius: 11px 0 0 11px; border-right: 2px solid #E6DFD5; } .cfg-qp__st:nth-child(3) { border-radius: 0 11px 11px 0; border-left: 2px solid #E6DFD5; }
.cfg-qp__st:hover:not(:disabled) { background: var(--hl); } .cfg-qp__st:disabled { opacity: .35; cursor: default; }
.cfg-qp__val { display: flex; align-items: baseline; gap: 6px; padding: 12px 14px; border: 0; background: none; cursor: pointer; font-family: var(--font-body); color: var(--ink); min-width: 0; text-align: left; }
.cfg-qp__val b { font-size: 20px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cfg-qp__val span { font-size: 13px; font-weight: 700; color: var(--muted); }
.cfg-qp__val em { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 800; color: var(--ink); background: var(--hl); border-radius: 7px; padding: 4px 8px; white-space: nowrap; }
.cfg-qp__val em:empty { display: none; }
.cfg-qp__val .fa-chevron-down { font-size: 12px; align-self: center; margin-left: 6px; transition: transform .2s; }
.cfg-qp.is-open .cfg-qp__val .fa-chevron-down { transform: rotate(180deg); }
.cfg-qp__pop { position: absolute; left: -2px; right: -2px; top: calc(100% + 8px); z-index: 30; background: #fff; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 18px 40px rgba(44,27,19,.18), 4px 4px 0 var(--cyan); overflow: hidden; }
.cfg-qp__list { max-height: 286px; overflow-y: auto; padding: 6px; display: grid; gap: 2px; }
.cfg-qp__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "q p" "q u"; align-items: center; column-gap: 12px; padding: 9px 12px; border: 0; border-radius: 9px; background: none; cursor: pointer; text-align: left; font-family: var(--font-body); color: var(--ink); }
.cfg-qp__row:hover { background: var(--soft); } .cfg-qp__row.is-on { background: var(--ink); color: #fff; }
.cfg-qp__row b { grid-area: q; font-size: 15px; font-weight: 800; } .cfg-qp__row b small { font-weight: 600; opacity: .6; font-size: 12px; }
.cfg-qp__row > span { grid-area: p; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }
.cfg-qp__row > small { grid-area: u; font-size: 11.5px; opacity: .65; text-align: right; }
.cfg-qp__row em { font-style: normal; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 10px; padding: 2px 5px; border-radius: 4px; margin-left: 4px; }
.cfg-qp__other { border-top: 2px dashed #E6DFD5; padding: 10px 12px; display: grid; gap: 6px; }
.cfg-qp__other label { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cfg-qp__other div { display: flex; gap: 8px; }
.cfg-qp__other input { flex: 1; min-width: 0; padding: 10px 12px; border: 2px solid #E6DFD5; border-radius: 10px; font: 700 15px var(--font-body); }
.cfg-qp__other input:focus { outline: 0; border-color: var(--ink); }
.cfg-qp__other button { border: 0; background: var(--ink); color: #fff; font-weight: 800; border-radius: 10px; padding: 0 16px; cursor: pointer; }
.cfg-qp__devis { display: block; width: 100%; border: 0; border-top: 2px solid var(--ink); background: var(--hl); padding: 12px 14px; text-align: left; font: 600 13px var(--font-body); color: var(--ink); cursor: pointer; }
.cfg-qp__devis b { text-decoration: underline; text-underline-offset: 3px; }
.cfg-qp__devis:hover { background: var(--yellow); }

/* ---------- paper swatches ---------- */
.cfg-opt.has-pp { padding-left: 74px; min-height: 76px; justify-content: center; }
.cfg-opt__pp { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 9px; overflow: hidden; border: 1.5px solid rgba(44,27,19,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 2px 3px 8px rgba(44,27,19,.12); background: #fff; }
.cfg-opt__pp svg, .cfg-opt__pp img { width: 100%; height: 100%; display: block; object-fit: cover; }
.cfg-opt.is-on .cfg-opt__pp { border-color: var(--ink); }
.cfg-pp { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 12px; padding: 14px; border: 2px solid #E6DFD5; border-radius: 14px; background: linear-gradient(135deg, #fff, var(--soft)); }
.cfg-pp[hidden] { display: none; }
@media (max-width: 520px) { .cfg-pp { grid-template-columns: 1fr; } }
.cfg-pp__sw { position: relative; aspect-ratio: 22 / 15; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 4px 8px 18px rgba(44,27,19,.2); transform: perspective(500px) rotateX(10deg) rotateZ(-2deg); transition: transform .4s var(--ease); }
.cfg-pp:hover .cfg-pp__sw { transform: perspective(500px) rotateX(4deg) rotateZ(0); }
.cfg-pp__sw svg, .cfg-pp__sw img { width: 100%; height: 100%; display: block; object-fit: cover; }
.cfg-pp__sw .pp-shine { transform: translateX(-60%); }
.cfg-pp__sw.is-gloss .pp-shine { animation: ppShine 3.2s var(--ease) infinite; }
@keyframes ppShine { 0% { transform: translateX(-70%); } 55%, 100% { transform: translateX(70%); } }
@media (prefers-reduced-motion: reduce) { .cfg-pp__sw.is-gloss .pp-shine { animation: none; transform: none; } .cfg-pp__sw { transform: none; } }
.cfg-pp__curl { position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; background: linear-gradient(135deg, rgba(0,0,0,0) 50%, #e8e2d8 50%, #fff 75%); box-shadow: -2px -2px 5px rgba(44,27,19,.15); border-top-left-radius: 4px; }
.cfg-pp__t b { display: block; font-size: 15px; font-weight: 800; }
.cfg-pp__t p { margin: 4px 0 10px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.cfg-pp__m { display: grid; grid-template-columns: 74px minmax(0, 1fr); grid-template-areas: "l b" ". s"; column-gap: 10px; align-items: center; margin-top: 6px; font-size: 11.5px; }
.cfg-pp__m > span { grid-area: l; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 10.5px; }
.cfg-pp__m > i { grid-area: b; height: 7px; border-radius: 6px; background: #EAE3D9; overflow: hidden; }
.cfg-pp__m > i u { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--cyan), var(--magenta)); transition: width .4s var(--ease); }
.cfg-pp__m > small { display: none; }
.cfg-pp__mm { display: block; margin-top: 8px; font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* ---------- « Préparer mon fichier » ---------- */
.cfg-bleed { background: #fff; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; }
.cfg-bleed summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 13px 16px; font-weight: 800; font-size: 14px; }
.cfg-bleed summary::-webkit-details-marker { display: none; }
.cfg-bleed summary i { color: var(--magenta); }
.cfg-bleed summary small { font-weight: 600; color: var(--muted); font-size: 12px; }
.cfg-bleed[open] summary { border-bottom: 2px dashed #E6DFD5; }
.cfg-bleed__b { padding: 8px 10px 0; background: radial-gradient(circle at 30% 20%, #fff 0, #F6F2EB 75%); }
.cfg-bleed__b svg { display: block; width: 100%; height: auto; }
.cfg-bleed__lg { list-style: none; margin: 0; padding: 10px 16px 14px; display: grid; gap: 7px; font-size: 12.5px; line-height: 1.4; color: var(--ink); }
.cfg-bleed__lg li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 9px; align-items: start; }
.cfg-bleed__lg li > i { width: 12px; height: 12px; border-radius: 3px; margin-top: 3px; }
.cfg-bleed__lg .cfg-bleed__px { display: block; font-size: 11.5px; color: var(--muted); padding-top: 4px; border-top: 1px solid #EEE8DF; }
.cfg.is-quote .cfg-price__val span, .cfg.is-quote .cfg-bar__cur { display: none; }
.cfg-choice--3 .cfg-opt.has-pp, .cfg-choice--4 .cfg-opt.has-pp { padding-left: 60px; }
.cfg-choice--3 .cfg-opt__pp, .cfg-choice--4 .cfg-opt__pp { width: 40px; height: 40px; left: 10px; }
