/* =============================================================================
   RW 2026 – cena na karcie produktu.
   Zasada: przed wyborem wariantu widać zakres; po wyborze – tylko cena wariantu:
   duża cena aktualna, obok mniejsza przekreślona cena pierwotna. To samo w panelu bocznym.
   Nadpisuje: price.php (style inline z selektorem #single-product – stąd ID w naszych selektorach),
   assets/custom-product/product-price.css, style.css.
   ============================================================================ */

/* --- opis produktu (p.price) ------------------------------------------------ */
body.single-product.rw-gallery-on #single-product div.product .summary p.price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 14px;
	padding: 16px 0;
	position: relative;
}

/* zakres cen (owijany w JS w .rw-price-range) znika po wyborze wariantu */
body.single-product.rw-gallery-on #single-product div.product .summary p.price.rw-has-variation > .rw-price-range {
	display: none;
}

body.single-product.rw-gallery-on #single-product div.product .summary p.price > .rw-price-range {
	font-size: 20px;
	font-weight: 500;
	line-height: 32px;
}

body.single-product.rw-gallery-on #single-product div.product .summary p.price .new-variation-price {
	position: static !important;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	margin: 0 !important;
	bottom: auto;
	left: auto;
}

body.single-product.rw-gallery-on #single-product div.product .summary p.price .new-variation-price:empty {
	display: none;
}

body.single-product.rw-gallery-on #single-product div.product .summary p.price .new-variation-price > .price {
	display: contents;
}

body.single-product.rw-gallery-on #single-product div.product .summary p.price .new-variation-price ins {
	order: 1;
	margin: 0 !important;
	font-size: 26px;
	font-weight: 600;
	line-height: 32px;
	text-decoration: none;
	color: #312d2e;
	background: none;
}

body.single-product.rw-gallery-on #single-product div.product .summary p.price .new-variation-price del {
	display: inline-block !important; /* style.css: p.price del { display:none !important } */
	order: 2;
	opacity: 1;
	font-size: 16px;
	font-weight: 500;
	line-height: 20px;
	color: #8a8385;
	text-decoration: none;
}

body.single-product.rw-gallery-on #single-product div.product .summary p.price .new-variation-price del bdi {
	font-size: inherit;
	line-height: inherit;
	font-weight: inherit;
	color: inherit;
	text-decoration: line-through;
	text-decoration-color: #c9574a;
	text-decoration-thickness: 1.5px;
}

body.single-product.rw-gallery-on #single-product div.product .summary p.price .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

body.single-product.rw-gallery-on #single-product div.product .summary p.price .variation-price {
	display: none !important; /* stara tekstowa kopia ceny */
}

body.single-product.rw-gallery-on #single-product div.product .summary p.price .add-to-wishlist {
	margin-left: auto;
	align-self: center;
}

/* --- panel „Wybierz swoją konfigurację” ------------------------------------ */
body.single-product.rw-gallery-on .variations-sidebar .single_variation_wrap {
	margin-top: 8px;
}

body.single-product.rw-gallery-on .variations-sidebar .woocommerce-variation-price {
	display: block;
	margin: 0 0 14px;
	font-size: 16px;
	color: #312d2e;
}

body.single-product.rw-gallery-on .variations-sidebar .woocommerce-variation-price .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	font-size: inherit;
	color: inherit;
}

body.single-product.rw-gallery-on .variations-sidebar .woocommerce-variation-price ins {
	order: 1;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.1;
	text-decoration: none;
	color: #312d2e;
	background: none;
}

body.single-product.rw-gallery-on .variations-sidebar .woocommerce-variation-price del {
	order: 2;
	display: inline-block;
	font-size: 16px;
	font-weight: 500;
	color: #8a8385;
	text-decoration: none;
}

body.single-product.rw-gallery-on .variations-sidebar .woocommerce-variation-price del bdi {
	text-decoration: line-through;
	text-decoration-color: #c9574a;
	text-decoration-thickness: 1.5px;
}

body.single-product.rw-gallery-on .variations-sidebar .woocommerce-variation-price .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* stara kopia ceny z ukośną czerwoną kreską – chowamy, cena jest wyżej w WC-owym bloku */
body.single-product.rw-gallery-on .variations-sidebar .variation-price#variation-price-copy {
	display: none;
}
