/* ============================================================================
   Kalkulator wygłuszeń — style frontu (v2)

   ZASADA: wszystkie selektory komponentów są prefiksowane #kw-root.
   To daje specyficzność 1,x,y, która wygrywa z regułami Elementora
   i motywów opartych na klasach (.elementor-widget-container button itd.)
   bez zasypywania pliku !important.

   Sekcja RESET neutralizuje style przycisków, inputów i nagłówków
   dziedziczone z motywu — bez niej flexboxy kafli się rozjeżdżają.

   Typografia dziedziczy z motywu (font-family: inherit), ale rozmiary
   i wysokości linii ustawiamy jawnie, żeby motyw nie rozdmuchał napisów.
   ============================================================================ */

/* ============================== TOKENY ================================== */

.kw-root,
#kw-root {
	/* --- Kolory --- */
	--kw-accent: #e6a020;
	--kw-accent-hover: #d09015;
	--kw-accent-ink: #17181a;
	--kw-accent-tint: #fdf6e8;

	--kw-ink: #131517;
	--kw-ink-soft: #24272a;
	--kw-text: #1a1c1e;
	--kw-muted: #6e6e6e;
	--kw-muted-2: #8c8c8c;
	--kw-dim: #c9c9c9;

	--kw-bg: #ffffff;
	--kw-surface: #f5f5f5;
	--kw-card: #ffffff;
	--kw-line: #e4e4e4;
	--kw-line-strong: #d4d4d4;

	/* --- Typografia --- */
	--kw-font-body: inherit;
	--kw-font-display: inherit;
	--kw-font-mono: ui-monospace, 'SFMono-Regular', 'JetBrains Mono', 'IBM Plex Mono', Menlo, Consolas, monospace;

	--kw-display-weight: 800;
	--kw-display-tracking: -0.02em;

	/* --- Kształt --- */
	--kw-radius: 10px;
	--kw-radius-sm: 6px;
	--kw-max-width: 1200px;
}

/* ============================== RESET =================================== */

#kw-root {
	background: var(--kw-bg);
	color: var(--kw-text);
	font-family: var(--kw-font-body);
	font-size: 16px;
	line-height: 1.45;
	font-weight: 400;
	text-align: left;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}

#kw-root *,
#kw-root *::before,
#kw-root *::after {
	box-sizing: border-box;
}

/* Zerujemy wszystko, co motywy lubią wieszać na elementach formularza. */
#kw-root button,
#kw-root input,
#kw-root textarea,
#kw-root select {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	background-image: none;
	font: inherit;
	font-size: inherit;
	line-height: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	text-shadow: none;
	box-shadow: none;
	color: inherit;
	width: auto;
	min-width: 0;
	max-width: none;
	height: auto;
	transform: none;
	transition: none;
}

#kw-root button,
#kw-root [role='button'] {
	cursor: pointer;
	text-align: left;
	white-space: normal;
	overflow: visible;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

#kw-root [role='button'][aria-disabled='true'] {
	cursor: default;
}

#kw-root button::before,
#kw-root button::after {
	content: none;
	display: none;
}

#kw-root button:hover,
#kw-root button:active {
	transform: none;
	box-shadow: none;
}

#kw-root h1,
#kw-root h2,
#kw-root h3,
#kw-root p,
#kw-root span,
#kw-root small,
#kw-root label,
#kw-root div {
	margin: 0;
	padding: 0;
	text-shadow: none;
}

#kw-root h1,
#kw-root h2,
#kw-root h3 {
	font-family: var(--kw-font-display);
	font-weight: var(--kw-display-weight);
	letter-spacing: var(--kw-display-tracking);
	line-height: 1.12;
	color: inherit;
	text-transform: none;
}

#kw-root h1::after,
#kw-root h2::after,
#kw-root h3::after,
#kw-root h1::before,
#kw-root h2::before,
#kw-root h3::before {
	content: none;
	display: none;
}

#kw-root a {
	text-decoration: none;
	box-shadow: none;
	color: inherit;
}

