.sbe-toast-stack {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 360px;
	width: calc(100% - 40px);
}

@media (max-width: 480px) {
	.sbe-toast-stack {
		right: 10px;
		bottom: 10px;
		width: calc(100% - 20px);
	}
}

.sbe-toast {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 8px;
	background: #1f2937;
	color: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
	font-size: 14px;
	line-height: 1.4;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.sbe-toast.sbe-toast--visible {
	opacity: 1;
	transform: translateY(0);
}

.sbe-toast--success { background: #15803d; }
.sbe-toast--error { background: #b91c1c; }
.sbe-toast--info { background: #1f2937; }

.sbe-toast__icon {
	flex-shrink: 0;
	font-size: 16px;
	line-height: 1;
	margin-top: 1px;
}

.sbe-toast__message {
	flex: 1;
}

.sbe-toast__close {
	flex-shrink: 0;
	background: none;
	border: 0;
	color: inherit;
	opacity: 0.7;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	padding: 0;
}

.sbe-toast__close:hover {
	opacity: 1;
}

/* Simple CSS-only tooltip: <span class="sbe-tooltip" data-sbe-tooltip="...">(i)</span> */
.sbe-tooltip {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #e5e7eb;
	color: #4b5563;
	font-size: 11px;
	font-weight: 600;
	cursor: help;
	margin-left: 4px;
}

/*
 * Popup itself is rendered by sbe-tooltip.js as a single element appended to
 * <body> and positioned with `position: fixed` from the trigger's real
 * bounding rect — never clipped by a scrolling ancestor, unlike a pure-CSS
 * ::after approach would be inside e.g. `.sbe-wizard__content`.
 */
.sbe-tooltip-popup {
	display: none;
	position: fixed;
	background: #111827;
	color: #fff;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	max-width: 260px;
	/*
	 * Must beat .sbe-modal-overlay's z-index (100001) — at equal z-index,
	 * stacking falls back to DOM order, and a modal opened after the tooltip
	 * popup was first created always wins (buildModal() re-appends a fresh
	 * overlay to <body> on every open), rendering the modal on top and
	 * hiding any tooltip triggered while it's open.
	 */
	z-index: 100010;
	pointer-events: none;
}
