.wcpb-wrapper {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
}

.wcpb-wrapper.wcpb-show {
	display: block;
}

.wcpb-wrapper.wcpb-position-center.wcpb-show {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.wcpb-overlay {
	position: absolute;
	inset: 0;
}

.wcpb-banner {
	position: relative;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	box-sizing: border-box;
	max-width: 92vw;
	max-height: 88vh;
	overflow: auto;
	line-height: 1.5;
}

.wcpb-banner-inner {
	padding: 32px;
	box-sizing: border-box;
}

.wcpb-header-image {
	overflow: hidden;
}

.wcpb-header-image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 220px;
	object-fit: cover;
}

/* Layout: Bild links/rechts nebeneinander */
.wcpb-layout-split_left .wcpb-banner,
.wcpb-layout-split_right .wcpb-banner {
	display: flex;
	align-items: stretch;
	overflow: hidden;
}

.wcpb-layout-split_right .wcpb-banner {
	flex-direction: row-reverse;
}

.wcpb-layout-split_left .wcpb-header-image,
.wcpb-layout-split_right .wcpb-header-image {
	flex: 0 0 42%;
	max-width: 42%;
	border-radius: 0 !important;
}

.wcpb-layout-split_left .wcpb-header-image img,
.wcpb-layout-split_right .wcpb-header-image img {
	height: 100%;
	max-height: none;
}

.wcpb-layout-split_left .wcpb-banner-inner,
.wcpb-layout-split_right .wcpb-banner-inner {
	flex: 1 1 auto;
	overflow: auto;
}

@media (max-width: 560px) {
	.wcpb-layout-split_left .wcpb-banner,
	.wcpb-layout-split_right .wcpb-banner {
		flex-direction: column;
	}
	.wcpb-layout-split_left .wcpb-header-image,
	.wcpb-layout-split_right .wcpb-header-image {
		max-width: 100%;
		flex-basis: auto;
	}
	.wcpb-layout-split_left .wcpb-header-image img,
	.wcpb-layout-split_right .wcpb-header-image img {
		height: auto;
		max-height: 160px;
	}
}

/* Layout: Vollbild-Hintergrund mit Text-Overlay unten */
.wcpb-layout-full_bg .wcpb-banner {
	min-height: 320px;
	display: flex;
	align-items: flex-end;
}

.wcpb-layout-full_bg .wcpb-banner-inner {
	width: 100%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 65%, rgba(0, 0, 0, 0) 100%);
	color: #fff;
}

.wcpb-layout-full_bg .wcpb-heading,
.wcpb-layout-full_bg .wcpb-content,
.wcpb-layout-full_bg .wcpb-countdown-label,
.wcpb-layout-full_bg .wcpb-dismiss-label {
	color: #fff;
}

/* Layout: Minimal, kompakter */
.wcpb-layout-minimal .wcpb-banner-inner {
	padding: 26px;
}

/* Layout: schmale Ankündigungsleiste */
.wcpb-layout-bar .wcpb-banner-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding: 14px 44px 14px 18px;
}

.wcpb-layout-bar .wcpb-header-image {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 6px !important;
	overflow: hidden;
}

.wcpb-layout-bar .wcpb-header-image img {
	width: 48px;
	height: 48px;
	max-height: none;
	object-fit: cover;
}

.wcpb-layout-bar .wcpb-heading {
	margin: 0;
	padding-right: 0;
	display: inline;
}

.wcpb-layout-bar .wcpb-content {
	display: inline;
}

.wcpb-layout-bar .wcpb-content p {
	display: inline;
	margin: 0;
}

.wcpb-layout-bar .wcpb-cta-wrap {
	margin: 0;
	flex: 0 0 auto;
}

.wcpb-layout-bar .wcpb-countdown {
	margin: 0;
}

.wcpb-layout-bar .wcpb-countdown-timer {
	gap: 6px;
}

.wcpb-layout-bar .wcpb-cd-num {
	font-size: 15px;
	padding: 4px 6px;
	min-width: 22px;
}

.wcpb-layout-bar .wcpb-dismiss-label {
	flex-basis: 100%;
	margin-top: 4px;
}

