/**
 * Variation labels + swatch chips — site-wide (WooCommerce product forms).
 */

.woocommerce table.variations .label label {
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: rgba(0, 0, 0, 0.78);
}

.woocommerce ul.variable-items-wrapper .variable-item.button-variable-item .variable-item-span,
.woocommerce ul.variable-items-wrapper .variable-item.button-variable-item > span {
	font-size: 0.9375rem;
}

@media (max-width: 768px) {
	.woocommerce ul.variable-items-wrapper .variable-item.button-variable-item .variable-item-span,
	.woocommerce ul.variable-items-wrapper .variable-item.button-variable-item > span {
		font-size: 0.9rem;
	}
}

/* Sale layout: compare (struck through, gray) on top; sale price below */
.woocommerce p.price,
.woocommerce .summary .price,
.woocommerce .product .price,
.woocommerce .woocommerce-variation-price .price,
.rse-price-polish,
.rse-price-polish__prices {
	display: inline-flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 0.2rem !important;
}

.woocommerce .price del,
.woocommerce .price del .amount,
.woocommerce .price del .woocommerce-Price-amount,
.woocommerce .price del bdi,
.woocommerce .woocommerce-variation-price del,
.woocommerce .woocommerce-variation-price del .amount,
.woocommerce .woocommerce-variation-price del .woocommerce-Price-amount,
.rse-price-polish del,
.rse-price-polish__prices del {
	order: 1;
	display: block !important;
	color: rgba(0, 0, 0, 0.48) !important;
	text-decoration: line-through !important;
	text-decoration-thickness: 1px;
	text-decoration-color: currentColor;
	opacity: 1 !important;
	font-weight: 400;
}

.woocommerce .price ins,
.woocommerce .price ins .amount,
.woocommerce .price ins .woocommerce-Price-amount,
.woocommerce .woocommerce-variation-price ins,
.woocommerce .woocommerce-variation-price ins .amount,
.rse-price-polish ins,
.rse-price-polish__prices ins {
	order: 2;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	text-decoration: none !important;
}

/* WoodMart "hide larger price" — keep vertical stack, don't hide compare */
.hide-larger-price .price {
	word-spacing: normal !important;
	visibility: visible !important;
	white-space: normal !important;
}

.hide-larger-price .price > :is(ins, small) {
	margin-inline-start: 0 !important;
	display: block !important;
}

/* Hide %-circle / sale badges everywhere */
span.onsale,
.product-label.onsale,
.product-labels .product-label.onsale,
.wd-fbt-sale-label.onsale {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}
