/* AMOParts standalone product-detail code layer. This file intentionally
 * contains no Elementor/card rules, so detail changes can ship independently. */

html body.single-product .amoparts-product-detail-badges {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	gap: 8px;
	margin: 0 0 14px;
}

html body.single-product .amoparts-product-detail-badge {
	display: inline-flex;
	flex: 0 1 auto;
	align-items: center;
	max-width: 100%;
	min-height: 32px;
	box-sizing: border-box;
	padding: 6px 10px;
	border: 0 !important;
	border-radius: 4px;
	font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	font-style: normal !important;
	line-height: 20px;
}

html body.single-product .amoparts-product-detail-badge--clearance {
	background: #fde6e8 !important;
	color: #d82f35 !important;
}

html body.single-product .amoparts-product-detail-badge--hot {
	background: #e4f4ff !important;
	color: #168bd2 !important;
}

html body.single-product .amoparts-product-detail-badge--multi-buy {
	background: #ffd000 !important;
	color: #111 !important;
}

html body.single-product .amoparts-product-detail-badge--custom-promotion {
	background: #efe7ff !important;
	color: #5b329b !important;
}

/* WooCommerce/theme image Sale flashes are deliberately hidden on detail
 * pages. The Elementor card Sale remains owned by the homepage module. */
html body.single-product .woocommerce-product-gallery .onsale,
html body.single-product .product-images .onsale,
html body.single-product .product-image .onsale,
html body.single-product .wd-product-gallery .onsale,
html body.single-product.woocommerce .woocommerce-product-gallery .onsale,
html body.single-product.woocommerce .product-images .onsale,
html body.single-product.woocommerce .product-image .onsale,
html body.single-product.woocommerce .wd-product-gallery .onsale,
html body.single-product.woocommerce .onsale,
html body.single-product .onsale.amoparts-homepage-modules-onsale,
html body .woocommerce-product-gallery .onsale,
html body .product-images .onsale,
html body .product-image .onsale,
html body .wd-product-gallery .onsale,
html body .product-labels .onsale,
html body .product-labels .product-label.onsale,
html body .product-image .product-label.onsale,
html body .wd-product-label.onsale,
html body .product-label.onsale {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

/* Matches the measured MyMROmarts product-detail price hierarchy. */
html body.single-product .amoparts-product-detail-price {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	flex-wrap: nowrap;
	width: 100%;
	box-sizing: border-box;
	margin: 10px 0 0;
	padding: 20px;
	background: #fafafa;
	color: #232323;
	font-family: "Open Sans", Arial, sans-serif !important;
	font-size: 20px !important;
	font-weight: 400 !important;
	line-height: 30px !important;
}

html body.single-product .amoparts-product-detail-price__pricing-group {
	display: flex;
	flex-direction: row;
	align-items: center;
	flex-wrap: nowrap;
	flex: 0 0 auto;
	width: max-content;
	min-width: 0;
}

html body.single-product .amoparts-product-detail-price__sale {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	flex-wrap: nowrap;
	flex: 0 0 auto;
	width: max-content;
}

html body.single-product .amoparts-product-detail-price__current,
html body.single-product .amoparts-product-detail-price__current .woocommerce-Price-amount,
html body.single-product .amoparts-product-detail-price__current .woocommerce-Price-currencySymbol {
	display: block;
	width: auto;
	margin: 0;
	color: #2d2d2d !important;
	font-family: "Open Sans", Arial, sans-serif !important;
	font-size: 28px !important;
	font-style: italic !important;
	font-weight: 700 !important;
	line-height: 30px !important;
	text-decoration: none !important;
}

html body.single-product .amoparts-product-detail-price__regular,
html body.single-product .amoparts-product-detail-price__regular .woocommerce-Price-amount,
html body.single-product .amoparts-product-detail-price__regular .woocommerce-Price-currencySymbol {
	display: block;
	width: auto;
	margin: 0 0 0 10px;
	color: #999 !important;
	font-family: "Open Sans", Arial, sans-serif !important;
	font-size: 16px !important;
	font-style: italic !important;
	font-weight: 700 !important;
	line-height: 24px !important;
	text-decoration: line-through !important;
}

html body.single-product .amoparts-product-detail-price__saving,
html body.single-product .amoparts-product-detail-price__saving .woocommerce-Price-amount,
html body.single-product .amoparts-product-detail-price__saving .woocommerce-Price-currencySymbol {
	display: block;
	margin: 0 0 0 10px;
	color: #28a745 !important;
	font-family: "Open Sans", Arial, sans-serif !important;
	font-size: 16px !important;
	font-style: italic !important;
	font-weight: 700 !important;
	line-height: 20px !important;
	white-space: nowrap;
}

html body.single-product .amoparts-product-detail-price__current .woocommerce-Price-amount,
html body.single-product .amoparts-product-detail-price__regular .woocommerce-Price-amount,
html body.single-product .amoparts-product-detail-price__saving .woocommerce-Price-amount,
html body.single-product .amoparts-product-detail-price__current .woocommerce-Price-currencySymbol,
html body.single-product .amoparts-product-detail-price__regular .woocommerce-Price-currencySymbol,
html body.single-product .amoparts-product-detail-price__saving .woocommerce-Price-currencySymbol {
	display: inline !important;
	width: auto !important;
	margin: 0 !important;
}

html body.single-product .amoparts-product-detail-price__suffix {
	display: inline-block;
	margin-left: 10px;
	color: #232323;
	font-family: "Open Sans", Arial, sans-serif !important;
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 20px;
}

html body.single-product .amoparts-product-detail-price__suffix.excl-vat-text {
	margin-left: 5px;
	color: #666;
	font-size: 14px;
	font-weight: 400;
}

@media (max-width: 768px) {
	html body.single-product .amoparts-product-detail-badges {
		gap: 6px;
		margin-bottom: 12px;
	}

	html body.single-product .amoparts-product-detail-price {
		align-items: flex-end;
		flex-wrap: wrap;
		margin-top: 2vw;
		padding: 4vw;
	}

	html body.single-product .amoparts-product-detail-price__current,
	html body.single-product .amoparts-product-detail-price__current .woocommerce-Price-amount,
	html body.single-product .amoparts-product-detail-price__current .woocommerce-Price-currencySymbol {
		font-size: 5.6vw !important;
		line-height: 6vw !important;
	}

	html body.single-product .amoparts-product-detail-price__regular,
	html body.single-product .amoparts-product-detail-price__regular .woocommerce-Price-amount,
	html body.single-product .amoparts-product-detail-price__regular .woocommerce-Price-currencySymbol {
		margin-left: 2vw;
		font-size: 3.2vw !important;
		line-height: 4.8vw !important;
	}

	html body.single-product .amoparts-product-detail-price__saving,
	html body.single-product .amoparts-product-detail-price__saving .woocommerce-Price-amount,
	html body.single-product .amoparts-product-detail-price__saving .woocommerce-Price-currencySymbol {
		margin-left: 2vw;
		font-size: 3.2vw !important;
		line-height: 4vw !important;
	}

	html body.single-product .amoparts-product-detail-price__suffix {
		margin-left: 2vw;
		font-size: 3.2vw;
		line-height: 4vw;
	}
}
