/* =============================================================================
 * FP AJAX Add to Cart — Toast
 * Slides in from the top-left corner. Auto-hides.
 *
 * WHERE TO EDIT
 * -------------
 * Position:       .fp-aac-toast top / left values
 * Colors:         --fp-aac-* CSS variables
 * Slide direction: change transform values in .is-visible / default
 * ============================================================================= */

:root {
	--fp-aac-bg: #ffffff;
	--fp-aac-text: #111;
	--fp-aac-muted: #666;
	--fp-aac-accent: #f9c89d;
	--fp-aac-error: #c9302c;
	--fp-aac-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.fp-aac-toast {
	position: fixed;
	top: 80px;
	right: 10px;
	z-index: 100000;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 220px;
	max-width: 340px;
	padding: 12px 14px 12px 16px;
	background: var(--fp-aac-bg);
	color: var(--fp-aac-text);
	border-left: 3px solid var(--fp-aac-accent);
	border-radius: 4px;
	box-shadow: var(--fp-aac-shadow);
	font-size: 14px;
	line-height: 1.35;

	/* Slide-in from the left */
	transform: translateX(120%);
	opacity: 0;
	transition: transform .25s ease, opacity .25s ease;
}
.fp-aac-toast.is-visible {
	transform: translateX(0);
	opacity: 1;
}
.fp-aac-toast.is-error {
	border-left-color: var(--fp-aac-error);
}

.fp-aac-toast__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.fp-aac-toast__title {
	font-weight: 600;
}
.fp-aac-toast__product {
	color: var(--fp-aac-muted);
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.fp-aac-toast__product:empty {
	display: none;
}

.fp-aac-toast__close {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	padding: 0;
	background: transparent;
	border: none;
	font-size: 20px;
	line-height: 1;
	color: var(--fp-aac-muted);
	cursor: pointer;
}
.fp-aac-toast__close:hover {
	color: var(--fp-aac-text);
}

/* Loading state for add-to-cart button (optional; theme may style differently) */
.single_add_to_cart_button.is-loading,
[type="submit"].is-loading {
	opacity: 0.6;
	cursor: wait;
}

@media ( max-width: 600px ) {
	.fp-aac-toast {
		top: 80px;
		left: 12px;
		right: 12px;
		max-width: none;
	}
}
