/* DoorFloor - kalkulator paczek, montaż w koszyku (2026-09-10). Kolory z palety Blocksy. */

.df-calc,
.df-inst,
.df-modal {
	--df-green: var(--theme-palette-color-1, #23563f);
	--df-ink: var(--theme-palette-color-4, #152420);
	--df-text: var(--theme-palette-color-3, #42504b);
	--df-line: var(--theme-palette-color-5, #e2edef);
	--df-soft: var(--theme-palette-color-6, #eef4f5);
	--df-muted: #6b7a75;
	--df-green-soft: #e6f0eb;
}

/* ---------- Kalkulator ---------- */

.df-calc {
	width: 100%;
	margin: 0 0 18px;
	border: 1px solid var(--df-line);
	border-radius: 20px;
	background: #fff;
	color: var(--df-text);
	font-size: 14px;
	line-height: 1.45;
	overflow: hidden;
}

.df-calc__modes {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	border-bottom: 1px solid var(--df-line);
}

.df-calc__mode {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 14px 16px 13px;
	background: var(--df-soft);
	cursor: pointer;
	transition: background-color .15s ease;
}

/* w dodatkowym CSS strony jest globalne "label { margin-right: 10px !important }" */
.df-calc label.df-calc__mode,
.df-calc label.df-calc__label,
.df-calc label.df-calc__waste {
	margin-right: 0 !important;
}

.df-calc__mode + .df-calc__mode {
	border-left: 1px solid var(--df-line);
}

.df-calc__mode:hover {
	background: #e8f0f1;
}

.df-calc__mode.is-active {
	background: #fff;
	box-shadow: inset 0 -3px 0 var(--df-green);
}

.df-calc__mode input[type="radio"] {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--df-green);
	cursor: pointer;
}

.df-calc__mode-name {
	padding-right: 26px;
	color: var(--df-ink);
	font-weight: 600;
}

.df-calc__mode-price {
	color: var(--df-ink);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	white-space: nowrap;
}

.df-calc__mode-price small {
	margin-left: 1px;
	font-size: 13px;
	font-weight: 600;
}

.df-calc__mode.is-active .df-calc__mode-price {
	color: var(--df-green);
}

.df-calc__mode-note {
	color: var(--df-muted);
	font-size: 12px;
}

.df-calc__body {
	padding: 16px 18px 18px;
}

.df-calc__pack {
	margin: 0 0 12px;
	font-size: 13px;
}

.df-calc__pack strong {
	color: var(--df-ink);
}

.df-calc__label {
	display: block;
	margin: 0 0 8px;
	color: var(--df-ink);
	font-weight: 600;
}

.df-calc__field {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 50px;
	padding: 0 20px 0 16px;
	border: 1px solid var(--df-line);
	border-radius: var(--theme-form-field-border-radius, 30px);
	background: #fff;
	transition: border-color .15s ease;
}

.df-calc__field:focus-within {
	border-color: var(--df-green);
}

.df-calc__field-icon {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	fill: var(--df-green);
}

.df-calc .df-calc__field input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--df-ink);
	font-size: 16px;
	font-weight: 600;
	-moz-appearance: textfield;
}

.df-calc .df-calc__field input::-webkit-outer-spin-button,
.df-calc .df-calc__field input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.df-calc .df-calc__field input:focus {
	outline: none;
	box-shadow: none;
}

.df-calc__unit {
	color: var(--df-muted);
	font-weight: 600;
}

.df-calc__waste {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 12px 0 0;
	color: var(--df-ink);
	font-size: 13.5px;
	line-height: 1.4;
	cursor: pointer;
}

.df-calc__waste input[type="checkbox"] {
	flex: 0 0 auto;
	margin: 1px 0 0;
	accent-color: var(--df-green);
}

.df-calc__waste strong {
	color: var(--df-green);
}

.df-calc__waste-note {
	display: block;
	color: var(--df-muted);
	font-size: 12px;
}

.df-calc__result {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--df-soft);
}

.df-calc__result-icon {
	display: flex;
	flex: 0 0 38px;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
}

.df-calc__result-icon svg {
	width: 20px;
	height: 20px;
	fill: var(--df-green);
}

.df-calc__result-text {
	display: flex;
	flex-direction: column;
}

.df-calc__result-text strong {
	color: var(--df-ink);
	font-size: 15px;
}

.df-calc__result-text span {
	color: var(--df-muted);
	font-size: 12.5px;
}

.df-calc__summary {
	margin-top: 12px;
}

.df-calc__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 5px 0;
	font-size: 13.5px;
}

.df-calc__row > span:last-child {
	white-space: nowrap;
	color: var(--df-ink);
	font-weight: 600;
}

.df-calc__row--total {
	margin-top: 6px;
	padding-top: 11px;
	border-top: 1px solid var(--df-line);
	color: var(--df-ink);
	font-size: 15px;
	font-weight: 700;
}

.df-calc__row--total > span:last-child {
	color: var(--df-green);
	font-size: 17px;
	font-weight: 700;
}

.df-calc__save {
	margin: 10px 0 0;
	padding: 9px 12px;
	border-radius: 12px;
	background: var(--df-green-soft);
	color: var(--df-green);
	font-size: 13px;
	font-weight: 600;
	text-align: center;
}

.df-calc__save.is-hint {
	background: var(--df-soft);
	color: var(--df-text);
	font-weight: 500;
}

/* wąska kolumna (telefony, kontener ~280 px) */
@media (max-width: 479.98px) {
	.df-calc__mode {
		padding: 12px 12px 11px;
	}

	.df-calc__mode input[type="radio"] {
		top: 12px;
		right: 10px;
		width: 16px;
		height: 16px;
	}

	.df-calc__mode-name {
		padding-right: 20px;
		font-size: 13px;
	}

	.df-calc__mode-price {
		font-size: 17px;
	}

	.df-calc__mode-price small {
		font-size: 11px;
	}

	.df-calc__mode-note {
		font-size: 11px;
	}

	.df-calc__body {
		padding: 14px;
	}

	.df-calc__row {
		font-size: 12.5px;
	}
}

/* ---------- Wynajem skrzynki (doorfloor_render_toolbox_option) ---------- */

