/* AMCI product details. The edge-to-edge gallery keeps its original layout. */
body.single-product {
	--si-amci-ink: #171b23;
	--si-amci-muted: #596170;
	--si-amci-line: #dce1e8;
	--si-amci-blue: #1458d4;
	--si-amci-blue-soft: #edf3ff;
	--si-amci-green: #087d3e;
}

body.single-product #content .si-wc-product-wrap > .entry-summary {
	color: var(--si-amci-ink);
	background: #fff;
	padding: clamp(20px, 2.7vw, 40px);
	overflow-wrap: anywhere;
}

body.single-product #content .entry-summary .product_title {
	margin: 0 0 8px;
	color: var(--si-amci-ink);
	font-size: clamp(22px, 2.2vw, 30px);
	line-height: 1.22;
	font-weight: 700;
	letter-spacing: -.02em;
}

body.single-product #content .entry-summary > .price,
body.single-product #content .entry-summary .woocommerce-variation-price .price {
	display: block;
	margin: 8px 0 12px;
	color: var(--si-amci-ink);
	font-size: clamp(26px, 2.5vw, 32px);
	line-height: 1.25;
	font-weight: 750;
}

body.single-product #content .entry-summary .price ins {
	background: none;
	color: inherit;
	font-weight: inherit;
}

body.single-product #content .entry-summary .price .amount {
	color: inherit;
}

body.single-product #content .entry-summary .price del {
	color: var(--si-amci-muted);
	font-size: .65em;
	font-weight: 400;
	opacity: 1;
}

body.single-product #content .entry-summary .woocommerce-product-rating {
	margin: 0 0 8px;
	flex-wrap: wrap;
	gap: 4px;
}

body.single-product #content .entry-summary p {
	margin: 8px 0;
	line-height: 1.55;
}

body.single-product #content .entry-summary .stock {
	margin: 8px 0;
	font-size: 13px;
}

body.single-product #content .entry-summary .in-stock {
	color: #08703a;
}

body.single-product #content .entry-summary .out-of-stock {
	color: #a52323;
}

body.single-product #content .si-amci-compatibility {
	margin: 12px 0;
	padding: 11px 13px;
	border: 1px solid #d3e1fc;
	border-radius: 10px;
	background: var(--si-amci-blue-soft);
	color: #23416f;
	font-size: 13px;
	line-height: 1.5;
}

body.single-product #content .entry-summary form.cart {
	display: flow-root;
	margin: 16px 0;
}

body.single-product #content .entry-summary form.cart .variations,
body.single-product #content .entry-summary form.cart .variations tbody,
body.single-product #content .entry-summary form.cart .variations tr,
body.single-product #content .entry-summary form.cart .variations th,
body.single-product #content .entry-summary form.cart .variations td {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
}

body.single-product #content .entry-summary form.cart .variations {
	margin: 0 0 12px;
}

body.single-product #content .entry-summary form.cart .variations tr + tr {
	margin-top: 14px;
}

body.single-product #content .entry-summary form.cart .variations label {
	display: block;
	margin: 0 0 7px;
	color: var(--si-amci-ink);
	font-size: 14px;
	font-weight: 650;
	line-height: 1.4;
}

body.single-product #content .entry-summary form.cart .variations select {
	width: 100%;
	max-width: 100%;
	min-height: 46px;
	border: 1px solid var(--si-amci-line);
	border-radius: 8px;
	background-color: #fff;
	color: var(--si-amci-ink);
	font-size: 16px;
}

/* The native WooCommerce select remains the source of truth and no-JS fallback. */
body.single-product #content .entry-summary select.si-amci-enhanced {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

body.single-product #content .si-amci-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
}

body.single-product #content .si-amci-option {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	min-width: 44px;
	max-width: 100%;
	min-height: 44px;
	height: auto;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid #cbd2dd;
	border-radius: 8px;
	background: #fff;
	box-shadow: none;
	color: var(--si-amci-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
	white-space: normal;
	overflow-wrap: anywhere;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}

body.single-product #content .si-amci-option:hover:not(:disabled) {
	border-color: var(--si-amci-blue);
	background: #f5f8ff;
}

body.single-product #content .si-amci-option[aria-pressed="true"] {
	border-color: var(--si-amci-blue);
	background: var(--si-amci-blue-soft);
	box-shadow: inset 0 0 0 1px var(--si-amci-blue);
	color: #1047a8;
	font-weight: 700;
}

body.single-product #content .si-amci-option:disabled,
body.single-product #content .si-amci-option[aria-disabled="true"] {
	border-color: #e2e5ea;
	background: #f5f6f8;
	color: #777e89;
	text-decoration: line-through;
	opacity: .7;
	cursor: not-allowed;
}

