/* Freigrenze-Balken */
.fgb-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: var(--fgb-z, 9990);
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 48px 12px 16px;
	padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	background: var(--fgb-bg, #222);
	color: var(--fgb-text, #fff);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
	font-size: 15px;
	line-height: 1.4;
	box-sizing: border-box;
	animation: fgb-slide-in 0.3s ease-out;
}

.fgb-bar--hidden,
.fgb-bar--closed {
	display: none !important;
}

.fgb-bar__content {
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

.fgb-bar__text {
	margin: 0 0 6px;
	padding: 0;
	color: inherit;
	font-size: inherit;
}

.fgb-bar__text .amount,
.fgb-bar__text bdi {
	color: inherit;
	white-space: nowrap;
}

.fgb-bar__track {
	position: relative;
	height: 8px;
	border-radius: 999px;
	background: var(--fgb-track, #555);
	overflow: hidden;
}

.fgb-bar__fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--fgb-fill, #f0a500);
	transition: width 0.5s ease, background-color 0.3s ease;
}

.fgb-bar--success .fgb-bar__fill {
	background: var(--fgb-success, #3a9a4a);
}

.fgb-bar--empty .fgb-bar__track {
	display: none;
}

.fgb-bar--empty .fgb-bar__text {
	margin-bottom: 0;
}

.fgb-bar__close {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 22px;
	line-height: 32px;
	text-align: center;
	cursor: pointer;
	opacity: 0.75;
	box-shadow: none;
}

.fgb-bar__close:hover,
.fgb-bar__close:focus-visible {
	opacity: 1;
	background: rgba(255, 255, 255, 0.12);
	color: inherit;
}

/* Platz schaffen, damit der Footer nicht verdeckt wird */
body.fgb-active {
	padding-bottom: var(--fgb-height, 0px) !important;
}

@media (max-width: 600px) {
	.fgb-bar {
		font-size: 13px;
		padding-left: 12px;
		padding-right: 44px;
	}
}

@keyframes fgb-slide-in {
	from { transform: translateY(100%); }
	to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.fgb-bar { animation: none; }
	.fgb-bar__fill { transition: none; }
}

@media print {
	.fgb-bar { display: none !important; }
}