#kw-root svg {
	display: block;
	flex-shrink: 0;
	max-width: none;
}

#kw-root img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Pola formularza: motywy (i kity Elementora) często stylują input/textarea z !important.
   Tu !important jest celowy — ID + !important wygrywa z każdą regułą motywu. */
#kw-root input,
#kw-root textarea {
	white-space: normal !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
	height: auto !important;
	max-width: 100% !important;
	border: 1px solid var(--kw-line-strong) !important;
	border-radius: var(--kw-radius-sm) !important;
	background: var(--kw-card) !important;
	color: var(--kw-text) !important;
	padding: 11px 13px !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	font-family: inherit !important;
	margin: 0 !important;
	outline: none;
}

#kw-root .kw-area-input input {
	font-family: var(--kw-font-mono) !important;
	font-size: 17px !important;
	font-weight: 600 !important;
	background: var(--kw-surface) !important;
	padding: 10px 12px !important;
	width: 110px !important;
}

#kw-root input:focus,
#kw-root textarea:focus {
	border-color: var(--kw-accent) !important;
	outline: 2px solid var(--kw-accent) !important;
	outline-offset: 0 !important;
}

#kw-root input::placeholder,
#kw-root textarea::placeholder {
	color: var(--kw-muted-2) !important;
	opacity: 1 !important;
	font-size: 14px !important;
}

/* Focus: zdejmujemy różowy outline Elementora, dajemy własny. */
#kw-root :focus {
	outline: none;
	box-shadow: none;
}

#kw-root :focus-visible {
	outline: 2px solid var(--kw-accent);
	outline-offset: 2px;
	box-shadow: none;
}

#kw-root .kw-header :focus-visible {
	outline-color: #ffffff;
}

/* ============================ TYPOGRAFIA ================================ */

#kw-root .kw-h1 {
	font-size: clamp(26px, 3.4vw, 40px);
	line-height: 1.08;
}

#kw-root .kw-h2 {
	font-size: clamp(22px, 2.4vw, 28px);
	line-height: 1.12;
}

#kw-root .kw-h2 + p {
	font-size: 15px;
	line-height: 1.5;
	color: var(--kw-muted);
	margin-top: 8px;
}

#kw-root .kw-h3 {
	font-size: 19px;
	line-height: 1.2;
}

#kw-root .kw-mono,
#kw-root .kw-eyebrow,
#kw-root .kw-section-label,
#kw-root .kw-item-role,
#kw-root .kw-tier-flag {
	font-family: var(--kw-font-mono);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 500;
}

/* ============================== UKŁAD =================================== */

#kw-root .kw-wrap {
	max-width: var(--kw-max-width);
	margin: 0 auto;
	padding: 0 20px;
	width: 100%;
}

/* --- Nagłówek --- */

#kw-root .kw-header {
	background: var(--kw-ink);
	color: #ffffff;
	padding: 36px 0 26px;
}

#kw-root .kw-header-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 28px;
	flex-wrap: wrap;
}

#kw-root .kw-header-copy {
	flex: 1 1 420px;
	min-width: 0;
}

#kw-root .kw-eyebrow {
	font-size: 12px;
	color: var(--kw-accent);
	margin-bottom: 10px;
}

#kw-root .kw-header p {
	font-size: 16px;
	line-height: 1.5;
	color: var(--kw-dim);
	max-width: 640px;
	margin-top: 10px;
}

#kw-root .kw-badges {
	display: flex;
	gap: 20px;
	flex-shrink: 0;
}

#kw-root .kw-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--kw-dim);
}

/* --- Stepper --- */

#kw-root .kw-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-top: 22px;
}

#kw-root .kw-step {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: var(--kw-radius-sm);
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: rgba(255, 255, 255, 0.55);
	min-height: 48px;
	min-width: 0;
	transition: background 0.14s ease, border-color 0.14s ease;
}

#kw-root .kw-step[aria-current='step'] {
	background: var(--kw-ink-soft);
	border-color: rgba(255, 255, 255, 0.3);
	color: #ffffff;
}

