/* Nevra Konfigurator */

.nevra-konfigurator {
	--nevra-accent: var(--e-global-color-accent, #3d9b35);
	--nevra-accent-dark: color-mix(in srgb, var(--nevra-accent) 80%, #000);
	--nevra-section-header: var(--e-global-color-ae67391, #e8f4fc);
	--nevra-text: #1a1a1a;
	--nevra-muted: #666;
	--nevra-border: #e0e0e0;
	--nevra-card-footer: #f2f2f2;
	--nevra-radius: 12px;
	font-family: inherit;
	color: var(--nevra-text);
	line-height: 1.5;
}

.nevra-konfigurator *,
.nevra-konfigurator *::before,
.nevra-konfigurator *::after {
	box-sizing: border-box;
}

.nevra-konfigurator__layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 2rem;
	align-items: start;
}

/* Nagłówek */
.nevra-konfigurator__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	text-transform: uppercase;
	margin: 0;
	letter-spacing: 0.03em;
	line-height: 1.2;
}

.nevra-konfigurator__podpis {
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	font-size: 1.125rem;
	color: var(--nevra-muted);
	margin: 0.35rem 0 0;
	line-height: 1.3;
}

.nevra-konfigurator__intro {
	margin-top: 1.25rem;
	margin-bottom: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--nevra-border);
}

.nevra-konfigurator__intro p {
	margin: 0 0 0.65rem;
	color: var(--nevra-muted);
	font-size: 0.9375rem;
}

.nevra-konfigurator__intro p:last-child {
	margin-bottom: 0;
}

/* Sekcje */
.nevra-section {
	margin-bottom: 1.5rem;
	border: 1px solid var(--nevra-border);
	border-radius: var(--nevra-radius);
	overflow: hidden;
	background: #fff;
}

.nevra-section__title {
	margin: 0;
	padding: 0.85rem 1.25rem;
	background: var(--nevra-section-header);
	border-bottom: none;
	font-size: 0.9375rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #1a1a1a;
}

.nevra-section__body {
	padding: 1.25rem;
}

.nevra-section__lead {
	margin: 0 0 1rem;
	color: var(--nevra-muted);
	font-size: 0.9375rem;
}

.nevra-section__grid {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 1.5rem;
	align-items: start;
}

.nevra-section__fields {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.nevra-field,
.nevra-field--full {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.nevra-field--full {
	margin-top: 1rem;
}

[data-insert-layout-note][hidden] {
	display: none !important;
}

.nevra-field__label {
	font-size: 0.875rem;
	font-weight: 600;
}

.nevra-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.nevra-input,
.nevra-select,
.nevra-textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--nevra-border);
	border-radius: 6px;
	font: inherit;
	background: #fff;
}

.nevra-textarea {
	resize: vertical;
	min-height: 90px;
}

/* Karty produktowe (styl Alumatex) */
.nevra-cards {
	display: grid;
	gap: 1rem;
}

.nevra-cards--2 {
	grid-template-columns: repeat(2, 1fr);
}
.nevra-cards--3 {
	grid-template-columns: repeat(3, 1fr);
}
.nevra-cards--4 {
	grid-template-columns: repeat(4, 1fr);
}

.nevra-card {
	border: 1px solid var(--nevra-border);
	border-radius: var(--nevra-radius);
	background: #fff;
	position: relative;
	overflow: hidden;
}

.nevra-card--product {
	padding: 0;
	display: flex;
	flex-direction: column;
}

.nevra-card--option {
	padding: 1.25rem;
}

.nevra-card--option .nevra-card__content {
	background: transparent;
	padding: 0;
	margin: 0;
}

.nevra-cards--inserts {
	grid-template-columns: repeat(3, 1fr);
}

.nevra-cards--inserts .nevra-card__media {
	padding: 0;
	overflow: hidden;
	border-radius: var(--nevra-radius) var(--nevra-radius) 0 0;
	flex: none;
	height: 180px;
}

.nevra-cards--inserts .nevra-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.nevra-cards--inserts .nevra-card--selectable:hover .nevra-card__media img {
	transform: scale(2);
}

.nevra-cards--inserts .nevra-card--selectable.is-disabled:hover .nevra-card__media img {
	transform: none;
}

.nevra-cards--inserts .nevra-card.is-disabled {
	pointer-events: auto;
	cursor: not-allowed;
	overflow: visible;
	opacity: 1;
}

