/**
 * PC Precision — layout difensivo pagina prodotto (bw-zagg / Elementor).
 */

body.single-product .product-detail .bzotech-row {
	align-items: flex-start;
}

body.single-product .product-detail-info,
body.single-product .summary.entry-summary.product-detail-info {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-width: 0;
	width: 100%;
}

body.single-product .product-detail-info > .product-title-single,
body.single-product .product-detail-info > .woocommerce-product-details__short-description,
body.single-product .product-detail-info > .bzotech-price-single {
	flex: 0 0 auto;
	min-width: 0;
	width: 100%;
}

body.single-product .bzotech-form-cart-single {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
}

body.single-product .bzotech-form-cart-single form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 0.75rem;
	width: 100%;
	max-width: 100%;
	margin: 0;
}

body.single-product .bzotech-form-cart-single form.cart > .pcp-product-extras,
body.single-product .bzotech-form-cart-single form.cart > .pcp-product-installments {
	order: -2;
}

body.single-product .bzotech-form-cart-single form.cart .detail-qty,
body.single-product .bzotech-form-cart-single form.cart .single_add_to_cart_button,
body.single-product .bzotech-form-cart-single form.cart .addcart-link,
body.single-product .bzotech-form-cart-single form.cart .button {
	flex: 0 0 auto;
}

body.single-product .bzotech-form-cart-single form.cart .wishlist_compare_single_product {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
}

body.single-product .bzotech-form-cart-single form.cart .pcp-product-extras,
body.single-product .bzotech-form-cart-single .pcp-product-extras,
body.single-product .product-detail-info .pcp-product-extras {
	flex: 0 0 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 0 0.75rem !important;
	clear: both;
	order: -2;
}

body.single-product .pcp-product-extras--placed {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0.75rem 0 1rem !important;
	clear: both;
}

body.single-product .detail-gallery,
body.single-product .detail-gallery .wrap-detail-gallery,
body.single-product .detail-gallery .woocommerce-product-gallery__image {
	min-width: 0;
	max-width: 100%;
}

body.single-product .detail-gallery .tab-product-description {
	margin-top: 1rem;
	max-width: 100%;
	overflow-wrap: anywhere;
}

body.single-product .detail-gallery .tab-product-description .pcp-product-description-fallback,
body.single-product .detail-gallery .tab-product-description .product-desc {
	color: #1a1a1a;
	line-height: 1.65;
}

body.single-product .product-detail.gallery-vertical-mobi .detail-gallery .tab-product-description {
	max-height: none;
}

@media (max-width: 767px) {
	body.single-product .product-detail .bzotech-row {
		row-gap: 1rem;
	}

	body.single-product .bzotech-form-cart-single form.cart {
		flex-direction: column;
		align-items: stretch;
	}

	body.single-product .bzotech-form-cart-single form.cart .detail-qty,
	body.single-product .bzotech-form-cart-single form.cart .single_add_to_cart_button,
	body.single-product .bzotech-form-cart-single form.cart .addcart-link {
		width: 100%;
	}
}

/* WoodMart — caselline dentro colonna prodotto (desktop + mobile). */
body.single-product .wd-single-add-cart,
body.single-product .summary.entry-summary {
	min-width: 0;
	max-width: 100%;
}

body.single-product .wd-single-add-cart form.cart,
body.single-product .summary form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 0.75rem;
	width: 100%;
	max-width: 100%;
}

body.single-product .wd-single-add-cart form.cart > .pcp-product-extras,
body.single-product .wd-single-add-cart form.cart > .pcp-product-installments,
body.single-product .summary form.cart > .pcp-product-extras,
body.single-product .summary form.cart > .pcp-product-installments {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	order: -2;
	margin: 0.75rem 0 !important;
	clear: both;
}

body.single-product .wd-single-add-cart .pcp-product-extras,
body.single-product .summary .pcp-product-extras {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

@media (max-width: 767px) {
	body.single-product .wd-single-add-cart form.cart,
	body.single-product .summary form.cart {
		flex-direction: column;
		align-items: stretch;
	}

	body.single-product .wd-single-add-cart form.cart .quantity,
	body.single-product .wd-single-add-cart form.cart .single_add_to_cart_button,
	body.single-product .summary form.cart .quantity,
	body.single-product .summary form.cart .single_add_to_cart_button {
		width: 100%;
	}
}
