/**
 * Przycisk shortcode „Personalizuj tapetę” (np. karta produktu WooCommerce).
 */

a.wcp-configure-wallpaper-btn.wcp-wallpaper-crop-btn,
button.wcp-configure-wallpaper-btn.wcp-wallpaper-crop-btn,
a.wcp-wallpaper-crop-btn.button,
button.wcp-wallpaper-crop-btn.button {
	display: inline-block;
	padding: 15px 50px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.3;
	color: #fff !important;
	background: #111111 !important;
	border: none !important;
	border-radius: 100px;
	text-decoration: none !important;
	box-sizing: border-box;
	cursor: pointer;
	font-family: inherit;
}

a.wcp-configure-wallpaper-btn.wcp-wallpaper-crop-btn:hover,
button.wcp-configure-wallpaper-btn.wcp-wallpaper-crop-btn:hover,
a.wcp-configure-wallpaper-btn.wcp-wallpaper-crop-btn:focus,
button.wcp-configure-wallpaper-btn.wcp-wallpaper-crop-btn:focus,
a.wcp-wallpaper-crop-btn.button:hover,
button.wcp-wallpaper-crop-btn.button:hover,
a.wcp-wallpaper-crop-btn.button:focus,
button.wcp-wallpaper-crop-btn.button:focus {
	color: #fff !important;
	background: #252525 !important;
	outline: none;
}

button.wcp-configure-wallpaper-btn.wcp-wallpaper-crop-btn:disabled,
button.wcp-wallpaper-crop-btn.button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/*
 * Podgląd wymiarów i ceny — shortcode [wcp_wallpaper_crop] / [wcp_configure_wallpaper].
 */
.wcp-crop-entry.wcp-product-teaser {
	display: block;
	margin: 1em 0;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	align-self: stretch;
	text-align: left;
	box-sizing: border-box;
}