.nevra-cards--inserts .nevra-card.is-disabled .nevra-card__media,
.nevra-cards--inserts .nevra-card.is-disabled .nevra-card__content {
	opacity: 0.35;
}

.nevra-cards--inserts .nevra-card.is-disabled::after {
	content: attr(data-tooltip);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: calc(100% - 1.5rem);
	padding: 0.45rem 0.65rem;
	border-radius: 6px;
	background: #1a1a1a;
	color: #fff;
	font-size: 0.75rem;
	line-height: 1.35;
	text-align: center;
	white-space: normal;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease, visibility 0.15s ease;
	z-index: 5;
	pointer-events: none;
}

.nevra-cards--inserts .nevra-card.is-disabled:hover::after,
.nevra-cards--inserts .nevra-card.is-disabled:focus-within::after {
	opacity: 1;
	visibility: visible;
}

.nevra-cards--insert-layouts .nevra-card__media {
	padding: 0;
	overflow: hidden;
	border-radius: var(--nevra-radius) var(--nevra-radius) 0 0;
	flex: none;
	height: 150px;
}

.nevra-cards--insert-layouts .nevra-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.nevra-cards--insert-layouts .nevra-card--selectable:hover .nevra-card__media img {
	transform: scale(1.08);
}

.nevra-cards--insert-layouts .nevra-card--product .nevra-card__content {
	min-height: 0;
	padding: 0.55rem 0.75rem 0.7rem;
	justify-content: center;
}

.nevra-cards--insert-layouts .nevra-card__heading {
	font-size: 0.875rem;
	font-weight: 600;
	text-align: center;
}

.nevra-cards--insert-layouts .nevra-card.is-disabled {
	pointer-events: auto;
	cursor: not-allowed;
	overflow: visible;
	opacity: 1;
}

.nevra-cards--insert-layouts .nevra-card.is-disabled .nevra-card__media,
.nevra-cards--insert-layouts .nevra-card.is-disabled .nevra-card__content {
	opacity: 0.35;
}

.nevra-cards--insert-layouts .nevra-card.is-disabled::after {
	content: attr(data-tooltip);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: calc(100% - 1.5rem);
	padding: 0.45rem 0.65rem;
	border-radius: 6px;
	background: #1a1a1a;
	color: #fff;
	font-size: 0.75rem;
	line-height: 1.35;
	text-align: center;
	white-space: normal;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease, visibility 0.15s ease;
	z-index: 5;
	pointer-events: none;
}

.nevra-cards--insert-layouts .nevra-card.is-disabled:hover::after,
.nevra-cards--insert-layouts .nevra-card.is-disabled:focus-within::after {
	opacity: 1;
	visibility: visible;
}

.nevra-cards--insert-layouts .nevra-card--selectable.is-disabled:hover .nevra-card__media img {
	transform: none;
}

#nevra-step-profile .nevra-card.is-disabled {
	pointer-events: auto;
	cursor: not-allowed;
	overflow: visible;
	opacity: 1;
}

#nevra-step-profile .nevra-card.is-disabled .nevra-card__media,
#nevra-step-profile .nevra-card.is-disabled .nevra-card__content {
	opacity: 0.35;
}

#nevra-step-profile .nevra-card.is-disabled::after {
	content: attr(data-tooltip);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: calc(100% - 1.5rem);
	padding: 0.45rem 0.65rem;
	border-radius: 6px;
	background: #1a1a1a;
	color: #fff;
	font-size: 0.75rem;
	line-height: 1.35;
	text-align: center;
	white-space: normal;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease, visibility 0.15s ease;
	z-index: 5;
	pointer-events: none;
}

#nevra-step-profile .nevra-card.is-disabled:hover::after,
#nevra-step-profile .nevra-card.is-disabled:focus-within::after {
	opacity: 1;
	visibility: visible;
}

.nevra-card.is-disabled {
	opacity: 0.35;
	pointer-events: none;
}

.nevra-card--selectable {
	cursor: pointer;
	transition:
		border-color 0.15s,
		box-shadow 0.15s;
}

.nevra-card--selectable input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.nevra-card--selectable:has(input:checked),
.nevra-card--active {
	border-color: var(--nevra-accent);
	box-shadow: 0 0 0 2px var(--nevra-accent);
}

.nevra-card--type {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.25rem;
	min-height: 140px;
}