/* Photo colour choices: a black outline identifies the selected finish. */
body.single-product #content .si-amci-option.si-amci-color-option {
	position: relative;
	flex: 0 0 auto;
	width: clamp(60px, 18vw, 76px);
	height: clamp(60px, 18vw, 76px);
	padding: 4px;
	border: 1px solid #e3e3e6;
	border-radius: 8px;
	background: #fff;
	color: #222;
	font-size: 12px;
	box-shadow: none;
	overflow: hidden;
}

body.single-product #content .si-amci-color-option img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
}

body.single-product #content .si-amci-color-option.si-amci-option-image .si-amci-option-label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

body.single-product #content .si-amci-color-option:hover:not(:disabled) {
	border-color: #222;
	background: #fff;
}

body.single-product #content .si-amci-color-option[aria-pressed="true"] {
	border-color: #222;
	box-shadow: inset 0 0 0 2px #222;
	background: #fff;
	color: #222;
}

body.single-product #content .si-amci-color-option:focus-visible {
	outline: 2px solid var(--si-amci-blue);
	outline-offset: 3px;
}

body.single-product #content .si-amci-color-option:disabled {
	opacity: .45;
	cursor: not-allowed;
}

body.single-product #content .si-amci-selected-color {
	font-weight: 400;
}

body.single-product #content .entry-summary .reset_variations {
	display: inline-block;
	margin-top: 5px;
	padding: 8px 0;
	color: var(--si-amci-muted);
	font-size: 12px;
	text-decoration: underline;
}

body.single-product #content .entry-summary .reset_variations.si-amci-reset-empty {
	display: none !important;
}

body.single-product #content .entry-summary form.cart .variations_button {
	display: flow-root;
	margin-top: 12px;
}

body.single-product #content .entry-summary .woocommerce-variation-description {
	font-size: 13px;
}

body.single-product #content .entry-summary.si-amci-price-selected .single_variation .woocommerce-variation-price {
	display: none;
}

body.single-product #content .si-amci-addons {
	clear: both;
	min-width: 0;
	margin: 16px 0 12px;
	padding: 0;
	border: 0;
}

body.single-product #content .si-amci-addons legend {
	width: 100%;
	margin: 0 0 9px;
	padding: 0;
	color: var(--si-amci-ink);
	font-size: 14px;
	font-weight: 650;
	line-height: 1.4;
}

body.single-product #content .si-amci-addon {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 76px;
	margin: 0 0 8px;
	padding: 10px;
	border: 1px solid var(--si-amci-line);
	border-radius: 10px;
	background: #fff;
	color: var(--si-amci-ink);
	font-weight: 400;
	cursor: pointer;
}

body.single-product #content .si-amci-addon:has(input:checked) {
	border-color: var(--si-amci-blue);
	background: #f6f9ff;
}

body.single-product #content .si-amci-addon input[type="checkbox"] {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--si-amci-blue);
	cursor: pointer;
}

body.single-product #content .si-amci-addon img {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	margin: 0;
	border-radius: 6px;
	object-fit: contain;
	background: #f5f6f8;
}

body.single-product #content .si-amci-addon-content {
	flex: 1 1 auto;
	min-width: 0;
}

body.single-product #content .si-amci-addon-name {
	display: block;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
}

body.single-product #content .si-amci-addon-price {
	display: block;
	margin-top: 3px;
	color: var(--si-amci-muted);
	font-size: 13px;
	line-height: 1.35;
}

body.single-product #content .si-amci-selection-total {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
	clear: both;
	margin: 12px 0;
	padding: 10px 0;
	border-top: 1px solid #eceff4;
	font-size: 14px;
	line-height: 1.4;
}

body.single-product #content [data-si-amci-total] {
	color: var(--si-amci-ink);
	font-size: 20px;
	font-weight: 700;
}

/* Keep WooCommerce's quantity input and controls; enlarge their touch targets. */
body.single-product #content .entry-summary form.cart div.quantity {
	display: inline-block;
	float: none;
	width: 144px;
	max-width: 100%;
	height: 46px;
	margin: 0 0 10px;
	padding: 0 44px;
}

body.single-product #content .entry-summary form.cart .quantity .qty {
	width: 56px;
	max-width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 2px;
	border: 1px solid var(--si-amci-line);
	border-radius: 0;
	background: #fff;
	color: var(--si-amci-ink);
	font-size: 16px;
	font-weight: 500;
	text-align: center;
}