#kw-root .kw-step.is-done {
	color: #ffffff;
}

#kw-root .kw-step[aria-disabled='true'] {
	cursor: default;
}

#kw-root .kw-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	font-family: var(--kw-font-mono);
	font-weight: 700;
	font-size: 13px;
	line-height: 1;
	background: rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.6);
	flex-shrink: 0;
}

#kw-root .kw-step[aria-current='step'] .kw-step-num {
	background: var(--kw-accent);
	color: var(--kw-accent-ink);
}

#kw-root .kw-step.is-done .kw-step-num {
	background: #ffffff;
	color: var(--kw-ink);
}

#kw-root .kw-step-text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

#kw-root .kw-step-label {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#kw-root .kw-step-sub {
	font-size: 12px;
	line-height: 1.3;
	opacity: 0.75;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* --- Panele --- */

#kw-root .kw-panel {
	display: flex;
	flex-direction: column;
	gap: 26px;
	padding: 36px 0 56px;
}

#kw-root .kw-panel-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px;
	flex-wrap: wrap;
}

#kw-root .kw-panel-head > div:not([role='button']) {
	min-width: 0;
	flex: 1 1 320px;
}

#kw-root .kw-panel-head > [role='button'] {
	flex: 0 0 auto;
}

#kw-root .kw-panel-head p {
	font-size: 15px;
	line-height: 1.5;
	color: var(--kw-muted);
	margin-top: 6px;
}

#kw-root .kw-section-label {
	font-size: 11px;
	color: var(--kw-muted);
}

#kw-root .kw-field-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* --- Kafle typu obiektu --- */

#kw-root .kw-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(186px, 1fr));
	gap: 14px;
}

#kw-root .kw-tile {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: 20px 18px;
	background: var(--kw-surface);
	border: 1px solid transparent;
	border-radius: var(--kw-radius);
	min-height: 168px;
	width: 100%;
	transition: background 0.14s ease, border-color 0.14s ease;
}

#kw-root .kw-tile:hover {
	background: var(--kw-card);
	border-color: var(--kw-ink);
}

#kw-root .kw-tile.is-on {
	background: var(--kw-card);
	border-color: var(--kw-ink);
}

#kw-root .kw-tile-icon {
	display: inline-flex;
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	border-radius: var(--kw-radius-sm);
	background: var(--kw-accent);
	color: var(--kw-accent-ink);
	flex-shrink: 0;
}

#kw-root .kw-tile-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	width: 100%;
}

#kw-root .kw-tile-title,
#kw-root .kw-tile-sub,
#kw-root .kw-zone-label,
#kw-root .kw-zone-hint {
	overflow-wrap: break-word;
	min-width: 0;
}

#kw-root .kw-tile-title {
	font-family: var(--kw-font-display);
	font-weight: var(--kw-display-weight);
	letter-spacing: var(--kw-display-tracking);
	font-size: 18px;
	line-height: 1.18;
	hyphens: auto;
}

#kw-root .kw-tile-sub {
	font-size: 13px;
	color: var(--kw-muted);
	line-height: 1.4;
}

/* --- Chipy --- */

#kw-root .kw-chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}

#kw-root .kw-chip {
	display: inline-flex;
	align-items: center;
	padding: 10px 16px;
	min-height: 44px;
	border-radius: var(--kw-radius-sm);
	border: 1px solid var(--kw-line-strong);
	background: var(--kw-card);
	color: var(--kw-text);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	transition: border-color 0.14s ease, background 0.14s ease;
}

#kw-root .kw-chip:hover {
	border-color: var(--kw-ink);
}

#kw-root .kw-chip.is-on {
	background: var(--kw-ink);
	border-color: var(--kw-ink);
	color: #ffffff;
}

#kw-root .kw-chip--sm {
	padding: 8px 12px;
	min-height: 36px;
	font-size: 13px;
}

/* --- Strefy --- */

#kw-root .kw-zones {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
	gap: 12px;
}

