/* Add-to-cart toast — replaces default WooCommerce "View cart" link */

.added_to_cart.wc-forward {
	display: none !important;
}

.rbz-atc-toast {
	position: fixed;
	inset-inline: clamp(0.875rem, 2.5vw, 1.375rem);
	bottom: clamp(0.875rem, 2.5vw, 1.375rem);
	z-index: 99985;
	pointer-events: none;
}

.rbz-atc-toast__panel {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 0.75rem 0.875rem;
	width: min(100%, 24rem);
	padding: 0.875rem 0.875rem 0.875rem 1rem;
	border: 1px solid rgba(63, 154, 68, 0.18);
	border-radius: 18px;
	background: linear-gradient(135deg, #ffffff 0%, #f4faf5 100%);
	box-shadow: 0 20px 50px -18px rgba(45, 122, 49, 0.35);
	overflow: hidden;
	pointer-events: auto;
	opacity: 0;
	transform: translateY(16px) scale(0.96);
	transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.rbz-atc-toast__panel.is-visible {
	opacity: 1;
	transform: none;
}

.rbz-atc-toast__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: linear-gradient(145deg, #2d7a31, #3f9a44);
	color: #ffffff;
	font-size: 1.125rem;
	box-shadow: 0 8px 20px -8px rgba(45, 122, 49, 0.55);
}

.rbz-atc-toast__body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.rbz-atc-toast__title {
	color: #1a2332;
	font-size: 0.875rem;
	font-weight: 800;
	line-height: 1.45;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rbz-atc-toast__desc {
	color: #64748b;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.5;
}

.rbz-atc-toast__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 0.5rem 0.875rem;
	border-radius: 999px;
	background: linear-gradient(145deg, #2d7a31, #3f9a44);
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rbz-atc-toast__link:hover {
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 8px 18px -8px rgba(45, 122, 49, 0.6);
}

.rbz-atc-toast__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(63, 154, 68, 0.08);
	color: #64748b;
	font-size: 0.875rem;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.rbz-atc-toast__close:hover {
	background: rgba(63, 154, 68, 0.14);
	color: #2d7a31;
}

.rbz-atc-toast__progress {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 3px;
	background: linear-gradient(90deg, #3f9a44, #5cb85c);
	transform-origin: left center;
	transform: scaleX(1);
}

[dir="rtl"] .rbz-atc-toast__progress {
	transform-origin: right center;
}

@media (max-width: 540px) {
	.rbz-atc-toast__panel {
		grid-template-columns: auto minmax(0, 1fr) auto;
		width: 100%;
	}

	.rbz-atc-toast__link {
		grid-column: 1 / -1;
		width: 100%;
	}
}

html.rbz-dark .rbz-atc-toast__panel {
	background: linear-gradient(135deg, rgba(20, 28, 22, 0.96) 0%, rgba(15, 23, 42, 0.96) 100%);
	border-color: rgba(63, 154, 68, 0.22);
}

html.rbz-dark .rbz-atc-toast__title {
	color: rgba(255, 255, 255, 0.94);
}

html.rbz-dark .rbz-atc-toast__desc {
	color: rgba(255, 255, 255, 0.58);
}

html.rbz-dark .rbz-atc-toast__close {
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.55);
}

@media (prefers-reduced-motion: reduce) {
	.rbz-atc-toast__panel {
		transition: none;
	}
}
