/* ==========================================================================
   Klimakalkulator — Frontend Styles
   ========================================================================== */

[x-cloak] { display: none !important; }

/* --------------------------------------------------------------------------
   Theme isolation reset
   Neutralises the most common theme overrides (borders on buttons/inputs,
   box-sizing inconsistencies, list/heading resets, link colours).
   All selectors are scoped to .klmk-konfigurator so nothing leaks out.
   -------------------------------------------------------------------------- */
.klmk-konfigurator *,
.klmk-konfigurator *::before,
.klmk-konfigurator *::after {
	box-sizing: border-box;
}

.klmk-konfigurator button,
.klmk-konfigurator input,
.klmk-konfigurator select,
.klmk-konfigurator textarea {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	margin: 0;
}

/* Hard reset for theme button styles — use !important to win specificity wars */
.klmk-konfigurator button {
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 0 !important;
	cursor: pointer;
}

/* Re-apply our own button styles AFTER the reset */
.klmk-konfigurator .klmk-btn {
	background: unset;
	border: 2px solid transparent !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	padding: 10px 22px !important;
}

.klmk-konfigurator .klmk-btn-primary {
	background: var(--klmk-accent) !important;
	border-color: var(--klmk-accent) !important;
	color: #fff !important;
}

.klmk-konfigurator .klmk-btn-primary:hover:not(:disabled) {
	background: var(--klmk-accent-dark) !important;
	border-color: var(--klmk-accent-dark) !important;
	box-shadow: 0 4px 14px rgba(14,165,233,.35) !important;
}

.klmk-konfigurator .klmk-btn-ghost {
	background: transparent !important;
	border-color: var(--klmk-border) !important;
	color: var(--klmk-text-muted) !important;
}

.klmk-konfigurator .klmk-btn-ghost:hover:not(:disabled) {
	border-color: #9ca3af !important;
	color: var(--klmk-text) !important;
}

.klmk-konfigurator .klmk-btn-sm  { padding: 6px 14px !important; }
.klmk-konfigurator .klmk-btn-lg  { padding: 14px 32px !important; }
.klmk-konfigurator .klmk-btn:disabled,
.klmk-konfigurator .klmk-btn[disabled] {
	opacity: .4 !important;
	cursor: not-allowed !important;
	pointer-events: none;
	box-shadow: none !important;
}

.klmk-konfigurator ul,
.klmk-konfigurator ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.klmk-konfigurator h2,
.klmk-konfigurator h3,
.klmk-konfigurator h4 {
	margin: 0;
	font-weight: 700;
	line-height: 1.3;
}

.klmk-konfigurator a {
	color: var(--klmk-accent);
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Root & container
   -------------------------------------------------------------------------- */
.klmk-konfigurator {
	--klmk-accent: #0ea5e9;
	--klmk-accent-dark: #0284c7;
	--klmk-accent-light: #e0f2fe;
	--klmk-radius: 12px;
	--klmk-radius-sm: 8px;
	--klmk-shadow: 0 1px 4px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
	--klmk-border: #e5e7eb;
	--klmk-text: #111827;
	--klmk-text-muted: #6b7280;
	--klmk-price-bar-h: 72px;

	font-family: inherit;
	color: var(--klmk-text);
	background: #fff;
	border-radius: var(--klmk-radius);
	padding: 36px 32px calc(var(--klmk-price-bar-h) + 32px);
	position: relative;
	max-width: 900px;
	margin: 0 auto;
	overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Step progress bar
   -------------------------------------------------------------------------- */
.klmk-steps {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 0;
	margin-bottom: 40px;
	padding: 0 !important;
	list-style: none !important;
	border: none !important;
	background: none !important;
	box-shadow: none !important;
}

.klmk-step {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 6px !important;
	cursor: default !important;
	padding: 0 4px !important;
	position: relative !important;
	flex: 1 !important;
	min-width: 0 !important;
	text-align: center !important;
}

/* Connecting line between steps */
.klmk-step:not(:first-child)::before {
	content: '';
	position: absolute;
	top: 18px;
	right: calc(50% + 18px);
	left: calc(-50% + 18px);
	height: 2px;
	background: var(--klmk-border);
	transition: background .3s;
}

.klmk-step.done:not(:first-child)::before {
	background: var(--klmk-accent);
}

.klmk-step-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f3f4f6;
	border: 2px solid var(--klmk-border);
	font-size: 14px;
	font-weight: 600;
	color: var(--klmk-text-muted);
	transition: background .3s, border-color .3s, color .3s;
	position: relative;
	z-index: 1;
}

.klmk-step.active .klmk-step-num {
	background: var(--klmk-accent);
	border-color: var(--klmk-accent);
	color: #fff;
}

.klmk-step.done .klmk-step-num {
	background: #10b981;
	border-color: #10b981;
	color: #fff;
	font-size: 0;
}

.klmk-step.done .klmk-step-num::after {
	content: '';
	display: block;
	width: 10px;
	height: 6px;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(-45deg) translate(1px, -1px);
}

.klmk-step.done[disabled] {
	cursor: pointer;
}

.klmk-step-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--klmk-text-muted);
	white-space: nowrap;
}