/* Pełna szerokość kolumny (Elementor / podsumowanie produktu często zwęża widget). */
.elementor-widget-shortcode .wcp-crop-entry.wcp-product-teaser,
.elementor-widget-shortcode .wcp-product-teaser,
.woocommerce .summary .wcp-crop-entry.wcp-product-teaser {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.elementor-widget-shortcode:has(.wcp-product-teaser) .elementor-shortcode {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.wcp-product-teaser {
	--wcp-text: #1a1a1a;
	--wcp-muted: #6b6b6b;
	--wcp-dim-field-bg: #e8e8e8;
	--wcp-dim-field-bg-hover: #dedede;
	--wcp-dim-field-bg-active: #d4d4d4;
	--wcp-font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
	box-sizing: border-box;
	color: var(--wcp-text);
	font-family: var(--wcp-font-family);
	font-size: 16px;
	line-height: 1.45;
	text-align: left;
}

.wcp-product-teaser *,
.wcp-product-teaser *::before,
.wcp-product-teaser *::after {
	box-sizing: border-box;
}

.wcp-product-teaser__dims {
	container-type: inline-size;
	container-name: wcp-teaser-dims;
	margin-bottom: 16px;
	width: 100%;
	min-width: 0;
}

/*
 * Cena w pierwszej linii; wymiary zawsze w osobnej linii pod ceną.
 */
.wcp-product-teaser__price-stack {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: flex-start;
	align-content: flex-start;
	gap: 12px 0;
	margin: 0;
	font-size: 16px;
	line-height: 1.45;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.wcp-product-teaser__price-meta {
	flex: 0 0 auto;
	width: max-content;
	max-width: 100%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
}

.wcp-product-teaser__panels-inline {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 4px 8px;
	min-width: 0;
	width: max-content;
	max-width: 100%;
	margin-top: -5px;
	justify-content: flex-start;
	text-align: left;
	box-sizing: border-box;
	font-size: 14px;
	font-weight: 400;
}

.wcp-product-teaser__panels-inline .wcp-product-teaser__price-label,
.wcp-product-teaser__panels-inline .wcp-product-teaser__panel-count-value {
	font-size: 14px;
	font-weight: 400;
	white-space: nowrap;
	text-align: left;
	color: var(--wcp-text);
}

.wcp-product-teaser__panel-count-value {
	font-weight: 500;
	font-size: 20px;
	white-space: nowrap;
	text-align: left;
	color: var(--wcp-text);
}

.wcp-product-teaser__price-inline {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 4px 8px;
	min-width: 0;
	min-height: 0;
	width: max-content;
	max-width: 100%;
	justify-content: flex-start;
	text-align: left;
	box-sizing: border-box;
}

.wcp-product-teaser__area-paren {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.25em;
	margin-left: 0.12em;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
	color: var(--wcp-text);
}

.wcp-product-teaser__area-paren .wcp-product-teaser__area-label,
.wcp-product-teaser__area-paren .wcp-product-teaser__panel-count-value {
	font-size: 14px;
	font-weight: 400;
	white-space: nowrap;
	color: var(--wcp-text);
}

.wcp-product-teaser__price-label {
	color: var(--wcp-text);
	font-weight: 500;
	font-size: 30px;
	white-space: nowrap;
	text-align: left;
}

.wcp-product-teaser__price-value {
	font-weight: 400;
	font-size: 30px;
	white-space: nowrap;
	text-align: left;
}

.wcp-product-teaser__dims-cluster {
	flex: 0 0 auto;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	align-self: stretch;
	margin-left: 0;
}

.wcp-product-teaser .wcp-dims-inline {
	width: max-content;
	max-width: 100%;
	min-width: 0;
}

.wcp-product-teaser .wcp-dims-grid.wcp-dims-grid--with-sublabels {
	width: max-content;
	max-width: 100%;
	min-width: 0;
}

.wcp-product-teaser__above-buttons {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 20px;
	color: #111;
	font-family: var(--wcp-font-family);
	text-align: left;
}

.wcp-product-teaser__above-buttons p {
	margin: 0 0 0.5em;
}

.wcp-product-teaser__above-buttons p:last-child {
	margin-bottom: 0;
}

.wcp-product-teaser__texture-field {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	width: 100%;
	max-width: 100%;
	margin: 0 0 12px;
	box-sizing: border-box;
	font-family: var(--wcp-font-family);
}

.wcp-product-teaser__texture-field-label {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
	color: var(--wcp-text);
	cursor: pointer;
}

.wcp-product-teaser button.wcp-product-teaser__texture-trigger {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 10px 24px;
	border: 1px solid #c8c8c8 !important;
	border-radius: 100px !important;
	background: #fff !important;
	background-color: #fff !important;
	box-shadow: none !important;
	color: var(--wcp-text) !important;
	font-family: var(--wcp-font-family);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
	box-sizing: border-box;
}

.wcp-product-teaser button.wcp-product-teaser__texture-trigger:hover,
.wcp-product-teaser button.wcp-product-teaser__texture-trigger:focus {
	border-color: #111 !important;
	background: #111 !important;
	background-color: #111 !important;
	color: #fff !important;
}

.wcp-product-teaser button.wcp-product-teaser__texture-trigger:focus {
	outline: none;
}

.wcp-product-teaser button.wcp-product-teaser__texture-trigger:focus-visible {
	outline: 2px solid rgba(28, 36, 75, 0.45);
	outline-offset: 2px;
}

.wcp-product-teaser__button-row {
	margin-top: 35px;
	clear: both;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.wcp-product-teaser__cta-stack {
	--wcp-teaser-cta-width: 300px;
	margin-top: 50px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.wcp-product-teaser__cta-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	justify-items: stretch;
	gap: 15px 100px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.wcp-product-teaser__cta-or {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	max-width: 100%;
	margin: 14px 0;
	box-sizing: border-box;
}

.wcp-product-teaser__cta-or-line {
	flex: 1 1 auto;
	display: block;
	height: 1px;
	min-width: 24px;
	background: #d4d4d4;
}

.wcp-product-teaser__cta-col--text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}

.wcp-product-teaser__cta-col--button,
.wcp-product-teaser__cta-col--buttons {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: flex-end;
	justify-content: center;
	min-width: var(--wcp-teaser-cta-width);
	box-sizing: border-box;
}

/*
 * Karta produktu — shortcode [wcp_wallpaper_crop] / wcp-product-teaser (telefon i wąski tablet).
 */
@media (max-width: 767px) {
	.wcp-product-teaser {
		font-size: 15px;
	}

	.wcp-product-teaser__dims {
		margin-bottom: 12px;
	}

	.wcp-product-teaser__price-stack {
		gap: 25px 0;
		align-items: center;
	}

	.wcp-product-teaser__price-meta {
		align-items: center;
		width: 100%;
		max-width: 100%;
	}

	.wcp-product-teaser__price-inline,
	.wcp-product-teaser__panels-inline {
		width: 100%;
		max-width: 100%;
		justify-content: center;
		text-align: center;
	}

	.wcp-product-teaser__price-inline {
		flex-wrap: wrap;
		row-gap: 4px;
		min-height: 0;
	}

	.wcp-product-teaser__price-label,
	.wcp-product-teaser__price-value {
		font-size: 24px;
		line-height: 1.2;
	}

	.wcp-product-teaser__area-paren {
		flex: 1 1 100%;
		margin-left: 0;
		justify-content: center;
	}

	.wcp-product-teaser__dims-cluster {
		width: 100%;
		max-width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.wcp-product-teaser .wcp-dims-inline {
		width: 100%;
		max-width: 100%;
		display: flex;
		justify-content: center;
	}

	.wcp-product-teaser .wcp-dims-grid.wcp-dims-grid--with-sublabels {
		width: max-content;
		max-width: 100%;
		margin-inline: auto;
		grid-template-columns: 1fr;
		grid-template-rows: repeat(5, auto);
		gap: 6px 0;
		justify-items: center;
	}

	.wcp-product-teaser .wcp-dims-grid.wcp-dims-grid--with-sublabels > .wcp-dim-stepper:first-child {
		grid-column: 1;
		grid-row: 1;
	}

	.wcp-product-teaser .wcp-dims-grid.wcp-dims-grid--with-sublabels > .wcp-dim-sublabel:nth-child(4) {
		grid-column: 1;
		grid-row: 2;
	}

	.wcp-product-teaser .wcp-dims-grid.wcp-dims-grid--with-sublabels > .wcp-dims-x {
		grid-column: 1;
		grid-row: 3;
		display: flex;
		align-items: center;
		justify-content: center;
		justify-self: center;
		margin: 2px 0;
	}

	.wcp-product-teaser .wcp-dims-grid.wcp-dims-grid--with-sublabels > .wcp-dim-stepper:last-of-type {
		grid-column: 1;
		grid-row: 4;
	}

	.wcp-product-teaser .wcp-dims-grid.wcp-dims-grid--with-sublabels > .wcp-dim-sublabel:last-of-type {
		grid-column: 1;
		grid-row: 5;
	}

	.wcp-product-teaser .wcp-dim-stepper {
		width: max-content;
		max-width: 100%;
		justify-content: center;
		justify-self: center;
		margin-inline: auto;
	}

	.wcp-product-teaser .wcp-dim-stepper .wcp-dim-input-wrap input[type='number'] {
		text-align: center !important;
	}

	.wcp-product-teaser .wcp-dims-sub-spacer {
		display: none;
	}

	.wcp-product-teaser .wcp-dim-sublabel {
		text-align: center;
		width: 100%;
		margin-bottom: 0;
	}

	.wcp-product-teaser__texture-field {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.wcp-product-teaser__texture-field-label {
		width: 100%;
	}

	.wcp-product-teaser button.wcp-product-teaser__texture-trigger {
		width: 100%;
		max-width: 100%;
		justify-content: center;
	}

	.wcp-product-teaser__button-row {
		margin-top: 20px;
	}

	.wcp-product-teaser__cta-stack {
		--wcp-teaser-cta-width: 100%;
		margin-top: 28px;
	}

	.wcp-product-teaser__cta-row {
		grid-template-columns: 1fr;
		align-items: stretch;
		gap: 12px;
	}

	.wcp-product-teaser__cta-col--text,
	.wcp-product-teaser__cta-col--button,
	.wcp-product-teaser__cta-col--buttons {
		align-items: stretch;
		width: 100%;
		min-width: 0;
	}

	.wcp-product-teaser__add-form,
	.wcp-product-teaser__cta-col--button .wcp-product-teaser__add-to-cart,
	.wcp-product-teaser__cta-col--button .wcp-product-teaser__add-to-cart--link,
	.wcp-product-teaser__cta-col--button .wcp-product-teaser__configure,
	.wcp-product-teaser__cta-col--buttons .wcp-product-teaser__add-to-cart,
	.wcp-product-teaser__cta-col--buttons .wcp-product-teaser__add-to-cart--link,
	.wcp-product-teaser__cta-col--buttons .wcp-product-teaser__configure {
		width: 100%;
		max-width: 100%;
	}

	a.wcp-configure-wallpaper-btn.wcp-wallpaper-crop-btn,
	button.wcp-configure-wallpaper-btn.wcp-wallpaper-crop-btn,
	a.wcp-wallpaper-crop-btn.button,
	button.wcp-wallpaper-crop-btn.button {
		display: block;
		width: 100%;
		max-width: 100%;
		padding: 14px 20px;
		font-size: 15px;
		text-align: center;
		box-sizing: border-box;
	}
}

@media (max-width: 640px) {
	.wcp-product-teaser__cta-row {
		grid-template-columns: 1fr;
		align-items: stretch;
		gap: 16px;
	}

	.wcp-product-teaser__cta-col--button,
	.wcp-product-teaser__cta-col--buttons {
		align-items: stretch;
		width: 100%;
		min-width: 0;
	}
}

.wcp-product-teaser__add-form {
	margin: 0;
	padding: 0;
	display: block;
	flex: 0 0 auto;
	width: var(--wcp-teaser-cta-width);
	max-width: 100%;
	border: 0;
	background: transparent;
	box-shadow: none;
	box-sizing: border-box;
}

.wcp-product-teaser__cta-col--button .wcp-product-teaser__add-form,
.wcp-product-teaser__cta-col--button .wcp-product-teaser__add-to-cart,
.wcp-product-teaser__cta-col--button .wcp-product-teaser__add-to-cart--link,
.wcp-product-teaser__cta-col--button .wcp-product-teaser__configure,
.wcp-product-teaser__cta-col--buttons .wcp-product-teaser__add-form,
.wcp-product-teaser__cta-col--buttons .wcp-product-teaser__add-to-cart,
.wcp-product-teaser__cta-col--buttons .wcp-product-teaser__add-to-cart--link,
.wcp-product-teaser__cta-col--buttons .wcp-product-teaser__configure {
	margin: 0 !important;
}

.wcp-product-teaser__cta-col--button .wcp-product-teaser__add-to-cart,
.wcp-product-teaser__cta-col--button .wcp-product-teaser__add-to-cart--link,
.wcp-product-teaser__cta-col--button .wcp-product-teaser__configure,
.wcp-product-teaser__cta-col--buttons .wcp-product-teaser__add-to-cart,
.wcp-product-teaser__cta-col--buttons .wcp-product-teaser__add-to-cart--link,
.wcp-product-teaser__cta-col--buttons .wcp-product-teaser__configure {
	display: block;
	width: var(--wcp-teaser-cta-width);
	max-width: 100%;
	box-sizing: border-box;
	text-align: center;
	border-radius: 100px !important;
	background: #111111 !important;
	border: none !important;
	color: #fff !important;
}

.wcp-product-teaser__cta-col--button .wcp-product-teaser__add-to-cart:hover,
.wcp-product-teaser__cta-col--button .wcp-product-teaser__add-to-cart--link:hover,
.wcp-product-teaser__cta-col--button .wcp-product-teaser__configure:hover,
.wcp-product-teaser__cta-col--buttons .wcp-product-teaser__add-to-cart:hover,
.wcp-product-teaser__cta-col--buttons .wcp-product-teaser__add-to-cart--link:hover,
.wcp-product-teaser__cta-col--buttons .wcp-product-teaser__configure:hover,
.wcp-product-teaser__cta-col--button .wcp-product-teaser__add-to-cart:focus,
.wcp-product-teaser__cta-col--button .wcp-product-teaser__add-to-cart--link:focus,
.wcp-product-teaser__cta-col--button .wcp-product-teaser__configure:focus,
.wcp-product-teaser__cta-col--buttons .wcp-product-teaser__add-to-cart:focus,
.wcp-product-teaser__cta-col--buttons .wcp-product-teaser__add-to-cart--link:focus,
.wcp-product-teaser__cta-col--buttons .wcp-product-teaser__configure:focus {
	background: #252525 !important;
	color: #fff !important;
}

.wcp-product-teaser__cta-or .wcp-product-teaser__or {
	color: #6b6b6b;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.3;
	user-select: none;
	text-align: center;
	flex: 0 0 auto;
	width: auto;
	max-width: 100%;
	box-sizing: border-box;
	white-space: nowrap;
}

/* Shortcode teaser: siatka 2×3 jak w edytorze (steppery + × / podpisy). */
.wcp-product-teaser .wcp-dims-grid.wcp-dims-grid--with-sublabels {
	display: grid;
	grid-template-columns: minmax(0, max-content) auto minmax(0, max-content);
	grid-template-rows: auto auto;
	gap: 6px 12px;
	align-items: center;
	justify-items: stretch;
}

.wcp-product-teaser .wcp-dim-stepper {
	display: flex;
	flex-direction: row;
	align-items: center;
	min-width: 0;
	gap: 5px;
}

/* Karta produktu: kompaktowe ±, pole liczbowe na 9 cyfr. */
.wcp-product-teaser .wcp-dim-stepper button.wcp-dim-btn {
	-webkit-appearance: none;
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: var(--wcp-font-family);
	font-size: 1.05rem;
	font-weight: 600;
	font-style: normal;
	line-height: 1;
	color: var(--wcp-text);
	background-color: var(--wcp-dim-field-bg);
	background-image: none;
	border: 0;
	border-radius: 5px;
	box-shadow: none;
	outline: 0;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.12s ease, color 0.12s ease;
}

.wcp-product-teaser .wcp-dim-stepper button.wcp-dim-btn:hover,
.wcp-product-teaser .wcp-dim-stepper button.wcp-dim-btn:focus:hover {
	color: var(--wcp-text);
	background-color: var(--wcp-dim-field-bg-hover);
}

.wcp-product-teaser .wcp-dim-stepper button.wcp-dim-btn:focus-visible {
	outline: 2px solid rgba(124, 45, 45, 0.35);
	outline-offset: -2px;
	z-index: 1;
}

.wcp-product-teaser .wcp-dim-stepper button.wcp-dim-btn:active {
	background-color: var(--wcp-dim-field-bg-active);
}

.wcp-product-teaser .wcp-dim-stepper button.wcp-dim-btn--minus,
.wcp-product-teaser .wcp-dim-stepper button.wcp-dim-btn--plus {
	font-size: 0;
	line-height: 0;
}

.wcp-product-teaser .wcp-dim-stepper button.wcp-dim-btn .wcp-dim-btn-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.wcp-product-teaser .wcp-dim-stepper button.wcp-dim-btn .wcp-dim-btn-icon svg {
	width: 16px;
	height: 16px;
	display: block;
	flex-shrink: 0;
}

.wcp-product-teaser .wcp-dim-input-wrap {
	flex: 0 0 auto;
	width: calc(9ch + 10px);
	min-width: calc(9ch + 10px);
	max-width: calc(9ch + 10px);
	min-height: 40px;
	display: flex;
	align-items: stretch;
	border-radius: 5px;
	overflow: hidden;
}

.wcp-product-teaser .wcp-dim-stepper .wcp-dim-input-wrap input[type='number'] {
	-moz-appearance: textfield;
	-webkit-appearance: none;
	appearance: textfield;
	width: 100%;
	margin: 0;
	padding: 0 5px;
	height: 40px;
	min-height: 40px;
	box-sizing: border-box;
	border: none;
	border-radius: 5px !important;
	background: var(--wcp-dim-field-bg);
	color: var(--wcp-text);
	font-family: var(--wcp-font-family);
	font-size: 16px;
	line-height: 40px;
	text-align: center;
	font-variant-numeric: tabular-nums;
	transition: background-color 0.12s ease;
}

.wcp-product-teaser .wcp-dim-stepper .wcp-dim-input-wrap input[type='number']::-webkit-outer-spin-button,
.wcp-product-teaser .wcp-dim-stepper .wcp-dim-input-wrap input[type='number']::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.wcp-product-teaser .wcp-dim-stepper .wcp-dim-input-wrap input[type='number']:focus,
.wcp-product-teaser .wcp-dim-stepper .wcp-dim-input-wrap input[type='number']:focus-visible {
	outline: none;
	box-shadow: none;
	border-radius: 5px !important;
	background-color: var(--wcp-dim-field-bg-active);
}

.wcp-product-teaser .wcp-dim-sublabel {
	display: block;
	font-size: 12px;
	line-height: 1.25;
	color: var(--wcp-muted);
	text-align: center;
	width: 100%;
}

.wcp-product-teaser .wcp-dims-sub-spacer {
	display: block;
	min-height: 0;
	pointer-events: none;
}

.wcp-product-teaser .wcp-dims-x {
	justify-self: center;
	align-self: center;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	line-height: 0;
	color: var(--wcp-muted);
}

.wcp-product-teaser .wcp-dims-x-img {
	display: inline-block;
	vertical-align: middle;
	width: 1.125em;
	height: 1.125em;
	max-width: 22px;
	max-height: 22px;
	margin: 0 2px;
	object-fit: contain;
	flex-shrink: 0;
}

/* Wymiary z shortcode w nazwie pozycji koszyka / zamówienia */
.wcp-cart-item-dims {
	font-weight: 400;
	font-size: 0.92em;
	color: #6b6b6b;
	white-space: nowrap;
}

/* Nagłówek i podpis — shortcode [wcp_wallpaper_source_image] */
.wcp-wallpaper-source-image__heading {
	margin: 0 0 5px;
	padding: 0;
}
.wcp-wallpaper-source-image__figure {
	margin: 0;
}
.wcp-wallpaper-source-image__visual {
	position: relative;
	display: block;
	line-height: 0;
}
.wcp-wallpaper-source-image__visual > img {
	border-radius: 2px;
	vertical-align: top;
	max-width: 100%;
	height: auto;
}
/*
 * Przycisk powiększenia — pełny reset (motyw / WooCommerce często nadaje :active na button).
 */
.wcp-wallpaper-source-image button.wcp-wallpaper-source-image__zoom {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	margin: 0;
	padding: 4px;
	border: 0 !important;
	border-radius: 2px;
	background: #f9f9f9 !important;
	background-color: #f9f9f9 !important;
	background-image: none !important;
	box-shadow: none !important;
	text-shadow: none;
	font: inherit;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	color: #000 !important;
	cursor: pointer;
	line-height: 0;
	box-sizing: border-box;
	min-height: 0;
	min-width: 0;
	vertical-align: baseline;
	-webkit-tap-highlight-color: transparent;
}

.wcp-wallpaper-source-image button.wcp-wallpaper-source-image__zoom:hover,
.wcp-wallpaper-source-image button.wcp-wallpaper-source-image__zoom:focus,
.wcp-wallpaper-source-image button.wcp-wallpaper-source-image__zoom:focus-visible,
.wcp-wallpaper-source-image button.wcp-wallpaper-source-image__zoom:active {
	background: #f9f9f9 !important;
	background-color: #f9f9f9 !important;
	background-image: none !important;
	box-shadow: none !important;
	border: 0 !important;
	color: #000 !important;
	outline: none;
}

/* Bez zmiany ikony na jasny/biały przy najechaniu (nadpisanie motywu). */
.wcp-wallpaper-source-image button.wcp-wallpaper-source-image__zoom:hover .wcp-wallpaper-source-image__zoom-icon,
.wcp-wallpaper-source-image button.wcp-wallpaper-source-image__zoom:focus .wcp-wallpaper-source-image__zoom-icon,
.wcp-wallpaper-source-image button.wcp-wallpaper-source-image__zoom:focus-visible .wcp-wallpaper-source-image__zoom-icon,
.wcp-wallpaper-source-image button.wcp-wallpaper-source-image__zoom:active .wcp-wallpaper-source-image__zoom-icon {
	filter: none !important;
	opacity: 1;
}

.wcp-wallpaper-source-image button.wcp-wallpaper-source-image__zoom:focus-visible {
	outline: 2px solid #007aff !important;
	outline-offset: 2px;
}
.wcp-wallpaper-source-image__zoom-icon {
	display: block;
	width: 20px;
	height: 20px;
	object-fit: contain;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	vertical-align: top;
}
.wcp-wallpaper-source-image__figure + .wcp-wallpaper-source-image__figure {
	margin-top: 1em;
}
.wcp-wallpaper-source-image__caption {
	margin: 5px 0;
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 14px;
	color: #666;
}

.wc-phc-label,
.wc-phc-ral {
	color: #666;
}

/* Pełnoekranowy podgląd tekstury z paska na karcie produktu. */
.wcp-texture-lightbox {
	position: fixed;
	inset: 0;
	z-index: 2147483646;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 16px;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.88);
}

.wcp-texture-lightbox__img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.wcp-texture-lightbox__close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.95);
	color: #1a1a1a;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.12s ease;
}

.wcp-texture-lightbox__close:hover {
	background: #fff;
}

.wcp-texture-lightbox__close:focus {
	outline: none;
}

.wcp-texture-lightbox__close:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.8);
	outline-offset: 2px;
}

.wcp-texture-lightbox__close-x {
	display: block;
	margin-top: -2px;
}

/*
 * Lightbox — pełny plik skalowany tak, by zmieścić się w oknie przeglądarki (contain).
 * Dialog ma stały rozmiar viewportu — inaczej duże zdjęcie rozpychałoby <dialog> poza ekran.
 */
.wcp-wallpaper-source-image__lightbox {
	box-sizing: border-box;
	width: 100vw;
	max-width: 100%;
	height: 100vh;
	height: 100dvh;
	max-height: 100%;
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: stretch;
}
.wcp-wallpaper-source-image__lightbox::backdrop {
	background: rgba(0, 0, 0, 0.78);
}
.wcp-wallpaper-source-image__lightbox-inner {
	position: relative;
	box-sizing: border-box;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	width: 100%;
	min-height: 0;
	max-height: 100%;
	padding: 0;
	overflow: hidden;
}
.wcp-wallpaper-source-image__lightbox-head {
	flex: 0 0 auto;
	box-sizing: border-box;
	padding: 48px 48px 10px 16px;
	text-align: center;
	color: #fff;
}
.wcp-wallpaper-source-image__lightbox-head[hidden] {
	display: none !important;
}
.wcp-wallpaper-source-image__lightbox-title {
	margin: 0;
	padding: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.35;
}
.wcp-wallpaper-source-image__lightbox-title[hidden] {
	display: none !important;
}
.wcp-wallpaper-source-image__lightbox-stage {
	position: relative;
	flex: 1 1 auto;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 0;
	padding: 0 16px 20px;
	overflow: hidden;
}
.wcp-wallpaper-source-image__lightbox-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 10;
	margin: 0;
	padding: 6px 10px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #fff;
	font-size: 28px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
	text-shadow: 0 0 4px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.9);
}
.wcp-wallpaper-source-image__lightbox-close:hover,
.wcp-wallpaper-source-image__lightbox-close:focus {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: #fff;
}
.wcp-wallpaper-source-image__lightbox-close:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.75);
	outline-offset: 3px;
}
.wcp-wallpaper-source-image__lightbox-img {
	display: block;
	box-sizing: border-box;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	margin: 0 auto;
	object-fit: contain;
	object-position: center;
	border-radius: 2px;
	vertical-align: top;
}
