/**
 * CIE global Single Product presentation.
 * Keep product-page-only overrides here rather than in Elementor template data.
 */

body.single-product .cie-sp-summary .product_title {
	font-size: clamp(22px, 1.458vw, 28px) !important;
}

@media (min-width: 1200px) {
	body.single-product .cie-sp-hero-grid {
		grid-template-columns: minmax(0, 38%) minmax(0, 1fr) !important;
	}
}

body.single-product .cie-sp-title-row:has(.cie-sp-title-logo) {
	grid-template-columns: minmax(0, 1fr) clamp(64px, 4.896vw, 94px) !important;
}

body.single-product .cie-sp-title-logo {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	justify-self: end !important;
	align-self: center !important;
	width: clamp(64px, 4.896vw, 94px) !important;
	height: clamp(32px, 2.344vw, 45px) !important;
	overflow: hidden;
}

body.single-product .cie-sp-title-logo .elementor-widget-container {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	width: 100% !important;
	height: 100% !important;
}

body.single-product .cie-sp-title-logo .cie-product-brand-logo {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	object-position: right center !important;
	box-shadow: none !important;
	filter: none !important;
	transform: none !important;
}

/* Use the sharp, tightly cropped child-theme master for the padded Akuvox source. */
body.single-product .cie-sp-title-logo:has(.cie-product-brand-logo[alt="Akuvox" i]) {
	background-image: url("assets/images/akuvox-logo-sharp.svg") !important;
	background-repeat: no-repeat !important;
	background-position: right center !important;
	background-size: contain !important;
}

body.single-product .cie-sp-title-logo .cie-product-brand-logo[alt="Akuvox" i] {
	position: static !important;
	inset: auto !important;
	opacity: 0 !important;
}

/* Keep linked-product imagery contained with a consistent safe area. */
body.single-product .cie-sp-linked-products-section .cie-product-card__image {
	padding: clamp(24px, 1.667vw, 32px) !important;
	box-sizing: border-box;
}

body.single-product .cie-sp-linked-products-section .cie-product-card__image img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
}

/* Keep variation-to-purchase spacing out of the Elementor template. */
body.single-product .cie-sp-summary form.variations_form {
	gap: 0 !important;
}

body.single-product .cie-sp-summary table.variations {
	margin-bottom: 0 !important;
}

body.single-product .cie-sp-summary .single_variation_wrap {
	padding-top: 0 !important;
}

body.single-product .cie-sp-summary .woocommerce-variation.single_variation,
body.single-product .cie-sp-summary .elementor-element-ciespcart .woocommerce-variation-price {
	margin: 0 !important;
}

body.single-product .cie-sp-summary .woocommerce-variation-description {
	display: none !important;
}

body.single-product .cie-sp-summary .woocommerce-variation-add-to-cart {
	margin-top: clamp(16px, 1.042vw, 20px) !important;
}

/* Match the approved Figma price and keep one price directly above purchasing. */
body.single-product .cie-sp-summary .cie-trade-purchase-gate {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	width: 100% !important;
}

body.single-product .cie-sp-summary .cie-trade-purchase-gate > .cie-trade-purchase-gate__price {
	order: 0;
	margin: 0 0 clamp(16px, 1.042vw, 20px) !important;
}

body.single-product .cie-sp-summary .cie-trade-purchase-gate > form.cart {
	order: 1;
}

body.single-product .cie-sp-summary .cie-trade-purchase-gate__price,
body.single-product .cie-sp-summary .woocommerce-variation-price .price {
	display: flex !important;
	align-items: baseline !important;
	flex-wrap: wrap !important;
	column-gap: clamp(6px, 0.417vw, 8px) !important;
	margin: 0 !important;
	font-family: "Source Sans Pro", Arial, sans-serif !important;
	font-size: clamp(28px, 1.823vw, 35px) !important;
	font-weight: 600 !important;
	line-height: clamp(36px, 2.344vw, 45px) !important;
	color: #465961 !important;
}

body.single-product .cie-sp-summary .cie-trade-purchase-gate__price .woocommerce-Price-amount,
body.single-product .cie-sp-summary .woocommerce-variation-price .price .woocommerce-Price-amount {
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
	color: inherit !important;
}

body.single-product .cie-sp-summary .cie-trade-purchase-gate__price::after,
body.single-product .cie-sp-summary .woocommerce-variation-price .price::after {
	content: "(ex. VAT)" !important;
	display: inline !important;
	font-family: "Source Sans Pro", Arial, sans-serif !important;
	font-size: clamp(16px, 1.042vw, 20px) !important;
	font-weight: 600 !important;
	line-height: clamp(24px, 1.563vw, 30px) !important;
	color: #465961 !important;
}

body.single-product .product-type-variable .cie-trade-purchase-gate > .cie-trade-purchase-gate__price {
	display: none !important;
}

body.single-product .cie-sp-summary .woocommerce-variation.single_variation:has(.woocommerce-variation-price .price) {
	padding-top: clamp(16px, 1.042vw, 20px) !important;
}

body.single-product .cie-sp-summary .single_variation_wrap:has(.woocommerce-variation-price .price) .woocommerce-variation-add-to-cart {
	margin-top: clamp(16px, 1.042vw, 20px) !important;
}

@media (max-width: 520px) {
	body.single-product .cie-sp-title-row:has(.cie-sp-title-logo) {
		grid-template-columns: minmax(0, 1fr) clamp(48px, 13.846vw, 56px) !important;
	}

	body.single-product .cie-sp-title-logo {
		width: clamp(48px, 13.846vw, 56px) !important;
		height: clamp(24px, 7.179vw, 28px) !important;
	}

	body.single-product .cie-sp-summary .single_variation_wrap {
		padding-top: 0 !important;
	}

	body.single-product .cie-sp-summary .woocommerce-variation-add-to-cart {
		margin-top: 16px !important;
	}
}
