/*ADD-TO-CART-FEEDBACK*/
/**
 * Allping: stable add-to-cart feedback.
 *
 * Caddy owns the AJAX cart request. This stylesheet contains the shared cart
 * notifications and notice handling styles; archive-card add-to-cart button
 * styling is kept separately as an inactive backup.
 *
 * Add this as a separate frontend CSS snippet. Do not merge it into the
 * existing archive stylesheet until the behavior has been approved.
 */

/* The notice is still present for semantics, but its layout space is removed
 * after the message has been copied into the fixed toast. Cart and checkout
 * pages are intentionally excluded by the JavaScript scope. */
body.woocommerce .allping-woocommerce-notice-hidden {
	display: none !important;
}

/* Fixed, non-layout-shifting notification stack. It enters from the right on
 * larger screens and remains inset on narrow screens. */
body.woocommerce .allping-cart-toast-container {
	position: fixed;
	top: calc(16px + var(--wp-admin--admin-bar--height, 0px));
	right: 20px;
	z-index: 100001;
	display: flex;
	width: min(390px, calc(100vw - 40px));
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
}

body.woocommerce .allping-cart-toast {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr) auto 24px;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	width: 100%;
	padding: 13px 12px;
	border: 1px solid #cbd5e1;
	border-left-width: 4px;
	border-radius: 6px;
	background: #ffffff;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
	color: #0f172a;
	font-family: Inter, sans-serif;
	font-size: 14px;
	line-height: 20px;
	opacity: 0;
	transform: translateX(115%);
	transition: opacity 180ms ease, transform 220ms ease;
	pointer-events: auto;
}

body.woocommerce .allping-cart-toast.is-visible {
	opacity: 1;
	transform: translateX(0);
}

body.woocommerce .allping-cart-toast--success {
	border-color: #86efac;
	border-left-color: #16a34a;
}

body.woocommerce .allping-cart-toast--error {
	border-color: #fecaca;
	border-left-color: #dc2626;
}

body.woocommerce .allping-cart-toast--info {
	border-color: #bae6fd;
	border-left-color: #0284c7;
}

body.woocommerce .allping-cart-toast__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 23px;
	height: 23px;
	border-radius: 50%;
	background: #e2e8f0;
	font-size: 14px;
	font-weight: 700;
}

body.woocommerce .allping-cart-toast--success .allping-cart-toast__icon {
	background: #dcfce7;
	color: #166534;
}

body.woocommerce .allping-cart-toast--error .allping-cart-toast__icon {
	background: #fee2e2;
	color: #b91c1c;
}

body.woocommerce .allping-cart-toast--info .allping-cart-toast__icon {
	background: #e0f2fe;
	color: #075985;
}

body.woocommerce .allping-cart-toast__message {
	min-width: 0;
	font-weight: 500;
}

body.woocommerce .allping-cart-toast__action {
	box-sizing: border-box;
	padding: 7px 10px;
	border: 1px solid #0f172a;
	border-radius: 6px;
	background: #0f172a;
	color: #ffffff !important;
	font-size: 13px;
	font-weight: 600;
	line-height: 18px;
	text-decoration: none;
	white-space: nowrap;
}

body.woocommerce .allping-cart-toast__action:hover,
body.woocommerce .allping-cart-toast__action:focus-visible {
	border-color: #075985;
	background: #075985;
	color: #ffffff !important;
}

body.woocommerce .allping-cart-toast__close {
	grid-column: 4;
	align-self: start;
	box-sizing: border-box;
	width: 24px;
	height: 24px;
	margin-left: -4px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #64748b;
	font-size: 20px;
	font-weight: 400;
	line-height: 24px;
	cursor: pointer;
}

body.woocommerce .allping-cart-toast__close:hover,
body.woocommerce .allping-cart-toast__close:focus-visible {
	color: #0f172a;
}

@media (max-width: 767px) {
	body.woocommerce .allping-cart-toast-container {
		top: calc(12px + var(--wp-admin--admin-bar--height, 0px));
		right: 12px;
		left: 12px;
		width: auto;
	}

	body.woocommerce .allping-cart-toast {
		grid-template-columns: 22px minmax(0, 1fr) auto 24px;
		gap: 8px;
		padding: 12px 10px;
		font-size: 13px;
		line-height: 18px;
	}

	body.woocommerce .allping-cart-toast__action {
		padding: 6px 8px;
		font-size: 12px;
		line-height: 17px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.woocommerce .allping-cart-toast {
		transition: none;
	}
}