.klmk-step.active .klmk-step-label {
	color: var(--klmk-accent);
}

.klmk-step.done .klmk-step-label {
	color: #10b981;
}

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */
.klmk-section-heading {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 28px;
	color: var(--klmk-text);
}

.klmk-subsection-heading {
	font-size: 16px;
	font-weight: 600;
	margin: 28px 0 16px;
}

/* --------------------------------------------------------------------------
   Device cards grid
   -------------------------------------------------------------------------- */
.klmk-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
	margin-bottom: 24px;
}

.klmk-card {
	background: #fff;
	border: 2px solid var(--klmk-border);
	border-radius: var(--klmk-radius);
	overflow: hidden;
	cursor: pointer;
	transition: border-color .2s, box-shadow .2s, transform .15s;
	display: flex;
	flex-direction: column;
}

.klmk-card:hover {
	border-color: var(--klmk-accent);
	box-shadow: var(--klmk-shadow);
	transform: translateY(-2px);
}

.klmk-card-thumb {
	aspect-ratio: 4/3;
	background: #f9fafb;
	overflow: hidden;
	flex-shrink: 0;
}

.klmk-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.klmk-card-no-img {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #d1d5db;
}

.klmk-card-no-img svg {
	width: 48px;
	height: 48px;
}

.klmk-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.klmk-card-title {
	font-size: 15px;
	font-weight: 600;
	margin: 0;
	color: var(--klmk-text);
}

.klmk-card-badges {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.klmk-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
}

.klmk-badge-energy {
	background: #fef3c7;
	color: #92400e;
}

