/**
 * RPS Add-to-Cart gate notice — shared "attention card" look.
 *
 * Every server-side add/update gate (missing orientation, missing foil type,
 * single-sided-with-back-artwork, no shipping speed, a cart line that was
 * removed elsewhere, …) surfaces through ONE box: `.rps-atc-error`, which
 * rps-ajax-atc.js fills with whatever `rps_add_to_cart` returned in `messages`
 * — standard WooCommerce notice markup (`ul.woocommerce-error > li`).
 *
 * Left to the theme that markup renders as a generic blue-grey bullet list,
 * which reads nothing like PSDM's own inline gates (the orientation gate's
 * amber card in psdm-orientation-gate.css). This file re-skins the notice list
 * to that same attention-card language so every "fix this to continue" message
 * on the product page looks like one family:
 *
 *   amber rounded card + orange left rail + round "!" badge
 *
 * Deliberately scoped INSIDE `.rps-atc-error` only — WooCommerce notices
 * elsewhere on the page (cart, checkout, account) keep the theme's styling.
 *
 * Enqueued from RPS_Zones_Product_Page (handle `rps-atc-notice`, after
 * `rps-atc-loader`, which owns the box's spacing/empty rules).
 */

/* Kill the theme/Woo list chrome so the <li> can become the card. */
.rps-atc-error .woocommerce-error,
.rps-atc-error ul.woocommerce-error {
	margin: 0;
	padding: 0;
	list-style: none;
	background: none;
	border: 0;
	box-shadow: none;
	color: inherit;
}

/* The theme paints its notice icon via ::before on the list — remove it so we
   don't end up with two badges. */
.rps-atc-error .woocommerce-error::before,
.rps-atc-error ul.woocommerce-error::before {
	content: none;
	display: none;
}

/* One card per message. Mirrors .psdm-orientation-gate-msg. */
.rps-atc-error .woocommerce-error > li {
	position: relative;
	box-sizing: border-box;
	list-style: none;
	margin: 0 0 8px;
	padding: 12px 16px 12px 44px;
	border: 1px solid #f8c77e;
	border-left: 4px solid #f59e0b;
	border-radius: 12px;
	background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
	color: #7c2d12;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
	text-align: left;
	box-shadow: 0 10px 24px rgba(146, 64, 14, 0.12);
}

.rps-atc-error .woocommerce-error > li:last-child {
	margin-bottom: 0;
}

/* Round "!" badge, same as the orientation gate. */
.rps-atc-error .woocommerce-error > li::before {
	content: "!";
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #f59e0b;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	line-height: 20px;
	text-align: center;
}

/* Any action link WooCommerce appends (e.g. "View cart") stays readable
   against the amber card instead of inheriting the theme's link color. */
.rps-atc-error .woocommerce-error > li a {
	color: #b45309;
	text-decoration: underline;
}

.rps-atc-error .woocommerce-error > li a:hover,
.rps-atc-error .woocommerce-error > li a:focus {
	color: #7c2d12;
}

@media (max-width: 480px) {
	.rps-atc-error .woocommerce-error > li {
		padding: 11px 13px 11px 40px;
		font-size: 12.5px;
	}
}
