/**
 * sigeAssist — WooCommerce toast notices (bottom-right).
 */

/* Inline notices aus dem Theme-Layout ausblenden (JS verschiebt sie in den Stack). */
body.sa-wc-toast-body-enabled:not(.elementor-editor-active) .woocommerce-message,
body.sa-wc-toast-body-enabled:not(.elementor-editor-active) .woocommerce-error,
body.sa-wc-toast-body-enabled:not(.elementor-editor-active) .woocommerce-info,
body.sa-wc-toast-body-enabled:not(.elementor-editor-active) .woocommerce-NoticeGroup,
body.sa-wc-toast-body-enabled:not(.elementor-editor-active) .wc-block-components-notice-banner,
body.sa-wc-toast-body-enabled:not(.elementor-editor-active) .uicore-added_to_cart {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	min-height: 0 !important;
}

body.sa-wc-toast-body-enabled:not(.elementor-editor-active) .woocommerce-notices-wrapper:empty,
body.sa-wc-toast-body-enabled:not(.elementor-editor-active) .e-woocommerce-notices-wrapper:empty {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.sa-wc-toast-stack {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 99999;
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-end;
	gap: 10px;
	max-width: min(380px, calc(100vw - 32px));
	pointer-events: none;
}

.sa-wc-toast-item {
	pointer-events: auto;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	padding: 14px 14px 14px 16px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12), 0 6px 14px rgba(15, 23, 42, 0.06);
	border-left: 4px solid #1b4f9b;
	font-family: Inter, system-ui, -apple-system, sans-serif;
	font-size: 14px;
	line-height: 1.45;
	color: #2c3447;
	opacity: 0;
	transform: translateX(18px);
	transition: opacity 0.28s ease, transform 0.28s ease;
}

.sa-wc-toast-item--visible {
	opacity: 1;
	transform: translateX(0);
}

.sa-wc-toast-item--leaving {
	opacity: 0;
	transform: translateX(18px);
}

.sa-wc-toast-item--success {
	border-left-color: #15803d;
	background: #f0fdf4;
}

.sa-wc-toast-item--error {
	border-left-color: #b91c1c;
	background: #fef2f2;
}

.sa-wc-toast-item--info {
	border-left-color: #1b4f9b;
	background: #eef4fc;
}

.sa-wc-toast-item__content {
	flex: 1;
	min-width: 0;
}

.sa-wc-toast-item__content p {
	margin: 0;
}

.sa-wc-toast-item__content ul {
	margin: 0;
	padding-left: 1.1em;
}

.sa-wc-toast-item__content a {
	color: #1b4f9b;
	font-weight: 600;
	text-decoration: underline;
}

.sa-wc-toast-item__content a.button,
.sa-wc-toast-item__content .button {
	display: inline-block;
	margin-top: 8px;
	padding: 6px 12px;
	border-radius: 8px;
	background: #1b4f9b;
	color: #fff !important;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
}

.sa-wc-toast-item__close {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	margin: -4px -4px 0 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #5a6478;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.sa-wc-toast-item__close:hover {
	background: rgba(15, 23, 42, 0.06);
	color: #0e1422;
}

@media (max-width: 480px) {
	.sa-wc-toast-stack {
		right: 16px;
		bottom: 16px;
		left: 16px;
		max-width: none;
		align-items: stretch;
	}
}