.klmk-card-features {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 13px;
	color: var(--klmk-text-muted);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.klmk-card-price {
	margin-top: auto;
	font-size: 14px;
	color: var(--klmk-text-muted);
	display: flex;
	align-items: baseline;
	gap: 4px;
}

.klmk-card-price strong {
	font-size: 18px;
	font-weight: 700;
	color: var(--klmk-accent);
}

.klmk-price-note {
	font-size: 12px;
	color: var(--klmk-text-muted);
}

.klmk-card-katalog-btn {
	align-self: flex-start;
	margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Selected device summary
   -------------------------------------------------------------------------- */
.klmk-selected-summary {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	background: var(--klmk-accent-light);
	border: 2px solid var(--klmk-accent);
	border-radius: var(--klmk-radius);
	margin-bottom: 24px;
}

.klmk-summary-thumb {
	width: 64px;
	height: 64px;
	object-fit: contain;
	border-radius: var(--klmk-radius-sm);
	flex-shrink: 0;
}

.klmk-selected-summary .klmk-summary-thumb {
	width: 120px;
	height: 90px;
	object-fit: contain;
	background: #fff;
	border-radius: var(--klmk-radius-sm);
	padding: 4px;
}

.klmk-selected-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.klmk-selected-info strong {
	font-size: 15px;
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   Power/moc cards
   -------------------------------------------------------------------------- */
.klmk-moce-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
	margin-bottom: 24px;
}

.klmk-moc-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px;
	background: #fff;
	border: 2px solid var(--klmk-border);
	border-radius: var(--klmk-radius);
	cursor: pointer;
	transition: border-color .2s;
}

.klmk-moc-card input[type="radio"] {
	display: none;
}

.klmk-moc-card.selected {
	border-color: var(--klmk-accent);
	background: var(--klmk-accent-light);
}

.klmk-moc-kw {
	font-size: 18px;
	font-weight: 700;
	color: var(--klmk-text);
}

.klmk-moc-opis {
	font-size: 12px;
	color: var(--klmk-text-muted);
}

.klmk-moc-cena {
	font-size: 14px;
	font-weight: 600;
	color: var(--klmk-accent);
	margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Info box (what's included)
   -------------------------------------------------------------------------- */
.klmk-zestaw-info {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: var(--klmk-radius);
	padding: 20px;
	margin-bottom: 24px;
}

.klmk-zestaw-info h4 {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 12px;
	color: #166534;
}

.klmk-zestaw-info ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.klmk-zestaw-info li {
	font-size: 14px;
	color: #166534;
	padding-left: 20px;
	position: relative;
}

.klmk-zestaw-info li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: #16a34a;
	font-weight: 700;
}

/* --------------------------------------------------------------------------
   Form grid & fields
   -------------------------------------------------------------------------- */
.klmk-form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 24px;
}

.klmk-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.klmk-field--full {
	grid-column: 1 / -1;
}

.klmk-label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--klmk-text-muted);
}

.klmk-input,
.klmk-select {
	width: 100%;
	padding: 10px 14px;
	border: 2px solid var(--klmk-border);
	border-radius: var(--klmk-radius-sm);
	font-size: 15px;
	color: var(--klmk-text);
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
}

.klmk-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 40px;
}

.klmk-input:focus,
.klmk-select:focus {
	border-color: var(--klmk-accent);
	box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}

.klmk-field.error .klmk-input,
.klmk-field.error .klmk-select {
	border-color: #ef4444;
}

.klmk-error-msg {
	font-size: 12px;
	color: #ef4444;
	font-weight: 500;
}

.klmk-info-msg {
	font-size: 13px;
	color: #0369a1;
	background: #e0f2fe;
	border-radius: var(--klmk-radius-sm);
	padding: 8px 12px;
	margin: 0;
}

.klmk-warn-msg {
	font-size: 13px;
	color: #b45309;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: var(--klmk-radius-sm);
	padding: 8px 12px;
	margin: 0;
}

/* --------------------------------------------------------------------------
   Radio cards (typ klienta, wariant)
   -------------------------------------------------------------------------- */
.klmk-radio-group {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.klmk-radio-group--wariant {
	grid-template-columns: 1fr;
	gap: 10px;
}

.klmk-radio-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	background: #fff;
	border: 2px solid var(--klmk-border);
	border-radius: var(--klmk-radius);
	cursor: pointer;
	transition: border-color .2s, background .2s;
	position: relative;
}

.klmk-radio-card input[type="radio"] {
	margin-top: 2px;
	flex-shrink: 0;
	accent-color: var(--klmk-accent);
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.klmk-radio-card.selected {
	border-color: var(--klmk-accent);
	background: var(--klmk-accent-light);
}

.klmk-radio-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.klmk-radio-content strong {
	font-size: 15px;
	font-weight: 600;
	color: var(--klmk-text);
}

.klmk-vat-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	color: var(--klmk-accent);
}