/* Layout: Ankündigungsleiste oben, schiebt den Seiteninhalt nach unten
   (statt ihn wie alle anderen Layouts als Overlay zu überdecken). Nutzt
   bewusst "position: fixed" statt "position: sticky": Sticky bricht auf
   sehr vielen Themes, sobald irgendein Vorfahren-Element (z. B. ein
   Seiten-Wrapper mit "overflow-x: hidden" gegen horizontales Scrollen,
   sehr verbreitet) ein "overflow" ungleich "visible" gesetzt hat. Der
   restliche Seiteninhalt wird stattdessen per JS mit "padding-top" auf
   <body> nach unten geschoben (siehe frontend.js). */
.wcpb-layout-sticky_top.wcpb-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: auto;
	height: auto;
	z-index: 999999;
	padding: 0;
}

.wcpb-layout-sticky_top.wcpb-wrapper.wcpb-show {
	display: block;
}

.wcpb-layout-sticky_top .wcpb-overlay {
	display: none;
}

.wcpb-layout-sticky_top .wcpb-banner {
	position: relative !important;
	width: 100% !important;
	max-width: 100% !important;
	max-height: none;
	border-radius: 0 !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Bewusst KEIN "display: flex" auf .wcpb-banner-inner: Flexbox
   "blockifiziert" laut Spezifikation jedes direkte Kind mit
   "display: inline" zu "display: block", was auf manchen Browsern/
   Kombinationen dazu führen konnte, dass Countdown und Button-Fußzeile
   nicht wie erwartet erschienen. Stattdessen normaler Textfluss mit
   "display: inline-block" + "text-align: center" - robuster, jedes
   Element bleibt garantiert sichtbar und bricht bei Bedarf einfach in
   eine neue Zeile um. */
.wcpb-layout-sticky_top .wcpb-banner-inner {
	padding: 10px 44px 10px 16px;
	text-align: center;
}

.wcpb-layout-sticky_top .wcpb-header-image {
	display: inline-block;
	vertical-align: middle;
	width: 32px;
	height: 32px;
	margin: 0 10px 0 0;
	border-radius: 6px !important;
	overflow: hidden;
}

.wcpb-layout-sticky_top .wcpb-header-image img {
	width: 32px;
	height: 32px;
	max-height: none;
	object-fit: cover;
}

.wcpb-layout-sticky_top .wcpb-heading {
	display: inline-block;
	vertical-align: middle;
	margin: 0 10px 0 0;
}

.wcpb-layout-sticky_top .wcpb-content {
	display: inline-block;
	vertical-align: middle;
}

.wcpb-layout-sticky_top .wcpb-content p {
	/* Bewusst NICHT "display: inline" - sonst werden manuelle Zeilenumbrüche
	   (mehrere Absätze im Editor) zu einer einzigen Zeile zusammengefasst
	   und harte Umbrüche sind nicht mehr möglich. */
	margin: 0;
}
.wcpb-layout-sticky_top .wcpb-content p + p {
	margin-top: 4px;
}

.wcpb-layout-sticky_top .wcpb-countdown {
	display: inline-block;
	vertical-align: middle;
	margin: 4px 10px;
}

.wcpb-layout-sticky_top .wcpb-countdown-timer {
	gap: 6px;
}

.wcpb-layout-sticky_top .wcpb-cd-num {
	font-size: 14px;
	padding: 3px 6px;
	min-width: 20px;
}

.wcpb-layout-sticky_top .wcpb-footer {
	display: inline-flex;
	vertical-align: middle;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin: 4px 0 4px 10px;
	padding: 0;
	border-radius: 0;
}

.wcpb-layout-sticky_top .wcpb-cta-wrap {
	margin: 0;
}

.wcpb-position-top,
.wcpb-position-bottom {
	display: block;
}

.wcpb-position-top .wcpb-banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100% !important;
	max-width: 100%;
	border-radius: 0 !important;
}

.wcpb-position-bottom .wcpb-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100% !important;
	max-width: 100%;
	border-radius: 0 !important;
}

.wcpb-position-top-left .wcpb-banner {
	position: fixed;
	top: 20px;
	left: 20px;
}

.wcpb-position-top-right .wcpb-banner {
	position: fixed;
	top: 20px;
	right: 20px;
}

.wcpb-position-bottom-left .wcpb-banner {
	position: fixed;
	bottom: 20px;
	left: 20px;
}

.wcpb-position-bottom-right .wcpb-banner {
	position: fixed;
	bottom: 20px;
	right: 20px;
}

