/* EMV Wycena Stolarki — style formularza (prefiks .emv-, mobile-first).
   Twarde resety z !important tam, gdzie motyw/Elementor nadpisuje pola i przyciski. */

.emv-wycena {
	/* Kolory EMV: żółty #FEED02 + grafit #222 + biel. */
	--emv-yellow: #feed02;
	--emv-accent: #222222;
	--emv-accent-light: #fffbd6;
	--emv-border: #d5d5d5;
	--emv-text: #222222;
	--emv-muted: #6b6b6b;
	--emv-error: #d63638;
	--emv-radius: 10px;
	max-width: 880px;
	margin: 0 auto;
	color: var(--emv-text);
}

.emv-wycena *,
.emv-wycena *::before,
.emv-wycena *::after {
	box-sizing: border-box;
}

.emv-wycena [hidden] {
	display: none !important;
}

/* ---------- Pasek postępu ---------- */

.emv-progress {
	display: flex;
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	counter-reset: none;
}

.emv-progress-step {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	position: relative;
	text-align: center;
}

.emv-progress-step::before {
	content: "";
	position: absolute;
	top: 17px;
	left: -50%;
	width: 100%;
	height: 3px;
	background: var(--emv-border);
	z-index: 0;
}

.emv-progress-step:first-child::before {
	display: none;
}

.emv-progress-step.is-active::before,
.emv-progress-step.is-done::before {
	background: #d5d5d5;
}

.emv-progress-dot {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--emv-border);
	color: var(--emv-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	position: relative;
	z-index: 1;
	transition: all 0.2s ease;
}

.emv-progress-step.is-active .emv-progress-dot {
	border-color: #333;
	background: #fff;
	color: #333;
}

/* Kroki ukończone (także pominięte w trybie prostym) — wypełniona kropka z ptaszkiem. */

.emv-progress-step.is-done .emv-progress-dot {
	border-color: #d5d5d5;
	background: #d5d5d5;
	color: #333;
}

.emv-progress-step.is-done .emv-progress-dot > span {
	display: none;
}

.emv-progress-step.is-done .emv-progress-dot::after {
	content: "\2713";
	font-size: 16px;
	line-height: 1;
}

.emv-progress-label {
	font-size: 12px;
	color: var(--emv-muted);
	line-height: 1.2;
}

.emv-progress-step.is-active .emv-progress-label {
	color: var(--emv-accent);
	font-weight: 700;
}

.emv-progress-step.is-done .emv-progress-label {
	color: var(--emv-accent);
}

@media (max-width: 560px) {
	.emv-progress-label {
		display: none;
	}

	.emv-progress-step.is-active .emv-progress-label {
		display: block;
	}
}

/* Tekstowy powrót pod paskiem kroków — twarde resety, bo motyw stylizuje linki/przyciski. */

.emv-wycena .emv-back-link {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: -14px 0 16px;
	color: var(--emv-muted) !important;
	font-size: 13.5px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	text-transform: none !important;
	text-decoration: underline !important;
	min-height: 0 !important;
	height: auto !important;
	width: auto !important;
	display: inline-block;
	cursor: pointer;
}

.emv-wycena .emv-back-link:hover {
	color: var(--emv-accent) !important;
	background: none !important;
}

/* ---------- Kroki i pola ---------- */

.emv-step {
	border: 0;
	padding: 0;
	margin: 0;
	min-width: 0;
}

.emv-legend {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 14px;
	padding: 0;
	color: var(--emv-accent);
}

.emv-hint {
	color: var(--emv-muted);
	font-size: 13px;
	margin: 4px 0 14px;
}

.emv-field {
	margin-bottom: 16px;
	min-width: 0;
}

.emv-field > label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 14px;
}

.emv-field label em {
	color: var(--emv-error);
	font-style: normal;
}

/* Jednolite pola — !important wygrywa z globalnym stylowaniem motywu/Elementora
   (spójne zaokrąglenia i obramowania we wszystkich krokach). */