body.single-product #content .entry-summary form.cart .quantity .si-woo-minus,
body.single-product #content .entry-summary form.cart .quantity .si-woo-plus {
	display: flex;
	align-items: center;
	justify-content: center;
	top: 0;
	bottom: auto;
	width: 44px;
	height: 46px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--si-amci-line);
	background: #f8f9fb;
	color: var(--si-amci-ink);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

body.single-product #content .entry-summary form.cart .quantity .si-woo-minus {
	right: auto;
	left: 0;
	border-right: 0;
	border-radius: 8px 0 0 8px;
}

body.single-product #content .entry-summary form.cart .quantity .si-woo-plus {
	right: 0;
	left: auto;
	border-left: 0;
	border-radius: 0 8px 8px 0;
}

body.single-product #content .entry-summary form.cart .quantity .qty:focus-visible {
	outline: 2px solid var(--si-amci-blue) !important;
	outline-offset: -3px;
}

body.single-product #content .si-amci-actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	clear: both;
	width: 100%;
}

body.single-product #content .entry-summary .single_add_to_cart_button,
body.single-product #content .entry-summary .si-amci-buy-now,
body.single-product #content .entry-summary .si-amci-whatsapp {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	float: none;
	clear: both;
	width: 100%;
	max-width: 100%;
	min-height: 50px;
	height: auto;
	margin: 8px 0 0;
	padding: 13px 16px;
	border: 1px solid transparent;
	border-radius: 9px;
	box-shadow: none;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	white-space: normal;
	cursor: pointer;
}

body.single-product #content .entry-summary .single_add_to_cart_button {
	background: #171b23;
}

body.single-product #content .entry-summary .si-amci-buy-now {
	background: var(--si-amci-blue);
}

body.single-product #content .entry-summary .si-amci-whatsapp {
	background: var(--si-amci-green);
}

body.single-product #content .si-amci-actions > .single_add_to_cart_button,
body.single-product #content .si-amci-actions > .si-amci-buy-now,
body.single-product #content .si-amci-actions > .si-amci-whatsapp {
	margin: 0;
}

body.single-product #content .entry-summary .single_add_to_cart_button:hover {
	background: #303744;
	color: #fff;
}

body.single-product #content .entry-summary .si-amci-buy-now:hover {
	background: #1048ad;
	color: #fff;
}

body.single-product #content .entry-summary .si-amci-whatsapp:hover {
	background: #066432;
	color: #fff;
}

body.single-product #content .entry-summary .single_add_to_cart_button.disabled,
body.single-product #content .entry-summary .single_add_to_cart_button:disabled,
body.single-product #content .entry-summary .si-amci-buy-now:disabled,
body.single-product #content .entry-summary .si-amci-whatsapp[aria-disabled="true"] {
	opacity: .55;
	cursor: not-allowed;
}

body.single-product #content .si-amci-service-info {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 16px 0;
}

body.single-product #content .si-amci-service-info article {
	min-width: 0;
	padding: 11px 12px;
	border: 1px solid #e6e9ef;
	border-radius: 9px;
	background: #fafbfc;
	color: var(--si-amci-muted);
	font-size: 12px;
	line-height: 1.5;
}

body.single-product #content .si-amci-service-label {
	display: block;
	margin-bottom: 3px;
	color: var(--si-amci-ink);
	font-size: 13px;
	font-weight: 650;
}

body.single-product #content .si-amci-service-info p {
	margin: 0;
}

body.single-product #content .entry-summary .woocommerce-product-details__short-description {
	margin: 16px 0;
	padding-top: 14px;
	border-top: 1px solid #eceff4;
	font-size: 14px;
	line-height: 1.6;
}

body.single-product #content .entry-summary .woocommerce-product-details__short-description ul {
	margin: 8px 0;
	padding-left: 20px;
}

body.single-product #content .entry-summary .product_meta {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #eceff4;
	color: var(--si-amci-muted);
	font-size: 12px;
	line-height: 1.65;
}

body.single-product #content .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0 22px;
	margin: 0;
	padding: 0;
	text-align: left;
}

body.single-product #content .woocommerce-tabs ul.tabs > .si-container {
	display: flex;
	flex-wrap: wrap;
	gap: 0 22px;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

body.single-product #content .woocommerce-tabs ul.tabs li {
	max-width: 100%;
	margin: 0;
	padding: 0;
}

body.single-product #content .woocommerce-tabs ul.tabs li a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 12px 0;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

body.single-product #content .woocommerce-tabs .wc-tab {
	padding: 22px 0;
	background: #fff;
	color: var(--si-amci-ink);
	font-size: 15px;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

body.single-product #content .woocommerce-tabs .wc-tab > .si-container {
	width: 100%;
	max-width: 960px;
	margin: 0;
	padding: 0;
}