/* Mitte links/rechts: vertikal zentriert, seitlich angedockt. Bewusst
   OHNE "transform" positioniert (das "margin: auto" zwischen top:0/
   bottom:0 zentriert bei auto-Höhe genauso zuverlässig), damit es nicht
   mit dem "transform" der Ein-/Ausblend-Animationen kollidiert - beide
   würden sich sonst gegenseitig überschreiben. */
.wcpb-position-middle-left .wcpb-banner,
.wcpb-position-middle-right .wcpb-banner {
	position: fixed;
	top: 20px;
	bottom: 20px;
	margin-top: auto;
	margin-bottom: auto;
	max-height: calc(100vh - 40px);
}

.wcpb-position-middle-left .wcpb-banner {
	left: 20px;
}

.wcpb-position-middle-right .wcpb-banner {
	right: 20px;
}

/* Animations */
.wcpb-banner {
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.wcpb-anim-fade .wcpb-banner {
	opacity: 0;
}
.wcpb-anim-fade.wcpb-active .wcpb-banner {
	opacity: 1;
}

.wcpb-anim-zoom .wcpb-banner {
	opacity: 0;
	transform: scale(0.85);
}
.wcpb-anim-zoom.wcpb-active .wcpb-banner {
	opacity: 1;
	transform: scale(1);
}

.wcpb-anim-slide-down .wcpb-banner {
	opacity: 0;
	transform: translateY(-40px);
}
.wcpb-anim-slide-down.wcpb-active .wcpb-banner {
	opacity: 1;
	transform: translateY(0);
}

.wcpb-anim-slide-up .wcpb-banner {
	opacity: 0;
	transform: translateY(40px);
}
.wcpb-anim-slide-up.wcpb-active .wcpb-banner {
	opacity: 1;
	transform: translateY(0);
}

.wcpb-anim-none .wcpb-banner {
	opacity: 1;
	transform: none;
}

/* Close button */
.wcpb-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #222;
	opacity: 0.85;
	padding: 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.wcpb-close:hover {
	opacity: 1;
}

/* "Nicht mehr anzeigen"-Checkbox */
.wcpb-dismiss-label {
	display: block;
	margin-top: 14px;
	font-size: 13px;
	opacity: 0.85;
	cursor: pointer;
}
.wcpb-dismiss-label input {
	margin-right: 6px;
}

/* Checkbox AUSSERHALB des Banner-Rahmens (nur bei Position "Mitte"
   zuverlässig ohne JavaScript umsetzbar - der Banner wird per Flexbox
   zentriert, diese Zeile wird als zweites Element direkt darunter
   gestapelt, siehe .wcpb-wrapper.wcpb-position-center.wcpb-show). Da sie
   auf dem Overlay/der Seite liegt statt auf der Banner-Hintergrundfarbe,
   bekommt sie einen eigenen, gut lesbaren Standard-Hintergrund - per
   Fußzeilen-/Feinschliff-Farbfeldern individuell überschreibbar. */
.wcpb-dismiss-label-outside {
	margin-top: 12px;
	margin-bottom: 0;
	padding: 8px 16px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.92);
	color: #222;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	text-align: center;
}

.wcpb-heading {
	margin: 0 0 12px;
	padding-right: 24px;
	font-size: 20px;
}

.wcpb-content p:last-child {
	margin-bottom: 0;
}

/* Countdown */
.wcpb-countdown {
	margin: 4px 0 18px;
	text-align: center;
}

.wcpb-countdown-label {
	font-size: 13px;
	margin-bottom: 8px;
	opacity: 0.85;
}

.wcpb-countdown-timer {
	display: flex;
	justify-content: center;
	gap: 10px;
}

.wcpb-cd-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 46px;
}

.wcpb-cd-num {
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	background: rgba(0, 0, 0, 0.06);
	border-radius: 4px;
	padding: 8px 6px;
	min-width: 34px;
}

.wcpb-cd-unit {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-top: 5px;
	opacity: 0.7;
}

.wcpb-countdown-expired {
	font-weight: 600;
}

.wcpb-footer {
	margin-top: 14px;
	padding: 12px;
	border-radius: 6px;
}

.wcpb-layout-bar .wcpb-footer {
	padding: 0;
	margin: 0;
	border-radius: 0;
}

.wcpb-cta-wrap {
	margin-top: 0;
}

.wcpb-cta {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
}

/* Products */
.wcpb-products {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 12px;
}

.wcpb-products-slider {
	flex-wrap: nowrap;
	overflow-x: auto;
	padding-bottom: 8px;
}

.wcpb-product {
	flex: 1 1 160px;
	max-width: 220px;
	text-align: center;
}