.nevra-card--other {
	background: #fafafa;
}

.nevra-card__check {
	position: absolute;
	top: 0.65rem;
	right: 0.65rem;
	width: 26px;
	height: 26px;
	background: var(--nevra-accent);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
	z-index: 2;
}

.nevra-card__media {
	display: block;
	background: #fff;
	padding: 1rem 1rem 0;
}

.nevra-card--product .nevra-card__media {
	flex: 1;
	/* min-height: 75px; */
	min-height: 120px;
}

.nevra-card--product .nevra-card__media:empty {
	min-height: 180px;
	background: #f8f8f8;
}

.nevra-card__media img {
	width: 100%;
	height: 155px;
	object-fit: contain;
	display: block;
}

.nevra-card__content {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.nevra-card--product .nevra-card__content {
	background: var(--nevra-card-footer);
	padding: 1rem 1.25rem 1.25rem;
	margin-top: auto;
	min-height: 170px;
}

.nevra-card__dimensions {
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.3;
	color: var(--nevra-muted);
}

.nevra-card__heading {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--nevra-text);
}

.nevra-card__heading + .nevra-card__podpis {
	margin-top: 0.4rem;
}

.nevra-card__podpis {
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	font-size: 0.9375rem;
	color: var(--nevra-muted);
	line-height: 1.3;
}

.nevra-card__desc {
	font-size: 0.875rem;
	color: var(--nevra-muted);
	margin-top: 0.35rem;
	line-height: 1.45;
}

