/**
 * TEST — moduły ławki: suwaki jak #14 (hoker-mobile-slider-row), ikona po lewej, węższy tor.
 */

/* STOLARZ: KREATOR (order 1) → Tabela modułów (order 2). */
body.hoker-bench-module-selector-active #hoker-seat-configurator {
	display: flex !important;
	flex-direction: column !important;
}

body.hoker-bench-module-selector-active #hoker-seat-configurator #hoker-seat-choice-summary {
	order: 1 !important;
}

body.hoker-bench-module-selector-active #hoker-seat-configurator > .hoker-bench-module-row {
	order: 2 !important;
}

.single-product.hoker-bench-module-selector-active .hoker-bench-module-row {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0 0 14px;
	clear: both;
}

.single-product.hoker-bench-module-selector-active #hoker-seat-configurator > .hoker-bench-module-row {
	margin-top: 0;
}

/* Biały blok jak #hoker-mobile-sliders na #14. */
.single-product.hoker-bench-module-selector-active .hoker-bench-module-selector {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 10px 0 14px;
	padding: 14px 12px 12px;
	border: 1px solid rgba(139, 0, 0, 0.18);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.single-product.hoker-bench-module-selector-active .hoker-bench-module-selector.is-module-validation-hint {
	box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.35);
}

/* Mrugające oczko gałki suwaka — ten sam wzorzec co #8357 (.hoker-slider-thumb-hint). */
@keyframes hoker-bench-module-slider-thumb-hint-blink {
	0%,
	46% {
		background: #fff;
		border-color: #8d1c2f;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	}
	54%,
	100% {
		background: #8d1c2f;
		border-color: #8d1c2f;
		box-shadow:
			inset 0 0 0 2px #fff,
			0 2px 8px rgba(0, 0, 0, 0.16);
	}
}

.single-product.hoker-bench-module-selector-active .hoker-bench-module-range.hoker-slider-thumb-hint::-webkit-slider-thumb {
	animation: hoker-bench-module-slider-thumb-hint-blink 1.05s ease-in-out infinite;
}

.single-product.hoker-bench-module-selector-active .hoker-bench-module-range.hoker-slider-thumb-hint::-moz-range-thumb {
	animation: hoker-bench-module-slider-thumb-hint-blink 1.05s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
	.single-product.hoker-bench-module-selector-active .hoker-bench-module-range.hoker-slider-thumb-hint::-webkit-slider-thumb,
	.single-product.hoker-bench-module-selector-active .hoker-bench-module-range.hoker-slider-thumb-hint::-moz-range-thumb {
		animation-duration: 1.6s;
	}
}

/* Mobile / dotyk: mruganie tylko z nakładki JS (hoker-eye-blink-dot) — bez podwójnego oczka. */
@media (hover: none), (pointer: coarse) {
	.single-product.hoker-bench-module-selector-active .hoker-bench-module-range.hoker-slider-thumb-hint::-webkit-slider-thumb,
	.single-product.hoker-bench-module-selector-active .hoker-bench-module-range.hoker-slider-thumb-hint::-moz-range-thumb {
		animation: none !important;
	}
}

.single-product .hoker-bench-module-selector__title {
	margin: 0 0 10px;
	padding: 0;
}

.single-product .hoker-bench-module-selector__lead {
	margin: 0 0 12px;
	padding: 0;
	color: #666;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

body.hoker-bench-module-selector-active #hoker-seat-choice-summary dl .hoker-seat-summary-bench-module-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: nowrap;
}

/* Nogi w KREATORZE — w każdym wierszu modułu (wzór: Szerokość + nogi na #8375). */
body.hoker-bench-module-selector-active .hoker-seat-summary-bench-module-row {
	align-items: center;
}

body.hoker-bench-module-selector-active .hoker-seat-summary-bench-module-row[hidden],
body.hoker-bench-module-selector-active .hoker-seat-summary-bench-module-row.hoker-seat-summary-bench-module-row--optional-hidden {
	display: none !important;
}

body.hoker-bench-module-selector-active .hoker-seat-summary-bench-module-row .hoker-bench-module-summary-legs {
	display: inline-block;
	flex: 1 1 auto;
	min-width: 0;
	margin: 0 10px;
	color: #6b3a42;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	white-space: normal;
	transform-origin: center center;
	will-change: transform, color;
}

body.hoker-bench-module-selector-active .hoker-seat-summary-bench-module-row .hoker-bench-module-summary-legs[hidden] {
	display: none !important;
}

body.hoker-bench-module-selector-active .hoker-seat-summary-bench-module-row .hoker-bench-module-summary-legs.hoker-summary-legs-flash {
	animation: hoker-bench-module-legs-flash 0.58s cubic-bezier(0.34, 1.45, 0.64, 1);
}

@keyframes hoker-bench-module-legs-flash {
	0% {
		transform: scale(1);
		color: #6b3a42;
	}
	30% {
		transform: scale(1.28);
		color: #8d1c2f;
	}
	100% {
		transform: scale(1);
		color: #6b3a42;
	}
}

body.hoker-bench-module-selector-active .hoker-seat-summary-bench-module-row dd {
	flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
	body.hoker-bench-module-selector-active .hoker-seat-summary-bench-module-row .hoker-bench-module-summary-legs.hoker-summary-legs-flash {
		animation: none;
	}
}

/* Pionowo: lewy → środkowy → prawy. */
.single-product .hoker-bench-module-selector__strip {
	display: flex;
	flex-direction: column;
	gap: 0;
	align-items: stretch;
}

.single-product .hoker-bench-module-selector__unit {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.single-product .hoker-bench-module-selector__unit:last-child {
	margin-bottom: 0;
}

.single-product .hoker-bench-module-icon {
	display: block;
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 52px;
	height: 52px;
	margin: 26px 0 0;
	padding: 3px;
	border: 1px solid #ded2ca;
	border-radius: 10px;
	background: #fffaf4;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.single-product .hoker-bench-module-icon img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 7px;
	object-fit: cover;
}

.single-product .hoker-bench-module-selector__unit-body {
	flex: 1 1 auto;
	min-width: 0;
}

/* Suwak = ten sam markup/co #14; tylko węższy tor (kolumna obok ikony). */
.single-product .hoker-bench-module-selector .hoker-mobile-slider-row {
	display: block;
	width: 100%;
	margin: 0;
}

.single-product .hoker-bench-module-cart-choice {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	vertical-align: middle;
}

.single-product .hoker-bench-module-cart-choice img {
	display: block;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	object-fit: cover;
}

/* Prawa kolumna — ukryj stary jeden suwak #14. */
body.hoker-bench-module-selector-active #hoker-seat-configurator #hoker-mobile-sliders,
body.hoker-bench-module-selector-active #hoker-seat-configurator .h-field-width,
body.hoker-bench-module-selector-active #hoker-seat-configurator .hoker-seat-summary-width-row {
	display: none !important;
}

/* Podgląd modułu — osobny od hoker-seat-fabric-zoom (bez „jaja” tkanin). */
.hoker-bench-module-zoom {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000001;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	opacity: 0;
	pointer-events: none;
	transform: translate(-9999px, -9999px);
	transition: opacity 0.12s ease;
}

.hoker-bench-module-zoom.is-visible {
	opacity: 1;
}

.hoker-bench-module-zoom:not(.is-visible) {
	visibility: hidden;
}

.hoker-bench-module-zoom__image {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
}

.hoker-bench-module-zoom__label {
	display: block;
	margin: 0;
	padding: 0;
}

/* Desktop — kwadrat 10 cm obok ikony. */
@media (min-width: 769px) {
	.hoker-bench-module-zoom.is-visible:not(.is-touch-preview) {
		padding: 8px;
		border: 1px solid rgba(118, 0, 34, 0.2);
		border-radius: 14px;
		background: #fff;
		box-shadow: 0 18px 45px rgba(36, 31, 28, 0.25);
	}

	.hoker-bench-module-zoom.is-visible:not(.is-touch-preview) .hoker-bench-module-zoom__image {
		width: 10cm;
		height: 10cm;
		max-width: 10cm;
		max-height: 10cm;
		aspect-ratio: 1 / 1;
		border-radius: 10px;
	}

	.hoker-bench-module-zoom.is-visible:not(.is-touch-preview) .hoker-bench-module-zoom__label {
		margin-top: 7px;
		color: #241f1c;
		font-size: 12px;
		font-weight: 900;
		text-align: center;
	}

	.single-product .hoker-bench-module-icon:hover {
		border-color: rgba(118, 0, 34, 0.45);
		box-shadow: 0 4px 12px rgba(36, 31, 28, 0.08);
	}
}

/* Mobile / tablet — tylko kwadrat na środku (bez szarej obwódki). */
@media (max-width: 1024px) {
	.hoker-bench-module-zoom-backdrop {
		position: fixed;
		inset: 0;
		z-index: 1000000;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		opacity: 0;
		pointer-events: none;
		appearance: none;
		-webkit-appearance: none;
		-webkit-tap-highlight-color: transparent;
	}

	.hoker-bench-module-zoom-backdrop.is-visible {
		opacity: 1;
		pointer-events: auto;
		cursor: pointer;
	}

	body.hoker-bench-module-zoom-open {
		overflow: hidden;
	}

	.hoker-bench-module-zoom.is-touch-preview.is-visible {
		top: 50% !important;
		left: 50% !important;
		right: auto !important;
		bottom: auto !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		justify-content: center !important;
		width: auto !important;
		height: auto !important;
		padding: 0 !important;
		border: 0 !important;
		border-radius: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
		transform: translate(-50%, -50%) !important;
		pointer-events: none;
	}

	.hoker-bench-module-zoom.is-touch-preview.is-visible .hoker-bench-module-zoom__image {
		width: min(78vw, 300px) !important;
		height: min(78vw, 300px) !important;
		max-width: min(78vw, 300px) !important;
		max-height: min(78vw, 300px) !important;
		aspect-ratio: 1 / 1 !important;
		box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
		pointer-events: auto;
		cursor: pointer;
	}

	.hoker-bench-module-zoom.is-touch-preview.is-visible .hoker-bench-module-zoom__label {
		width: min(78vw, 300px);
		margin: 10px 0 0;
		color: #241f1c;
		font-size: 13px;
		font-weight: 900;
		line-height: 1.3;
		text-align: center;
		text-shadow: 0 1px 3px rgba(255, 255, 255, 0.85);
		pointer-events: none;
	}
}

@media (max-width: 768px) {
	body.hoker-bench-module-selector-active #hoker-seat-configurator > .hoker-bench-module-row {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 0 10px !important;
	}

	.single-product.hoker-bench-module-selector-active .hoker-bench-module-selector {
		margin: 0 0 10px;
		padding: 14px 12px 12px;
	}

	.single-product .hoker-bench-module-icon {
		width: 48px;
		height: 48px;
		margin-top: 24px;
	}

	body.postid-12072.hoker-bench-module-selector-active .hoker-bench-module-selector .hoker-mobile-slider-row,
	body.postid-12072.hoker-bench-module-selector-active .hoker-bench-module-selector__unit-body,
	body.hoker-bench-corner-modular-active.hoker-bench12072-module-width-badges-active.hoker-bench-module-selector-active .hoker-bench-module-selector .hoker-mobile-slider-row,
	body.hoker-bench-corner-modular-active.hoker-bench12072-module-width-badges-active.hoker-bench-module-selector-active .hoker-bench-module-selector__unit-body {
		overflow: visible;
	}
}

