/* WooCommerce notices as toasts. */
html.bikerswing-has-toasts .woocommerce-notices-wrapper > .woocommerce-message,
html.bikerswing-has-toasts .woocommerce-notices-wrapper > .woocommerce-info,
html.bikerswing-has-toasts .woocommerce-notices-wrapper > .woocommerce-error,
html.bikerswing-has-toasts .woocommerce-notices-wrapper > .wc-block-components-notice-banner {
	display: none;
}

.bikerswing-toasts {
	position: fixed;
	z-index: 100000;
	top: 20px;
	inset-inline-end: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 380px;
	max-width: calc(100vw - 32px);
	pointer-events: none;
}

.bikerswing-toast {
	--bikerswing-toast-accent: #2e9e48;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 14px 14px 16px;
	padding-inline: 16px 14px;
	background: #fff;
	color: #262626;
	border-radius: 6px;
	border-inline-start: 4px solid var(--bikerswing-toast-accent);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
	font-size: 14px;
	line-height: 20px;
	pointer-events: auto;
	opacity: 0;
	transform: translateY(-12px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.bikerswing-toast.is-visible {
	opacity: 1;
	transform: none;
}

.bikerswing-toast.is-leaving {
	opacity: 0;
	transform: translateY(-12px);
}

.bikerswing-toast--info {
	--bikerswing-toast-accent: #2b7de9;
}

.bikerswing-toast--error {
	--bikerswing-toast-accent: #e52727;
}

.bikerswing-toast__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bikerswing-toast__body li {
	list-style: none;
}

.bikerswing-toast__body ul,
.bikerswing-toast__body li {
	margin: 0;
	padding: 0;
}

.bikerswing-toast__body .button,
.bikerswing-toast__body .wc-forward {
	order: 2;
	align-self: flex-start;
	display: inline-block;
	margin: 0;
	padding: 6px 14px;
	border-radius: 3px;
	background: var(--bikerswing-toast-accent);
	color: #fff;
	font-size: 13px;
	line-height: 18px;
	text-decoration: none;
}

.bikerswing-toast__body .button:hover,
.bikerswing-toast__body .wc-forward:hover {
	color: #fff;
	filter: brightness(0.92);
}

.bikerswing-toast__close {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	margin: -2px 0 0;
	padding: 0;
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: #999;
	font-size: 22px;
	line-height: 22px;
	cursor: pointer;
}

.bikerswing-toast__close:hover {
	background: #f0f0f0;
	color: #262626;
}

@media (max-width: 575px) {
	.bikerswing-toasts {
		top: auto;
		bottom: 16px;
		inset-inline: 16px;
		width: auto;
		max-width: none;
	}

	.bikerswing-toast,
	.bikerswing-toast.is-leaving {
		transform: translateY(12px);
	}

	.bikerswing-toast.is-visible {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bikerswing-toast {
		transition: opacity 0.15s linear;
		transform: none !important;
	}
}
