/*
 * Tramm & Hinners customer notices
 *
 * One deliberately late stylesheet owns classic WooCommerce notices, block
 * notices and the empty-cart state. This prevents the theme/plugins from
 * re-introducing blue/yellow icon tiles or mismatched rounded banners.
 *
 * The repeated [class] selectors are intentional. Several legacy storefront
 * styles use highly specific selectors together with !important. WordPress
 * always renders a class attribute on body, so this compatibility boundary
 * wins that cascade without coupling the palette to one page template.
 */

html body[class][class][class][class][class][class] :where(
	.woocommerce-message,
	.woocommerce-info,
	.woocommerce-error,
	.woocommerce-notice,
	.wc-block-components-notice-banner
) {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 60px !important;
	margin: 0 0 18px !important;
	padding: 16px 18px 16px 54px !important;
	border: 1px solid #d8d3bf !important;
	border-left: 5px solid #2f7138 !important;
	border-radius: 0 !important;
	background: #fffef7 !important;
	box-shadow: 0 8px 26px rgba(32, 53, 26, 0.07) !important;
	color: #20351a !important;
	font-family: "PT Sans Narrow", "Arial Narrow", Arial, sans-serif !important;
	font-size: 16px !important;
	line-height: 1.48 !important;
	text-align: left !important;
	box-sizing: border-box !important;
	color-scheme: light;
}

html body[class][class][class][class][class][class] :where(
	.woocommerce-info,
	.wc-block-components-notice-banner.is-info,
	.wc-block-components-notice-banner.is-warning,
	.cart-empty.woocommerce-info
) {
	border-left-color: #c45d22 !important;
	background: #fffaf0 !important;
}

html body[class][class][class][class][class][class] :where(.woocommerce-error, .wc-block-components-notice-banner.is-error) {
	border-color: #e0c6ad !important;
	border-left-color: #a94e1b !important;
	background: #fff7ed !important;
	color: #62321b !important;
}

html body[class][class][class][class][class][class] :where(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice)::before {
	position: absolute !important;
	top: 18px !important;
	left: 17px !important;
	display: grid !important;
	width: 24px !important;
	height: 24px !important;
	margin: 0 !important;
	padding: 0 !important;
	place-items: center !important;
	border: 1px solid currentColor !important;
	border-radius: 50% !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #2f7138 !important;
	font: 800 15px/1 Arial, sans-serif !important;
	text-indent: 0 !important;
	transform: none !important;
}

