/* TT – Woo – Clean Cart & Checkout: clean WooCommerce notices (site-wide) and empty cart.
 * Replaces Storefront's solid green / blue / red bars with quiet white cards.
 * --tt-n-accent is set from the plugin's button colour.
 */

body .woocommerce-message,
body .woocommerce-info,
body .woocommerce-error,
body .woocommerce-noreviews,
body p.no-comments {
	--tt-n-icon: #2e7d32;
	position: relative;
	display: block;
	margin: 0 0 20px !important;
	padding: 14px 18px 14px 52px !important;
	border: 1px solid #e3e3e3 !important;
	border-left: 4px solid var(--tt-n-icon) !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: #1a1a1a !important;
	font-size: 15px !important;
	line-height: 1.45 !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .05) !important;
	list-style: none !important;
}
body .woocommerce-info,
body .woocommerce-noreviews,
body p.no-comments {
	--tt-n-icon: var(--tt-n-accent, #66130d);
}
body .woocommerce-error {
	--tt-n-icon: #b32d2e;
	background: #fdf4f4 !important;
	border-color: #f1caca !important;
	border-left-color: #b32d2e !important;
}

/* Simple round icon instead of the theme's icon font (which can show as a box). */
body .woocommerce-message::before,
body .woocommerce-info::before,
body .woocommerce-error::before,
body .woocommerce-noreviews::before,
body p.no-comments::before {
	content: "✓" !important;
	position: absolute !important;
	top: 50% !important;
	left: 16px !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 22px !important;
	height: 22px !important;
	margin: -11px 0 0 !important;
	border-radius: 50%;
	background: var(--tt-n-icon) !important;
	color: #fff !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
}
body .woocommerce-info::before,
body .woocommerce-noreviews::before,
body p.no-comments::before {
	content: "i" !important;
	font-family: Georgia, "Times New Roman", serif !important;
	font-style: italic;
}
body .woocommerce-error::before {
	content: "!" !important;
	top: 14px !important;
	margin: 0 !important;
}

/* Error lists: one tidy line per message. */
body .woocommerce-error li {
	margin: 0 !important;
	padding: 2px 0 !important;
	list-style: none !important;
}

/* Links and buttons inside notices ("Undo?", "View cart", "Continue shopping"). */
body .woocommerce-message a,
body .woocommerce-info a,
body .woocommerce-error a {
	color: var(--tt-n-accent, #66130d) !important;
	font-weight: 600;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}
body .woocommerce-message .button,
body .woocommerce-info .button,
body .woocommerce-error .button {
	float: right;
	margin: -4px 0 0 16px !important;
	padding: 8px 16px !important;
	border: 1px solid var(--tt-n-accent, #66130d) !important;
	border-radius: 6px !important;
	background: #fff !important;
	color: var(--tt-n-accent, #66130d) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	text-transform: none !important;
}
body .woocommerce-message .button:hover,
body .woocommerce-info .button:hover {
	background: var(--tt-n-accent, #66130d) !important;
	color: #fff !important;
}

/* Blocks-style notices, if any page uses them. */
body .wc-block-components-notice-banner {
	border-radius: 8px !important;
	border: 1px solid #e3e3e3 !important;
	background: #fff !important;
	color: #1a1a1a !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .05) !important;
}
body .wc-block-components-notice-banner.is-error {
	background: #fdf4f4 !important;
	border-color: #f1caca !important;
}

/* ---------- Empty cart ---------- */
body.woocommerce-cart .cart-empty.woocommerce-info,
body.woocommerce-cart .wc-empty-cart-message .cart-empty {
	margin: 24px 0 8px !important;
	padding: 48px 16px 6px !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: #1a1a1a !important;
	font-size: 22px !important;
	font-weight: 600 !important;
	text-align: center;
}
body.woocommerce-cart .cart-empty.woocommerce-info::before {
	content: "🛒" !important;
	position: static !important;
	display: flex !important;
	width: 64px !important;
	height: 64px !important;
	margin: 0 auto 18px !important;
	border-radius: 50%;
	background: #f4f4f4 !important;
	color: inherit !important;
	font-family: inherit !important;
	font-style: normal;
	font-size: 28px !important;
}
body.woocommerce-cart .return-to-shop {
	margin: 0 0 48px !important;
	text-align: center;
}
body.woocommerce-cart .return-to-shop::before {
	content: "Looks like you haven't added anything yet.";
	display: block;
	margin: 0 0 20px;
	font-size: 15px;
	color: #6b6b6b;
}
body.woocommerce-cart .return-to-shop .button {
	display: inline-block !important;
	padding: 16px 32px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: var(--tt-n-accent, #66130d) !important;
	color: #fff !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	text-transform: none !important;
}
body.woocommerce-cart .return-to-shop .button:hover {
	filter: brightness(.9);
}

@media (max-width: 600px) {
	body .woocommerce-message .button,
	body .woocommerce-info .button,
	body .woocommerce-error .button {
		float: none;
		display: inline-block !important;
		margin: 10px 0 0 !important;
	}
}