#kw-root .kw-zone {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 15px;
	background: var(--kw-card);
	border: 1px solid var(--kw-line);
	border-radius: var(--kw-radius);
	min-height: 88px;
	width: 100%;
	transition: border-color 0.14s ease, background 0.14s ease;
}

#kw-root .kw-zone:hover {
	border-color: var(--kw-ink);
}

#kw-root .kw-zone.is-on {
	background: var(--kw-accent-tint);
	border-color: var(--kw-accent);
}

#kw-root .kw-check {
	display: inline-flex;
	width: 22px;
	height: 22px;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	border: 1px solid var(--kw-line-strong);
	background: var(--kw-card);
	flex-shrink: 0;
	margin-top: 1px;
}

#kw-root .kw-zone.is-on .kw-check {
	border-color: var(--kw-ink);
	background: var(--kw-ink);
}

#kw-root .kw-zone-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

#kw-root .kw-zone-label {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.3;
}

#kw-root .kw-zone-hint {
	font-size: 13px;
	line-height: 1.4;
	color: var(--kw-muted);
}

#kw-root .kw-zone-area {
	font-family: var(--kw-font-mono);
	font-size: 12px;
	line-height: 1.4;
	color: var(--kw-text);
}

/* --- Pola powierzchni --- */

#kw-root .kw-areas {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
}

#kw-root .kw-area-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
	background: var(--kw-card);
	border: 1px solid var(--kw-line);
	border-radius: var(--kw-radius);
}

#kw-root .kw-area-field label {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.3;
	display: block;
}

#kw-root .kw-area-input {
	display: flex;
	align-items: center;
	gap: 8px;
}

#kw-root .kw-area-input input {
	width: 110px;
	padding: 10px 12px;
	min-height: 44px;
	font-size: 17px;
	font-weight: 600;
	font-family: var(--kw-font-mono);
	line-height: 1.2;
	border: 1px solid var(--kw-line-strong);
	border-radius: var(--kw-radius-sm);
	background: var(--kw-surface);
	color: var(--kw-text);
	-moz-appearance: textfield;
}

#kw-root .kw-area-input span {
	font-size: 15px;
	color: var(--kw-muted);
}

/* --- Info --- */

#kw-root .kw-note {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 15px 18px;
	background: var(--kw-surface);
	border-radius: var(--kw-radius);
	font-size: 14px;
	line-height: 1.5;
	color: var(--kw-text);
}

#kw-root .kw-note svg {
	color: var(--kw-accent);
}

#kw-root .kw-note a {
	font-weight: 600;
	text-decoration: underline;
}

/* --- Podsumowanie --- */

#kw-root .kw-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 18px 22px;
	background: var(--kw-ink);
	color: #ffffff;
	border-radius: var(--kw-radius);
	flex-wrap: wrap;
}

#kw-root .kw-summary-copy {
	min-width: 0;
	flex: 1 1 280px;
}

#kw-root .kw-summary-title {
	font-family: var(--kw-font-display);
	font-weight: var(--kw-display-weight);
	letter-spacing: var(--kw-display-tracking);
	font-size: 21px;
	line-height: 1.15;
	margin-bottom: 3px;
}

#kw-root .kw-summary-sub {
	font-size: 13px;
	line-height: 1.45;
	color: var(--kw-dim);
}

/* --- Przyciski --- */

#kw-root .kw-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 24px;
	min-height: 52px;
	border-radius: var(--kw-radius-sm);
	background: var(--kw-accent);
	border: 1px solid var(--kw-accent);
	color: var(--kw-accent-ink);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	text-align: center;
	transition: background 0.14s ease, border-color 0.14s ease;
}

#kw-root .kw-cta:hover:not([aria-disabled='true']) {
	background: var(--kw-accent-hover);
	border-color: var(--kw-accent-hover);
}

#kw-root .kw-cta[aria-disabled='true'] {
	opacity: 0.45;
	cursor: not-allowed;
}

