/* =========================================================================
   WooCommerce notices + "View cart" / "Continue shopping" links, site-wide.
   Covers every spot WooCommerce shows these — product pages, shop/category
   archives, and the catalog addon cards — not just the cart page itself.
   ========================================================================= */

:root {
	--swpa-accent: #f0a500;
	--swpa-accent-dark: #d99200;
	--swpa-ink: #2b2b2b;
	--swpa-border: #f0e2c4;
}

/* The banner-style notices WooCommerce prints (added to cart, errors, etc.) */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews {
	background: #fffaf2 !important;
	border: 1px solid var( --swpa-border ) !important;
	border-top: 3px solid var( --swpa-accent ) !important;
	border-radius: 14px !important;
	color: var( --swpa-ink ) !important;
	padding: 16px 20px !important;
	box-shadow: 0 4px 16px rgba( 0, 0, 0, 0.05 );
	list-style: none !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-noreviews::before {
	color: var( --swpa-accent-dark ) !important;
}

.woocommerce-error {
	border-top-color: #c0392b !important;
}

.woocommerce-error::before {
	color: #c0392b !important;
}

/* "View cart" (after add to cart) and "Continue shopping" (after checkout) */
a.button.wc-forward,
a.added_to_cart.wc-forward,
.woocommerce-message a.button {
	display: inline-block;
	margin-left: 10px;
	background: var( --swpa-accent ) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 999px !important;
	padding: 8px 20px !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	text-decoration: none !important;
	letter-spacing: 0.02em;
	transition: background 0.15s ease, transform 0.15s ease;
}

a.button.wc-forward:hover,
a.added_to_cart.wc-forward:hover,
.woocommerce-message a.button:hover {
	background: var( --swpa-accent-dark ) !important;
	transform: translateY( -1px );
}

/* When "View cart" appears right after one of the addon cards' own buttons,
   give it a little breathing room instead of hugging the button above it. */
.swpa-catalog-card a.added_to_cart.wc-forward,
.swpa-card a.added_to_cart.wc-forward {
	display: block;
	margin: 8px auto 0;
	text-align: center;
	max-width: 220px;
	margin-left: auto;
	margin-right: auto;
}