.df-toolbox {
	--df-green: var(--theme-palette-color-1, #23563f);
	--df-ink: var(--theme-palette-color-4, #152420);
	--df-line: var(--theme-palette-color-5, #e2edef);
	--df-soft: var(--theme-palette-color-6, #eef4f5);
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	margin: 0 0 18px;
	padding: 14px 16px;
	border: 1px solid var(--df-line);
	border-radius: 20px;
	background: #fff;
	color: var(--theme-palette-color-3, #42504b);
	font-size: 13px;
	line-height: 1.45;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}

/* w dodatkowym CSS strony jest globalne "label { margin-right: 10px !important }" */
label.df-toolbox {
	margin-right: 0 !important;
}

.df-toolbox:hover {
	border-color: #c9dad3;
}

.df-toolbox:has(.df-toolbox__switch:checked) {
	border-color: #cfe1d8;
	background: #e6f0eb;
}

.df-toolbox__icon {
	display: flex;
	flex: 0 0 42px;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--df-soft);
}

.df-toolbox:has(.df-toolbox__switch:checked) .df-toolbox__icon {
	background: #fff;
}

.df-toolbox__icon svg {
	width: 21px;
	height: 21px;
	fill: var(--df-green);
}

.df-toolbox__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.df-toolbox__title {
	color: var(--df-ink);
	font-size: 14px;
	font-weight: 600;
}

.df-toolbox__badge {
	display: inline-block;
	margin-left: 4px;
	padding: 1px 8px;
	border-radius: 100px;
	background: var(--df-green);
	color: #fff;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	vertical-align: 1px;
}

.df-toolbox__desc {
	color: #6b7a75;
	font-size: 12.5px;
}

.df-toolbox__desc a {
	color: var(--df-green);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* przełącznik zamiast gołego checkboxa */
.df-toolbox input.df-toolbox__switch {
	position: relative;
	flex: 0 0 44px;
	width: 44px;
	height: 26px;
	margin: 0;
	border: 0;
	border-radius: 100px;
	background: #cfd9d6;
	cursor: pointer;
	transition: background-color .15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.df-toolbox input.df-toolbox__switch::before,
.df-toolbox input.df-toolbox__switch:checked::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(21, 36, 32, .25);
	opacity: 1;
	-webkit-mask: none;
	mask: none;
	transform: none;
	transition: transform .15s ease;
}

.df-toolbox input.df-toolbox__switch:checked {
	background: var(--df-green);
}

.df-toolbox input.df-toolbox__switch:checked::before {
	transform: translateX(18px);
}

.df-toolbox input.df-toolbox__switch::after {
	display: none;
}

.df-toolbox input.df-toolbox__switch:focus-visible {
	outline: 2px solid var(--df-green);
	outline-offset: 2px;
}

/* ---------- Drzwi: pionowe zdjęcia (ok. 1:2) ---------- */

/* Galeria na stronie produktu: więcej zdjęć w rzędzie zamiast 3 (desktop) / 1 (telefon),
   żeby całe drzwi mieściły się na ekranie laptopa i telefonu. */
.product.product_cat-drzwi.ct-columns-top-gallery .woocommerce-product-gallery {
	--columns: 5;
}

/* podobne produkty pod drzwiami (karuzela desktop) - 6 zamiast 4 */
.product.product_cat-drzwi .related [data-products],
.product.product_cat-drzwi .upsells [data-products] {
	--grid-columns-width: calc(100% / 6);
}

/* Lista produktów w kategorii Drzwi: 4 kolumny zamiast 3 (desktop) */
body.term-drzwi [data-products] {
	--shop-columns: repeat(4, minmax(0, 1fr));
}

/* Komputer: wszystkie zdjęcia w rzędzie tej samej wysokości, dopasowanej do ekranu
   (nagłówek zajmuje ~280 px - na laptopie 1366x768 całe drzwi mają być widoczne).
   Zdjęcia aranżacji (poziome) mieszczą się w tej samej ramce zamiast być niższe. */
@media (min-width: 690px) {
	/* szerokość "auto" = ramka zdjęcia równa drzwiom, więc zaokrąglenie trafia w rogi zdjęcia */
	.product.product_cat-drzwi.ct-columns-top-gallery .woocommerce-product-gallery .flexy-item img {
		display: block;
		width: auto;
		max-width: 100%;
		height: clamp(320px, calc(100vh - 320px), 560px);
		margin: 0 auto;
		border-radius: var(--theme-border-radius, 12px);
		object-fit: contain;
	}

	.product.product_cat-drzwi.ct-columns-top-gallery .woocommerce-product-gallery .flexy-item .ct-media-container {
		border-radius: 0;
	}
}

/* Mniej zdjęć niż miejsc w rzędzie - wyśrodkuj zamiast zostawiać dziurę po prawej i schowaj
   kropki/strzałki (nie ma czego przewijać). Każdy próg osobno, bo przy mniejszej liczbie
   kolumn karuzela musi zostać wyrównana do lewej. */
@media (min-width: 1200px) {
	.product.product_cat-drzwi.ct-columns-top-gallery .flexy-items:not(:has(> :nth-child(6))) {
		justify-content: center;
	}

	.product.product_cat-drzwi.ct-columns-top-gallery .flexy-container:not(:has(.flexy-item:nth-child(6))) :is(.flexy-pills, .flexy-arrow-prev, .flexy-arrow-next) {
		display: none;
	}
}

@media (min-width: 1000px) and (max-width: 1199.98px) {
	.product.product_cat-drzwi.ct-columns-top-gallery .woocommerce-product-gallery {
		--columns: 4;
	}

	.product.product_cat-drzwi.ct-columns-top-gallery .flexy-items:not(:has(> :nth-child(5))) {
		justify-content: center;
	}

	.product.product_cat-drzwi.ct-columns-top-gallery .flexy-container:not(:has(.flexy-item:nth-child(5))) :is(.flexy-pills, .flexy-arrow-prev, .flexy-arrow-next) {
		display: none;
	}
}

@media (min-width: 690px) and (max-width: 999.98px) {
	.product.product_cat-drzwi.ct-columns-top-gallery .woocommerce-product-gallery {
		--columns: 3;
	}

	.product.product_cat-drzwi.ct-columns-top-gallery .flexy-items:not(:has(> :nth-child(4))) {
		justify-content: center;
	}

	.product.product_cat-drzwi.ct-columns-top-gallery .flexy-container:not(:has(.flexy-item:nth-child(4))) :is(.flexy-pills, .flexy-arrow-prev, .flexy-arrow-next) {
		display: none;
	}
}

@media (max-width: 999.98px) {
	body.term-drzwi [data-products] {
		--shop-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 689.98px) {
	.product.product_cat-drzwi.ct-columns-top-gallery .woocommerce-product-gallery {
		--columns: 2;
	}

	.product.product_cat-drzwi.ct-columns-top-gallery .flexy-items:not(:has(> :nth-child(3))) {
		justify-content: center;
	}

	.product.product_cat-drzwi.ct-columns-top-gallery .flexy-container:not(:has(.flexy-item:nth-child(3))) .flexy-pills {
		display: none;
	}

	body.term-drzwi [data-products] {
		--shop-columns: repeat(2, minmax(0, 1fr));
	}

	body.term-drzwi [data-products] .woocommerce-loop-product__title {
		--theme-font-size: 14px;
	}

	body.term-drzwi [data-products] .price {
		--theme-font-size: 13px;
	}

	/* drzwi w innych listach na telefonie (1 kolumna: wyszukiwarka, sklep) - nie wyższe niż pół ekranu */
	body:not(.term-drzwi) [data-products] .product.product_cat-drzwi .ct-media-container img {
		max-height: 55vh;
		object-fit: contain;
	}
}

/* m² pod liczbą paczek w polu ilości (strona produktu) */
.quantity.df-qty-has-area {
	position: relative;
}

.quantity.df-qty-has-area input.qty {
	padding-bottom: 14px !important;
}

.df-qty-area-inline {
	position: absolute;
	right: 0;
	bottom: 8px;
	left: 0;
	color: #6b7a75;
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
	text-align: center;
	pointer-events: none;
}

/* ---------- Koszyk ---------- */

.df-qty-area {
	display: block;
	margin-top: 6px;
	color: #6b7a75;
	font-size: 12.5px;
	text-align: center;
	white-space: nowrap;
}

.product-mobile-actions .df-qty-area {
	display: inline-block;
	margin: 0 6px 0 0;
}

.df-inst {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 10px 0 8px;
	padding: 10px 12px;
	border: 1px solid var(--df-line);
	border-radius: 14px;
	background: #fff;
	font-size: 13px;
	line-height: 1.4;
}

.df-inst--on {
	border-color: #cfe1d8;
	background: var(--df-green-soft);
}

.df-inst__icon {
	display: flex;
	flex: 0 0 34px;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
}

.df-inst__icon svg {
	width: 16px;
	height: 16px;
	fill: var(--df-green);
}

.df-inst__text {
	flex: 1;
	min-width: 0;
	color: var(--df-text);
}

.df-inst__text strong {
	color: var(--df-ink);
}

.df-inst__vat {
	margin-left: 4px;
	color: var(--df-muted);
	font-size: 12px;
}

.df-inst__details {
	display: block;
	color: var(--df-muted);
	font-size: 12.5px;
}

.df-inst .df-inst__btn {
	flex: 0 0 auto;
	padding: 7px 14px;
	border: 1px solid var(--df-green);
	border-radius: 100px;
	color: var(--df-green);
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s ease, color .15s ease;
}

.df-inst .df-inst__btn:hover {
	background: var(--df-green);
	color: #fff;
}

.df-inst--on .df-inst__btn {
	border-color: #b9c9c2;
	background: #fff;
	color: var(--df-text);
}

.df-inst--on .df-inst__btn:hover {
	border-color: #b3261e;
	background: #fff;
	color: #b3261e;
}

@media (max-width: 689.98px) {
	.df-inst {
		flex-wrap: wrap;
	}

	.df-inst__icon {
		display: none;
	}
}

/* ---------- Okno potwierdzenia ---------- */

.df-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(21, 36, 32, .45);
}

.df-modal[hidden] {
	display: none;
}

.df-modal__box {
	position: relative;
	width: 100%;
	max-width: 480px;
	padding: 32px 28px 26px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 20px 50px rgba(21, 36, 32, .25);
	text-align: center;
}

.df-modal__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: var(--df-green-soft);
}

.df-modal__icon svg {
	width: 24px;
	height: 24px;
	fill: var(--df-green);
}

.df-modal__title {
	margin: 0 0 8px;
	color: var(--df-ink);
	font-size: 19px;
	font-weight: 700;
}

.df-modal__text {
	margin: 0 0 22px;
	color: var(--df-text);
	font-size: 14px;
}

.df-modal__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.df-modal__actions button {
	height: 46px;
	padding: 0 16px;
	border-radius: 100px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.df-modal__confirm {
	border: 1px solid var(--df-green);
	background: var(--df-green);
	color: #fff;
}

.df-modal__cancel {
	border: 1px solid var(--df-line);
	background: #fff;
	color: var(--df-ink);
}

.df-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--df-muted);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 479.98px) {
	.df-modal__actions {
		grid-template-columns: 1fr;
	}
}

/* ---------- Produkty VDS: "Ta sama seria" (vds-powiazane.php) ---------- */

.df-series {
	--df-green: var(--theme-palette-color-1, #23563f);
	--df-ink: var(--theme-palette-color-4, #152420);
	--df-line: var(--theme-palette-color-5, #e2edef);
	--df-soft: var(--theme-palette-color-6, #eef4f5);
	/* blok wisi teraz pod przyciskiem koszyka - odstęp jak przy "Dokup do kompletu" (2026-09-19) */
	margin: 22px 0 0;
	padding: 16px 18px;
	border: 1px solid var(--df-line);
	border-radius: 20px;
	background: #fff;
	color: var(--theme-palette-color-3, #42504b);
	font-size: 13px;
}

.df-series__title {
	margin: 0 0 10px;
	color: var(--df-ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.df-series__eyebrow {
	display: block;
	margin-bottom: 2px;
	color: var(--df-green);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.df-series__dim + .df-series__dim {
	margin-top: 12px;
}

.df-series__dim-label {
	display: block;
	margin-bottom: 6px;
}

.df-series__dim-label strong {
	color: var(--df-ink);
}

.df-series__options {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.df-series .df-series__opt {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	padding: 4px 12px;
	border: 1px solid var(--df-line);
	border-radius: 100px;
	background: #fff;
	color: var(--df-ink);
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color .15s ease, background-color .15s ease;
}

.df-series a.df-series__opt:hover {
	border-color: var(--df-green);
}

.df-series .df-series__opt.is-current {
	border-color: var(--df-green);
	background: var(--df-green);
	color: #fff;
}

/* opcja dostępna tylko w innej kombinacji (np. kolor bez otworu WC) */
.df-series .df-series__opt.is-other {
	border-style: dashed;
	color: #6b7a75;
}

.df-series__options.has-images .df-series__opt {
	padding-left: 4px;
}

.df-series__img {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--df-soft);
}

/* ---------- Produkty VDS: "Dokup do kompletu" ---------- */

.df-buywith {
	--df-green: var(--theme-palette-color-1, #23563f);
	--df-ink: var(--theme-palette-color-4, #152420);
	--df-line: var(--theme-palette-color-5, #e2edef);
	--df-soft: var(--theme-palette-color-6, #eef4f5);
	margin: 22px 0 6px;
	padding: 16px 18px 18px;
	border: 1px solid #cfe1d8;
	border-radius: 20px;
	background: #f4f9f6;
	color: var(--theme-palette-color-3, #42504b);
	font-size: 13px;
}

.df-buywith__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

.df-buywith__icon {
	display: flex;
	flex: 0 0 38px;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--df-green);
}

.df-buywith__icon svg {
	width: 20px;
	height: 20px;
	fill: #fff;
}

.df-buywith__title {
	display: block;
	color: var(--df-ink);
	font-size: 16px;
}

.df-buywith__sub {
	display: block;
	color: #6b7a75;
	font-size: 12px;
	line-height: 1.35;
}

.df-buywith__group {
	margin: 14px 0 6px;
	color: var(--df-ink);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.df-buywith__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.df-buywith__item {
	display: grid;
	grid-template-columns: 22px 52px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	margin: 0 0 6px;
	padding: 8px 10px;
	border: 1px solid var(--df-line);
	border-radius: 14px;
	background: #fff;
	transition: border-color .15s ease;
}

.df-buywith__item[hidden] {
	display: none;
}

.df-buywith__item.is-checked {
	border-color: var(--df-green);
	box-shadow: 0 0 0 1px var(--df-green) inset;
}

.df-buywith__check {
	position: relative;
	display: flex;
	margin: 0 !important;
	cursor: pointer;
}

.df-buywith__check input {
	position: absolute;
	opacity: 0;
}

.df-buywith__box {
	width: 20px;
	height: 20px;
	border: 2px solid #b9c9c2;
	border-radius: 6px;
	background: #fff;
}

.df-buywith__check input:checked + .df-buywith__box {
	border-color: var(--df-green);
	background: var(--df-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.df-buywith__check input:focus-visible + .df-buywith__box {
	outline: 2px solid var(--df-green);
	outline-offset: 2px;
}

.df-buywith__thumb img {
	display: block;
	width: 52px;
	height: 52px;
	border-radius: 10px;
	object-fit: cover;
	background: var(--df-soft);
}

.df-buywith__info {
	min-width: 0;
}

.df-buywith .df-buywith__name {
	display: -webkit-box;
	overflow: hidden;
	color: var(--df-ink);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.df-buywith__label {
	display: block;
	margin-top: 2px;
	color: #6b7a75;
	font-size: 11.5px;
}

.df-buywith__price {
	color: var(--df-green);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.df-buywith__price del {
	display: block;
	color: #8a9894;
	font-weight: 400;
}

.df-buywith .df-buywith__more,
.df-series .df-series__more {
	margin: 0 0 4px;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--df-green);
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.df-buywith__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 12px;
}

.df-buywith__sum {
	color: var(--df-ink);
	font-size: 14px;
	font-weight: 700;
}

.df-buywith .df-buywith__add {
	flex: 1 1 auto;
	min-height: 46px;
	border-radius: 100px;
}

.df-buywith .df-buywith__add:disabled {
	opacity: .5;
	cursor: not-allowed;
}

.df-buywith__msg {
	margin: 10px 0 0;
	color: var(--df-green);
	font-weight: 600;
}

.df-buywith__msg.is-error {
	color: #b3261e;
}

@media (max-width: 479.98px) {
	.df-buywith__item {
		grid-template-columns: 22px 44px minmax(0, 1fr);
	}

	.df-buywith__thumb img {
		width: 44px;
		height: 44px;
	}

	.df-buywith__price {
		grid-column: 3;
	}
}

/* ---------- Klamki, rozety, wkładki (VDS): kwadratowe packshoty na białym tle ---------- */
/* Galeria Blocksy (3 kolumny) rozciągała pojedyncze zdjęcie rozety na całą szerokość ekranu. */

.product.product_cat-klamki.ct-columns-top-gallery .woocommerce-product-gallery {
	--columns: 4;
}

@media (min-width: 690px) {
	.product.product_cat-klamki.ct-columns-top-gallery .woocommerce-product-gallery .flexy-item img {
		width: 100%;
		height: clamp(240px, calc(100vh - 380px), 420px);
		background: #fff;
		object-fit: contain;
	}

	.product.product_cat-klamki.ct-columns-top-gallery .flexy-items:not(:has(> :nth-child(5))) {
		justify-content: center;
	}

	.product.product_cat-klamki.ct-columns-top-gallery .flexy-container:not(:has(.flexy-item:nth-child(5))) :is(.flexy-pills, .flexy-arrow-prev, .flexy-arrow-next) {
		display: none;
	}
}

@media (min-width: 690px) and (max-width: 999.98px) {
	.product.product_cat-klamki.ct-columns-top-gallery .woocommerce-product-gallery {
		--columns: 3;
	}
}

@media (max-width: 689.98px) {
	.product.product_cat-klamki.ct-columns-top-gallery .woocommerce-product-gallery .flexy-item img {
		max-height: 60vh;
		background: #fff;
		object-fit: contain;
	}
}

/* jedno zdjęcie: Blocksy nie buduje wtedy karuzeli (figure bez .flexy) */
.product.product_cat-klamki .ct-product-gallery-container > .ct-media-container {
	max-width: min(420px, calc(100vh - 380px));
	min-width: 240px;
	margin: 0 auto;
	background: #fff;
}

@media (max-width: 689.98px) {
	.product.product_cat-klamki.ct-columns-top-gallery .woocommerce-product-gallery {
		--columns: 2;
	}

	.product.product_cat-klamki .ct-product-gallery-container > .ct-media-container {
		max-width: 320px;
	}
}

.df-buywith__note {
	margin: -2px 0 8px;
	color: #6b7a75;
	font-size: 12px;
	line-height: 1.4;
}

/* ---------- Produkty VDS: "Najważniejsze informacje" w lewej kolumnie (vds-uklad.php) ---------- */

.df-info {
	--df-green: var(--theme-palette-color-1, #23563f);
	--df-ink: var(--theme-palette-color-4, #152420);
	--df-line: var(--theme-palette-color-5, #e2edef);
	--df-soft: var(--theme-palette-color-6, #eef4f5);
	margin: 22px 0 8px;
	color: var(--theme-palette-color-3, #42504b);
	font-size: 14px;
}

.df-info__title,
.df-info__facts-title {
	margin: 0 0 10px;
	color: var(--df-ink);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.df-info__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 8px;
	margin: 0;
}

.df-info__tile {
	margin: 0;
	padding: 11px 14px;
	border: 1px solid var(--df-line);
	border-radius: 14px;
	background: #fff;
}

.df-info__tile dt {
	margin: 0 0 2px;
	color: #6b7a75;
	font-size: 11.5px;
	font-weight: 500;
}

.df-info__tile dd {
	margin: 0;
	color: var(--df-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.df-info__tile--brand dd a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 22px;
	color: var(--df-ink);
	text-decoration: none;
}

.df-info__logo {
	display: block;
	width: auto;
	max-width: 110px;
	height: 22px;
	object-fit: contain;
}

.df-info__dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 5px;
	border-radius: 50%;
	background: #2e9e5b;
	vertical-align: 1px;
}

.df-info__tile--stock.is-order .df-info__dot {
	background: #d18b1f;
}

.df-info__lead {
	display: block;
	color: #6b7a75;
	font-size: 12px;
	font-weight: 500;
}

.df-info__facts {
	margin-top: 16px;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--df-soft);
}

.df-info__facts ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.df-info__facts li {
	position: relative;
	margin: 0 0 6px;
	padding-left: 22px;
	font-size: 13.5px;
	line-height: 1.45;
}

.df-info__facts li:last-child {
	margin-bottom: 0;
}

.df-info__facts li::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 0;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--df-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.df-info__services {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.df-info__services li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--df-line);
	border-radius: 14px;
	font-size: 12.5px;
	line-height: 1.35;
}

.df-info__services svg {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	fill: var(--df-green);
}

.df-info__services strong {
	display: block;
	color: var(--df-ink);
	font-weight: 600;
}

.df-info__services a {
	color: var(--df-green);
	font-weight: 600;
	text-decoration: none;
}

@media (max-width: 999.98px) {
	.df-info__services {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 689.98px) {
	.df-info__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.df-info__services {
		display: none;
	}
}

/* opisy producentów: rysunki techniczne (Infinity Line) nie na całą szerokość */
.single-product .woocommerce-Tabs-panel--description img[width="100%"] {
	width: auto;
	max-width: min(100%, 560px);
	height: auto;
}

.df-series .df-series__more {
	margin-top: 6px;
}

.df-series__opt[hidden] {
	display: none !important;
}

/* pasek usług: cała karta "Salon" klikalna (Google Maps) */
.df-info__services .df-info__salon {
	padding: 0;
}

.df-info__services .df-info__service-link {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	color: inherit;
	font-weight: inherit;
	border-radius: 14px;
	transition: background-color .15s ease;
}

.df-info__services .df-info__service-link:hover {
	background-color: rgba(31, 84, 60, .06);
}

.df-info__services .df-info__salon:not(:has(a)) {
	padding: 10px 12px;
}

/* stopka "Nasze produkty": tylko kategorie główne */
.ct-footer .wc-block-product-categories-list--depth-1 {
	display: none;
}

/* podłogi, drzwi, listwy: odstęp między kartą a ich krótkim opisem */
.df-info + .woocommerce-product-details__short-description {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--theme-palette-color-5, #e2edef);
}

/* kafelki na telefonie: długie słowa ("Drewnopodobny") dzielone z łącznikiem, logo marki w granicach kafelka */
.df-info__tile {
	min-width: 0;
}

.df-info__tile dd {
	overflow-wrap: break-word;
	hyphens: auto;
}

.df-info__tile--brand dd a {
	max-width: 100%;
}

.df-info__logo {
	max-width: 100%;
}

@media (max-width: 689.98px) {
	.df-info__tile {
		padding: 10px 12px;
	}

	.df-info__tile dd {
		font-size: 13.5px;
	}
}

/* ========================================================================
 * Opisy produktów (opisy.php) - jednolita typografia dla wklejek ze stron producentów
 * ===================================================================== */
.df-desc {
	color: var(--theme-palette-color-3, #42504b);
	font-size: 15px;
	line-height: 1.65;
	overflow-wrap: break-word;
}

.df-desc > :first-child {
	margin-top: 0;
}

.df-desc p {
	margin: 0 0 12px;
}

.df-desc h2,
.df-desc h3,
.df-desc h4 {
	margin: 26px 0 10px;
	color: var(--theme-palette-color-4, #152420);
	line-height: 1.3;
}

.df-desc h2 {
	font-size: 22px;
}

.df-desc h3 {
	font-size: 18px;
}

.df-desc h4 {
	font-size: 15.5px;
}

.df-desc--short h3 {
	font-size: 17px;
}

.df-desc ul,
.df-desc ol {
	margin: 0 0 14px;
	padding-left: 20px;
}

.df-desc li {
	margin: 0 0 4px;
}

.df-desc .df-desc__img {
	display: block;
	max-width: min(100%, 720px);
	height: auto;
	margin: 14px 0;
	border-radius: 10px;
}

.df-desc .df-desc__icon {
	display: inline-block;
	width: 40px;
	height: 40px;
	margin: 4px 8px 4px 0;
	vertical-align: middle;
	object-fit: contain;
}

.df-desc table {
	width: 100%;
	margin: 0 0 18px;
	border-collapse: collapse;
	font-size: 14px;
}

.df-desc td,
.df-desc th {
	padding: 8px 10px;
	border-bottom: 1px solid var(--theme-palette-color-5, #e2edef);
	text-align: left;
	vertical-align: top;
}

.df-desc thead td,
.df-desc thead th {
	color: var(--theme-palette-color-4, #152420);
	font-weight: 600;
	background: var(--theme-palette-color-6, #eef4f5);
}

.df-desc td:first-child {
	width: 55%;
	color: #6b7a75;
}

.df-desc iframe {
	max-width: 100%;
}

/* długi krótki opis zwinięty */
.df-desc.is-long {
	position: relative;
	overflow: hidden;
}

.df-desc--short.is-long {
	max-height: 260px;
}

.df-desc--full.is-long {
	max-height: 900px;
}

.df-desc.is-long::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 80px;
	background: linear-gradient(to bottom, rgba(250, 252, 252, 0), var(--theme-palette-color-7, #fafcfc));
	pointer-events: none;
}

.df-desc.is-long.is-open {
	max-height: none;
}

.df-desc.is-long.is-open::after {
	display: none;
}

.df-desc__more {
	margin: 8px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--theme-palette-color-1, #23563f);
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

/* ikonka + podpis (np. cechy drzwi Porta) */
.df-desc .df-desc__features {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px 16px;
	margin: 6px 0 18px;
}

.df-desc .df-desc__features br {
	display: none;
}

.df-desc .df-desc__features > p {
	display: contents; /* wpautop owija cechy w <p> - siatka ma działać na samych cechach */
}

.df-desc .df-desc__feature {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	line-height: 1.3;
	vertical-align: top;
}

.df-desc .df-desc__feature .df-desc__icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	margin: 0;
}


.df-desc--full + .df-desc__more {
	display: block;
	width: fit-content;
	margin: 12px auto 0;
	padding: 10px 22px;
	border: 1px solid var(--theme-palette-color-1, #23563f);
	border-radius: 999px;
	text-decoration: none;
}

/* wzorniki kolorów ([gallery] w opisie) - siatka kafelków z próbką i podpisem */
.df-desc .gallery,
.df-desc .df-desc__swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 12px;
	margin: 12px 0 22px;
}

.df-desc .gallery > br {
	display: none;
}

.df-desc .gallery .gallery-item,
.df-desc .df-desc__swatch {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 10px 8px 12px;
	border: 1px solid var(--theme-palette-color-5, #e2edef);
	border-radius: 14px;
	background: #fff;
	text-align: center;
}

.df-desc .gallery .gallery-icon {
	margin: 0 0 8px;
}

.df-desc .gallery .gallery-icon img,
.df-desc .gallery img,
.df-desc .df-desc__swatch-img {
	display: block;
	width: 64px;
	height: 64px;
	margin: 0 auto;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 10px;
	object-fit: cover;
}

.df-desc .gallery .gallery-caption,
.df-desc .df-desc__swatch-name {
	margin: 0;
	padding: 0;
	color: var(--theme-palette-color-4, #152420);
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
}

@media (max-width: 689.98px) {
	.df-desc .gallery,
	.df-desc .df-desc__swatches {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}

	.df-desc .gallery .gallery-caption,
	.df-desc .df-desc__swatch-name {
		font-size: 12px;
		hyphens: auto;
	}

	.df-desc .gallery img,
	.df-desc .df-desc__swatch-img {
		width: 52px;
		height: 52px;
	}
}

.df-desc .df-desc__swatches > p,
.df-desc .df-desc__swatches br {
	display: contents;
}

.df-desc .df-desc__swatch-img {
	margin-bottom: 8px;
}

/* Lamele i listwy VOX: producent fotografuje je w całości (panel 2,65 m to proporcja 1:3,5),
   więc w katalogu pokazujemy zdjęcie w kwadratowym kadrze - kafelki mają równą wysokość. */
[data-products] .product[class*="product_cat-lamele-linerio"] .ct-media-container,
[data-products] .product[class*="product_cat-akcesoria-do-lameli"] .ct-media-container,
[data-products] .product[class*="product_cat-zaslepki-i-akcesoria"] .ct-media-container,
[data-products] .product[class*="product_cat-listwy-przypodlogowe"] .ct-media-container {
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
}

[data-products] .product[class*="product_cat-lamele-linerio"] .ct-media-container img,
[data-products] .product[class*="product_cat-akcesoria-do-lameli"] .ct-media-container img,
[data-products] .product[class*="product_cat-zaslepki-i-akcesoria"] .ct-media-container img,
[data-products] .product[class*="product_cat-listwy-przypodlogowe"] .ct-media-container img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Galeria lameli i listew VOX: producent fotografuje cały panel (2,65 m, proporcja nawet 1:7),
   więc zdjęcia rozpychają stronę na całą wysokość. Wszystkie w jednej ramce, wyśrodkowane. */
.product[class*="product_cat-lamele-linerio"] .woocommerce-product-gallery .flexy-item img,
.product[class*="product_cat-akcesoria-do-lameli"] .woocommerce-product-gallery .flexy-item img,
.product[class*="product_cat-zaslepki-i-akcesoria"] .woocommerce-product-gallery .flexy-item img,
.product[class*="product_cat-listwy-przypodlogowe"] .woocommerce-product-gallery .flexy-item img,
.product[class*="product_cat-lamele-linerio"] .ct-product-gallery-container > .ct-media-container img,
.product[class*="product_cat-akcesoria-do-lameli"] .ct-product-gallery-container > .ct-media-container img,
.product[class*="product_cat-zaslepki-i-akcesoria"] .ct-product-gallery-container > .ct-media-container img,
.product[class*="product_cat-listwy-przypodlogowe"] .ct-product-gallery-container > .ct-media-container img {
	display: block;
	width: auto;
	max-width: 100%;
	height: clamp(280px, calc(100vh - 340px), 520px);
	margin: 0 auto;
	object-fit: contain;
	border-radius: var(--theme-border-radius, 12px);
}

.product[class*="product_cat-lamele-linerio"] .woocommerce-product-gallery .ct-media-container,
.product[class*="product_cat-akcesoria-do-lameli"] .woocommerce-product-gallery .ct-media-container,
.product[class*="product_cat-zaslepki-i-akcesoria"] .woocommerce-product-gallery .ct-media-container,
.product[class*="product_cat-listwy-przypodlogowe"] .woocommerce-product-gallery .ct-media-container {
	border-radius: 0;
	background: #fff;
}

/* jedno zdjęcie: Blocksy nie buduje karuzeli, figura dostaje proporcje zdjęcia (np. 151/1140) */
.product[class*="product_cat-lamele-linerio"] .ct-product-gallery-container > .ct-media-container,
.product[class*="product_cat-akcesoria-do-lameli"] .ct-product-gallery-container > .ct-media-container,
.product[class*="product_cat-zaslepki-i-akcesoria"] .ct-product-gallery-container > .ct-media-container,
.product[class*="product_cat-listwy-przypodlogowe"] .ct-product-gallery-container > .ct-media-container {
	aspect-ratio: auto;
	max-width: 100%;
	margin: 0 auto;
}

@media (max-width: 689.98px) {
	.product[class*="product_cat-lamele-linerio"] .woocommerce-product-gallery .flexy-item img,
	.product[class*="product_cat-akcesoria-do-lameli"] .woocommerce-product-gallery .flexy-item img,
	.product[class*="product_cat-zaslepki-i-akcesoria"] .woocommerce-product-gallery .flexy-item img,
	.product[class*="product_cat-listwy-przypodlogowe"] .woocommerce-product-gallery .flexy-item img,
	.product[class*="product_cat-lamele-linerio"] .ct-product-gallery-container > .ct-media-container img,
	.product[class*="product_cat-akcesoria-do-lameli"] .ct-product-gallery-container > .ct-media-container img,
	.product[class*="product_cat-zaslepki-i-akcesoria"] .ct-product-gallery-container > .ct-media-container img,
	.product[class*="product_cat-listwy-przypodlogowe"] .ct-product-gallery-container > .ct-media-container img {
		height: min(58vh, 420px);
	}
}

/* Podłogi z jednym zdjęciem (Metamorphose, Weninger): Blocksy nie buduje wtedy karuzeli,
   więc kwadratowa próbka dekoru rozciąga się na całą szerokość kolumny i zjada cały ekran.
   Karuzele (kilka zdjęć) zostają bez zmian - te mają już niskie kafelki. */
.product[class*="product_cat-podlogi"] .ct-product-gallery-container > .ct-media-container {
	aspect-ratio: auto;
	max-width: min(520px, 100%);
	margin: 0 auto;
	background: #fff;
}

.product[class*="product_cat-podlogi"] .ct-product-gallery-container > .ct-media-container img {
	display: block;
	width: auto;
	max-width: 100%;
	height: clamp(280px, calc(100vh - 340px), 520px);
	margin: 0 auto;
	object-fit: contain;
	border-radius: var(--theme-border-radius, 12px);
}

@media (max-width: 689.98px) {
	.product[class*="product_cat-podlogi"] .ct-product-gallery-container > .ct-media-container img {
		height: min(58vh, 380px);
	}
}

/* Koszyk na telefonie (zgłoszone 2026-09-18): wiersz pozycji nie mieścił się w ekranie -
   przycisk montażu i kosz uciekały poza prawą krawędź. Wszystko, co się nie mieści, zawijamy. */
@media (max-width: 689.98px) {
	.woocommerce-cart-form table.shop_table td {
		max-width: 100%;
	}

	/* Blocksy rezerwuje 120 px na miniaturę - na telefonie to ćwierć ekranu odebrana opisowi */
	[class*="ct-woocommerce"] .shop_table [class*="product-thumbnail"],
	.cart_item .product-thumbnail img {
		width: 64px;
	}

	.product-mobile-actions {
		flex-wrap: wrap;
		column-gap: 10px;
		row-gap: 8px;
	}

	.product-mobile-actions > .woocommerce-Price-amount {
		min-width: 0;
	}

	/* dopisek "(za opakowanie)" pod ceną, a nie obok - inaczej rozpycha wiersz */
	.product-mobile-actions .woocommerce-Price-amount small {
		display: block;
		margin-top: 2px;
		font-size: 11px;
		line-height: 1.3;
	}

	.product-mobile-actions .remove {
		margin-inline-start: auto;
	}
}

/* wąskie telefony: przycisk "Dodaj montaż" pod opisem, żeby tekst nie ściskał się do kilku liter */
@media (max-width: 479.98px) {
	.df-inst__text {
		flex: 1 1 100%;
	}

	.df-inst .df-inst__btn {
		margin-top: 2px;
	}
}

/* Kółeczko koloru w przełączniku serii: obrazek kadrujemy wewnątrz, a przy listwach dodatkowo
   przybliżamy - packshot to wąski profil na białym tle i w miniaturze widać głównie tło (2026-09-19). */
.df-series__thumb {
	display: inline-flex;
	flex: none;
	overflow: hidden;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--df-soft);
}

.df-series__thumb .df-series__img {
	width: 100%;
	height: 100%;
	border-radius: 0;
}

.df-series--zoom .df-series__thumb .df-series__img {
	transform: scale(1.9);
}

/* ---------- Jednolite kadry zdjęć produktów (zgłoszone 2026-09-21) ----------
   Blocksy daje każdemu zdjęciu proporcje oryginału, więc w jednym widoku sąsiadują kafelki
   1:1, 3:2 i 2:5 - galeria robi się schodkowa, a pod niższymi miniaturami w "Podobnych produktach"
   zostaje pusty pas. Ustalamy jeden kadr na widok: kwadrat, a tam gdzie rządzą drzwi - pionowy.
   Kadry pojedynczych kategorii (drzwi, klamki, lamele, listwy, podłogi z jednym zdjęciem)
   są opisane wyżej i mają wyższą specyficzność, więc zostają bez zmian. */

body {
	--df-kadr: 1 / 1;                                     /* miniatura w listingu */
	--df-gal-h: clamp(240px, calc(100vh - 380px), 360px); /* wysokość slajdu galerii */
}

/* karta drzwi i katalog drzwi (klasa z zdjecia-produktow.php) */
body.df-foto-kadr-pion {
	--df-kadr: 3 / 5;
}

/* Miniatury w listingach: katalog, wyniki wyszukiwania, "Podobne produkty", karuzele powiązanych.
   Proporcje Blocksy wstawia w atrybucie style, dlatego !important. */
[data-products] .product .ct-media-container img,
[data-products] .product .ct-media-container picture {
	width: 100%;
	height: auto;
	aspect-ratio: var(--df-kadr) !important;
	object-fit: cover;
}

/* Zdjęcie pionowe (drzwi, lamela) w kadrze przeznaczonym dla szerszych zdjęć: pokazujemy w całości,
   bo przycięcie zostawiłoby sam środek skrzydła. */
[data-products] .product .ct-media-container img.df-foto-pion {
	object-fit: contain;
	background: #fff;
}

/* W wąskim kadrze drzwi nic nie kadrujemy: zdjęcie aranżacji przycięte do proporcji 3:5
   zostałoby z samym fragmentem ściany. */
body.df-foto-kadr-pion [data-products] .product .ct-media-container img {
	object-fit: contain;
	background: #fff;
}

/* Galeria na karcie produktu: równa wysokość wszystkich slajdów. Zdjęcie wypełnia kadr,
   dzięki czemu zaokrąglenie rogów widać na samym zdjęciu, a nie na białym tle pod nim. */
.single-product .woocommerce-product-gallery .flexy-item img {
	display: block;
	width: 100%;
	height: var(--df-gal-h);
	margin: 0 auto;
	object-fit: cover;
	border-radius: var(--theme-border-radius, 12px);
}

/* Zdjęcie wąskie (packshot kartonu, profil, skrzydło drzwi) przycięte do kadru zostałoby paskiem
   ze środka, więc pokazujemy je w całości - wtedy zaokrąglone rogi ma biała ramka slajdu. */
.single-product .woocommerce-product-gallery .flexy-item img.df-foto-waskie {
	object-fit: contain;
	background: #fff;
}

/* ramka slajdu: białe tło z zaokrąglonymi rogami, tak jak w kafelkach katalogu */
.single-product .woocommerce-product-gallery .flexy-item .ct-media-container {
	overflow: hidden;
	border-radius: var(--theme-border-radius, 12px);
	background: #fff;
}

@media (max-width: 689.98px) {
	body {
		--df-gal-h: min(52vh, 320px);
	}
}

/* Drzwi z jednym zdjęciem (kolekcje jednowzorowe, np. Vetro D): Blocksy nie buduje wtedy karuzeli,
   tylko wstawia zdjęcie w pełnej szerokości kolumny - pionowe skrzydło zajmowało wtedy kilka ekranów.
   Ta sama ramka co przy karuzeli, zdjęcie wyśrodkowane (zgłoszone 2026-09-21). */
.product[class*="product_cat-drzwi"] .ct-product-gallery-container > .ct-media-container {
	aspect-ratio: auto;
	max-width: min(420px, 100%);
	margin: 0 auto;
	background: #fff;
}

.product[class*="product_cat-drzwi"] .ct-product-gallery-container > .ct-media-container img {
	display: block;
	width: auto;
	max-width: 100%;
	height: clamp(320px, calc(100vh - 320px), 560px);
	margin: 0 auto;
	object-fit: contain;
	border-radius: var(--theme-border-radius, 12px);
}

@media (max-width: 689.98px) {
	.product[class*="product_cat-drzwi"] .ct-product-gallery-container > .ct-media-container img {
		height: min(58vh, 420px);
	}
}

/* ---------- Wzory kolekcji: etykieta na zdjęciu i lista z miniaturami (zgłoszone 2026-09-21) ----------
   Jedna kolekcja drzwi to jeden produkt z kilkunastoma wzorami. Bez podpisu nie wiadomo,
   które zdjęcie w galerii odpowiada której pozycji z listy w opisie. */

.df-wzor-tag {
	position: absolute;
	z-index: 2;
	bottom: 10px;
	left: 50%;
	max-width: calc(100% - 24px);
	padding: 5px 12px;
	overflow: hidden;
	transform: translateX(-50%);
	border-radius: 999px;
	background: var(--df-green, #295740);
	box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: .01em;
	white-space: nowrap;
	text-overflow: ellipsis;
	pointer-events: none;
}

@media (max-width: 689.98px) {
	.df-wzor-tag {
		bottom: 8px;
		padding: 4px 10px;
		font-size: 12px;
	}
}

/* lista wzorów w opisie - kafelek ze zdjęciem, nazwą i ceną wyjściową */
.df-desc .df-wzory {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
	margin: 14px 0 24px;
	padding: 0;
	list-style: none;
}

.df-desc .df-wzory__item {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 10px 10px 12px;
	border: 1px solid var(--theme-palette-color-5, #e2edef);
	border-radius: 14px;
	background: #fff;
	text-align: center;
}

.df-desc .df-wzory__img {
	display: block;
	width: 100%;
	height: 170px;
	margin: 0 0 10px;
	border-radius: 10px;
	background: #fff;
	object-fit: contain;
}

.df-desc .df-wzory__name {
	color: var(--theme-palette-color-4, #152420);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.df-desc .df-wzory__price {
	margin-top: 3px;
	color: var(--theme-palette-color-2, #295740);
	font-size: 13px;
	font-weight: 500;
}

@media (max-width: 689.98px) {
	.df-desc .df-wzory {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.df-desc .df-wzory__img {
		height: 140px;
	}
}


/* Wybór terminu dostawy skrzynki narzędziowej (2026-09-22) */
.df-toolbox-termin,
.df-toolbox-jest {
	/* zmienne trzymamy przy komponentach, tak jak reszta pliku - nie ma tu :root */
	--df-green: var(--theme-palette-color-1, #23563f);
	--df-green-soft: #e6f0eb;
	--df-ink: var(--theme-palette-color-4, #152420);
}

.df-toolbox-termin {
	margin: -4px 0 14px;
	padding: 12px 14px;
	border: 1px solid var(--theme-border-color, #e5e7eb);
	border-top: 0;
	border-radius: 0 0 10px 10px;
	background: var(--theme-palette-color-8, #fafafa);
	font-size: 14px;
}
.df-toolbox-termin[hidden] { display: none; }
.df-toolbox-termin__pytanie { margin: 0 0 10px; font-weight: 600; color: var(--df-ink, #152420); }

/* dwa kafelki wyboru - ten sam język co przełącznik montażu w kalkulatorze */
.df-toolbox-termin__opcje {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 8px;
	margin-bottom: 10px;
}
.df-toolbox-termin__opcja {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 11px 34px 11px 13px;
	border: 1px solid var(--theme-border-color, #e2edef);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
/* globalne "label { margin-right: 10px !important }" z dodatkowego CSS strony */
.df-toolbox-termin label.df-toolbox-termin__opcja { margin-right: 0 !important; }

.df-toolbox-termin__opcja:hover { border-color: var(--df-green); }
.df-toolbox-termin__opcja:has(input:checked) {
	border-color: var(--df-green);
	box-shadow: inset 0 -3px 0 var(--df-green);
}
.df-toolbox-termin__opcja input[type="radio"] {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: var(--df-green);
	cursor: pointer;
}
.df-toolbox-termin__nazwa {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
	color: var(--df-ink, #152420);
}
.df-toolbox-termin__opis {
	font-size: 12px;
	line-height: 1.35;
	color: #6b7a75;
}

@media (max-width: 480px) {
	.df-toolbox-termin__opcje { grid-template-columns: minmax(0, 1fr); }
}

/* Własny kalendarz - natywnego okienka przeglądarki nie da się ostylować */
.df-kalendarz {
	position: relative;
	margin: 0 0 10px;
}
.df-kalendarz[hidden] { display: none; }
.df-kalendarz__pole {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	max-width: 260px;
	padding: 9px 12px;
	border: 1px solid var(--theme-border-color, #e5e7eb);
	border-radius: 10px;
	background: #fff;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
}
.df-kalendarz__pole:hover,
.df-kalendarz[data-otwarty] .df-kalendarz__pole { border-color: var(--df-green); }
.df-kalendarz__ikona { display: flex; }
.df-kalendarz__ikona svg { fill: var(--df-green); }
.df-kalendarz:not(.ma-date) .df-kalendarz__etykieta { color: #9ca3af; }

.df-kalendarz__panel {
	position: absolute;
	z-index: 30;
	top: calc(100% + 6px);
	left: 0;
	width: 280px;
	max-width: calc(100vw - 32px);
	padding: 12px;
	border: 1px solid var(--theme-border-color, #e5e7eb);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}
.df-kalendarz__panel[hidden] { display: none; }
.df-kalendarz__naglowek {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
	font-size: 15px;
}
.df-kalendarz__naglowek strong { text-transform: capitalize; }
.df-kalendarz__nawigacja {
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 8px;
	background: var(--df-green-soft);
	color: var(--df-green);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}
.df-kalendarz__nawigacja:disabled { opacity: .3; cursor: default; }
.df-kalendarz__siatka {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
	text-align: center;
}
.df-kalendarz__dzien-tygodnia {
	padding: 4px 0;
	color: #9ca3af;
	font-size: 12px;
}
.df-kalendarz__dzien {
	padding: 7px 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	font: inherit;
	font-size: 14px;
	color: inherit;
	cursor: pointer;
}
.df-kalendarz__dzien:hover:not(:disabled) { background: var(--df-green-soft); }
.df-kalendarz__dzien.is-wybrany {
	background: var(--df-green);
	color: #fff;
	font-weight: 600;
}
.df-kalendarz__dzien:disabled { color: #d1d5db; cursor: default; }
.df-kalendarz__dzien.is-zajety { text-decoration: line-through; }
.df-kalendarz__legenda {
	margin: 10px 0 0;
	color: #6b7280;
	font-size: 12px;
	line-height: 1.4;
}

/* Skrzynka jest już w koszyku - zamiast przełącznika sam komunikat */
.df-toolbox-jest {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 14px;
	padding: 12px 14px;
	border: 1px solid var(--df-green);
	border-radius: 10px;
	background: var(--df-green-soft);
	font-size: 14px;
	line-height: 1.45;
}
.df-toolbox-jest__ptaszek { display: flex; padding-top: 2px; }
.df-toolbox-jest__ptaszek svg { fill: var(--df-green); }
.df-toolbox-termin__info {
	margin: 0;
	color: var(--theme-text-color, #6b7280);
	font-size: 13px;
}


/* Strona wynajmu skrzynki dla klienta: /skrzynka/{token}/ (2026-09-22) */
.df-skrzynka-strona {
	--df-green: var(--theme-palette-color-1, #23563f);
	--df-green-soft: #e6f0eb;
	--df-ink: var(--theme-palette-color-4, #152420);
	max-width: 640px;
	margin: 0 auto;
	padding: 40px 16px 60px;
}
.df-skrzynka-karta {
	padding: 28px;
	border: 1px solid var(--theme-border-color, #e2edef);
	border-radius: 16px;
	background: #fff;
}
.df-skrzynka-nad {
	margin: 0 0 4px;
	color: var(--df-green);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.df-skrzynka-karta h1 { margin: 0 0 18px; font-size: 26px; line-height: 1.25; }

.df-skrzynka-komunikat {
	margin-bottom: 18px;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.45;
}
.df-skrzynka-komunikat--sukces { background: var(--df-green-soft); color: var(--df-ink); }
.df-skrzynka-komunikat--info { background: #eef4f5; color: var(--df-ink); }
.df-skrzynka-komunikat--blad { background: #fdeceb; color: #8a2a24; }

.df-skrzynka-termin {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 20px;
	padding: 18px 20px;
	border-radius: 12px;
	background: var(--df-green-soft);
}
.df-skrzynka-termin strong { font-size: 24px; line-height: 1.2; color: var(--df-ink); }
.df-skrzynka-termin__etykieta { font-size: 13px; color: #55645f; }
.df-skrzynka-termin__dni { font-size: 13px; color: #55645f; }
.df-skrzynka-termin.is-spozniony { background: #fdeceb; }
.df-skrzynka-termin.is-spozniony .df-skrzynka-termin__dni { color: #8a2a24; font-weight: 600; }

.df-skrzynka-akcje { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.df-skrzynka-akcje form { margin: 0; }
.df-skrzynka-przycisk {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 20px;
	border: 1px solid var(--df-green);
	border-radius: 10px;
	background: var(--df-green);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.df-skrzynka-przycisk:hover { opacity: .92; color: #fff; }
.df-skrzynka-przycisk--lekki { background: #fff; color: var(--df-green); }
.df-skrzynka-przycisk--lekki:hover { background: var(--df-green-soft); color: var(--df-green); }
.df-skrzynka-podpowiedz { margin: -2px 0 6px; color: #6b7a75; font-size: 13px; line-height: 1.45; }
.df-skrzynka-info { margin: 0 0 18px; line-height: 1.5; }

.df-skrzynka-dane {
	display: grid;
	gap: 10px;
	margin: 0 0 18px;
	padding-top: 18px;
	border-top: 1px solid var(--theme-border-color, #e2edef);
}
.df-skrzynka-dane > div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.df-skrzynka-dane dt { margin: 0; color: #6b7a75; }
.df-skrzynka-dane dd { margin: 0; text-align: right; color: var(--df-ink); }
.df-skrzynka-pomoc { margin: 0; color: #6b7a75; font-size: 13px; line-height: 1.5; }

@media (max-width: 480px) {
	.df-skrzynka-karta { padding: 20px 16px; }
	.df-skrzynka-karta h1 { font-size: 22px; }
}