.emv-wycena .emv-field input[type="text"],
.emv-wycena .emv-field input[type="tel"],
.emv-wycena .emv-field input[type="email"],
.emv-wycena .emv-field input[type="number"],
.emv-wycena .emv-field select,
.emv-wycena .emv-field textarea {
	width: 100%;
	padding: 10px 12px !important;
	border: 1px solid var(--emv-border) !important;
	border-radius: 8px !important;
	font-size: 15px !important;
	background: #fff !important;
	color: var(--emv-text) !important;
	line-height: 1.4 !important;
	box-shadow: none !important;
	min-height: 0 !important;
	height: auto;
}

.emv-wycena .emv-field input:focus,
.emv-wycena .emv-field select:focus,
.emv-wycena .emv-field textarea:focus {
	outline: 2px solid var(--emv-accent);
	outline-offset: 1px;
	border-color: var(--emv-accent) !important;
}

.emv-field-narrow {
	max-width: 420px;
}

.emv-grid {
	display: grid;
	gap: 0 16px;
}

@media (min-width: 700px) {
	.emv-grid {
		grid-template-columns: 1fr 1fr;
	}

	.emv-grid-3 {
		grid-template-columns: 170px 1fr 1fr;
	}
}

/* ---------- Pigułki (radio / checkbox) ---------- */

.emv-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.emv-pill {
	cursor: pointer;
	margin: 0;
}

.emv-pill input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.emv-pill span {
	display: inline-block;
	padding: 8px 15px;
	border: 1.5px solid var(--emv-border);
	border-radius: 999px;
	font-size: 14px;
	background: #fff;
	transition: all 0.15s ease;
}

.emv-pill input:checked + span {
	background: #333;
	border-color: #333;
	color: #fff;
	font-weight: 600;
}

.emv-pill input:focus-visible + span {
	outline: 2px solid var(--emv-accent);
	outline-offset: 2px;
}

/* Chipy szybkiego wyboru (krok „Inne produkty”). */

.emv-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 10px;
}

.emv-chip span {
	padding: 6px 12px;
	font-size: 13px;
}

/* ---------- Kafle SVG (kategorie, podział okna, schematy drzwi) ---------- */

.emv-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 10px;
}

.emv-kat-tiles {
	grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
}

.emv-tile {
	cursor: pointer;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 12px 6px 10px;
	border: 1.5px solid var(--emv-border);
	border-radius: var(--emv-radius);
	background: #fff;
	text-align: center;
	transition: all 0.15s ease;
	position: relative;
}

.emv-tile:hover {
	border-color: var(--emv-accent);
}

/* Sekcja „Czego dotyczy zapytanie” - białe tło kafli (rozmiar etykiet: .emv-tile-label, wspólny dla kroku 1 i 2). */
.emv-kat-tiles .emv-tile {
	background: #fff;
}

.emv-tile input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.emv-tile-ico {
	width: 46px;
	height: 46px;
	color: #feed02;
}

.emv-wycena .emv-tile-ico svg {
	width: 100%;
	height: 100%;
	display: block;
	/* Motyw wypełnia kształty SVG kolorem (fill) - kontury robiły się grubymi plackami. */
	fill: none !important;
	stroke: currentColor;
}

/* Wyjątek: elementy celowo wypełnione (napisy ALU / "?", kropka klamki) zostają. */

.emv-wycena .emv-tile-ico svg *:not([fill="currentColor"]) {
	fill: none !important;
}

.emv-wycena .emv-tile-ico svg [fill="currentColor"] {
	fill: currentColor !important;
	stroke: none !important;
}

/* Własne ikony (WebP/SVG z podstrony „Ikony” w adminie). */

.emv-tile-ico img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.emv-tile-label {
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--emv-text);
}

.emv-tile:has(input:checked) {
	border-color: #333;
	background: #333;
	box-shadow: 0 0 0 1.5px #333;
}

.emv-tile:has(input:checked) .emv-tile-ico,
.emv-tile:has(input:checked) .emv-tile-label {
	color: #fff;
}

