/* Theme configurator — loaded only on the configurator template. */

.cfg-hero { padding-block: clamp(36px, 6vw, 80px) clamp(24px, 4vw, 48px); }
.cfg-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.cfg-facts { list-style: none; padding: 0; margin: 8px 0 28px; display: flex; gap: 28px; }
.cfg-facts li { display: grid; }
.cfg-facts b { font: 800 1.9rem/1 var(--font-display); letter-spacing: -.03em; }
.cfg-facts span { color: var(--muted); font-size: 14px; }
.cfg-hero-media { margin: 0; position: relative; padding-right: 18%; }
.cfg-hero-media img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; }
.cfg-hero-media .cfg-hero-small { position: absolute; right: 0; bottom: -24px; width: 40%; aspect-ratio: 3 / 4; border: 6px solid var(--paper); box-shadow: var(--shadow); }

.cfg-section { padding-top: clamp(40px, 6vw, 72px); }
.cfg-progress { list-style: none; margin: 0 0 28px; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cfg-progress::-webkit-scrollbar { display: none; }
.cfg-progress li { flex: 1 1 0; min-width: 110px; }
.cfg-progress button { width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 0; border-top: 3px solid var(--line); padding: 10px 2px 0; font: 500 13.5px/1.2 var(--font-body); color: var(--muted); cursor: pointer; text-align: left; }
.cfg-progress button:disabled { cursor: default; }
.cfg-progress span { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font: 600 12px/1 var(--font-mono); }
.cfg-progress em { font-style: normal; white-space: nowrap; }
.cfg-progress .is-done button { border-top-color: var(--green-2); color: var(--ink); }
.cfg-progress .is-done span { background: var(--green-2); color: #fff; }
.cfg-progress .is-current button { border-top-color: var(--accent); color: var(--ink); font-weight: 600; }
.cfg-progress .is-current span { background: var(--accent); color: var(--ink); }
.cfg:not(.is-js) .cfg-progress { display: none; }

.cfg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.cfg-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3.4vw, 40px); }
.cfg:not(.is-js) .cfg-step + .cfg-step { margin-top: 20px; }
.cfg-step-head { margin-bottom: 20px; }
.cfg-step-title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 6px; outline: none; }
.cfg-step-lead { color: var(--muted); margin: 0; }
.cfg-step-hint { display: flex; gap: 10px; align-items: baseline; margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; }
.cfg-step-hint::before { content: "\2726"; color: var(--accent); flex: none; }
.cfg-step-hint[hidden], .cfg-field[hidden], .cfg-chip[hidden], .cfg-card[hidden], .cfg-progress li[hidden] { display: none !important; }
.cfg-field { margin: 22px 0; }
.cfg-field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cfg-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }
.cfg-label abbr { color: var(--accent); text-decoration: none; }

