/* BLX configurator (port of the Base44 configurator). */
.blx-configurator {
	--cf-navy: hsl(215, 60%, 14%);
	--cf-brand: hsl(20, 85%, 42%);
	--cf-brand-bright: hsl(24, 90%, 55%);
	--cf-brand-soft: hsla(20, 85%, 42%, 0.06);
	--cf-secondary: hsl(210, 20%, 94%);
	--cf-border: hsl(210, 15%, 89%);
	--cf-muted: hsl(215, 15%, 40%);
	--cf-danger: hsl(0, 72%, 46%);
	--cf-card: #fff;
	--cf-heading: var(--wp--preset--font-family--heading, ui-sans-serif, system-ui, sans-serif);
	--cf-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	color: var(--cf-navy);
}
.blx-configurator * { box-sizing: border-box; }
.blx-configurator button { font-family: inherit; color: inherit; cursor: pointer; }
.blx-cf-i { width: 1rem; height: 1rem; flex: 0 0 auto; }

/* Layout */
.blx-cf-grid { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 2rem; align-items: start; }
@media (max-width: 1023px) { .blx-cf-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.blx-cf-main { overflow: hidden; background: var(--cf-card); border: 1px solid var(--cf-border); border-radius: 1.5rem; padding: 2rem; box-shadow: 0 1px 2px hsla(215, 60%, 14%, 0.04); }
@media (max-width: 640px) { .blx-cf-main { padding: 1.25rem; } }
.blx-cf-side { display: grid; gap: 1.5rem; position: sticky; top: 7rem; }
@media (max-width: 1023px) { .blx-cf-side { position: static; } }

/* Rotating headline */
.blx-cf-headline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 1.75rem; font-family: var(--cf-heading); font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 600; letter-spacing: -0.01em; }
.blx-cf-headline__word { display: inline-flex; align-items: center; height: 1.6em; overflow: hidden; border-radius: 0.5rem; background: hsla(20, 85%, 42%, 0.1); color: var(--cf-brand); padding: 0 0.75rem; }
.blx-cf-headline__word > span { white-space: nowrap; animation: blx-cf-wordin 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes blx-cf-wordin { from { transform: translateY(110%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Step indicator */
.blx-cf-steps { display: flex; align-items: center; margin-bottom: 2rem; }
.blx-cf-dot { flex: 0 0 auto; padding: 0; border: 0; background: none; border-radius: 999px; }
.blx-cf-dot:disabled { cursor: default; }
.blx-cf-dot:focus-visible { outline: 2px solid var(--cf-navy); outline-offset: 2px; }
.blx-cf-dot > span { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; font-family: var(--cf-heading); font-size: 0.875rem; font-weight: 700; transition: transform 0.3s, background 0.3s, box-shadow 0.3s; }
.blx-cf-dot.is-inactive > span { background: var(--cf-secondary); color: var(--cf-muted); }
.blx-cf-dot.is-active > span { transform: scale(1.1); background: var(--cf-brand); color: #fff; box-shadow: 0 0 0 4px hsla(24, 90%, 55%, 0.2); }
.blx-cf-dot.is-complete > span { background: var(--cf-navy); color: #fff; }
.blx-cf-dot:not(:disabled):hover > span { transform: scale(1.15); }
.blx-cf-dot .blx-cf-i { width: 1rem; height: 1rem; stroke-width: 2.6; }
@media (max-width: 640px) { .blx-cf-dot > span { width: 1.75rem; height: 1.75rem; font-size: 0.75rem; } .blx-cf-dot .blx-cf-i { width: 0.85rem; height: 0.85rem; } }
.blx-cf-conn { display: flex; align-items: center; flex: 1; min-width: 0.25rem; margin: 0 -0.25rem; }
.blx-cf-conn__end { position: relative; z-index: 1; width: 0.5rem; height: 0.5rem; flex: 0 0 auto; border-radius: 999px; border: 1.5px solid #fff; background: var(--cf-secondary); }
.blx-cf-conn__dots { position: relative; flex: 1; height: 2px; background-image: radial-gradient(circle, hsla(215, 60%, 14%, 0.55) 0.9px, transparent 1.4px); background-size: 7px 2px; background-repeat: repeat-x; background-position: center; }
.blx-cf-conn__dots.is-marching { animation: blx-cf-march 1s linear infinite; }
@keyframes blx-cf-march { from { background-position-x: 0; } to { background-position-x: 7px; } }
.blx-cf-conn__fill { position: absolute; left: 0; top: 50%; height: 2px; width: 0; transform: translateY(-50%); border-radius: 999px; background: var(--cf-brand-bright); transition: width 0.5s ease-out; }
.blx-cf-conn__fill.is-full { width: 100%; }

/* Panels */
.blx-cf-panel.is-in-right { animation: blx-cf-inr 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.blx-cf-panel.is-in-left { animation: blx-cf-inl 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes blx-cf-inr { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes blx-cf-inl { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.blx-cf-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; }
.blx-cf-head h3 { margin: 0; font-family: var(--cf-heading); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.blx-cf-info { display: inline-flex; color: var(--cf-muted); cursor: help; }
.blx-cf-badge { margin-left: auto; border-radius: 999px; background: hsla(20, 85%, 42%, 0.1); color: var(--cf-brand); padding: 0.25rem 0.75rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.blx-cf-sublabel { margin: 1.25rem 0 0.6rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cf-muted); }
.blx-cf-head + .blx-cf-sublabel, .blx-cf-shortcut + .blx-cf-sublabel { margin-top: 0; }
.blx-cf-sublabel--flush { margin: 0; }
.blx-cf-sublabel--light { margin: 0 0 1rem; color: rgba(255, 255, 255, 0.65); }

/* Options */
.blx-cf-opts { display: grid; gap: 0.75rem; }
.blx-cf-opts--2 { grid-template-columns: 1fr 1fr; }
.blx-cf-opts--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .blx-cf-opts--2 { grid-template-columns: 1fr; } }
.blx-cf-opt { position: relative; display: flex; flex-direction: column; gap: 0.25rem; text-align: left; background: var(--cf-card); border: 2px solid var(--cf-border); border-radius: 1rem; padding: 1.25rem; transition: border-color 0.2s, background 0.2s; }
.blx-cf-opt:hover { border-color: var(--cf-brand-bright); }
.blx-cf-opt:focus-visible { outline: 2px solid var(--cf-brand); outline-offset: 2px; }
.blx-cf-opt.is-selected { border-color: var(--cf-brand); background: var(--cf-brand-soft); }
.blx-cf-opt strong { font-family: var(--cf-heading); font-size: 1.05rem; font-weight: 700; }
.blx-cf-opt > span:not(.blx-cf-opt__check):not(.blx-cf-swatch__dot):not(.blx-cf-swatch__label) { color: var(--cf-muted); font-size: 0.875rem; }
.blx-cf-opt__check { position: absolute; top: 0.75rem; right: 0.75rem; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 999px; background: var(--cf-brand); color: #fff; }
.blx-cf-opt__check .blx-cf-i { width: 0.75rem; height: 0.75rem; stroke-width: 3; }
.blx-cf-opt--chip { align-items: center; text-align: center; padding: 1.5rem 0.75rem; }
.blx-cf-opt--chip strong { font-size: 1.125rem; }
.blx-cf-opt--wide { display: block; border-radius: 0.85rem; padding: 1rem 2.5rem 1rem 1rem; font-size: 0.95rem; font-weight: 600; }
.blx-cf-swatches { display: flex; flex-wrap: wrap; gap: 1rem; }
.blx-cf-swatch { align-items: center; gap: 0.6rem; min-width: 6.5rem; padding: 1rem 1.25rem; }
.blx-cf-swatch__dot { width: 2.75rem; height: 2.75rem; border-radius: 999px; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.5), 0 4px 10px rgba(0, 0, 0, 0.15); }
.blx-cf-swatch__label { font-size: 0.875rem; font-weight: 600; color: var(--cf-navy); }
.blx-cf-star { color: var(--cf-brand); }
.blx-cf-shortcut { display: flex; width: 100%; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; padding: 0.75rem 1rem; text-align: left; border: 2px dashed hsla(20, 85%, 42%, 0.4); border-radius: 0.75rem; background: var(--cf-brand-soft); color: var(--cf-brand) !important; font-size: 0.875rem; font-weight: 600; transition: border-color 0.2s; }
.blx-cf-shortcut:hover { border-color: var(--cf-brand); }

/* Quantity */
.blx-cf-qty { margin-bottom: 1.5rem; padding: 1.25rem; border: 2px solid hsla(20, 85%, 42%, 0.25); border-radius: 1rem; background: var(--cf-brand-soft); }
.blx-cf-qty.is-warn { border-color: hsla(0, 72%, 46%, 0.6); background: hsla(0, 72%, 46%, 0.05); }
.blx-cf-qty__label { display: block; margin-bottom: 0.75rem; font-family: var(--cf-heading); font-size: 1rem; font-weight: 700; }
.blx-cf-qty__row, .blx-cf-qty__ctrl, .blx-cf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.blx-cf-qty__row { gap: 0.75rem; }
.blx-cf-qtybtn { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 2px solid var(--cf-border); border-radius: 0.5rem; background: var(--cf-card); transition: border-color 0.2s; }
.blx-cf-qtybtn:hover { border-color: var(--cf-brand-bright); }
.blx-cf-qtybtn:disabled { opacity: 0.4; cursor: not-allowed; }
.blx-cf-qty input { width: 6rem; height: 2.75rem; border: 2px solid var(--cf-border); border-radius: 0.5rem; background: var(--cf-card); text-align: center; font-family: var(--cf-mono); font-size: 1.125rem; font-variant-numeric: tabular-nums; color: var(--cf-navy); outline: none; -moz-appearance: textfield; }
.blx-cf-qty input::-webkit-outer-spin-button, .blx-cf-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.blx-cf-qty input:focus { border-color: var(--cf-brand); }
.blx-cf-qty__unit { font-size: 0.875rem; font-weight: 500; color: var(--cf-muted); }
.blx-cf-chip { padding: 0.375rem 0.875rem; border: 2px solid var(--cf-border); border-radius: 999px; background: var(--cf-card); font-family: var(--cf-mono); font-size: 0.875rem; font-variant-numeric: tabular-nums; transition: border-color 0.2s; }
.blx-cf-chip:hover { border-color: var(--cf-brand-bright); }
.blx-cf-chip.is-selected { border-color: var(--cf-brand); background: var(--cf-brand); color: #fff !important; }
.blx-cf-warn { margin: 0.75rem 0 0; font-size: 0.875rem; font-weight: 600; color: var(--cf-danger); }
.blx-cf-warn[hidden] { display: none; }

/* Presets */
.blx-cf-presets { margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px dashed var(--cf-border); }
.blx-cf-presets .blx-cf-sublabel { margin-top: 0; }
.blx-cf-presets__row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.blx-cf-preset { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem 0.5rem 0.5rem; border: 2px solid var(--cf-border); border-radius: 999px; background: var(--cf-card); font-size: 0.875rem; font-weight: 600; transition: border-color 0.2s, background 0.2s; }
.blx-cf-preset:hover { border-color: var(--cf-brand-bright); background: var(--cf-brand-soft); }
.blx-cf-preset__dot { width: 1.1rem; height: 1.1rem; border-radius: 999px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6), 0 1px 3px rgba(0, 0, 0, 0.2); }
.blx-cf-presets__or { margin: 1rem 0 0; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cf-muted); }

/* Actions */
.blx-cf-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1.75rem; }
@media (max-width: 560px) { .blx-cf-actions { flex-direction: column-reverse; align-items: stretch; } }
.blx-cf-back { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.5rem; border: 0; background: none; font-size: 0.875rem; font-weight: 500; color: var(--cf-muted) !important; transition: color 0.2s; }
.blx-cf-back:hover { color: var(--cf-navy) !important; }
.blx-cf-next { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; height: 3rem; padding: 0 1.5rem; border: 0; border-radius: 0.75rem; background: var(--cf-brand); color: #fff !important; font-family: var(--cf-heading); font-size: 0.95rem; font-weight: 700; transition: filter 0.2s, transform 0.1s, opacity 0.2s; }
.blx-cf-next:hover { filter: brightness(0.95); }
.blx-cf-next:active { transform: scale(0.98); }
.blx-cf-next[aria-disabled="true"] { background: var(--cf-border); color: var(--cf-muted) !important; cursor: not-allowed; filter: none; transform: none; }
.blx-cf-next:disabled { opacity: 0.7; cursor: progress; }

/* Added panel */
.blx-cf-added { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; padding: 1.25rem; border-radius: 1rem; background: hsla(20, 85%, 42%, 0.05); }
.blx-cf-added__icon { display: grid; place-items: center; width: 3rem; height: 3rem; flex: 0 0 auto; border-radius: 999px; background: var(--cf-brand); color: #fff; }
.blx-cf-added__icon .blx-cf-i { width: 1.5rem; height: 1.5rem; stroke-width: 3; }
.blx-cf-added h3 { margin: 0; font-family: var(--cf-heading); font-size: 1.25rem; font-weight: 700; }
.blx-cf-added__title { margin: 0.25rem 0 0; font-weight: 600; }
.blx-cf-added__sub { margin: 0.15rem 0 0; font-size: 0.875rem; color: var(--cf-muted); }
.blx-cf-action { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; text-align: left; border: 2px solid var(--cf-border); border-radius: 1rem; background: var(--cf-card); transition: border-color 0.2s; }
.blx-cf-action:hover { border-color: var(--cf-brand-bright); }
.blx-cf-action > .blx-cf-i { width: 1.25rem; height: 1.25rem; color: var(--cf-brand); }
.blx-cf-action b { display: block; font-family: var(--cf-heading); }
.blx-cf-action span span { font-size: 0.875rem; color: var(--cf-muted); }
.blx-cf-action--inline { display: inline-flex; margin-top: 1.75rem; padding: 0.625rem 1.25rem; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 600; }
.blx-cf-action--inline > .blx-cf-i { width: 1rem; height: 1rem; color: inherit; }

/* Quote button: radial brand gradient that "breathes" on hover */
@property --blx-cf-gx { syntax: '<percentage>'; inherits: false; initial-value: 61%; }
@property --blx-cf-gy { syntax: '<percentage>'; inherits: false; initial-value: 59%; }
.blx-cf-checkout { --blx-cf-gx: 61%; --blx-cf-gy: 59%; display: flex; width: 100%; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 1rem; padding: 1rem; border: 0; border-radius: 0.75rem; color: #fff !important; font-family: var(--cf-heading); font-size: 1rem; font-weight: 700; background: radial-gradient(var(--blx-cf-gx) var(--blx-cf-gy) at 50% 50%, var(--cf-brand) 0%, var(--cf-brand) 40%, hsl(22, 88%, 48%) 75%, var(--cf-brand-bright) 100%); transition: --blx-cf-gx 0.4s ease, --blx-cf-gy 0.4s ease, filter 0.15s ease; }
.blx-cf-checkout:not(:disabled):hover { animation: blx-cf-breathe 1.2s ease-in-out infinite; }
.blx-cf-checkout:not(:disabled):active { filter: saturate(1.4); }
.blx-cf-checkout:disabled { background: var(--cf-border); color: var(--cf-muted) !important; cursor: not-allowed; }
@keyframes blx-cf-breathe { 0%, 100% { --blx-cf-gx: 61%; --blx-cf-gy: 59%; } 50% { --blx-cf-gx: 100%; --blx-cf-gy: 100%; } }
/* Side: list card + summary */
.blx-cf-listcard { padding: 1.5rem; border: 1px solid var(--cf-border); border-radius: 1.5rem; background: var(--cf-card); }
.blx-cf-listcard__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.blx-cf-listcard__count { margin: 0.15rem 0 0; font-family: var(--cf-heading); font-size: 1.125rem; font-weight: 700; }
.blx-cf-listcard__hint { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--cf-muted); }
.blx-cf-viewbtn { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 0.5rem; padding: 0.625rem 1rem; border: 2px solid var(--cf-border); border-radius: 0.75rem; background: var(--cf-card); font-size: 0.875rem; font-weight: 600; transition: border-color 0.2s; }
.blx-cf-viewbtn:hover { border-color: var(--cf-brand-bright); }
.blx-cf-viewbtn__badge { position: absolute; top: -0.5rem; right: -0.5rem; display: grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 0.25rem; border-radius: 999px; background: var(--cf-brand); color: #fff; font-family: var(--cf-mono); font-size: 0.7rem; }
.blx-cf-summary { padding: 2rem; border-radius: 1.5rem; background: var(--cf-navy); color: #fff; }
@media (max-width: 640px) { .blx-cf-summary { padding: 1.5rem; } }
.blx-cf-preview { display: flex; aspect-ratio: 1; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 1.5rem; padding: 0.75rem; border-radius: 1rem; background: #fff; }
.blx-cf-preview img { width: 132%; max-width: none; height: auto; transform: rotate(45deg); transition: filter 0.5s; }
.blx-cf-preview img.is-black { filter: grayscale(1) contrast(2.4); }
.blx-cf-summary ul { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.blx-cf-summary li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.875rem; }
.blx-cf-summary li span { flex: 0 0 auto; color: rgba(255, 255, 255, 0.65); }
.blx-cf-summary li b { font-family: var(--cf-heading); text-align: right; }

/* Links (quote list) */
.blx-configurator a.blx-cf-checkout, .blx-configurator a.blx-cf-viewbtn { text-decoration: none; }
.blx-configurator a.blx-cf-checkout { color: #fff; }
.blx-configurator a.blx-cf-viewbtn { color: var(--cf-navy); }

/* Accessories: photo + total quantity per accessory */
.blx-cf-accs { align-items: start; }
.blx-cf-acc { display: flex; flex-direction: column; border-radius: 0.85rem; }
.blx-cf-opt--acc { display: flex; flex-direction: row; align-items: center; gap: 0.875rem; height: 100%; }
.blx-cf-opt--acc.has-img { padding: 0.625rem 2.5rem 0.625rem 0.625rem; }
.blx-cf-acc__img { display: grid; place-items: center; width: 4rem; height: 4rem; flex: 0 0 auto; overflow: hidden; border-radius: 0.6rem; background: var(--cf-secondary); }
.blx-cf-acc__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.blx-cf-acc__name { color: var(--cf-navy); font-weight: 600; }
.blx-cf-acc.is-selected .blx-cf-opt--acc { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.blx-cf-acc__qty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.625rem 0.75rem; border: 2px solid var(--cf-brand); border-top: 0; border-radius: 0 0 0.85rem 0.85rem; background: var(--cf-brand-soft); }
.blx-cf-acc__qtylabel { font-size: 0.8rem; font-weight: 600; color: var(--cf-muted); }
.blx-cf-acc__qty .blx-cf-qtybtn { width: 2.25rem; height: 2.25rem; }
.blx-cf-acc__qty input { width: 4.5rem; height: 2.25rem; border: 2px solid var(--cf-border); border-radius: 0.5rem; background: var(--cf-card); text-align: center; font-family: var(--cf-mono); font-size: 1rem; color: var(--cf-navy); outline: none; -moz-appearance: textfield; }
.blx-cf-acc__qty input::-webkit-outer-spin-button, .blx-cf-acc__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.blx-cf-acc__qty input:focus { border-color: var(--cf-brand); }

@media (prefers-reduced-motion: reduce) {
	.blx-configurator * { animation: none !important; transition: none !important; }
}