#kw-root .kw-cta--dark {
	background: var(--kw-ink);
	border-color: var(--kw-ink);
	color: #ffffff;
	width: 100%;
}

#kw-root .kw-cta--dark:hover:not([aria-disabled='true']) {
	background: var(--kw-ink-soft);
	border-color: var(--kw-ink-soft);
}

#kw-root .kw-cta--light {
	background: var(--kw-card);
	border-color: var(--kw-ink);
	color: var(--kw-ink);
	width: 100%;
}

#kw-root .kw-cta--light:hover:not([aria-disabled='true']) {
	background: var(--kw-surface);
}

#kw-root .kw-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 15px;
	min-height: 44px;
	border-radius: var(--kw-radius-sm);
	background: var(--kw-card);
	border: 1px solid var(--kw-line-strong);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	transition: background 0.14s ease, border-color 0.14s ease;
}

#kw-root .kw-btn:hover {
	background: var(--kw-surface);
	border-color: var(--kw-ink);
}

#kw-root .kw-btn--filled {
	background: var(--kw-surface);
	font-weight: 600;
}

/* --- Karty zestawów --- */

#kw-root .kw-tiers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: 16px;
	align-items: stretch;
}

#kw-root .kw-tier {
	display: flex;
	flex-direction: column;
	background: var(--kw-card);
	border: 1px solid var(--kw-line);
	border-radius: var(--kw-radius);
	overflow: hidden;
	min-width: 0;
}

#kw-root .kw-tier.is-featured {
	border-color: var(--kw-accent);
}

#kw-root .kw-tier-flag {
	background: var(--kw-accent);
	color: var(--kw-accent-ink);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-align: center;
	padding: 9px 8px;
	line-height: 1.3;
}

#kw-root .kw-tier-body {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 20px 18px 18px;
	flex-grow: 1;
	min-width: 0;
}

#kw-root .kw-tier-name {
	font-family: var(--kw-font-display);
	font-weight: var(--kw-display-weight);
	letter-spacing: var(--kw-display-tracking);
	font-size: 21px;
	line-height: 1.15;
	margin-bottom: 5px;
}

#kw-root .kw-tier-desc {
	font-size: 13px;
	color: var(--kw-muted);
	line-height: 1.5;
}

#kw-root .kw-items {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--kw-line);
}

#kw-root .kw-item {
	display: flex;
	gap: 11px;
	padding: 12px 0;
	border-bottom: 1px solid var(--kw-line);
	align-items: flex-start;
	min-width: 0;
}

#kw-root .kw-swatch {
	width: 44px;
	height: 44px;
	border-radius: var(--kw-radius-sm);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-family: var(--kw-font-mono);
	font-weight: 700;
	font-size: 11px;
	line-height: 1;
	background-size: cover;
	background-position: center;
	border: 1px solid var(--kw-line);
}

#kw-root .kw-item-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex-grow: 1;
	min-width: 0;
}

#kw-root .kw-item-role {
	font-size: 10px;
	color: var(--kw-muted-2);
	line-height: 1.3;
}

#kw-root .kw-item-name {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

#kw-root .kw-item-name a:hover {
	text-decoration: underline;
}

#kw-root .kw-item-qty {
	font-family: var(--kw-font-mono);
	font-size: 11px;
	color: var(--kw-muted);
	line-height: 1.45;
}

#kw-root .kw-item-price {
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	line-height: 1.4;
	flex-shrink: 0;
}

#kw-root .kw-tier-foot {
	display: flex;
	flex-direction: column;
	gap: 11px;
	margin-top: auto;
}

#kw-root .kw-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
}

#kw-root .kw-total-label {
	font-size: 13px;
	color: var(--kw-muted);
}

#kw-root .kw-total-value {
	font-family: var(--kw-font-display);
	font-weight: var(--kw-display-weight);
	letter-spacing: var(--kw-display-tracking);
	font-size: 25px;
	line-height: 1.1;
	white-space: nowrap;
}

#kw-root .kw-tier-foot small {
	font-family: var(--kw-font-mono);
	font-size: 10px;
	color: var(--kw-muted);
	text-align: center;
	line-height: 1.4;
	display: block;
}