.emv-tile:has(input:focus-visible) {
	outline: 2px solid var(--emv-accent);
	outline-offset: 2px;
}

/* Fallback bez :has() — klasa nadawana przez JS. */
.emv-tile.is-checked {
	border-color: #333;
	background: #333;
	box-shadow: 0 0 0 1.5px #333;
}

.emv-tile.is-checked .emv-tile-ico,
.emv-tile.is-checked .emv-tile-label {
	color: #fff;
}

/* Ptaszek w rogu zaznaczonego kafla kategorii (multi-choice). */

.emv-kat-tiles .emv-tile::after {
	content: "\2713";
	position: absolute;
	top: 6px;
	right: 6px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--emv-yellow);
	color: #333;
	font-size: 12px;
	line-height: 18px;
	text-align: center;
	opacity: 0;
	transform: scale(0.5);
	transition: all 0.15s ease;
}

.emv-kat-tiles .emv-tile:has(input:checked)::after,
.emv-kat-tiles .emv-tile.is-checked::after {
	opacity: 1;
	transform: scale(1);
}

/* ---------- Checkboxy ---------- */

.emv-checks {
	display: grid;
	gap: 8px;
}

@media (min-width: 700px) {
	.emv-checks {
		grid-template-columns: 1fr 1fr;
	}
}

/* Twarde resety — motyw/Elementor potrafi nadpisać display/marginesy labeli,
   przez co checkbox „klei się” do tekstu. */

.emv-wycena .emv-check {
	display: flex !important;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	cursor: pointer;
	margin: 0 !important;
	padding: 0 !important;
}

.emv-wycena .emv-check input {
	width: 18px !important;
	height: 18px !important;
	margin: 2px 0 0 !important;
	padding: 0 !important;
	flex: none;
	accent-color: var(--emv-accent);
}

.emv-check-solo {
	font-weight: 600;
}

.emv-rodo span {
	font-size: 13px;
	color: var(--emv-muted);
	font-weight: 400;
	line-height: 1.5;
}

.emv-rodo a {
	color: var(--emv-accent);
	text-decoration: underline;
}

/* ---------- Dymki pomocy „?” ---------- */

.emv-tip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 17px;
	height: 17px;
	flex: none;
	border: 1.5px solid var(--emv-muted);
	border-radius: 50%;
	color: var(--emv-muted);
	font-size: 11px;
	font-weight: 700;
	font-style: normal;
	line-height: 1;
	margin-left: 6px;
	vertical-align: text-bottom;
	cursor: help;
	position: relative;
	user-select: none;
	-webkit-user-select: none;
}

.emv-tip:hover,
.emv-tip:focus,
.emv-tip.is-open {
	border-color: #333;
	color: #fff;
	background: #333;
	outline: none;
}

.emv-tip::after {
	content: attr(data-emv-tip);
	position: absolute;
	bottom: calc(100% + 9px);
	left: 50%;
	transform: translateX(-50%);
	width: min(270px, 76vw);
	background: var(--emv-accent);
	color: #fff;
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	white-space: normal;
	padding: 10px 12px;
	border-radius: 8px;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.12s ease;
	z-index: 60;
}

.emv-tip::before {
	content: "";
	position: absolute;
	bottom: calc(100% + 3px);
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: var(--emv-accent);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.12s ease;
	z-index: 60;
}

.emv-tip:hover::after,
.emv-tip:hover::before,
.emv-tip:focus::after,
.emv-tip:focus::before,
.emv-tip.is-open::after,
.emv-tip.is-open::before {
	opacity: 1;
	visibility: visible;
}

/* ---------- Pozycje ---------- */

.emv-pozycja {
	border: 1px solid var(--emv-border);
	border-radius: var(--emv-radius);
	padding: 16px;
	margin-bottom: 16px;
	background: #fafbfc;
}