.klmk-wariant-desc {
	font-size: 13px;
	color: var(--klmk-text-muted);
	line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Options list (custom config)
   -------------------------------------------------------------------------- */
.klmk-config-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.klmk-options-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.klmk-option-label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: #fff;
	border: 2px solid var(--klmk-border);
	border-radius: var(--klmk-radius-sm);
	cursor: pointer;
	font-size: 14px;
	transition: border-color .2s, background .2s;
}

.klmk-option-label input[type="radio"] {
	accent-color: var(--klmk-accent);
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	cursor: pointer;
}

.klmk-option-label.selected {
	border-color: var(--klmk-accent);
	background: var(--klmk-accent-light);
}

.klmk-option-label.disabled {
	opacity: .45;
	cursor: not-allowed;
}

.klmk-field-calc {
	font-size: 12px;
	font-weight: 600;
	color: var(--klmk-accent);
	margin-left: auto;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Standard info box
   -------------------------------------------------------------------------- */
.klmk-standard-info {
	background: #f9fafb;
	border: 1px solid var(--klmk-border);
	border-radius: var(--klmk-radius);
	padding: 20px;
	margin: 0;
}

.klmk-standard-info.klmk-greyed {
	opacity: .6;
}

.klmk-standard-info h4 {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 12px;
}

.klmk-standard-info ul {
	list-style: disc;
	padding-left: 20px;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	color: var(--klmk-text-muted);
}

/* --------------------------------------------------------------------------
   Custom config panel
   -------------------------------------------------------------------------- */
.klmk-custom-config {
	margin-top: 24px;
}

/* Sub-grid wrapping fields hidden when dach is selected */
.klmk-config-subgrid {
	display: contents;
}

.klmk-summary-val--warn {
	font-style: italic;
	color: var(--klmk-text-muted);
}

/* --------------------------------------------------------------------------
   Summary box (krok 4)
   -------------------------------------------------------------------------- */
.klmk-summary-box {
	background: #fff;
	border: 1px solid var(--klmk-border);
	border-radius: var(--klmk-radius);
	overflow: hidden;
	margin-bottom: 20px;
}

.klmk-summary-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	border-bottom: 1px solid #f3f4f6;
}

.klmk-summary-row:last-child {
	border-bottom: none;
}

.klmk-summary-product {
	background: #f9fafb;
}

.klmk-summary-row-content {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
}

.klmk-summary-label {
	font-size: 13px;
	color: var(--klmk-text-muted);
	flex: 1;
}

.klmk-summary-name {
	font-size: 15px;
	font-weight: 600;
}

.klmk-summary-val {
	font-size: 15px;
	font-weight: 500;
}

.klmk-summary-price {
	font-size: 16px;
	font-weight: 700;
	color: var(--klmk-text);
}

.klmk-summary-divider {
	border: none;
	border-top: 2px solid var(--klmk-border);
	margin: 0;
}

.klmk-summary-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	background: #f9fafb;
	font-size: 15px;
	font-weight: 600;
}

.klmk-summary-total strong {
	font-size: 22px;
	color: var(--klmk-accent);
}

.klmk-summary-note {
	font-size: 13px;
	color: var(--klmk-text-muted);
	margin: 0 0 8px;
}

.klmk-summary-legal {
	font-size: 11px;
	color: var(--klmk-text-muted);
	opacity: .8;
	line-height: 1.5;
	margin: 0 0 24px;
}

/* --------------------------------------------------------------------------
   Mini summary (krok 5)
   -------------------------------------------------------------------------- */
.klmk-mini-summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: var(--klmk-accent-light);
	border-radius: var(--klmk-radius-sm);
	font-size: 14px;
	margin-bottom: 24px;
	color: var(--klmk-text-muted);
	flex-wrap: wrap;
}

.klmk-mini-summary strong {
	font-size: 16px;
	font-weight: 700;
	color: var(--klmk-accent);
	margin-left: auto;
}

