/* Spartacus Floating Block – andockende Leiste / Popup */

/* Geräte-Sichtbarkeit (gilt auch an der Einbaustelle) */
@media (max-width: 767px) {
	.sfb--device-desktop {
		display: none !important;
	}
}

@media (min-width: 768px) {
	.sfb--device-mobile {
		display: none !important;
	}
}

/* Schwebende Leiste */
.sfb-float {
	position: fixed;
	z-index: 9990;
	right: 0;
	bottom: 0;
	left: 0;
	max-height: 60vh;
	overflow: auto;
	background: #fff;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
	animation: sfb-in 0.25s ease-out;
}

.sfb-float--card {
	right: auto;
	bottom: 16px;
	left: auto;
	width: min(420px, calc(100% - 32px));
	border-radius: 8px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.sfb-float--card.sfb-float--left {
	left: 16px;
}

.sfb-float--card.sfb-float--right {
	right: 16px;
}

.sfb-float--card.sfb-float--center {
	left: 50%;
	transform: translateX(-50%);
}

/* Popup */
.sfb-lock,
.sfb-lock body {
	overflow: hidden;
}

.sfb-overlay {
	position: fixed;
	z-index: 9995;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.55);
	animation: sfb-fade 0.2s ease-out;
}

.sfb-dialog {
	position: relative;
	width: min(640px, 100%);
	max-height: 90vh;
	overflow: auto;
	padding: 24px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
	outline: none;
}

/* Schließen: sticky (bleibt bei langem Inhalt sichtbar), überlagert den Inhalt ohne Platz zu belegen */
.sfb-close {
	position: sticky;
	top: 0;
	z-index: 1;
	display: block;
	margin: 0 0 -36px auto;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 26px;
	line-height: 36px;
	cursor: pointer;
}

.sfb-dialog .sfb-close {
	top: -20px;
	margin: -20px -20px -16px auto;
}

@keyframes sfb-in {
	from {
		opacity: 0;
		translate: 0 20px;
	}
}

@keyframes sfb-fade {
	from {
		opacity: 0;
	}
}