.emv-pozycja-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.emv-pozycja-title {
	margin: 0;
	font-size: 16px;
	color: var(--emv-accent);
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

/* Stały numer pozycji „#N” po lewej stronie nazwy - zawsze widoczny, nieedytowalny. */
.emv-pozycja-nrbadge {
	flex: 0 0 auto;
	font-weight: 700;
	color: var(--emv-accent);
}

/* Nazwa pozycji - klikalna, żeby ją zmienić. */
.emv-pozycja-name {
	cursor: pointer;
	border-radius: 6px;
	padding: 1px 4px;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.emv-pozycja-name:hover {
	background: #f2f2f2;
	text-decoration: underline;
}

.emv-pozycja:not(.is-named) .emv-pozycja-custom {
	display: none;
}

.emv-pozycja.is-named .emv-pozycja-default {
	display: none;
}

.emv-wycena .emv-pozycja-rename {
	-webkit-appearance: none;
	appearance: none;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	color: #6d6d6d !important;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 0 !important;
	padding: 3px !important;
	border-radius: 6px !important;
	line-height: 0 !important;
}

.emv-wycena .emv-pozycja-rename:hover {
	background: #f2f2f2 !important;
	color: #333 !important;
}

.emv-pozycja-rename svg {
	fill: none !important;
}

.emv-wycena .emv-pozycja-name-input {
	font-size: 15px;
	font-weight: 600;
	color: var(--emv-accent);
	padding: 4px 8px;
	min-height: 0;
	max-width: 320px;
	width: 100%;
}

.emv-pozycja-name-hint {
	margin-top: -6px;
	margin-bottom: 14px;
}

.emv-wycena .emv-remove-pozycja {
	-webkit-appearance: none;
	appearance: none;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--emv-error) !important;
	cursor: pointer;
	font-size: 13px !important;
	font-weight: 400 !important;
	min-height: 0 !important;
	padding: 4px 8px !important;
	border-radius: 6px !important;
	text-transform: none !important;
}

.emv-wycena .emv-remove-pozycja:hover {
	background: #fdeeee !important;
}

.emv-field-ilosc {
	max-width: 220px;
}

/* ---------- Przyciski ---------- */

.emv-nav {
	display: flex;
	gap: 10px;
	margin-top: 22px;
}

.emv-nav .emv-next,
.emv-nav .emv-submit {
	margin-left: auto;
}

/* Kompaktowe przyciski — resety z !important, bo Elementor/motyw narzuca
   własne paddingi, rozmiary i transformacje tekstu na <button>. */

.emv-wycena .emv-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-block;
	padding: 9px 18px !important;
	border-radius: 8px !important;
	border: 1.5px solid #d5d5d5 !important;
	background: #fff !important;
	color: #333 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	box-shadow: none !important;
	min-height: 0 !important;
	height: auto !important;
	width: auto;
	cursor: pointer;
	transition: all 0.15s ease;
}

.emv-wycena .emv-btn:hover {
	background: #333 !important;
	border-color: #333 !important;
	color: #fff !important;
}

.emv-wycena .emv-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

.emv-wycena .emv-btn-ghost {
	background: #fff !important;
	color: #333 !important;
}

.emv-wycena .emv-btn-ghost:hover {
	background: #333 !important;
	border-color: #333 !important;
	color: #fff !important;
}

