/* Hide the parent price area only when Hide + blank description leaves it empty. */
.single-product div.product.product-type-variable .summary.entry-summary > p.price:empty {
	display: none;
}

/* Custom parent description (may include shortcodes) should not inherit theme price styling.
   1.5.17: match Divi Woo Price modules as well as the default WooCommerce summary wrapper. */
.single-product .price.itpcsub-custom-desc,
.single-product .et_pb_wc_price .itpcsub-custom-desc {
	display: block;
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
	line-height: normal !important;
	height: auto;
	overflow: visible;
}


/* 1.5.16: WooCommerce attribute row — dropdown on the left, label on the right (every variable product).
   1.5.17: do not stretch the value cell; Divi pins its caret to the right edge of td.value. */
.single-product div.product form.cart table.variations {
	width: 100%;
	border: 0;
	border-collapse: collapse;
}
.single-product div.product form.cart table.variations tbody,
.single-product div.product form.cart table.variations tr {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
}
.single-product div.product form.cart table.variations th.label,
.single-product div.product form.cart table.variations td.label {
	display: block;
	float: none;
	width: auto;
	flex: 0 0 auto;
	padding: 0 !important;
	margin: 0;
	text-align: left;
	white-space: nowrap;
	font-weight: 600;
	vertical-align: middle;
	line-height: 1.3;
}
.single-product div.product form.cart table.variations td.value {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 1 auto;
	position: relative;
	padding: 0 !important;
	margin: 0;
	width: auto;
	max-width: none !important;
}
.single-product div.product form.cart table.variations td.value span {
	position: relative;
	display: inline-block;
	width: auto;
	max-width: 100%;
}
.single-product div.product form.cart table.variations td.value select {
	flex: 0 1 auto;
	width: auto !important;
	min-width: 14em;
	max-width: 100%;
	margin: 0;
	font-size: inherit;
	padding-right: 2em;
}
.single-product div.product form.cart table.variations td.value .reset_variations {
	flex: 0 0 auto;
}

.single-product .itpcsub-custom-desc-line {
	display: block;
	line-height: 1.2 !important;
	overflow: visible;
	white-space: normal;
}
