/* R.E.SET Events (Port von TDC) -- Schwebender Warenkorb-Button (eigenstaendig).
 * Laedt auf Einzel-Events, WooCommerce-Produkt-/Shop-Seiten und Event-Listen.
 * Default unten LINKS (rechts sitzt oft der Chat-Button). z-index unter dem
 * Debug-Marker (99999). Gegen Theme-<a>-Bleed mit !important gehaertet.
 */
.revt-cart-fab {
	position: fixed !important;
	bottom: 20px;
	bottom: calc(20px + env(safe-area-inset-bottom));
	z-index: 99990 !important;
	width: 56px !important;
	height: 56px !important;
	border-radius: 50% !important;
	background: #0f8a72 !important;
	color: #fff !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .28) !important;
	transform: scale(0);
	opacity: 0;
	transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease;
	-webkit-tap-highlight-color: transparent;
}
.revt-cart-fab[hidden] {
	display: none !important;
}
.revt-cart-fab--left {
	left: 20px;
	left: calc(20px + env(safe-area-inset-left));
}
.revt-cart-fab--right {
	right: 20px;
	right: calc(20px + env(safe-area-inset-right));
}
.revt-cart-fab--visible {
	transform: scale(1);
	opacity: 1;
}
.revt-cart-fab--bump {
	animation: revt-cart-bump .42s ease;
}
@keyframes revt-cart-bump {
	30% { transform: scale(1.16); }
	60% { transform: scale(.95); }
	100% { transform: scale(1); }
}
.revt-cart-fab__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}
.revt-cart-fab__badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 22px;
	height: 22px;
	padding: 0 5px;
	border-radius: 11px;
	background: #fff;
	color: #0f6e56;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
	box-sizing: border-box;
}

/* Kurzer Hinweis-Toast neben dem Button */
.revt-cart-fab__toast {
	position: fixed;
	bottom: 33px;
	bottom: calc(33px + env(safe-area-inset-bottom));
	z-index: 99989;
	background: #fff;
	color: #1f2937;
	border: 0.5px solid rgba(0, 0, 0, .12);
	font-size: 13px;
	font-weight: 500;
	padding: 7px 12px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .16);
	white-space: nowrap;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
}
.revt-cart-fab__toast--left {
	left: 86px;
	left: calc(86px + env(safe-area-inset-left));
}
.revt-cart-fab__toast--right {
	right: 86px;
	right: calc(86px + env(safe-area-inset-right));
}
.revt-cart-fab__toast--show {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 600px) {
	.revt-cart-fab {
		bottom: 16px;
		bottom: calc(16px + env(safe-area-inset-bottom));
	}
	.revt-cart-fab--left {
		left: 16px;
		left: calc(16px + env(safe-area-inset-left));
	}
	.revt-cart-fab--right {
		right: 16px;
		right: calc(16px + env(safe-area-inset-right));
	}
	.revt-cart-fab__toast {
		bottom: 29px;
		bottom: calc(29px + env(safe-area-inset-bottom));
	}
	.revt-cart-fab__toast--left {
		left: 82px;
		left: calc(82px + env(safe-area-inset-left));
	}
	.revt-cart-fab__toast--right {
		right: 82px;
		right: calc(82px + env(safe-area-inset-right));
	}
}

@media (prefers-reduced-motion: reduce) {
	.revt-cart-fab {
		transition: opacity .2s ease;
	}
	.revt-cart-fab--bump {
		animation: none;
	}
}

/* ── Gratis-Gastplatz (R.E.SET Pass): weisser Ring + Gratis-Geschenk-Chip.
   Zaehlt NICHT im Zaehler (Filter revt_cart_display_count rechnet ihn raus) --
   die Kugel ist auch bei Zaehler 0 sichtbar, solange ein Gastplatz drin liegt.
   Ring auf ::after, Aufleuchten auf ::before -> beide unabhaengig vom Skin-
   box-shadow (!important) und von der bump/flash-Animation der Kugel selbst. ── */
/* Ring liegt HINTER dem Badge (z-index 0) -> deckt die Zahl nie zu. */
.revt-cart-fab--gift::after {
	content: "";
	position: absolute;
	inset: -3px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 0 0 0 rgba(255, 255, 255, .55);
	animation: revt-cart-gift-ring 1.9s ease-in-out infinite;
	pointer-events: none;
	z-index: 0;
}
@keyframes revt-cart-gift-ring {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); }
	60%      { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
}
/* Das Zaehler-Badge wird bei Gratis-Gastplatz erweitert: Geschenk-Symbol + " / " +
   Anzahl BEZAHLTER Artikel (der Gastplatz selbst zaehlt nicht). Ueber dem Ring. */
.revt-cart-fab__badge { z-index: 2; }
.revt-cart-fab--gift .revt-cart-fab__badge {
	padding: 0 6px;
	gap: 2px;
}
.revt-cart-fab__badge-gift { display: inline-flex; align-items: center; }
.revt-cart-fab__badge-gift svg { width: 12px; height: 12px; display: block; }
.revt-cart-fab__badge-sep { opacity: .7; margin: 0 1px; font-weight: 600; }
/* Einmaliges kraeftiges Aufleuchten, wenn der Gastplatz reingelegt wird. */
.revt-cart-fab--flash::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(255, 255, 255, .92);
	animation: revt-cart-flash .85s ease-out;
	pointer-events: none;
}
@keyframes revt-cart-flash {
	0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .92); opacity: 1; }
	100% { box-shadow: 0 0 0 24px rgba(255, 255, 255, 0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.revt-cart-fab--gift::after { animation: none; }
	.revt-cart-fab--flash::before { animation: none; }
}

/* ── MARKEN-SKIN (gilt fuer UNSERE Kugel UND die TDC-Kugel waehrend der
   Koexistenz): Tinte-Kugel + Kupfer-Badge. Kupfer gehoert dem Tidio-Chat
   (rechts unten) -- Tinte hebt den Warenkorb klar davon ab und entspricht
   der Design-Sprache der Website (aktiv = Tinte-Block). !important, weil
   TDCs Original-CSS selbst !important nutzt. ── */
.revt-cart-fab,
.tdc-cart-fab {
	background: #1c1d1f !important;
	color: #f6f2e9 !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .3) !important;
}
.revt-cart-fab__icon,
.tdc-cart-fab__icon {
	color: #f6f2e9 !important;
}
.revt-cart-fab__badge,
.tdc-cart-fab__badge {
	background: #b5663f !important;
	color: #fff !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .3) !important;
}
.revt-cart-fab__toast,
.tdc-cart-fab__toast {
	background: #f6f2e9 !important;
	color: #1c1d1f !important;
	border: 1px solid #d5ccba !important;
	border-radius: 0 !important;
	font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace !important;
	font-size: 12px !important;
	letter-spacing: .04em;
}