/* --------------------------------------------------------------------------
   Checkbox
   -------------------------------------------------------------------------- */
.klmk-checkbox-wrap {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.5;
	color: var(--klmk-text);
}

.klmk-checkbox-wrap input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
	accent-color: var(--klmk-accent);
	width: 18px;
	height: 18px;
	cursor: pointer;
}

/* --------------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------------- */
.klmk-alert {
	padding: 12px 16px;
	border-radius: var(--klmk-radius-sm);
	font-size: 14px;
	margin-bottom: 16px;
}

.klmk-alert-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #dc2626;
}

/* --------------------------------------------------------------------------
   Buttons  (layout properties — colours/borders live in the reset block above)
   -------------------------------------------------------------------------- */
.klmk-konfigurator .klmk-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	transition: background .2s, border-color .2s, opacity .2s, box-shadow .2s;
	text-decoration: none !important;
	white-space: nowrap !important;
}

/* --------------------------------------------------------------------------
   Navigation row (Wstecz / Dalej)
   -------------------------------------------------------------------------- */
.klmk-nav-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 32px;
	/* Extra bottom padding — sticky price bar won't overlap buttons */
	padding-bottom: 8px;
}

.klmk-nav-row--right {
	justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */
.klmk-empty {
	text-align: center;
	color: var(--klmk-text-muted);
	padding: 48px 24px;
	font-size: 15px;
}

/* --------------------------------------------------------------------------
   Loading spinner
   -------------------------------------------------------------------------- */
.klmk-spinner {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 64px 24px;
}

.klmk-spinner-ring {
	display: block;
	width: 40px;
	height: 40px;
	border: 3px solid var(--klmk-border);
	border-top-color: var(--klmk-accent);
	border-radius: 50%;
	animation: klmk-spin .8s linear infinite;
}

@keyframes klmk-spin {
	to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Thank-you screen
   -------------------------------------------------------------------------- */
.klmk-thankyou {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 64px 24px;
	gap: 16px;
}

.klmk-check-icon {
	width: 72px;
	height: 72px;
}

.klmk-thankyou h2 {
	font-size: 26px;
	font-weight: 700;
	margin: 0;
}

.klmk-thankyou p {
	font-size: 16px;
	color: var(--klmk-text-muted);
	max-width: 480px;
	margin: 0;
}

/* --------------------------------------------------------------------------
   Sticky price bar
   -------------------------------------------------------------------------- */
.klmk-price-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 999;
	height: var(--klmk-price-bar-h);
	background: #fff;
	border-top: 2px solid var(--klmk-border);
	box-shadow: 0 -4px 24px rgba(0,0,0,.08);
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 0 24px;
	font-size: 14px;
}

.klmk-price-bar-device {
	font-size: 14px;
	font-weight: 500;
	color: var(--klmk-text);
	flex-shrink: 0;
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.klmk-price-bar-items {
	display: flex;
	align-items: center;
	gap: 20px;
	flex: 1;
	justify-content: flex-end;
}

.klmk-price-bar-item {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 1px;
}

.klmk-price-bar-item span {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--klmk-text-muted);
}

.klmk-price-bar-item strong {
	font-size: 15px;
	font-weight: 700;
	color: var(--klmk-text);
}

.klmk-price-bar-sep {
	width: 1px;
	height: 32px;
	background: var(--klmk-border);
}

.klmk-price-bar-total {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 1px;
	padding-left: 20px;
	border-left: 2px solid var(--klmk-border);
}

.klmk-price-bar-total span {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--klmk-text-muted);
}

.klmk-price-bar-total strong {
	font-size: 20px;
	font-weight: 800;
	color: var(--klmk-accent);
}

/* --------------------------------------------------------------------------
   Summary row — label left, value right
   -------------------------------------------------------------------------- */
.klmk-summary-row {
	justify-content: space-between;
}

.klmk-summary-row .klmk-summary-label {
	flex: 1;
}

