/* HX Configurator. Uses the theme's design tokens (--hx-*), with plain fallbacks for any other theme. */
.hxc {
	--c-surface: var(--hx-surface, #fff); --c-surface-2: var(--hx-surface-2, #f7f6f3); --c-text: var(--hx-text, #17150f); --c-text-2: var(--hx-text-2, #3c3a34);
	--c-muted: var(--hx-muted, #5c5950); --c-line: var(--hx-line, rgba(0, 0, 0, .1)); --c-line-2: var(--hx-line-strong, rgba(0, 0, 0, .22));
	--c-accent: var(--hx-accent, #7d6230); --c-accent-text: var(--hx-accent-text, var(--c-accent)); --c-ok: var(--hx-ok, #1b6e3f); --c-radius: var(--hx-radius-sm, 14px);
	color: var(--c-text-2); font-size: 16px; line-height: 1.55;
}
.hxc__lead { max-width: 760px; margin: 0 0 28px; font-size: 17px; color: var(--c-text-2); }
.hxc__app { min-height: 360px; }
.hxc { scroll-margin-top: calc(var(--hx-header-h, 80px) + 90px); }
.hxc h2, .hxc h3 { margin: 0; color: var(--c-text); }
.hxc .hxc-step__q { margin: 0; }
.hxc button { font-family: inherit; }
.hxc :focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

.hxc-step__n { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--c-muted); }
.hxc-bar { flex: 0 1 180px; height: 3px; border-radius: 3px; background: var(--c-line); overflow: hidden; }
.hxc-bar i { display: block; height: 100%; background: var(--c-accent); transition: width .3s; }
.hxc-step__q { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.2; font-weight: 700; outline: none; }
.hxc-step__q2 { margin-top: 30px !important; font-size: 20px; font-weight: 700; }
.hxc-step__hint { margin: 8px 0 0; color: var(--c-muted); }

.hxc-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.hxc-opts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hxc-opt {
	display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 148px; padding: 18px; text-align: left; cursor: pointer;
	border: 1px solid var(--c-line-2); border-radius: var(--c-radius); background: var(--c-surface); color: var(--c-text-2);
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.hxc-opt:hover { border-color: var(--c-text); transform: translateY(-1px); }
.hxc-opt.is-on { border-color: var(--c-accent); box-shadow: inset 0 0 0 1px var(--c-accent); }
.hxc-ic { margin-bottom: 8px; color: var(--c-accent-text); }
.hxc-opt__t { font-size: 17px; font-weight: 600; line-height: 1.25; color: var(--c-text); }
.hxc-opt__d { font-size: 14px; line-height: 1.4; color: var(--c-muted); }
.hxc-opt__from { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--c-muted); }

.hxc-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hxc-chip { min-height: 46px; padding: 0 20px; border: 1px solid var(--c-line-2); border-radius: 999px; background: var(--c-surface); color: var(--c-text); font-size: 16px; font-weight: 600; cursor: pointer; }
.hxc-chip:hover { border-color: var(--c-text); }
.hxc-chip.is-on { border-color: var(--c-accent); box-shadow: inset 0 0 0 1px var(--c-accent); }
.hxc-budget-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; color: var(--c-muted); }
.hxc input.hxc-budget { flex: none; width: 150px; max-width: 150px; min-height: 46px; padding: 0 14px; border: 1px solid var(--c-line-2); border-radius: 10px; background: var(--c-surface); color: var(--c-text); font: inherit; font-size: 16px; }

.hxc-nav { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.hxc-back { padding: 6px 0; border: 0; background: none; color: var(--c-text-2); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hxc-back:hover { color: var(--c-text); }
.hxc-next { margin-left: auto; }
.hxc-nav .hxc-back:only-child { margin-right: auto; }

.hxc-wait { display: flex; align-items: center; gap: 14px; padding: 60px 0; font-size: 17px; color: var(--c-muted); }
.hxc-spin { width: 22px; height: 22px; border: 2px solid var(--c-line-2); border-top-color: var(--c-accent); border-radius: 50%; animation: hxc-spin .8s linear infinite; }
@keyframes hxc-spin { to { transform: rotate(360deg); } }
.hxc-note { margin: 18px 0 0; padding: 14px 18px; border: 1px solid var(--c-line-2); border-radius: var(--c-radius); background: var(--c-surface); }

.hxc-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.hxc-sum span { padding: 4px 12px; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-surface); font-size: 14px; color: var(--c-text-2); }
.hxc-sum .hxc-back { margin-left: 6px; font-size: 14px; }

.hxc-grid { display: grid; gap: 20px; margin-top: 26px; align-items: start; }
.hxc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hxc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hxc-grid--1 { grid-template-columns: minmax(0, 640px); }
.hxc-sys { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--c-line-2); border-radius: var(--hx-radius, 20px); background: var(--c-surface); transition: opacity .15s; }
.hxc-sys--best, .hxc-sys--near { border-color: var(--c-accent); box-shadow: inset 0 0 0 1px var(--c-accent); }
.hxc-sys.is-busy { opacity: .5; pointer-events: none; }
.hxc-sys__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-bottom: 14px; border-bottom: 1px solid var(--c-line); }
.hxc-sys__tag { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-accent-text); }
.hxc-sys__layout { font-size: 13px; color: var(--c-muted); }
.hxc-sys__total { flex-basis: 100%; font-size: 28px; line-height: 1.15; font-weight: 700; color: var(--c-text); font-variant-numeric: tabular-nums; }
.hxc .hxc-sys__items { margin: 0; padding: 0; list-style: none; }
.hxc .hxc-sys__items > li { margin: 0; }
.hxc-it { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.hxc-it__img { display: block; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: #fff; }
.hxc-it__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hxc-it__body { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.hxc-it__label { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--c-muted); }
.hxc a.hxc-it__name { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--c-text); text-decoration: none; overflow-wrap: anywhere; }
.hxc a.hxc-it__name:hover { color: var(--c-text); text-decoration: underline; }
.hxc-it__why { font-size: 13px; line-height: 1.4; color: var(--c-muted); }
.hxc-it__why.is-award { color: var(--c-accent-text); }
.hxc-it__why.is-award::before { content: "★ "; }
.hxc-it__why a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.hxc-it__meta { margin-top: 2px; font-size: 14px; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.hxc-it__meta b { color: var(--c-text); font-weight: 600; }
.hxc-it__meta .is-in { color: var(--c-ok); }
.hxc-it__swap { margin-top: 4px; padding: 0; border: 0; background: none; color: var(--c-text-2); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hxc-it__alts { grid-column: 1 / -1; display: grid; gap: 6px; margin-top: 6px; }
.hxc-it__alts[hidden] { display: none; }
.hxc-alt { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--c-line-2); border-radius: 10px; background: var(--c-surface-2); color: var(--c-text); font-size: 14px; line-height: 1.35; text-align: left; cursor: pointer; }
.hxc-alt:hover { border-color: var(--c-text); }
.hxc-alt span:last-child { flex: none; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hxc-alt small { display: block; color: var(--c-muted); }
.hxc-alt em { font-style: normal; font-size: 12px; color: var(--c-accent-text); }
.hxc-optrow { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--c-line); font-size: 14px; line-height: 1.45; cursor: pointer; }
.hxc-optrow input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--c-accent); }
.hxc .hxc-optrow a { color: var(--c-text); }
.hxc-sys__why { padding: 14px 0 4px; }
.hxc .hxc-sys__why h3, .hxc .hxc-tips h3 { margin: 0; font-size: 15px; line-height: 1.3; font-weight: 700; }
.hxc .hxc-sys__why ul, .hxc .hxc-tips ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.5; list-style: disc; }
.hxc-sys__why li, .hxc-tips li { margin: 0 0 6px; }
.hxc-sys__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 14px; }
.hxc-sys__foot .hx-btn { flex: 1 1 200px; white-space: normal; text-align: center; line-height: 1.2; }
.hxc-tips { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--c-line); border-radius: var(--c-radius); background: var(--c-surface); }
.hxc-fine { margin: 14px 0 0; flex-basis: 100%; font-size: 13px; color: var(--c-muted); }

/* Without the theme's buttons. */
.hxc .hx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
.hxc .hx-btn--primary { background: var(--c-text); color: var(--hx-on-text, #fff); }
.hxc .hx-btn--ghost { background: transparent; color: var(--c-text); border-color: var(--c-line-2); }
.hxc .hx-btn[disabled] { opacity: .6; cursor: default; }

@media (max-width: 1000px) {
	.hxc-grid--3 { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
	.hxc-opts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.hxc-grid--2 { grid-template-columns: minmax(0, 1fr); }
	.hxc-opts, .hxc-opts--4 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.hxc-opt { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; min-height: 0; padding: 14px 16px; }
	.hxc-opt .hxc-ic { margin: 0; }
	.hxc-opt__t { flex: 1 1 60%; }
	.hxc-opt__d, .hxc-opt__from { flex-basis: 100%; padding-top: 0; margin-top: 0; }
	.hxc__lead { font-size: 16px; margin-bottom: 20px; }
	.hxc-sys { padding: 16px; }
	.hxc-sys__total { font-size: 24px; }
	.hxc-chip { flex: 1 1 40%; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .hxc-opt, .hxc-bar i { transition: none; } .hxc-spin { animation-duration: 2s; } }