.emv-wycena .emv-add-pozycja {
	width: 100% !important;
	/* Własne kreski (dłuższe niż natywny border: dashed, który zlewał się w solid) - kreska 12px, przerwa 8px. */
	border-color: transparent !important;
	background-image:
		repeating-linear-gradient(90deg, #d5d5d5 0 12px, transparent 12px 20px),
		repeating-linear-gradient(90deg, #d5d5d5 0 12px, transparent 12px 20px),
		repeating-linear-gradient(0deg, #d5d5d5 0 12px, transparent 12px 20px),
		repeating-linear-gradient(0deg, #d5d5d5 0 12px, transparent 12px 20px) !important;
	background-size: 100% 1.5px, 100% 1.5px, 1.5px 100%, 1.5px 100% !important;
	background-position: 0 0, 0 100%, 0 0, 100% 0 !important;
	background-repeat: no-repeat !important;
}

.emv-wycena .emv-add-pozycja:hover {
	/* Na hover przycisk robi się grafitowy (jak .emv-btn) - kreski maskujemy, żeby nie prześwitywały. */
	background-image: none !important;
	border-color: #333 !important;
}

/* ---------- Pasek akcji pozycji (dodaj / zakończ) ---------- */

.emv-pozycje-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.emv-wycena .emv-pozycje-actions .emv-add-pozycja {
	width: auto !important;
	flex: 1 1 240px;
}

.emv-wycena .emv-pozycje-actions .emv-finish-pozycje {
	flex: 1 1 240px;
}

/* ---------- Pozycja zwinięta do wąskiego paska ---------- */

.emv-pozycja.is-collapsed {
	background: #fff;
	border-left: 4px solid var(--emv-yellow);
}

.emv-pozycja.is-collapsed:not(.is-expanded) {
	padding: 12px 16px;
}

/* Zwinięta i nierozwinięta: chowamy wszystko poza paskiem. */
.emv-pozycja.is-collapsed:not(.is-expanded) > *:not(.emv-pozycja-bar) {
	display: none !important;
}

/* Nagłówek pozycji jest zbędny, gdy pasek podaje numer, podgląd i „usuń”. */
.emv-pozycja.is-collapsed .emv-pozycja-head {
	display: none !important;
}

.emv-pozycja-bar {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.emv-pozycja.is-collapsed > .emv-pozycja-bar {
	display: flex;
}

.emv-bar-title {
	font-weight: 600;
	color: var(--emv-accent);
	font-size: 14px;
	overflow-wrap: anywhere;
}

.emv-bar-actions {
	display: flex;
	gap: 4px;
	flex-shrink: 0;
}

.emv-wycena .emv-bar-toggle,
.emv-wycena .emv-bar-remove {
	-webkit-appearance: none;
	appearance: none;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	font-size: 13px !important;
	font-weight: 600 !important;
	min-height: 0 !important;
	height: auto !important;
	padding: 4px 8px !important;
	border-radius: 6px !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	white-space: nowrap;
}

.emv-wycena .emv-bar-toggle {
	color: var(--emv-accent) !important;
}

.emv-wycena .emv-bar-toggle:hover {
	background: var(--emv-accent-light) !important;
}

.emv-wycena .emv-bar-remove {
	color: var(--emv-error) !important;
	font-weight: 400 !important;
}

.emv-wycena .emv-bar-remove:hover {
	background: #fdeeee !important;
}

/* ---------- Załączniki (własny przycisk) ---------- */

.emv-file-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.emv-file-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border: 2px dashed var(--emv-accent);
	border-radius: 8px;
	background: #fff;
	color: var(--emv-accent);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
	position: relative;
	margin: 0;
}

.emv-file-btn:hover {
	background: var(--emv-accent-light);
}

.emv-file-btn:focus-within {
	outline: 2px solid var(--emv-accent);
	outline-offset: 2px;
}

.emv-file-btn.emv-is-invalid {
	border-color: var(--emv-error);
	color: var(--emv-error);
}

.emv-file-btn svg {
	width: 16px;
	height: 16px;
	flex: none;
	/* Motyw wypełnia ścieżki SVG (fill) - bez tego spinacz robi się grubym plackiem. */
	fill: none !important;
	stroke: currentColor;
	stroke-width: 1.6;
}

.emv-file-btn svg path {
	fill: none !important;
}

.emv-file-btn input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.emv-file-count {
	font-size: 13px;
	color: var(--emv-muted);
}

.emv-file-list {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	font-size: 13px;
}

.emv-file-list li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 12px;
	border: 1px solid var(--emv-border);
	border-radius: 8px;
	background: #fafbfc;
	margin-bottom: 6px;
}

.emv-file-name {
	overflow-wrap: anywhere;
}

.emv-file-size {
	flex: none;
	color: var(--emv-muted);
	font-size: 12px;
}

/* ---------- Komunikaty ---------- */

.emv-alert {
	background: #fdeeee;
	border: 1px solid var(--emv-error);
	color: #8a1f21;
	padding: 12px 14px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 14px;
}

.emv-wycena .emv-field .emv-is-invalid,
.emv-wycena .emv-is-invalid {
	border-color: var(--emv-error) !important;
	outline-color: var(--emv-error) !important;
}

.emv-field-error {
	color: var(--emv-error);
	font-size: 12.5px;
	margin: 4px 0 0;
}

/* ---------- Sukces ---------- */

.emv-success {
	text-align: center;
	padding: 48px 24px;
	border: 2px solid var(--emv-accent);
	background: #fff;
	border-radius: var(--emv-radius);
}

.emv-success-ico {
	width: 64px;
	height: 64px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: var(--emv-yellow);
	color: var(--emv-accent);
	border: 2px solid var(--emv-accent);
	font-size: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.emv-success h3 {
	margin: 0 0 8px;
	font-size: 22px;
}

.emv-success p {
	margin: 0;
	color: var(--emv-muted);
}

/* ---------- Honeypot (ukryty dla ludzi) ---------- */

.emv-hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

/* ---------- Tryby kategorii ---------- */

.emv-mode-simple .emv-full-only {
	display: none !important;
}

.emv-mode-full .emv-simple-only {
	display: none !important;
}

/* Pola widoczne tylko gdy wśród wybranych kategorii są okna (np. demontaż starej stolarki). */
.emv-form:not(.emv-has-okna) .emv-okna-only {
	display: none !important;
}

/* Demontaż starej stolarki nie ma sensu przy nowej budowie - chowamy pole. */
.emv-form.emv-nowa-budowa .emv-demontaz-field {
	display: none !important;
}

/* Teksty zależne od trybu (krok 3). */

.emv-mode-full .emv-t-simple {
	display: none !important;
}

.emv-mode-simple .emv-t-full {
	display: none !important;
}

/* Pola konfiguratora per kategoria główna:
   .emv-f-okna — tylko okna, .emv-f-drzwi — oba typy drzwi tarasowych,
   .emv-f-drzwi-pcv — drzwi PCV, .emv-f-alu — drzwi ALU. */

.emv-cat-okna .emv-f-drzwi,
.emv-cat-okna .emv-f-drzwi-pcv,
.emv-cat-okna .emv-f-alu,
.emv-cat-drzwi-tarasowe .emv-f-okna,
.emv-cat-drzwi-tarasowe .emv-f-alu,
.emv-cat-drzwi-tarasowe-alu .emv-f-okna,
.emv-cat-drzwi-tarasowe-alu .emv-f-drzwi-pcv {
	display: none !important;
}

/* Pakiety szybowe dostępne per kategoria:
   okna 2/3-szybowe, drzwi PCV 3/4-szybowe, drzwi ALU 2/3-szybowe. */

.emv-cat-okna .emv-pak-4,
.emv-cat-drzwi-tarasowe .emv-pak-2,
.emv-cat-drzwi-tarasowe-alu .emv-pak-4 {
	display: none !important;
}

/* ---------- Krok „Inne produkty” ---------- */

.emv-inne-item {
	border: 1px solid var(--emv-border);
	border-radius: var(--emv-radius);
	background: #fff;
	padding: 12px 14px;
	margin-bottom: 10px;
}

.emv-inne-item .emv-field {
	margin: 12px 0 2px;
}

.emv-inne-item .emv-field > label {
	font-weight: 400;
	font-size: 13px;
	color: var(--emv-muted);
}

/* ---------- Turnstile ---------- */

.emv-turnstile {
	min-height: 66px;
}

/* Media w formularzu nie mogą wychodzić poza swój kontener (zabezpieczenie przed
   poziomym przewijaniem na mobile). */
.emv-wycena img,
.emv-wycena svg {
	max-width: 100%;
}
