/* Thuisera product commerce v0.4 — add-to-cart feedback on single product pages. */
body.single-product {
	--th-pc-primary: var(--e-global-color-primary, #2F6B4F);
	--th-pc-primary-dark: var(--e-global-color-5fb90de, #1F2D27);
	--th-pc-accent: var(--e-global-color-accent, #E65F48);
	--th-pc-accent-dark: var(--e-global-color-44ed711, #C84E3B);
	--th-pc-text: var(--e-global-color-text, #1F2D27);
	--th-pc-muted: var(--e-global-color-100f74d, #66756D);
	--th-pc-border: var(--e-global-color-94d7ae6, #DCE5DF);
	--th-pc-soft: var(--e-global-color-bea03c7, #F3F7F4);
	--th-pc-white: var(--e-global-color-a73839d, #FFFFFF);
}

body.single-product .woocommerce-notices-wrapper {
	width: min(1180px, calc(100% - 40px));
	margin: 14px auto 0;
}

body.single-product .woocommerce-message {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin: 0 !important;
	padding: 12px 14px 12px 18px !important;
	border: 1px solid var(--th-pc-border) !important;
	border-top: 1px solid var(--th-pc-border) !important;
	border-radius: 13px !important;
	background: var(--th-pc-soft) !important;
	box-shadow: none !important;
	color: var(--th-pc-text) !important;
	font-size: 14px !important;
	line-height: 1.45 !important;
}

body.single-product .woocommerce-message::before {
	display: none !important;
}

body.single-product .th-product-cart-notice__message {
	min-width: 0;
	font-weight: 550;
}

body.single-product .th-product-cart-notice__actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 9px;
}

body.single-product .th-product-cart-notice__actions .button {
	display: inline-flex !important;
	float: none !important;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 0 15px !important;
	border-radius: 10px !important;
	box-shadow: none !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
}

body.single-product .th-product-cart-notice__continue {
	border: 1px solid #C9DED2 !important;
	background: var(--th-pc-white) !important;
	color: var(--th-pc-primary) !important;
}

body.single-product .th-product-cart-notice__continue:hover {
	border-color: var(--th-pc-primary) !important;
	background: var(--th-pc-soft) !important;
	color: var(--th-pc-primary-dark) !important;
}

body.single-product .th-product-cart-notice__cart {
	border: 1px solid var(--th-pc-accent) !important;
	background: var(--th-pc-accent) !important;
	color: var(--th-pc-white) !important;
}

body.single-product .th-product-cart-notice__cart:hover {
	border-color: var(--th-pc-accent-dark) !important;
	background: var(--th-pc-accent-dark) !important;
	color: var(--th-pc-white) !important;
}

body.single-product .woocommerce-message a:focus-visible {
	outline: 3px solid var(--th-pc-primary) !important;
	outline-offset: 3px !important;
}

@media (max-width: 767px) {
	body.single-product .woocommerce-notices-wrapper {
		width: calc(100% - 28px);
	}

	body.single-product .woocommerce-message {
		flex-direction: column;
		align-items: stretch;
		gap: 11px;
		padding: 14px !important;
	}

	body.single-product .th-product-cart-notice__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}
}

@media (max-width: 430px) {
	body.single-product .th-product-cart-notice__actions {
		grid-template-columns: 1fr;
	}
}