.nevra-konfigurator__type-switch {
	display: grid;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.nevra-konfigurator__type-switch--3 {
	grid-template-columns: repeat(3, 1fr);
}

.nevra-badge {
	display: inline-block;
	margin-top: 0.35rem;
	font-size: 0.75rem;
	color: var(--nevra-accent);
	font-weight: 600;
}

.nevra-hint {
	font-size: 0.8125rem;
	color: var(--nevra-muted);
	margin: 0;
	line-height: 1.45;
}

.nevra-hint--section {
	margin-top: 1rem;
}

/* Diagram */
.nevra-diagram {
	border: 1px dashed var(--nevra-border);
	border-radius: var(--nevra-radius);
	padding: 1rem;
	background: #fafafa;
	min-height: 200px;
}

.nevra-diagram__canvas {
	min-height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nevra-diagram__canvas svg {
	max-width: 100%;
	height: auto;
}

.nevra-diagram__caption {
	text-align: center;
	font-size: 0.8125rem;
	color: var(--nevra-muted);
	margin: 0.5rem 0 0;
}

.nevra-diagram__placeholder {
	min-height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--nevra-muted);
	font-size: 0.875rem;
	text-align: center;
	background: #eee;
	border-radius: 4px;
}

.nevra-personalization-example {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.nevra-personalization-example__hint {
	margin: 0.5rem 0 0;
	font-size: 0.8125rem;
}

.nevra-shutter {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto auto;
	gap: 0.5rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.nevra-shutter__main {
	display: contents;
}

.nevra-shutter__frame {
	position: relative;
	grid-column: 1;
	grid-row: 1;
	width: 100%;
	max-width: 772px;
	min-width: 0;
	aspect-ratio: 772 / 649;
	background: #f3f3f3;
	border-radius: 4px;
	overflow: hidden;
}

.nevra-shutter__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: fill;
	pointer-events: none;
	user-select: none;
}

.nevra-shutter__active-slat {
	position: absolute;
	left: 0;
	width: 100%;
	top: var(--active-slat-top, 46.07%);
	height: var(--active-slat-height, 7.55%);
	pointer-events: none;
	z-index: 1;
	background: rgba(255, 255, 255, 0.72);
	mix-blend-mode: soft-light;
	transition: top 180ms ease;
}

.nevra-shutter__logo {
	position: absolute;
	left: var(--logo-left, 50%);
	top: var(--logo-top, 50%);
	transform: translate(-50%, -50%);
	width: 18%;
	aspect-ratio: 1;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 2px solid #64d19c;
	border-radius: 4px;
	overflow: hidden;
	box-sizing: border-box;
	padding: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	transition:
		left 180ms ease,
		top 180ms ease;
}

.nevra-shutter__logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transform: scale(1.2);
	pointer-events: none;
}

.nevra-shutter__arrows-v {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.5rem;
	grid-column: 2;
	grid-row: 1;
	align-self: center;
}

.nevra-shutter__arrows-h {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	grid-column: 1;
	grid-row: 2;
	max-width: 772px;
}

.nevra-konfigurator .nevra-shutter__btn,
.nevra-konfigurator .nevra-shutter__btn:hover,
.nevra-konfigurator .nevra-shutter__btn:focus,
.nevra-konfigurator .nevra-shutter__btn:focus-visible,
.nevra-konfigurator .nevra-shutter__btn:active {
	box-sizing: border-box;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	min-height: 32px;
	width: 32px;
	height: 32px;
	padding: 0 !important;
	border: 1px solid #64d19c !important;
	border-radius: 4px;
	background: #fff !important;
	background-color: #fff !important;
	color: #64d19c !important;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1.125rem;
	line-height: 1;
	cursor: pointer;
	font-variant-emoji: text;
	-webkit-text-fill-color: #64d19c;
	outline: none;
	box-shadow: none;
	text-decoration: none;
	text-align: center;
}

/* Korekta optyczna glyphów strzałek w kwadracie */
.nevra-konfigurator .nevra-shutter__btn[data-dir="up"] {
	transform: translate(0.5px, -1px);
}

.nevra-konfigurator .nevra-shutter__btn[data-dir="down"] {
	transform: translate(0.5px, -1px);
}

.nevra-konfigurator .nevra-shutter__btn[data-dir="left"] {
	transform: translate(1px, -1px);
}

.nevra-konfigurator .nevra-shutter__btn[data-dir="right"] {
	transform: translate(0.5px, -1px);
}

.nevra-konfigurator .nevra-shutter__btn[hidden] {
	display: none !important;
}

/* Podgląd wymiarów wycieraczki (wewnętrzna / zewnętrzna) */
.nevra-konfigurator[data-type="wewnetrzna"] .nevra-mat-preview,
.nevra-konfigurator[data-type="zewnetrzna"] .nevra-mat-preview {
	min-height: 280px;
}

.nevra-konfigurator[data-type="wewnetrzna"] .nevra-mat-preview__canvas,
.nevra-konfigurator[data-type="zewnetrzna"] .nevra-mat-preview__canvas {
	width: 100%;
	min-height: 220px;
}

.nevra-konfigurator[data-type="wewnetrzna"] .nevra-mat-preview__svg,
.nevra-konfigurator[data-type="zewnetrzna"] .nevra-mat-preview__svg {
	display: block;
	width: 100%;
	height: auto;
}

.nevra-konfigurator[data-type="wewnetrzna"] .nevra-mat-preview__summary,
.nevra-konfigurator[data-type="zewnetrzna"] .nevra-mat-preview__summary {
	margin: 0.75rem 0 0;
	text-align: center;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--nevra-text, #1a1a1a);
}

.nevra-konfigurator[data-type="wewnetrzna"] .nevra-field__error,
.nevra-konfigurator[data-type="zewnetrzna"] .nevra-field__error {
	font-size: 0.8125rem;
	color: #b42318;
	margin-top: 0.35rem;
	line-height: 1.4;
}

.nevra-konfigurator[data-type="wewnetrzna"] .nevra-field__error[hidden],
.nevra-konfigurator[data-type="zewnetrzna"] .nevra-field__error[hidden] {
	display: none !important;
}

.nevra-konfigurator[data-type="wewnetrzna"] .nevra-input.is-invalid,
.nevra-konfigurator[data-type="wewnetrzna"] .nevra-select.is-invalid,
.nevra-konfigurator[data-type="zewnetrzna"] .nevra-input.is-invalid,
.nevra-konfigurator[data-type="zewnetrzna"] .nevra-select.is-invalid {
	border-color: #b42318;
}

.nevra-konfigurator[data-type="wewnetrzna"] .nevra-input:focus,
.nevra-konfigurator[data-type="wewnetrzna"] .nevra-select:focus,
.nevra-konfigurator[data-type="zewnetrzna"] .nevra-input:focus,
.nevra-konfigurator[data-type="zewnetrzna"] .nevra-select:focus {
	outline: 2px solid var(--nevra-accent, #3d9b35);
	outline-offset: 2px;
	border-color: var(--nevra-accent, #3d9b35);
}

.nevra-konfigurator[data-type="wewnetrzna"] .nevra-mat-preview__thresholds .nevra-threshold-zone,
.nevra-konfigurator[data-type="zewnetrzna"] .nevra-mat-preview__thresholds .nevra-threshold-zone {
	fill: rgba(61, 155, 53, 0.25);
	stroke: var(--nevra-accent, #3d9b35);
	stroke-width: 1;
	cursor: pointer;
}

.nevra-konfigurator[data-type="wewnetrzna"] .nevra-mat-preview__thresholds .nevra-threshold-zone.is-active,
.nevra-konfigurator[data-type="zewnetrzna"] .nevra-mat-preview__thresholds .nevra-threshold-zone.is-active {
	fill: rgba(61, 155, 53, 0.55);
}

@media (max-width: 768px) {
	.nevra-konfigurator[data-type="wewnetrzna"] .nevra-mat-preview,
	.nevra-konfigurator[data-type="zewnetrzna"] .nevra-mat-preview {
		margin-top: 1rem;
		width: 100%;
	}
}

/* Wymagana głębokość montażu */
.nevra-mount-depth {
	margin-top: 1.5rem;
}

.nevra-mount-depth__title {
	font-size: 0.9375rem;
	margin: 0 0 0.75rem;
}

.nevra-mount-depth__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.nevra-mount-depth__item {
	display: grid;
	grid-template-columns: minmax(9rem, 1.1fr) minmax(7rem, 0.7fr) minmax(0, 1.6fr);
	gap: 0.75rem;
	align-items: start;
	padding: 0.75rem 1rem;
	border: 1px solid var(--nevra-border);
	border-radius: var(--nevra-radius);
	background: #fff;
	font-size: 0.8125rem;
	line-height: 1.4;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.nevra-mount-depth__item.is-active {
	border-color: var(--nevra-accent);
	box-shadow: 0 0 0 2px var(--nevra-accent);
	background: color-mix(in srgb, var(--nevra-accent) 8%, #fff);
}

.nevra-mount-depth__label {
	font-weight: 600;
	color: var(--nevra-text);
}

.nevra-mount-depth__depth {
	font-weight: 700;
	color: var(--nevra-accent);
}

.nevra-mount-depth__desc {
	color: var(--nevra-muted);
}

@media (max-width: 640px) {
	.nevra-mount-depth__item {
		grid-template-columns: 1fr;
		gap: 0.25rem;
	}
}

/* Tabela info (legacy) */
.nevra-info-table {
	margin-top: 1.5rem;
	overflow-x: auto;
}

.nevra-info-table h3 {
	font-size: 0.9375rem;
	margin: 0 0 0.75rem;
}

.nevra-info-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.8125rem;
}

.nevra-info-table th,
.nevra-info-table td {
	border: 1px solid var(--nevra-border);
	padding: 0.5rem;
	text-align: left;
}

.nevra-info-table th {
	background: #f5f5f5;
}

/* Kolorystyka */
.nevra-palettes {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.nevra-palette {
	border: 1px solid var(--nevra-border);
	border-radius: var(--nevra-radius);
	padding: 1rem;
	background: #fff;
}

.nevra-palette.is-disabled {
	opacity: 0.35;
	pointer-events: none;
}

.nevra-palette__title {
	display: block;
	margin-bottom: 0.85rem;
	font-size: 0.9375rem;
}

.nevra-swatches {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.3rem 1.5rem;
}

.nevra-swatch {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	align-items: stretch;
	cursor: pointer;
	font-size: 0.75rem;
	text-align: center;
	position: relative;
}

.nevra-swatch input {
	position: absolute;
	opacity: 0;
}

.nevra-swatch__preview {
	width: 100%;
	aspect-ratio: 1 / 1;
	border: 2px solid var(--nevra-border);
	border-radius: 4px;
	background-size: cover;
	background-position: center;
	display: block;
	overflow: hidden;
	position: relative;
}

.nevra-swatch__preview::before {
	content: "";
	position: absolute;
	inset: 0;
	background: inherit;
	background-size: cover;
	background-position: center;
	transition: transform 0.35s ease;
}

.nevra-swatch:hover .nevra-swatch__preview::before {
	transform: scale(2);
}

.nevra-swatch__label {
	line-height: 1.3;
	color: var(--nevra-text);
}

.nevra-swatch:has(input:checked) .nevra-swatch__preview {
	border-color: var(--nevra-accent);
	box-shadow: 0 0 0 1px var(--nevra-accent);
}

.nevra-swatch.is-disabled {
	pointer-events: auto;
	cursor: not-allowed;
}

.nevra-swatch.is-disabled .nevra-swatch__preview,
.nevra-swatch.is-disabled .nevra-swatch__label {
	opacity: 0.35;
}

.nevra-swatch.is-disabled:hover .nevra-swatch__preview::before {
	transform: none;
}

.nevra-swatch.is-disabled::after {
	content: attr(data-tooltip);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: calc(100% - 1rem);
	padding: 0.45rem 0.65rem;
	border-radius: 6px;
	background: #1a1a1a;
	color: #fff;
	font-size: 0.75rem;
	line-height: 1.35;
	text-align: center;
	white-space: normal;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease, visibility 0.15s ease;
	z-index: 5;
	pointer-events: none;
}

.nevra-swatch.is-disabled:hover::after,
.nevra-swatch.is-disabled:focus-within::after {
	opacity: 1;
	visibility: visible;
}

/* Akcesoria */
.nevra-accessories {
	display: grid;
	gap: 1rem;
}

.nevra-threshold-sides {
	margin-top: 1.25rem;
	padding: 1rem 1.15rem;
	border: 1px solid var(--nevra-border);
	border-radius: var(--nevra-radius);
	background: #fafafa;
}

.nevra-threshold-sides__title {
	font-size: 0.9375rem;
	margin: 0 0 0.5rem;
}

.nevra-threshold-sides__canvas {
	margin: 0.75rem 0;
	max-width: 320px;
}

.nevra-threshold-sides__svg {
	display: block;
	width: 100%;
	height: auto;
}

.nevra-threshold-sides .nevra-threshold-zone {
	fill: rgba(61, 155, 53, 0.25);
	stroke: var(--nevra-accent, #3d9b35);
	stroke-width: 1;
	cursor: pointer;
}

.nevra-threshold-sides .nevra-threshold-zone.is-active {
	fill: rgba(61, 155, 53, 0.55);
}

.nevra-threshold-sides .nevra-threshold-count {
	margin: 0.35rem 0 0;
	font-size: 0.875rem;
}

.nevra-hint--warning {
	color: #b42318;
	margin-top: 0.5rem;
}

.nevra-accessory {
	display: grid;
	grid-template-columns: 24px 160px 1fr;
	gap: 1.25rem;
	align-items: center;
	padding: 1.25rem;
	border: 1px solid var(--nevra-border);
	border-radius: var(--nevra-radius);
	background: #fff;
	cursor: pointer;
	transition:
		border-color 0.15s,
		box-shadow 0.15s;
}

.nevra-accessory:has(input:checked) {
	border-color: var(--nevra-accent);
	box-shadow: 0 0 0 2px var(--nevra-accent);
}

.nevra-accessory__input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--nevra-accent);
	flex-shrink: 0;
}

.nevra-accessory__image {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--nevra-card-footer);
	border-radius: 8px;
	min-height: 110px;
	padding: 0.5rem;
}

.nevra-accessory__image img {
	width: 100%;
	max-height: 100px;
	object-fit: contain;
	display: block;
}

.nevra-accessory__body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 0;
}

.nevra-accessory__title {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.nevra-accessory__desc {
	font-size: 0.875rem;
	color: var(--nevra-muted);
	line-height: 1.5;
}

.nevra-checkbox,
.nevra-radio-inline {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	cursor: pointer;
	margin-bottom: 0.5rem;
}

.nevra-checkbox input,
.nevra-radio-inline input {
	accent-color: var(--nevra-accent);
}

.nevra-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 1rem;
}

/* Przyciski */
.nevra-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.25rem;
	border-radius: 999px;
	font: inherit;
	font-weight: 600;
	font-size: 0.8125rem;
	cursor: pointer;
	border: none;
	text-decoration: none;
	transition:
		opacity 0.15s,
		transform 0.15s;
	align-self: flex-start;
}

.nevra-btn:hover {
	opacity: 0.9;
}

.nevra-btn--primary {
	background: var(--nevra-accent);
	color: #fff;
	width: 100%;
	padding: 1rem 1.5rem;
	font-size: 0.9375rem;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: 6px;
	letter-spacing: 0.02em;
}

.nevra-btn--pill {
	background: var(--nevra-accent);
	color: #fff !important;
}

.nevra-btn--outline {
	background: transparent;
	border: 2px solid var(--nevra-accent);
	color: var(--nevra-accent);
}

.nevra-submit-area {
	margin-top: 1.5rem;
}

.nevra-submit-note {
	text-align: center;
	color: var(--nevra-muted);
	margin: 0.75rem 0;
	font-size: 0.9375rem;
}

.nevra-trust {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
	font-size: 0.8125rem;
	color: var(--nevra-muted);
}

.nevra-trust li::before {
	content: "✓ ";
	color: var(--nevra-accent);
	font-weight: 700;
}

.nevra-form-message {
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 6px;
}

.nevra-form-message.is-success {
	background: #e8f5e9;
	color: #2e7d32;
}

.nevra-form-message.is-error {
	background: #ffebee;
	color: #c62828;
}

/* Podsumowanie */
.nevra-konfigurator__summary {
	position: sticky;
	top: 1.5rem;
}

.nevra-summary__inner {
	border: 1px solid var(--nevra-border);
	border-radius: var(--nevra-radius);
	padding: 1.25rem;
	background: #fafafa;
}

.nevra-summary__inner h3 {
	margin: 0 0 1rem;
	font-size: 1rem;
}

.nevra-summary__list {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem;
	font-size: 0.875rem;
}

.nevra-summary__list li {
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--nevra-border);
}

.nevra-summary__empty {
	color: var(--nevra-muted);
	font-size: 0.875rem;
	font-style: italic;
}

.nevra-summary__list strong {
	display: block;
	font-size: 0.75rem;
	color: var(--nevra-muted);
	text-transform: uppercase;
}

.nevra-summary__estimate {
	padding-top: 0.75rem;
	border-top: 2px solid var(--nevra-accent);
	font-size: 0.9375rem;
}

.nevra-summary__estimate span {
	display: block;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--nevra-accent);
	margin: 0.25rem 0;
}

