/* Hatu Camp – Konfigurator instalacji wodnej. Kolory dziedziczone z motywu; zmienne do łatwej zmiany. */
.hatu-konf {
	--hk-akcent: #1f6f5c;
	--hk-tlo: #f6f7f5;
	--hk-ramka: #d9ddd6;
	--hk-promien: 8px;
	margin: 1.5em 0;
}
.hatu-konf__kroki { display: flex; flex-wrap: wrap; gap: .35em; list-style: none; margin: 0 0 1.25em; padding: 0; }
.hatu-konf__kroki button {
	background: var(--hk-tlo); border: 1px solid var(--hk-ramka); border-radius: 999px;
	padding: .35em .8em; font-size: .85em; cursor: pointer; color: inherit;
}
.hatu-konf__kroki button:disabled { opacity: .5; cursor: default; }
.hatu-konf__kroki .is-aktywny button { background: var(--hk-akcent); border-color: var(--hk-akcent); color: #fff; }
.hatu-konf__kroki .is-zrobiony button { border-color: var(--hk-akcent); }

.hatu-konf__uklad { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1.5em; align-items: start; }
@media (max-width: 860px) { .hatu-konf__uklad { grid-template-columns: 1fr; } }

.hatu-konf__grupa { border: 0; margin: 0 0 1.5em; padding: 0; }
.hatu-konf__grupa legend { font-weight: 700; margin-bottom: .5em; }
.hatu-konf__grupa legend small { font-weight: 400; opacity: .7; }
.hatu-konf__wym { color: #b3261e; }

.hatu-konf__opcja {
	display: grid; grid-template-columns: auto 64px 1fr auto; gap: .75em; align-items: center;
	border: 1px solid var(--hk-ramka); border-radius: var(--hk-promien); padding: .6em .8em; margin-bottom: .5em;
	cursor: pointer; background: #fff;
}
.hatu-konf__opcja.is-wybrana { border-color: var(--hk-akcent); box-shadow: 0 0 0 1px var(--hk-akcent); }
.hatu-konf__opcja--brak, .hatu-konf__opcja--pojazd { grid-template-columns: auto 1fr; }
.hatu-konf__opcja--warianty { display: block; cursor: default; }
.hatu-konf__wiersz { display: grid; grid-template-columns: auto 64px 1fr auto; gap: .75em; align-items: center; cursor: pointer; }
.hatu-konf__atrybuty { display: flex; flex-wrap: wrap; gap: .5em 1em; margin: .6em 0 0 calc(64px + 2.25em); }
.hatu-konf__atrybut { display: flex; align-items: center; gap: .4em; font-size: .9em; }
.hatu-konf__atrybut select { min-width: 140px; }
.hatu-konf__opcja img, .hatu-konf__bez-zdjecia { width: 64px; height: 64px; object-fit: contain; border-radius: 4px; background: var(--hk-tlo); }
.hatu-konf__opis { display: flex; flex-direction: column; gap: .2em; }
.hatu-konf__opis small { opacity: .75; line-height: 1.35; }
.hatu-konf__opis a { font-size: .85em; }
.hatu-konf__cena { text-align: right; white-space: nowrap; font-weight: 700; }
.hatu-konf__cena small { display: block; font-weight: 400; opacity: .7; }
@media (max-width: 560px) {
	.hatu-konf__opcja, .hatu-konf__wiersz { grid-template-columns: auto 48px 1fr; }
	.hatu-konf__opcja--warianty { display: block; }
	.hatu-konf__atrybuty { margin-left: 0; }
	.hatu-konf__opcja img, .hatu-konf__bez-zdjecia { width: 48px; height: 48px; }
	.hatu-konf__cena { grid-column: 3; text-align: left; }
}

.hatu-konf__nawigacja { display: flex; justify-content: space-between; margin-top: 1em; }
.hatu-konf__bledy:not(:empty), .hatu-konf__komunikat:not(:empty) {
	padding: .6em .8em; border-radius: var(--hk-promien); background: var(--hk-tlo); margin: .75em 0;
}
.hatu-konf__bledy:not(:empty), .hatu-konf__komunikat.is-blad { background: #fdecea; color: #8a1c14; }

.hatu-konf__suma {
	position: sticky; top: 1em; background: var(--hk-tlo); border: 1px solid var(--hk-ramka);
	border-radius: var(--hk-promien); padding: 1em;
}
.hatu-konf__suma h4 { margin-top: 0; }
.hatu-konf__suma p { margin: .3em 0; }
.hatu-konf__razem { font-size: 1.15em; border-top: 1px solid var(--hk-ramka); padding-top: .4em; }

.hatu-konf__tabela { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95em; }
.hatu-konf__tabela th, .hatu-konf__tabela td { border-bottom: 1px solid var(--hk-ramka); padding: .45em .4em; text-align: left; }
.hatu-konf__tabela td:nth-child(n+2), .hatu-konf__tabela th:nth-child(n+2) { text-align: right; white-space: nowrap; }
.hatu-konf__tabela em { display: block; font-size: .8em; opacity: .65; }
.hatu-konf__akcje { display: flex; flex-wrap: wrap; gap: .5em; margin: 1em 0; }
.hatu-konf__zapytanie, .hatu-konf__zapisane { margin: 1em 0; }
.hatu-konf__zapytanie input[type=email], .hatu-konf__zapytanie textarea { width: 100%; max-width: 480px; }
.hatu-konf__pulapka { position: absolute; left: -9999px; }

/* Schemat instalacji */
.hatu-konf__schemat { margin: 0 0 1.5em; padding: 1em; background: #fff; border: 1px solid var(--hk-ramka); border-radius: var(--hk-promien); }
.hatu-konf__schemat svg { width: 100%; height: auto; display: block; font-family: inherit; }
.hatu-konf__schemat figcaption { font-size: .85em; opacity: .7; margin-top: .5em; }
.hk-w rect:first-of-type { fill: #f4f4f2; stroke: #c9ccc6; stroke-width: 1.5; }
.hk-w text { fill: #9a9d97; }
.hk-w.is-on rect:first-of-type { fill: #e7f2ee; stroke: var(--hk-akcent); }
.hk-w.is-on text { fill: #1d2b26; }
.hk-w[data-krok] { cursor: pointer; }
.hk-w[data-krok]:hover rect:first-of-type, .hk-w[data-krok]:focus rect:first-of-type { stroke-width: 3; outline: none; }
.hk-t { font-size: 13px; font-weight: 700; }
.hk-n { font-size: 11.5px; }
.hk-l { fill: none; stroke: #d5d7d2; stroke-width: 3; stroke-dasharray: 6 5; stroke-linejoin: round; }
.hk-l.is-on { stroke-dasharray: none; }
.hk-l--zimna.is-on { stroke: #2b6cb0; }
.hk-l--ciepla.is-on { stroke: #c53030; }
.hk-l--szara.is-on { stroke: #6b6b6b; }
.hk-leg text { font-size: 12px; fill: #555; }

/* Lista w panelu „Twój zestaw” */
.hatu-konf__lista-sumy { list-style: none; margin: 0 0 1em; padding: 0; max-height: 50vh; overflow-y: auto; }
.hatu-konf__lista-sumy li { display: grid; grid-template-columns: 44px 1fr auto; gap: .5em; align-items: center; padding: .35em 0; border-bottom: 1px solid var(--hk-ramka); font-size: .85em; line-height: 1.25; }
.hatu-konf__lista-sumy li[data-krok] { cursor: pointer; }
.hatu-konf__lista-sumy li[data-krok]:hover span { text-decoration: underline; }
.hatu-konf__lista-sumy img, .hatu-konf__lista-sumy .hatu-konf__bez-zdjecia { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 4px; border: 1px solid var(--hk-ramka); }
.hatu-konf__lista-sumy b { white-space: nowrap; font-weight: 600; }
.hatu-konf__ikona-auto { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 4px; background: #f0f0ee; font-weight: 700; }
.hatu-konf__lista-auto { opacity: .8; }
.hatu-konf__pusto { font-size: .85em; opacity: .7; }
.hatu-konf__schemat.is-pionowy { padding: .5em; }
.hatu-konf__schemat.is-pionowy .hk-t { font-size: 14px; }
.hatu-konf__schemat.is-pionowy .hk-n { font-size: 12px; }

/* Schemat na każdym etapie */
.hatu-konf__schemat { margin: 0 0 1.25em; }
.hk-foto-tlo { fill: #fff; stroke: #d5d7d2; stroke-width: 1; }
.hk-licznik { fill: var(--hk-akcent); }
.hk-licznik-t { fill: #fff !important; font-size: 10px; font-weight: 700; text-anchor: middle; }
.hk-w.is-teraz rect:first-of-type { stroke: var(--hk-akcent); stroke-width: 3; stroke-dasharray: 7 4; animation: hk-teraz 1.2s linear infinite; }
.hk-w.is-teraz:not(.is-on) rect:first-of-type { fill: #fffbea; }
.hk-w.is-teraz:not(.is-on) text { fill: #5a4a00; }
.hk-teraz { fill: var(--hk-akcent); stroke: none !important; animation: none !important; }
.hk-teraz-t { fill: #fff !important; font-size: 10.5px; font-weight: 700; text-anchor: middle; }
@keyframes hk-teraz { to { stroke-dashoffset: -22; } }
@media (prefers-reduced-motion: reduce) { .hk-w.is-teraz rect:first-of-type { animation: none; } }
.hatu-konf__schemat-zwin { margin: 0 0 1em; }
.hatu-konf__schemat-zwin > summary { cursor: pointer; font-weight: 600; padding: .5em 0; }
