/**
 * Store Guthaben – Frontend
 *
 * Farben laufen ausschließlich über CSS-Variablen. Um sie pro Shop zu ändern,
 * reicht ein Override im Customizer oder im Theme:
 *
 *   :root { --scc-bg: #ffba00; --scc-fg: #000620; }
 */

:root {
	--scc-bg: #f8d103;
	--scc-fg: #000620;
	--scc-radius: 999px;
	--scc-font-size: 0.875rem;
	--scc-gap: 0.45em;
	--scc-padding: 0.42em 0.85em;
	--scc-shadow: 0 1px 2px rgba(0, 6, 32, 0.18);
}

.scc-balance {
	display: inline-flex;
	align-items: center;
	gap: var(--scc-gap);
	padding: var(--scc-padding);
	border-radius: var(--scc-radius);
	background: var(--scc-bg);
	color: var(--scc-fg);
	font-size: var(--scc-font-size);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	white-space: nowrap;
	text-decoration: none;
	box-shadow: var(--scc-shadow);
	vertical-align: middle;
	animation: scc-fade-in 0.28s ease both;
}

.scc-balance[hidden] {
	display: none !important;
}

.scc-balance__icon {
	width: 1.15em;
	height: 1.15em;
	flex: 0 0 auto;
	opacity: 0.9;
}

.scc-balance__label {
	font-weight: 500;
	opacity: 0.82;
}

.scc-balance__amount {
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

/* Mini-Warenkorb */

.scc-mini-cart-notice {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	margin: 0 0 0.6em;
	font-size: 0.875em;
	font-weight: 600;
	color: var(--scc-fg);
}

/* Bestätigung nach dem Aktivieren */

.scc-toast {
	position: fixed;
	z-index: 99999;
	left: 50%;
	bottom: 24px;
	transform: translate(-50%, 16px);
	display: flex;
	align-items: center;
	gap: 0.7em;
	max-width: min(92vw, 30rem);
	padding: 0.85em 1.15em;
	border-radius: 12px;
	background: var(--scc-bg);
	color: var(--scc-fg);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	box-shadow: 0 8px 28px rgba(0, 6, 32, 0.26);
	opacity: 0;
	transition: opacity 0.28s ease, transform 0.28s ease;
}

.scc-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.scc-toast--muted {
	background: var(--scc-fg);
	color: #fff;
}

.scc-toast__icon {
	width: 1.3em;
	height: 1.3em;
	flex: 0 0 auto;
}

.scc-toast__close {
	margin-left: auto;
	padding: 0 0 0 0.4em;
	border: 0;
	background: none;
	color: inherit;
	font-size: 1.15em;
	line-height: 1;
	cursor: pointer;
	opacity: 0.6;
}

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

@keyframes scc-fade-in {
	from {
		opacity: 0;
		transform: translateY(-2px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.scc-balance,
	.scc-toast {
		animation: none;
		transition: none;
	}
}