/* --- Stopka kroku 3 --- */

#kw-root .kw-cards-2 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 16px;
}

#kw-root .kw-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px;
	background: var(--kw-surface);
	border-radius: var(--kw-radius);
	min-width: 0;
}

#kw-root .kw-card p {
	font-size: 13px;
	color: var(--kw-text);
	line-height: 1.6;
}

#kw-root .kw-card a {
	font-weight: 600;
	text-decoration: underline;
}

/* --- Formularz --- */

#kw-root .kw-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 4px;
}

#kw-root .kw-form input,
#kw-root .kw-form textarea {
	width: 100%;
	padding: 11px 13px;
	min-height: 44px;
	font-size: 14px;
	line-height: 1.4;
	border: 1px solid var(--kw-line-strong);
	border-radius: var(--kw-radius-sm);
	background: var(--kw-card);
	color: var(--kw-text);
}

#kw-root .kw-form textarea {
	min-height: 72px;
	resize: vertical;
}

#kw-root .kw-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

#kw-root .kw-consent {
	font-size: 11px;
	color: var(--kw-muted);
	line-height: 1.45;
}

/* --- Komunikaty --- */

#kw-root .kw-msg {
	padding: 13px 16px;
	border-radius: var(--kw-radius-sm);
	font-size: 14px;
	line-height: 1.5;
	border: 1px solid;
}

#kw-root .kw-msg--ok {
	background: #eef7f0;
	border-color: #b6d9c1;
	color: #14532d;
}

#kw-root .kw-msg--err {
	background: #fdefef;
	border-color: #eebcbc;
	color: #7f1d1d;
}

#kw-root .kw-msg--warn {
	background: var(--kw-accent-tint);
	border-color: var(--kw-accent);
	color: #6b4d12;
}

#kw-root .kw-msg a {
	font-weight: 600;
	text-decoration: underline;
}

#kw-root .kw-unavailable {
	font-size: 13px;
	color: var(--kw-muted);
	line-height: 1.55;
	padding: 10px 0;
}

#kw-root .kw-busy {
	opacity: 0.6;
	pointer-events: none;
}

/* =========================== RESPONSYWNOŚĆ ============================== */

@media (max-width: 860px) {
	#kw-root .kw-badges { display: none; }
	#kw-root .kw-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	#kw-root { font-size: 15px; }
	#kw-root .kw-wrap { padding: 0 16px; }
	#kw-root .kw-header { padding: 26px 0 18px; }
	#kw-root .kw-panel { padding: 24px 0 36px; gap: 20px; }
	#kw-root .kw-tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
	#kw-root .kw-tile { min-height: 140px; padding: 15px 13px; gap: 11px; }
	#kw-root .kw-tile-title { font-size: 16px; }
	#kw-root .kw-zones { grid-template-columns: 1fr; }
	#kw-root .kw-areas { grid-template-columns: 1fr; }
	/* Stepper na telefonie: aktywny krok z pełną etykietą, pozostałe jako same numery. */
	#kw-root .kw-steps { display: flex; gap: 6px; }
	#kw-root .kw-step { flex: 0 0 auto; padding: 10px; gap: 10px; }
	#kw-root .kw-step[aria-current='step'] { flex: 1 1 auto; }
	#kw-root .kw-step:not([aria-current='step']) .kw-step-text { display: none; }
	#kw-root .kw-step-label { font-size: 14px; }
	#kw-root .kw-step-sub { font-size: 12px; }
	#kw-root .kw-summary { position: sticky; bottom: 0; z-index: 10; padding: 14px 16px; }
	#kw-root .kw-summary .kw-cta { width: 100%; }
}

@media (max-width: 380px) {
	#kw-root .kw-tiles { grid-template-columns: 1fr; }
}

/* Szanujemy preferencję ograniczonego ruchu. */
@media (prefers-reduced-motion: reduce) {
	#kw-root * {
		transition: none;
	}
}