.nevra-threshold-zone {
	fill: color-mix(in srgb, var(--nevra-accent) 25%, #fff);
	stroke: var(--nevra-accent);
	stroke-width: 2;
	cursor: pointer;
}

.nevra-threshold-zone.is-active {
	fill: var(--nevra-accent);
}

/* Wszystkie konfiguratory – wyśrodkowanie i szerokość jak Elementor Boxed */
@media (min-width: 1025px) {
	.nevra-konfigurator-outer {
		width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		padding-left: max(
			1rem,
			calc((100vw - var(--nevra-layout-width, 1140px)) / 2)
		);
		padding-right: max(
			1rem,
			calc((100vw - var(--nevra-layout-width, 1140px)) / 2)
		);
		box-sizing: border-box;
	}

	.nevra-konfigurator-outer > .nevra-konfigurator {
		width: 100%;
		max-width: var(--nevra-layout-width, 1140px);
		margin-inline: auto;
	}

	.nevra-konfigurator-outer .nevra-konfigurator__layout {
		width: 100%;
	}
}

/* Krata stalowa – rezerwacja kolumny diagramu jak w kroku „Rozmiar systemu” */
.nevra-konfigurator[data-type="krata"] .nevra-section__grid-spacer {
	display: block;
}

@media (max-width: 1024px) {
	.nevra-konfigurator__layout {
		grid-template-columns: 1fr;
	}

	.nevra-konfigurator__summary {
		position: static;
		order: -1;
	}

	.nevra-palettes {
		grid-template-columns: 1fr;
	}

	.nevra-swatches {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 900px) {
	.nevra-cards--insert-layouts {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.nevra-cards--3,
	.nevra-cards--4,
	.nevra-cards--inserts,
	.nevra-cards--insert-layouts,
	.nevra-konfigurator__type-switch--3,
	.nevra-section__grid,
	.nevra-contact-grid,
	.nevra-field-row {
		grid-template-columns: 1fr;
	}

	.nevra-trust {
		flex-direction: column;
		align-items: center;
		gap: 0.5rem;
	}

	.nevra-accessory {
		grid-template-columns: 24px 1fr;
		grid-template-areas:
			"check body"
			"image image";
	}

	.nevra-accessory__input {
		grid-area: check;
	}

	.nevra-accessory__body {
		grid-area: body;
	}

	.nevra-accessory__image {
		grid-area: image;
		min-height: 120px;
	}

	.nevra-konfigurator[data-type="krata"] .nevra-section__grid-spacer {
		display: none;
	}
}