html body[class][class][class][class][class][class] .woocommerce-message::before { content: "✓" !important; }
html body[class][class][class][class][class][class] :where(.woocommerce-info, .woocommerce-notice)::before { color: #c45d22 !important; content: "i" !important; }
html body[class][class][class][class][class][class] .woocommerce-error::before { color: #a94e1b !important; content: "!" !important; }

html body[class][class][class][class][class][class] :where(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice) :where(li, p) {
	color: inherit !important;
	font: inherit !important;
}

html body[class][class][class][class][class][class] ul.woocommerce-error {
	padding-left: 54px !important;
	list-style: none !important;
}

html body[class][class][class][class][class][class] ul.woocommerce-error li + li {
	margin-top: 6px !important;
}

html body[class][class][class][class][class][class] :where(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice) :where(a.button, button.button),
html body[class][class][class][class][class][class] .wc-block-components-notice-banner :where(.button, .wc-block-components-notice-banner__content > a) {
	display: inline-flex !important;
	float: right !important;
	min-height: 40px !important;
	align-items: center !important;
	justify-content: center !important;
	margin: -5px 0 -5px 18px !important;
	padding: 8px 14px !important;
	border: 1px solid #20351a !important;
	border-radius: 0 !important;
	background: #20351a !important;
	box-shadow: none !important;
	color: #fffef7 !important;
	font: 800 14px/1.2 "PT Sans Narrow", "Arial Narrow", Arial, sans-serif !important;
	text-decoration: none !important;
}

html body[class][class][class][class][class][class] :where(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice) :where(a.button, button.button):hover,
html body[class][class][class][class][class][class] .wc-block-components-notice-banner :where(.button, .wc-block-components-notice-banner__content > a):hover {
	border-color: #c45d22 !important;
	background: #c45d22 !important;
	color: #fffef7 !important;
}

/* WooCommerce's removal undo is a secondary text action, not another large CTA. */
html body[class][class][class][class][class][class] :where(.woocommerce-message, .woocommerce-info) a.restore-item {
	display: inline !important;
	float: none !important;
	width: auto !important;
	min-height: 0 !important;
	margin: 0 0 0 0.35em !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #a94e1b !important;
	font: inherit !important;
	font-weight: 800 !important;
	text-decoration: underline !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 3px !important;
	white-space: normal !important;
}

html body[class][class][class][class][class][class] :where(.woocommerce-message, .woocommerce-info) a.restore-item:hover {
	background: transparent !important;
	color: #20351a !important;
}

html body[class][class][class][class][class][class] .wc-block-components-notice-banner {
	display: flex !important;
	align-items: flex-start !important;
	gap: 12px !important;
	padding-left: 16px !important;
}

html body[class][class][class][class][class][class] .wc-block-components-notice-banner > svg {
	width: 26px !important;
	height: 26px !important;
	flex: 0 0 26px !important;
	margin: 0 !important;
	border-radius: 50% !important;
	background: #2f7138 !important;
	fill: #fffef7 !important;
}

html body[class][class][class][class][class][class] .wc-block-components-notice-banner.is-info > svg { background: #c45d22 !important; }
html body[class][class][class][class][class][class] .wc-block-components-notice-banner.is-warning > svg { background: #c45d22 !important; }
html body[class][class][class][class][class][class] .wc-block-components-notice-banner.is-error > svg { background: #a94e1b !important; }
html body[class][class][class][class][class][class] .wc-block-components-notice-banner__content { min-width: 0 !important; color: inherit !important; }

html body[class][class][class][class][class][class] p.cart-empty.woocommerce-info {
	margin-bottom: 18px !important;
	color: #20351a !important;
}

/* Commerce v2 replaces the native empty notice with its richer empty state. */
html body.thps-v2-commerce-cart-empty[class][class][class][class][class][class] .woocommerce > p.cart-empty.woocommerce-info {
	display: none !important;
}

@media (max-width: 760px) {
	html body[class][class][class][class][class][class] :where(
		.woocommerce-message,
		.woocommerce-info,
		.woocommerce-error,
		.woocommerce-notice,
		.wc-block-components-notice-banner
	) {
		min-height: 0 !important;
		margin-bottom: 14px !important;
		padding: 15px 14px 15px 48px !important;
		font-size: 15px !important;
		line-height: 1.45 !important;
		word-break: normal !important;
		overflow-wrap: break-word !important;
	}

	html body[class][class][class][class][class][class] :where(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice)::before {
		top: 16px !important;
		left: 13px !important;
	}

	html body[class][class][class][class][class][class] :where(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice) :where(a.button, button.button),
	html body[class][class][class][class][class][class] .wc-block-components-notice-banner :where(.button, .wc-block-components-notice-banner__content > a) {
		float: none !important;
		width: 100% !important;
		min-height: 44px !important;
		margin: 12px 0 0 !important;
		box-sizing: border-box !important;
	}

	html body[class][class][class][class][class][class] :where(.woocommerce-message, .woocommerce-info) a.restore-item {
		display: inline !important;
		width: auto !important;
		margin: 0 0 0 0.25em !important;
	}

	html body[class][class][class][class][class][class] .wc-block-components-notice-banner {
		padding-left: 14px !important;
	}
}

@media (max-width: 340px) {
	html body[class][class][class][class][class][class] :where(
		.woocommerce-message,
		.woocommerce-info,
		.woocommerce-error,
		.woocommerce-notice
	) {
		padding-right: 12px !important;
	}
}