.hoker-bench-module-value.is-unset {
	color: #646970;
	font-weight: 600;
}

body.hoker-bench-module-width-client-start .hoker-bench-module-slider-row .hoker-bench-module-value.is-unset {
	font-style: italic;
}

/*
 * #12072 — niewidoczny hitbox suwaków modułów (tylko CSS).
 * Tor wizualny cienki (4 px); padding 10 px rozszerza cel kursora (~30 px).
 */
body.postid-12072.hoker-bench-module-selector-active .hoker-bench-module-selector .hoker-bench-module-range,
body.hoker-bench-corner-modular-active.hoker-bench12072-module-width-badges-active.hoker-bench-module-selector-active .hoker-bench-module-selector .hoker-bench-module-range {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: content-box;
	width: 100%;
	height: 10px;
	padding: 10px 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	outline: none;
	cursor: pointer;
	touch-action: pan-x;
	-webkit-tap-highlight-color: transparent;
}

body.postid-12072.hoker-bench-module-selector-active .hoker-bench-module-selector .hoker-bench-module-range::-webkit-slider-runnable-track {
	height: 4px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, #8b0000, #d06666);
}

body.postid-12072.hoker-bench-module-selector-active .hoker-bench-module-selector .hoker-bench-module-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 28px;
	height: 28px;
	margin-top: -12px;
	border: 3px solid #8b0000;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
	cursor: grab;
}

body.postid-12072.hoker-bench-module-selector-active .hoker-bench-module-selector .hoker-bench-module-range::-moz-range-track {
	height: 4px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, #8b0000, #d06666);
}

body.postid-12072.hoker-bench-module-selector-active .hoker-bench-module-selector .hoker-bench-module-range::-moz-range-thumb {
	width: 28px;
	height: 28px;
	border: 3px solid #8b0000;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
	cursor: grab;
}
