/* Narrow compatibility fix: preserve the parent layout, settings and Custom CSS. */
body.kk-product-layout-fix.single-product .page-header .page-title {
	display: none !important;
}

/* Keep one useful category trail and leave the product name to the page H1. */
body.kk-product-layout-fix.single-product #breadcrumbs,
body.kk-product-layout-fix.single-product #crumbs > .current,
body.kk-product-layout-fix.single-product #crumbs > span:has(+ .current) .separator {
	display: none !important;
}

body.kk-product-layout-fix.single-product .kk-product-page-title {
	display: block !important;
	float: none !important;
	clear: both;
	width: 100% !important;
	max-width: 100%;
	margin: 0 0 24px !important;
	font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
	line-height: 1.12 !important;
	overflow-wrap: anywhere;
}

/* The Custom CSS makes this card sticky; keep it in normal document flow. */
body.kk-product-layout-fix.single-product div.product.type-product .summary.entry-summary {
	position: static !important;
	top: auto !important;
}

/* Show the selected variation price; legacy Additional CSS hides it globally. */
body.kk-product-layout-fix.single-product div.product.type-product .woocommerce-variation-price {
	display: block !important;
	margin: 10px 0;
	font-size: 1.1rem;
	font-weight: 900;
}

/* A variable product uses the selected variation price; hide the duplicate parent price. */
body.kk-product-layout-fix.single-product div.product.product-type-variable .summary.entry-summary > p.price {
	display: none !important;
}

body.kk-product-layout-fix.single-product .kk-price-tax-note {
	display: inline;
	font-size: 0.52em;
	font-weight: 600;
	white-space: nowrap;
}

body.kk-product-layout-fix.single-product .kk-product-sku {
	margin: 4px 0 14px;
	font-size: 0.9375rem;
}

body.kk-product-layout-fix.single-product form.variations_form table.variations select.kk-visually-hidden-select {
	position: absolute !important;
	width: 1px !important;
	min-width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
}

body.kk-product-layout-fix.single-product form.variations_form table.variations th.label label {
	font-weight: 800;
}

body.kk-product-layout-fix.single-product .kk-variation-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
}

body.kk-product-layout-fix.single-product .kk-variation-option {
	min-width: 72px;
	min-height: 42px;
	padding: 8px 11px;
	border: 1px solid #cfd4dc !important;
	border-radius: 5px;
	background: #fff !important;
	box-shadow: none !important;
	color: #20242a !important;
	font-size: 0.9375rem;
	font-weight: 800;
	cursor: pointer;
	transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

body.kk-product-layout-fix.single-product .kk-variation-options .kk-variation-option,
body.kk-product-layout-fix.single-product .kk-variation-options .kk-variation-option * {
	color: #20242a !important;
}

body.kk-product-layout-fix.single-product .kk-variation-option:hover,
body.kk-product-layout-fix.single-product .kk-variation-option:focus-visible {
	border-color: #e96900 !important;
	background: #fff7f0 !important;
}

body.kk-product-layout-fix.single-product .kk-variation-option[aria-pressed="true"] {
	border-color: #e96900 !important;
	background: #fff0e3 !important;
	box-shadow: 0 0 0 1px rgba(233, 105, 0, 0.16) !important;
	color: #20242a !important;
}

body.kk-product-layout-fix.single-product .kk-variation-option:disabled {
	border-color: #e4e6e9 !important;
	background: #f6f7f8 !important;
	color: #9aa0a6 !important;
	opacity: 1;
	cursor: not-allowed;
}

/* Best Shop's generic fixed loop CTA is invalid on a product detail page. */
body.kk-product-layout-fix.single-product .addtocart_btn {
	display: none !important;
}

/* Preserve parent colors while keeping purchase and tab labels readable. */
body.kk-product-layout-fix.woocommerce.single-product .summary.entry-summary form.cart button.single_add_to_cart_button,
html body.kk-product-layout-fix.woocommerce.single-product div.product.type-product .woocommerce-tabs ul.tabs li.active a[href$="#tab-description"] {
	color: #111 !important;
}

body.kk-product-layout-fix.woocommerce.single-product .summary.entry-summary form.cart button.single_add_to_cart_button {
	border-color: #218838 !important;
	background: #218838 !important;
	color: #fff !important;
}

body.kk-product-layout-fix.woocommerce.single-product .summary.entry-summary form.cart button.single_add_to_cart_button:hover,
body.kk-product-layout-fix.woocommerce.single-product .summary.entry-summary form.cart button.single_add_to_cart_button:focus-visible {
	border-color: #176b2c !important;
	background: #176b2c !important;
	color: #fff !important;
}

@media (max-width: 600px) {
	body.kk-product-layout-fix.single-product .kk-product-page-title {
		margin-bottom: 18px !important;
		font-size: clamp(1.55rem, 7vw, 2rem) !important;
	}
}