.klmk-summary-row .klmk-summary-val,
.klmk-summary-row .klmk-summary-price {
	text-align: right;
}

/* --------------------------------------------------------------------------
   Input/select — override theme styles
   -------------------------------------------------------------------------- */
.klmk-konfigurator .klmk-input,
.klmk-konfigurator .klmk-select {
	border: 2px solid var(--klmk-border) !important;
	border-radius: var(--klmk-radius-sm) !important;
	background: #fff !important;
	box-shadow: none !important;
	outline: none;
	padding: 10px 14px !important;
	width: 100% !important;
	color: var(--klmk-text) !important;
}

.klmk-konfigurator .klmk-input:focus,
.klmk-konfigurator .klmk-select:focus {
	border-color: var(--klmk-accent) !important;
	box-shadow: 0 0 0 3px rgba(14,165,233,.15) !important;
}

.klmk-konfigurator .klmk-field.error .klmk-input,
.klmk-konfigurator .klmk-field.error .klmk-select {
	border-color: #ef4444 !important;
}

/* --------------------------------------------------------------------------
   Step nav — extra top padding so circles aren't clipped
   -------------------------------------------------------------------------- */
.klmk-steps {
	padding-top: 4px !important;
	overflow: visible !important;
}

/* --------------------------------------------------------------------------
   Selected device summary — "Zmień" button override on accent-light bg
   -------------------------------------------------------------------------- */
.klmk-konfigurator .klmk-selected-summary .klmk-btn-ghost {
	border-color: var(--klmk-accent) !important;
	color: var(--klmk-accent) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	padding: 6px 14px !important;
	min-width: 0 !important;
	width: auto !important;
	height: auto !important;
	overflow: visible !important;
}

.klmk-konfigurator .klmk-selected-summary .klmk-btn-ghost:hover {
	background: var(--klmk-accent) !important;
	color: #fff !important;
}

/* --------------------------------------------------------------------------
   Function icons grid on device cards
   -------------------------------------------------------------------------- */
.klmk-card-ikony {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.klmk-card-ikona {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	width: 56px;
}

.klmk-card-ikona img {
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.klmk-card-ikona span {
	font-size: 10px;
	color: #6b7280;
	text-align: center;
	line-height: 1.2;
	word-break: break-word;
}

/* --------------------------------------------------------------------------
   Color dots on device cards
   -------------------------------------------------------------------------- */
.klmk-card-kolory {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
}

.klmk-kolor-dot {
	display: inline-block;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1.5px solid rgba(0,0,0,.15);
	box-shadow: inset 0 1px 2px rgba(0,0,0,.08);
	flex-shrink: 0;
	cursor: default;
}

/* --------------------------------------------------------------------------
   Color selector (step 1 — after device selected)
   -------------------------------------------------------------------------- */
.klmk-kolor-selector {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	padding: 6px 4px;
}

.klmk-konfigurator .klmk-kolor-btn {
	width: 30px !important;
	height: 30px !important;
	border-radius: 50% !important;
	background: var(--c) !important;
	border: 2px solid rgba(255,255,255,.8) !important;
	outline: 2px solid transparent !important;
	outline-offset: 2px !important;
	padding: 0 !important;
	cursor: pointer !important;
	box-shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 1px 2px rgba(255,255,255,.2) !important;
	transition: transform .15s, outline-color .15s, box-shadow .15s !important;
	flex-shrink: 0 !important;
}

.klmk-konfigurator .klmk-kolor-btn:hover {
	transform: scale(1.15) !important;
	box-shadow: 0 2px 8px rgba(0,0,0,.3) !important;
}

.klmk-konfigurator .klmk-kolor-btn.selected {
	outline-color: var(--klmk-accent) !important;
	transform: scale(1.08) !important;
	border-color: #fff !important;
}

.klmk-kolor-selected-info {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--klmk-text);
	padding: 10px 14px;
	background: #f9fafb;
	border: 1px solid var(--klmk-border);
	border-radius: var(--klmk-radius-sm);
	margin-bottom: 8px;
}

.klmk-kolor-swatch {
	display: inline-block;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid rgba(0,0,0,.12);
	flex-shrink: 0;
}

.klmk-kolor-swatch--sm {
	width: 16px;
	height: 16px;
}

.klmk-kolor-price {
	font-size: 13px;
	font-weight: 600;
	color: var(--klmk-accent);
	margin-left: auto;
}

/* Summary row — kolor + swatch inline */
.klmk-summary-kolor {
	display: flex;
	align-items: center;
	gap: 8px;
	justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   Info button + lightbox (krok 3 — zdjęcia poglądowe)
   -------------------------------------------------------------------------- */
.klmk-konfigurator .klmk-info-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 18px !important;
	height: 18px !important;
	margin-left: 4px !important;
	border-radius: 50% !important;
	background: var(--klmk-accent-light) !important;
	color: var(--klmk-accent) !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	font-style: italic;
	line-height: 1 !important;
	vertical-align: middle;
	cursor: pointer;
	transition: background .2s, color .2s;
}

.klmk-konfigurator .klmk-info-btn:hover {
	background: var(--klmk-accent) !important;
	color: #fff !important;
}

.klmk-info-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(17, 24, 39, .7);
	padding: 24px;
}