body.single-product #content .woocommerce-tabs .wc-tab :is(h2, h3, h4, h5, h6) {
	margin-top: 22px;
	margin-bottom: 10px;
	color: var(--si-amci-ink);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
}

body.single-product #content .woocommerce-tabs .wc-tab :is(h4, h5, h6) {
	font-size: 17px;
}

body.single-product #content .woocommerce-tabs table.shop_attributes {
	width: 100%;
	table-layout: fixed;
	border: 1px solid #e6e9ef;
	border-collapse: collapse;
	font-size: 14px;
}

body.single-product #content .woocommerce-tabs table.shop_attributes th,
body.single-product #content .woocommerce-tabs table.shop_attributes td {
	padding: 12px 14px;
	border-bottom: 1px solid #e6e9ef;
	vertical-align: top;
	text-align: left;
	overflow-wrap: anywhere;
}

body.single-product #content .woocommerce-tabs table.shop_attributes th {
	width: 35%;
	background: #f8f9fb;
	font-weight: 500;
}

body.single-product #content .woocommerce-tabs table.shop_attributes td {
	background: #fff;
	font-weight: 400;
}

body.single-product #content #reviews #comments ol.commentlist li .comment-text {
	border-color: #e6e9ef;
	border-radius: 9px;
}

body.single-product .si-amci-sticky {
	display: none;
}

body.single-product .si-amci-sticky[hidden],
body.single-product #content .si-amci-addons[hidden],
body.single-product #content .si-amci-addon[hidden],
body.single-product #content .si-amci-selection-total[hidden],
body.single-product #content .si-amci-whatsapp[hidden] {
	display: none !important;
}

body.single-product #content :is(.si-amci-option, .si-amci-buy-now, .si-amci-whatsapp, .single_add_to_cart_button, .si-woo-minus, .si-woo-plus):focus-visible,
body.single-product #content .si-amci-addon input:focus-visible,
body.single-product .si-amci-sticky button:focus-visible {
	outline: 3px solid #1d64de;
	outline-offset: 3px;
}

@media screen and (max-width: 960px) {
	/* Keep floating navigation from covering the purchase buttons. */
	body.single-product #si-scroll-top {
		display: none !important;
	}

	body.single-product #content .si-wc-product-wrap > .entry-summary {
		padding: 16px;
	}

	body.single-product.si-amci-sticky-visible {
		padding-bottom: var(--si-amci-sticky-height, calc(86px + env(safe-area-inset-bottom, 0px)));
	}

	body.single-product .si-amci-sticky {
		position: fixed;
		z-index: 60;
		right: 0;
		bottom: 0;
		left: 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
		border-top: 1px solid #e1e6ee;
		background: #fff;
		box-shadow: 0 -5px 18px rgb(23 27 35 / 7%);
		color: var(--si-amci-ink);
	}

	body.single-product .si-amci-sticky > :first-child {
		min-width: 0;
	}

	body.single-product .si-amci-sticky [data-si-amci-sticky-price] {
		display: block;
		min-width: 0;
		font-size: 19px;
		font-weight: 750;
		line-height: 1.25;
		overflow-wrap: anywhere;
	}

	body.single-product .si-amci-sticky small,
	body.single-product .si-amci-sticky .si-amci-sticky-label {
		display: block;
		max-width: 100%;
		margin-bottom: 3px;
		overflow: hidden;
		color: var(--si-amci-muted);
		font-size: 11px;
		line-height: 1.3;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	body.single-product .si-amci-sticky [data-si-amci-sticky-action] {
		flex: 0 0 auto;
		max-width: 58%;
		min-height: 48px;
		height: auto;
		margin: 0;
		padding: 12px 20px;
		border: 0;
		border-radius: 8px;
		background: var(--si-amci-blue);
		box-shadow: none;
		color: #fff;
		font-size: 15px;
		font-weight: 700;
		line-height: 1.3;
		text-align: center;
		text-transform: none;
		letter-spacing: normal;
		white-space: normal;
		cursor: pointer;
	}
}

@media screen and (max-width: 380px) {
	body.single-product #content .si-amci-service-info {
		grid-template-columns: minmax(0, 1fr);
	}

	body.single-product #content .si-amci-option {
		padding-right: 11px;
		padding-left: 11px;
		font-size: 13px;
	}

	body.single-product .si-amci-sticky [data-si-amci-sticky-action] {
		padding-right: 14px;
		padding-left: 14px;
	}

	body.single-product #content .woocommerce-tabs table.shop_attributes th,
	body.single-product #content .woocommerce-tabs table.shop_attributes td {
		padding: 10px;
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.single-product #content .si-amci-option {
		transition: none;
	}
}