/* Chips (radio / checkbox) */
.cfg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cfg-chip { position: relative; }
.cfg-chip input, .cfg-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cfg-chip span { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 14px; font-size: 14.5px; cursor: pointer; background: var(--paper); transition: border-color .15s, background .15s; }
.cfg-chip span:hover { border-color: var(--ink); }
.cfg-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cfg-chip input[type=checkbox]:checked + span::before { content: "✓"; font-weight: 700; color: var(--accent); }
.cfg-chip input:focus-visible + span, .cfg-card input:focus-visible ~ .pv { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Options included by the chosen project type: ticked, locked, tagged */
.cfg-inc { display: none; }
.is-included .cfg-inc { display: inline-block; margin-left: 4px; padding: 3px 7px; border-radius: 999px; background: var(--green-2); color: #fff; font: 600 10px/1 var(--font-mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.cfg-chip.is-included span, .cfg-card.is-included { cursor: default; }
.cfg-chip.is-included span:hover { border-color: var(--ink); }
.cfg-card.is-included:hover { transform: none; }
.cfg-card .cfg-inc { justify-self: start; margin: 4px 0 0; }

/* Visual cards */
.cfg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cfg-cards-layout, .cfg-cards-mode { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.cfg-card { position: relative; display: grid; gap: 10px; align-content: start; border: 1.5px solid var(--line); border-radius: 16px; padding: 10px 10px 12px; cursor: pointer; background: var(--paper); transition: border-color .15s, box-shadow .15s, transform .15s; }
.cfg-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.cfg-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232, 85, 45, .15); background: #fff; }
.cfg-card:has(input:checked)::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.cfg-card-text { display: grid; gap: 2px; padding: 0 4px; }
.cfg-card-text strong { font: 600 15px/1.25 var(--font-display); }
.cfg-card-text small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }

/* Mini page previews (pure CSS) */
.pv { --pv-bg: #fff; --pv-ink: #c9c4ba; --pv-strong: #111315; --pv-acc: #e8552d; display: block; aspect-ratio: 16 / 10; border-radius: 10px; background: var(--pv-bg); border: 1px solid #e6e1d6; padding: 9px; overflow: hidden; position: relative; }
.pv > span, .pv span { display: block; }
.pv-bar { height: 7px; border-radius: 4px; background: var(--pv-ink); width: 100%; margin-bottom: 8px; opacity: .6; }
.pv-line { height: 6px; border-radius: 3px; background: var(--pv-ink); margin: 5px 0; width: 80%; }
.pv-short { width: 50%; }
.pv-btn { width: 34%; height: 10px; border-radius: 6px; background: var(--pv-acc); margin-top: 7px; }
.pv-hero { padding: 6px 0 8px; }
.pv-center { text-align: center; display: grid; justify-items: center; padding-top: 14px; }
.pv-grid { display: grid !important; gap: 5px; }
.pv-g3 { grid-template-columns: repeat(3, 1fr); }
.pv-g7 { grid-template-columns: repeat(7, 1fr); margin: 4px 0; }
.pv-tile { background: #ece8df; border-radius: 5px; aspect-ratio: 1; }
.pv-flat { aspect-ratio: 16 / 9; }
.pv-product { background: linear-gradient(#ece8df 70%, #fff 70%, #fff 80%, var(--pv-acc) 80%, var(--pv-acc) 88%, #fff 88%); }
.pv-dot { aspect-ratio: 1; border-radius: 3px; background: #ece8df; }
.pv-dot.pv-on { background: var(--pv-acc); }
.pv-row { display: flex !important; gap: 6px; align-items: center; margin: 6px 0; }
.pv-thumb { width: 26%; aspect-ratio: 4 / 3; background: #ece8df; border-radius: 4px; flex: none; }
.pv-col { flex: 1; }
.pv-masonry { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 22px; }
.pv-masonry .pv-tile { aspect-ratio: auto; }
.pv-masonry .pv-tall { grid-row: span 2; }
.pv-lock { width: 22px; height: 18px; border: 3px solid var(--pv-acc); border-radius: 5px; margin: 6px auto; position: relative; }
.pv-lock::before { content: ""; position: absolute; left: 3px; top: -11px; width: 10px; height: 9px; border: 3px solid var(--pv-acc); border-bottom: 0; border-radius: 7px 7px 0 0; }
.pv-question { font: 800 34px/1 var(--font-display); color: var(--pv-ink); text-align: center; padding-top: 10px; }
.pv-stack { display: grid !important; gap: 4px; }
.pv-section { height: 14px; border-radius: 4px; background: #ece8df; }
.pv-section:nth-child(1) { height: 24px; background: #ddd7ca; }
.pv-section:nth-child(3) { background: var(--pv-acc); opacity: .35; }
.pv-scroll { position: absolute; right: 5px; top: 9px; bottom: 9px; width: 4px; border-radius: 2px; background: #ece8df; }
.pv-scroll::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30%; border-radius: 2px; background: var(--pv-strong); }
.pv-pages { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 6px; height: 100%; align-items: center; }
.pv-page { aspect-ratio: 3 / 4; border-radius: 5px; background: linear-gradient(#ddd7ca 22%, #fff 22%, #fff 30%, #ece8df 30%, #ece8df 44%, #fff 44%, #fff 52%, #ece8df 52%); border: 1px solid #e6e1d6; }
.pv-page:nth-child(2) { transform: translateY(-6px); }
.pv-page:nth-child(4) { transform: translateY(-4px); }
.pv-mode-dark { --pv-bg: #15171b; --pv-ink: #3a3e45; border-color: #2a2d33; }
.pv-split { display: grid !important; grid-template-columns: 1fr 1fr; height: 100%; margin: -9px; }
.pv-half { padding: 14px 8px; }
.pv-light { background: #fff; --pv-ink: #c9c4ba; }
.pv-dark { background: #15171b; --pv-ink: #3a3e45; }
.pv-title { font: 800 22px/1 var(--font-display); color: var(--pv-strong); margin: 4px 0 6px; }
.pv-style-minimal .pv-title { font-weight: 400; font-family: var(--font-body); letter-spacing: -.02em; }
.pv-style-minimal { --pv-acc: #111315; }
.pv-style-minimal .pv-btn { background: transparent; border: 1.5px solid #111315; border-radius: 0; }
.pv-style-corporate { --pv-acc: #1d4ed8; --pv-strong: #0b2545; }
.pv-style-corporate .pv-title { font-family: var(--font-body); font-weight: 600; }
.pv-style-corporate .pv-btn { border-radius: 3px; }
.pv-style-bold { --pv-bg: #ffde59; --pv-ink: #e0b72c; --pv-acc: #111; }
.pv-style-bold .pv-title { font-size: 30px; letter-spacing: -.05em; }
.pv-style-elegant { --pv-bg: #f7f2ea; --pv-acc: #a8875a; --pv-strong: #3b2f2a; }
.pv-style-elegant .pv-title { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-style: italic; }
.pv-style-elegant .pv-btn { border-radius: 0; height: 2px; margin-top: 12px; }
.pv-style-playful { --pv-bg: #fff4f0; --pv-acc: #ff6b9a; --pv-ink: #ffc4b0; }
.pv-style-playful .pv-title { color: #7a3cff; }
.pv-style-playful .pv-btn { border-radius: 999px; height: 13px; }
.pv-style-playful .pv-line { border-radius: 999px; }
.pv-style-tech { --pv-bg: #0d1117; --pv-ink: #263041; --pv-acc: #3dd68c; --pv-strong: #e6edf3; background-image: linear-gradient(#1a2130 1px, transparent 1px), linear-gradient(90deg, #1a2130 1px, transparent 1px); background-size: 12px 12px; }
.pv-style-tech .pv-title { font-family: var(--font-mono); font-weight: 500; font-size: 18px; }

/* Colours */
.cfg-palettes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.cfg-palettes .cfg-label { width: 100%; margin-bottom: 2px; }
.cfg-palette { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px; background: var(--paper); cursor: pointer; }
.cfg-palette i { width: 20px; height: 20px; border-radius: 50%; display: block; }
.cfg-palette i + i { margin-left: -5px; box-shadow: 0 0 0 2px var(--paper); }
.cfg-palette.is-selected, .cfg-palette:hover { border-color: var(--ink); }
.cfg-color { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 6px 12px 6px 6px; background: var(--paper); }
.cfg-color input { width: 42px; height: 34px; border: 0; padding: 0; background: none; cursor: pointer; }
.cfg-design-colors { display: flex; gap: 16px; flex-wrap: wrap; }
.cfg-field.cfg-type-color { display: inline-block; margin-right: 16px; vertical-align: top; }
.cfg-live { --p: #111315; --a: #e8552d; display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 6px 0 4px; background: #fff; max-width: 460px; }
.cfg-live-bar { display: flex; gap: 5px; padding: 8px 10px; background: var(--p); }
.cfg-live-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.cfg-live-body { display: grid; gap: 8px; padding: 18px; }
.cfg-live-body b { font: 800 1.4rem/1.1 var(--font-display); color: var(--p); }
.cfg-live-body em { height: 8px; border-radius: 4px; background: #e6e1d6; width: 85%; }
.cfg-live-body em.short { width: 55%; }
.cfg-live-btn { justify-self: start; background: var(--a); color: #fff; font-weight: 600; font-size: 13.5px; padding: 8px 14px; border-radius: 999px; text-shadow: 0 1px 1px rgba(0, 0, 0, .2); }
.cfg-live.is-dark { background: #15171b; }
.cfg-live.is-dark .cfg-live-body b { color: #fff; }
.cfg-live.is-dark .cfg-live-body em { background: #33373e; }

.cfg-consent { margin-top: 12px; }
.cfg-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.cfg-nav [data-next], .cfg-nav [type=submit] { margin-left: auto; }
.cfg:not(.is-js) .cfg-nav [data-next], .cfg:not(.is-js) .cfg-nav [data-prev] { display: none; }

/* Summary */
.cfg-summary { position: sticky; top: 100px; }
.cfg-summary details { background: var(--ink); color: var(--paper); border-radius: var(--radius-lg); padding: 18px 20px; }
.cfg-summary summary { cursor: pointer; font: 600 1.05rem/1.2 var(--font-display); list-style: none; display: flex; justify-content: space-between; }
.cfg-summary summary::-webkit-details-marker { display: none; }
.cfg-summary summary::after { content: "▾"; color: var(--accent); }
.cfg-summary details:not([open]) summary::after { content: "▸"; }
.cfg-summary dl { margin: 14px 0 0; max-height: 58vh; overflow-y: auto; }
.cfg-summary dl > div { padding: 8px 0; border-top: 1px solid #2c3035; }
.cfg-summary dt { font: 500 11px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: #8d9098; }
.cfg-summary dd { margin: 2px 0 0; font-size: 14px; }
.cfg-summary-empty { color: #8d9098; font-size: 14px; padding: 6px 0; }
.cfg-summary-note { font-size: 12.5px; color: #8d9098; margin: 12px 0 0; }

/* Done */
.cfg-done { max-width: 640px; margin: 0 auto; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); }
.cfg-done-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: inline-grid; place-items: center; margin-bottom: 16px; }
.cfg-done-icon .icon { width: 30px; height: 30px; }
.cfg-ref { font-size: 1.1rem; }

@media (max-width: 1000px) {
	.cfg-layout { grid-template-columns: 1fr; }
	.cfg-summary { position: sticky; top: auto; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); order: -1; z-index: 20; }
	.cfg-summary details { padding: 14px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
	.cfg-summary dl { max-height: 40vh; }
}
@media (max-width: 900px) {
	.cfg-hero-grid { grid-template-columns: 1fr; }
	.cfg-hero-media { padding-right: 22%; margin-bottom: 24px; }
}
@media (max-width: 600px) {
	.cfg-cards { grid-template-columns: 1fr 1fr; }
	.cfg-cards-layout, .cfg-cards-mode { grid-template-columns: 1fr; }
	.cfg-progress em { display: none; }
	.cfg-progress li { min-width: 0; }
	.cfg-progress button { justify-content: center; }
	.cfg-facts { gap: 18px; }
	.cfg-nav .btn { flex: 1; }
}

/* AI preview box on the thank-you screen */
.cfg-pv { margin: 28px auto 8px; max-width: 1100px; text-align: left; background: var(--paper, #f5f3ee); border: 1px solid var(--line, #dcd6ca); border-radius: 18px; padding: clamp(18px, 3vw, 30px); }
.cfg-pv-head { display: flex; gap: 16px; align-items: center; }
.cfg-pv-head h3 { margin: 0 0 4px; font-size: 1.2rem; }
.cfg-pv-msg { margin: 0; color: var(--muted, #595e66); }
.cfg-pv-spinner { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 4px solid rgba(232, 85, 45, .25); border-top-color: #e8552d; animation: cfg-pv-spin .9s linear infinite; }
@keyframes cfg-pv-spin { to { transform: rotate(360deg); } }
.cfg-pv-note { margin: 12px 0 0; font-size: .92rem; color: var(--muted, #595e66); }
.cfg-pv-ready { display: grid; gap: 18px; justify-items: center; }
.cfg-pv-frame { width: 100%; height: min(78vh, 820px); border: 1px solid var(--line, #dcd6ca); border-radius: 14px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .cfg-pv-spinner { animation: none; } }

/* "Generate preview" on the last step */
.cfg-pv-try { margin: 8px 0 22px; padding: 18px 20px; border: 1px dashed var(--line, #dcd6ca); border-radius: 16px; background: #fffdf9; }
.cfg-pv-try-head { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cfg-pv-try-head strong { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.cfg-pv-try-head p { margin: 0; color: var(--muted, #595e66); font-size: .93rem; max-width: 60ch; }
.cfg-pv-try-head .btn { flex: none; }
.cfg-pv-inline { margin: 16px 0 0; max-width: none; }
.cfg-pv-attached { margin: 0; color: var(--muted, #595e66); text-align: center; }

/* Uploads (logo, photos, texts) */
.cfg-help { margin: 6px 0 0; font-size: .88rem; color: var(--muted, #595e66); }
.cfg-drop-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cfg-drop-zone { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; min-height: 88px; padding: 18px; border: 2px dashed var(--line, #dcd6ca); border-radius: 14px; background: #fffdf9; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.cfg-drop-zone strong { color: #b33c18; }
.cfg-drop-zone span { color: var(--muted, #595e66); }
.cfg-drop-zone:hover, .cfg-drop-zone.is-over { border-color: #e8552d; background: #fff4ef; }
.cfg-drop-input:focus-visible + .cfg-drop-zone { outline: 3px solid rgba(232, 85, 45, .4); outline-offset: 2px; }
.cfg-files { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.cfg-file { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--line, #dcd6ca); border-radius: 12px; background: #fff; }
.cfg-file-thumb { width: 48px; height: 48px; border-radius: 8px; background: #f3efe7; display: grid; place-items: center; overflow: hidden; font: 700 11px/1 ui-monospace, monospace; color: #595e66; }
.cfg-file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cfg-file-main { min-width: 0; display: grid; gap: 2px; }
.cfg-file-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfg-file-meta { font-size: .85rem; color: var(--muted, #595e66); }
.cfg-file-bar { display: none; height: 4px; border-radius: 4px; background: #efe9de; overflow: hidden; }
.cfg-file-bar i { display: block; width: 0; height: 100%; background: #e8552d; transition: width .2s; }
.cfg-file.is-uploading .cfg-file-bar { display: block; }
.cfg-file.is-done .cfg-file-meta::before { content: "✓ "; color: #1d7a47; font-weight: 700; }
.cfg-file.is-warn .cfg-file-meta { color: #8a5100; }
.cfg-file.is-error { border-color: #e4a39a; background: #fdecea; }
.cfg-file.is-error .cfg-file-meta { color: #b42318; }
.cfg-file-del { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f3efe7; font-size: 20px; line-height: 1; cursor: pointer; color: #111315; }
.cfg-file-del:hover { background: #111315; color: #fff; }
.cfg-pagetexts { display: grid; gap: 8px; margin-top: 8px; }
.cfg-pagetext { border: 1px solid var(--line, #dcd6ca); border-radius: 12px; background: #fff; padding: 0 14px; }
.cfg-pagetext summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.cfg-pagetext textarea { width: 100%; margin: 0 0 14px; }

/* In-page colour picker (cfg-color.js) */
.cfg-color { position: relative; }
.cfg-cp-btn { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line, #dcd6ca); box-shadow: inset 0 0 0 3px #fff; cursor: pointer; padding: 0; }
.cfg-cp-btn:focus-visible { outline: 3px solid rgba(232, 85, 45, .45); outline-offset: 2px; }
.cfg-cp { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: min(280px, 86vw); padding: 14px; background: #fff; border: 1px solid var(--line, #dcd6ca); border-radius: 16px; box-shadow: 0 18px 50px rgba(17, 19, 21, .18); display: grid; gap: 12px; }
.cfg-cp-sv { position: relative; height: 160px; border-radius: 10px; cursor: crosshair; touch-action: none; }
.cfg-cp-knob { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .3); pointer-events: none; }
.cfg-cp-hue { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 999px; background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); outline: none; margin: 0; }
.cfg-cp-hue::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #111315; cursor: pointer; }
.cfg-cp-hue::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid #111315; cursor: pointer; }
.cfg-cp-row { display: flex; gap: 8px; align-items: center; }
.cfg-cp-hex { display: flex; align-items: center; gap: 6px; flex: 1; font: 600 12px/1 ui-monospace, monospace; color: #595e66; }
.cfg-cp-hex input { width: 100%; min-width: 0; font: 600 14px/1 ui-monospace, monospace; padding: 8px 10px; border: 1px solid var(--line, #dcd6ca); border-radius: 8px; text-transform: lowercase; }
.cfg-cp-done { border: 0; border-radius: 999px; padding: 9px 16px; background: #111315; color: #fff; font-weight: 600; cursor: pointer; }
.cfg-cp-swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.cfg-cp-swatches button { aspect-ratio: 1; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .15); cursor: pointer; padding: 0; }
.cfg-cp-swatches button:focus-visible { outline: 2px solid #e8552d; outline-offset: 2px; }
.cfg-cp[hidden] { display: none; }
.cfg-color .cfg-cp input.cfg-cp-hue { display: block; width: 100% !important; max-width: none !important; justify-self: stretch; height: 14px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00) !important; }


/* Light / dark balance (mode "combined") */
.cfg-balance { --dark: 50%; display: grid; gap: 10px; max-width: 520px; }
.cfg-balance-bar { display: flex; height: 38px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line, #dcd6ca); }
.cfg-balance-light { flex: 1 1 auto; background: repeating-linear-gradient(0deg, #fff 0 10px, #f3efe7 10px 11px); }
.cfg-balance-dark { flex: 0 0 var(--dark); background: repeating-linear-gradient(0deg, #15171b 0 10px, #23262c 10px 11px); transition: flex-basis .15s; }
.cfg-balance input[type=range] { width: 100%; accent-color: #e8552d; margin: 0; }
.cfg-balance-out { margin: 0; font-weight: 600; font-size: .95rem; }
/* Mode cards: combined = stacked light/dark sections, switch = split + toggle */
.pv .pv-bands { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr 1fr 1fr; }
.pv .pv-band { display: grid; align-content: center; gap: 5px; padding: 0 14px; }
.pv-band.pv-light { background: #fff; }
.pv-band.pv-dark { background: #15171b; }
.pv-band.pv-dark .pv-line, .pv-band.pv-dark .pv-line-s { background: #3a3e45; }
.pv-toggle { position: absolute; right: 10px; top: 10px; width: 30px; height: 16px; border-radius: 999px; background: #e8552d; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.pv-toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }

/* Prices: tags on options + live quote in the summary */
.cfg-price { display: inline-block; margin-left: 6px; font-style: normal; font-size: .78em; font-weight: 700; color: #b33c18; white-space: nowrap; }
.cfg-card-text .cfg-price { margin: 4px 0 0; font-size: 12.5px; }
.cfg-price-from { color: #1d7a47; }
.is-included .cfg-price, .cfg-chip:has(input:disabled:checked) .cfg-price { display: none; }
.cfg-chip:has(input:checked) .cfg-price { color: inherit; opacity: .85; }
.cfg-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fff4ef; border: 1px solid #f4c9b8; font-size: .92rem; }
.cfg-quote { margin: 4px 0 14px; padding: 14px 0 12px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.cfg-quote ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.cfg-quote li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; line-height: 1.35; }
.cfg-quote li span { opacity: .85; }
.cfg-quote li b { white-space: nowrap; font-weight: 600; }
.cfg-quote-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, .25); font-weight: 700; }
.cfg-quote-total b { font-size: 1.45rem; color: #ffb49d; letter-spacing: -.01em; }
.cfg-quote-note, .cfg-quote-hint { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; opacity: .75; }

/* Typography cards: each sample is set in its own font (self-hosted, no Google requests) */
@font-face { font-family: "Fraunces"; src: url(../fonts/fraunces-600-latin-ext.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; src: url(../fonts/fraunces-600-latin.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; src: url(../fonts/nunito-700-latin-ext.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; src: url(../fonts/nunito-700-latin.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.cfg-cards-typo { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.pv-typo { display: grid !important; align-content: center; gap: 6px; padding: 12px 16px; }
.pv .pv-typo-aa { font-size: 44px; line-height: 1; color: var(--pv-strong); }
.pv .pv-typo-text { font-size: 15px; line-height: 1.25; color: #3a3e45; }
.pv-typo-modern .pv-typo-aa { font-family: "Bricolage", system-ui, sans-serif; font-weight: 800; letter-spacing: -.03em; }
.pv-typo-modern .pv-typo-text { font-family: "Instrument", system-ui, sans-serif; font-weight: 500; }
.pv-typo-classic .pv-typo-aa, .pv-typo-classic .pv-typo-text { font-family: "Fraunces", Georgia, "Times New Roman", serif; font-weight: 600; }
.pv-typo-technical .pv-typo-aa, .pv-typo-technical .pv-typo-text { font-family: "JetBrains", ui-monospace, Consolas, monospace; font-weight: 500; letter-spacing: -.02em; }
.pv-typo-friendly .pv-typo-aa, .pv-typo-friendly .pv-typo-text { font-family: "Nunito", "Segoe UI", system-ui, sans-serif; font-weight: 700; }

/* Domain availability */
.cfg-domcheck { margin-top: 10px; display: grid; gap: 10px; }
.cfg-domcheck .btn { justify-self: start; }
.cfg-domcheck-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cfg-domcheck-list li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line, #dcd6ca); background: #fff; font-size: .95rem; }
.cfg-domcheck-list li strong { font-family: var(--font-mono, monospace); font-weight: 600; }
.cfg-domcheck-list li span { color: var(--muted, #595e66); margin-right: auto; }
.cfg-domcheck-list li.is-available { border-color: #b7d8c3; background: #f1f8f3; }
.cfg-domcheck-list li.is-available span { color: #1d5b3a; font-weight: 600; }
.cfg-domcheck-list li.is-available span::before { content: "✓ "; }
.cfg-domcheck-list li.is-taken span { color: #b42318; }
.cfg-domcheck-list li.is-taken span::before { content: "✕ "; }
.cfg-domcheck-list li.is-error { color: #b42318; }
.cfg-domcheck-use { border: 0; border-radius: 999px; padding: 6px 14px; background: #111315; color: #fff; font-weight: 600; cursor: pointer; }

.cfg-domcheck[hidden] { display: none; }
/* Colour mode: the four options on one row (two on tablets, one on phones) */
.cfg-cards-mode { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cfg-cards-mode { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cfg-cards-mode { grid-template-columns: 1fr; } }

/* Language chips with flags */
.cfg-chip-flag span { display: inline-flex; align-items: center; gap: 8px; }
.cfg-flag { display: inline-flex; font-style: normal; line-height: 0; }
.cfg-flag svg { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }

/* Typography: six styles, 3 per row (like the visual styles) */
@font-face { font-family: "Playfair"; src: url(../fonts/playfairdisplay-700-latin-ext.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair"; src: url(../fonts/playfairdisplay-700-latin.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; src: url(../fonts/outfit-700-latin-ext.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Outfit"; src: url(../fonts/outfit-700-latin.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.pv-typo-elegant .pv-typo-aa, .pv-typo-elegant .pv-typo-text { font-family: "Playfair", "Didot", Georgia, serif; font-weight: 700; }
.pv-typo-elegant .pv-typo-aa { font-style: italic; }
.pv-typo-geometric .pv-typo-aa, .pv-typo-geometric .pv-typo-text { font-family: "Outfit", "Segoe UI", system-ui, sans-serif; font-weight: 700; letter-spacing: -.01em; }
.cfg-cards-typo { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .cfg-cards-typo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cfg-cards-typo { grid-template-columns: 1fr; } }

/* Order now (thank-you screen) */
.cfg-order { margin: 22px 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg, #fbf8f2); }
.cfg-order p { margin: 0 0 12px; }
.cfg-order p:last-child { margin-bottom: 0; }
.cfg-order-note { font-size: .9rem; color: var(--muted, #595e66); }