.klmk-info-modal-box {
	position: relative;
	background: #fff;
	border-radius: var(--klmk-radius);
	padding: 16px;
	max-width: min(560px, 100%);
	max-height: 90vh;
	overflow: auto;
	box-shadow: 0 12px 48px rgba(0,0,0,.3);
}

.klmk-info-modal-box img {
	display: block;
	width: 100%;
	border-radius: var(--klmk-radius-sm);
}

.klmk-info-modal-caption {
	margin: 12px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--klmk-text);
	text-align: center;
}

.klmk-konfigurator .klmk-info-modal-close {
	position: absolute !important;
	top: 8px !important;
	right: 8px !important;
	width: 32px !important;
	height: 32px !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--klmk-text) !important;
	font-size: 20px !important;
	line-height: 1 !important;
	box-shadow: 0 2px 8px rgba(0,0,0,.2) !important;
	z-index: 1;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
	.klmk-step-label { display: none; }
	.klmk-form-grid  { grid-template-columns: 1fr; }
	.klmk-radio-group { grid-template-columns: 1fr; }
	.klmk-config-grid { grid-template-columns: 1fr; }

	.klmk-price-bar {
		flex-wrap: wrap;
		height: auto;
		padding: 10px 16px;
		gap: 8px;
	}

	/* Adjust padding on mobile */
	.klmk-konfigurator {
		padding: 20px 16px calc(120px + 20px);
	}

	.klmk-price-bar-device { max-width: 100%; }

	.klmk-price-bar-items {
		gap: 12px;
		justify-content: flex-start;
	}

	.klmk-price-bar-total {
		padding-left: 0;
		border-left: none;
		border-top: 1px solid var(--klmk-border);
		padding-top: 6px;
		width: 100%;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	/* Nav row (Wstecz / Dalej / submit) — stack full-width so long labels
	   (np. "Otrzymaj szczegółową ofertę") nie wychodzą poza ekran. */
	.klmk-nav-row,
	.klmk-nav-row--right {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.klmk-konfigurator .klmk-nav-row .klmk-btn,
	.klmk-konfigurator .klmk-nav-row--right .klmk-btn {
		width: 100%;
		white-space: normal !important;
		text-align: center;
	}

	.klmk-konfigurator .klmk-btn-lg {
		padding: 14px 20px !important;
	}

	.klmk-mini-summary {
		flex-direction: column;
		align-items: flex-start;
	}

	.klmk-mini-summary strong {
		margin-left: 0;
	}
}