.wcpb-products-slider .wcpb-product {
	flex: 0 0 160px;
}

.wcpb-product-image img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	display: block;
}

.wcpb-product-title {
	display: block;
	margin-top: 8px;
	font-weight: 600;
	text-decoration: none;
	color: inherit;
}

.wcpb-product-price {
	margin-top: 4px;
}

.wcpb-add-to-cart {
	display: inline-block;
	margin-top: 10px;
	padding: 8px 16px;
	border-radius: 4px;
	text-decoration: none;
	font-size: 14px;
}

@media (max-width: 600px) {
	.wcpb-banner {
		padding: 22px;
	}
	.wcpb-position-top-left .wcpb-banner,
	.wcpb-position-top-right .wcpb-banner,
	.wcpb-position-bottom-left .wcpb-banner,
	.wcpb-position-bottom-right .wcpb-banner,
	.wcpb-position-middle-left .wcpb-banner,
	.wcpb-position-middle-right .wcpb-banner {
		left: 12px;
		right: 12px;
		top: auto;
		bottom: 12px;
		margin-top: 0;
		margin-bottom: 0;
		width: auto !important;
	}
}

/* Layout: schmale Ankündigungsleiste oben, die fest am Bildschirmrand
   klebt und sich ÜBER die Seite legt (Overlay), statt sie wie
   "sticky_top" nach unten zu schieben. Braucht keine JS-Verschiebung,
   "position: fixed" funktioniert unabhängig von der Position im DOM.
   Bewusst ganz am Dateiende, damit diese Regeln unabhängig von der
   (bei diesem Layout ignorierten) Position-Einstellung immer gewinnen. */
.wcpb-layout-top_bar.wcpb-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: auto;
	height: auto;
	z-index: 999999;
	display: none;
	padding: 0;
}

.wcpb-layout-top_bar.wcpb-wrapper.wcpb-show {
	display: block;
}

.wcpb-layout-top_bar .wcpb-overlay {
	display: none;
}

.wcpb-layout-top_bar .wcpb-banner {
	position: relative !important;
	width: 100% !important;
	max-width: 100% !important;
	max-height: none;
	border-radius: 0 !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Wie bei sticky_top bewusst kein "display: flex" auf .wcpb-banner-inner
   (Blockifizierungs-/Sichtbarkeitsrisiko bei Countdown & Button-Fußzeile),
   sondern robuster inline-block-Textfluss. */
.wcpb-layout-top_bar .wcpb-banner-inner {
	padding: 10px 44px 10px 16px;
	text-align: center;
}

.wcpb-layout-top_bar .wcpb-header-image {
	display: inline-block;
	vertical-align: middle;
	width: 32px;
	height: 32px;
	margin: 0 10px 0 0;
	border-radius: 6px !important;
	overflow: hidden;
}

.wcpb-layout-top_bar .wcpb-header-image img {
	width: 32px;
	height: 32px;
	max-height: none;
	object-fit: cover;
}

.wcpb-layout-top_bar .wcpb-heading {
	display: inline-block;
	vertical-align: middle;
	margin: 0 10px 0 0;
}

.wcpb-layout-top_bar .wcpb-content {
	display: inline-block;
	vertical-align: middle;
}

.wcpb-layout-top_bar .wcpb-content p {
	/* Bewusst NICHT "display: inline" - sonst werden manuelle Zeilenumbrüche
	   (mehrere Absätze im Editor) zu einer einzigen Zeile zusammengefasst
	   und harte Umbrüche sind nicht mehr möglich. */
	margin: 0;
}
.wcpb-layout-top_bar .wcpb-content p + p {
	margin-top: 4px;
}

.wcpb-layout-top_bar .wcpb-countdown {
	display: inline-block;
	vertical-align: middle;
	margin: 4px 10px;
}

.wcpb-layout-top_bar .wcpb-countdown-timer {
	gap: 6px;
}

.wcpb-layout-top_bar .wcpb-cd-num {
	font-size: 14px;
	padding: 3px 6px;
	min-width: 20px;
}

.wcpb-layout-top_bar .wcpb-footer {
	display: inline-flex;
	vertical-align: middle;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin: 4px 0 4px 10px;
	padding: 0;
	border-radius: 0;
}

.wcpb-layout-top_bar .wcpb-cta-wrap {
	margin: 0;
}

.wcpb-layout-top_bar .wcpb-close {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}
