/*
 * Webdeals Hub – Bundle-Konfigurator.
 *
 * Farben richten sich nach dem Umfeld: Text übernimmt die Schriftfarbe der
 * Spalte (hell im dunklen Panel, dunkel auf weiß), Flächen und Linien sind
 * halbtransparent. Akzent = Flatsome-Primärfarbe, einstellbar im Modul.
 * Produktfotos liegen immer auf einer hellen Fläche, weil die Bilder meist
 * weißen Hintergrund haben.
 */

.whub-bc-root,
.whub-bc-summary-root,
.whub-bc-facts-root {
	/* Akzent: Einstellung im Modul (Primär/Sekundär/eigene), sonst Flatsome-Primärfarbe. */
	--whub-bc-accent: var(--whub-bc-accent-user, var(--whub-bc-accent-site, var(--fs-color-primary, #446084)));
	--whub-bc-line: rgba(128, 128, 128, 0.45);
	--whub-bc-fill: rgba(128, 128, 128, 0.12);
	--whub-bc-fill-strong: rgba(128, 128, 128, 0.2);
	--whub-bc-photo: #f2f2f2;
	--whub-bc-error: #b3261e;
	/* Radien: im UX-Builder-Baustein einstellbar (radius / image_radius). */
	/* Reihenfolge: Baustein (-user) → Konfigurator-Design im Plugin (-site) → Vorgabe. */
	--whub-bc-radius: var(--whub-bc-radius-user, var(--whub-bc-radius-site, 12px));
	--whub-bc-img-radius: var(--whub-bc-img-radius-user, var(--whub-bc-img-radius-site, 8px));
	/* Buttons (Dazunehmen, Varianten-Auswahl): Konfigurator-Design, sonst Pille. */
	--whub-bc-btn-radius: var(--whub-bc-btn-radius-site, 999px);
}

.dark .whub-bc-root,
.dark .whub-bc-summary-root,
.dark .whub-bc-facts-root {
	--whub-bc-error: #ff8a80;
}

/* Original-Formular: Bestandteile, die der Konfigurator darstellt, sind schon
   beim Seitenaufbau markiert (whub-bc-managed) und sofort aus – kein
   Umschalten nach dem Laden. Ohne JavaScript holt ein <noscript>-Block sie
   zurück. Kaufen-Knopf und Menge bleiben die originalen. */
.bundle_form.whub-bc .bundled_product.whub-bc-managed {
	display: none !important;
}
.bundle_form.whub-bc .bundle_price,
.bundle_form.whub-bc .bundle_error {
	display: none !important;
}

.whub-bc-root {
	display: flex;
	flex-direction: column;
	gap: 40px;
	margin: 0 0 32px;
}

/* Überschrift aus dem Baustein (nur bei Konfigurator). Flatsome färbt in
   Spalten mit heller Schrift („Color: Light", Klasse .dark) alle Überschriften
   weiß – die Akzentfarbe soll aber bleiben, daher die höhere Gewichtung. */
.whub-bc-title,
.dark .whub-bc-container .whub-bc-title,
.whub-bc-container h2.whub-bc-title {
	margin: 0 0 24px;
	font-size: 1.1em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--whub-bc-title-color, var(--whub-bc-accent-user, var(--whub-bc-accent-site, var(--fs-color-primary, #446084)))) !important;
}

/* Symbol „Produkt ansehen" (wie das Link-Symbol von Product Bundles). */
.whub-bc-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 36px;
	height: 36px;
	margin-left: 4px;
	vertical-align: middle;
	border-radius: 8px;
	color: var(--whub-bc-accent) !important;
	text-decoration: none;
}
.whub-bc-link:hover {
	background: var(--whub-bc-fill-strong);
}
.whub-bc-row-link {
	margin-left: auto;
}
.whub-bc-h-link,
.whub-bc-card-link {
	margin-top: -4px;
}

/* ── Schritt ─────────────────────────────────────────────── */

.whub-bc-step {
	margin: 0;
}
.whub-bc-h {
	margin: 0 0 6px;
	font-size: 1.35em;
	line-height: 1.25;
	font-weight: 700;
	color: inherit;
}
.whub-bc-h-sub {
	font-weight: 600;
	opacity: 0.72;
}
.whub-bc-help {
	margin: 0 0 14px;
	font-size: 0.92em;
	line-height: 1.5;
	opacity: 0.8;
}
.whub-bc-h + .whub-bc-grid,
.whub-bc-h + .whub-bc-card,
.whub-bc-h + .whub-bc-list,
.whub-bc-h + .whub-bc-cards,
.whub-bc-help + .whub-bc-grid {
	margin-top: 14px;
}
/* Sammelblock „Gleich mitbestellen": Karten untereinander. */
.whub-bc-cards {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.whub-bc-card.is-missing {
	border-color: var(--whub-bc-error);
}
.whub-bc-err {
	margin: 10px 0 0;
	font-size: 0.92em;
	font-weight: 600;
	color: var(--whub-bc-error);
}
.whub-bc-step.is-missing .whub-bc-tile {
	border-color: var(--whub-bc-error);
}

/* Flatsome gestaltet jedes <button> (Großbuchstaben, feste Zeilenhöhe,
   Rand rechts, Schatten beim Überfahren) – für unsere Bedienelemente aus. */
.whub-bc-root button,
.whub-bc-summary-root button {
	height: auto;
	max-width: none;
	vertical-align: top;
	white-space: normal;
	text-shadow: none;
	box-shadow: none;
}
.whub-bc-root button:hover,
.whub-bc-root button:focus,
.whub-bc-summary-root button:hover {
	box-shadow: none;
}

/* ── Kacheln ─────────────────────────────────────────────── */

.whub-bc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 12px;
}
.whub-bc-grid.has-photo {
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.whub-bc-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 3px;
	width: 100%;
	min-height: 64px;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid var(--whub-bc-line);
	border-radius: var(--whub-bc-radius);
	background: var(--whub-bc-fill);
	color: inherit;
	font: inherit;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.3;
	cursor: pointer;
	box-shadow: none;
	transition: border-color 0.15s;
}
.whub-bc-tile:hover {
	border-color: currentColor;
}
.whub-bc-tile.is-on {
	border: 2px solid var(--whub-bc-accent);
	padding: 13px 15px;
	background: var(--whub-bc-fill-strong);
	background: color-mix(in srgb, var(--whub-bc-accent) 16%, transparent);
}
.whub-bc-tile.is-out,
.whub-bc-tile:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.whub-bc-tile:focus-visible,
.whub-bc-pill:focus-visible,
.whub-bc-add:focus-visible,
.whub-bc-step-btn:focus-visible {
	outline: 3px solid #7fb2ff;
	outline-offset: 2px;
}

.whub-bc-tick {
	position: absolute;
	top: 9px;
	right: 9px;
	z-index: 1;
	display: none;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--whub-bc-accent);
	color: #fff;
}
.whub-bc-tile.is-on .whub-bc-tick {
	display: flex;
}

.whub-bc-tile-img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	margin: 0 0 10px;
	border-radius: var(--whub-bc-img-radius);
	background: var(--whub-bc-photo);
	object-fit: contain;
}
.whub-bc-tile-t {
	padding-right: 22px;
	font-weight: 700;
	font-size: 1em;
}
.whub-bc-tile-p {
	margin-top: 4px;
	font-size: 0.92em;
	font-weight: 600;
}
.whub-bc-tile-p .woocommerce-Price-amount,
.whub-bc-card-pm .woocommerce-Price-amount,
.whub-bc-sum-v .woocommerce-Price-amount {
	color: inherit;
}
.whub-bc-tile-s {
	font-size: 0.82em;
	opacity: 0.8;
}

/* ── Liste „Im Set enthalten" ────────────────────────────── */

.whub-bc-list {
	margin: 0;
	padding: 4px 18px;
	list-style: none;
	border-radius: var(--whub-bc-radius);
	background: var(--whub-bc-fill);
}
.whub-bc-row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid var(--whub-bc-line);
	list-style: none;
}
.whub-bc-row:last-child {
	border-bottom: 0;
}
/* Flatsome rückt Listeneinträge ein (.col-inner ul li { margin-left: 1.3em }) –
   die Regel ist spezifischer als .whub-bc-row. Ohne Rücksetzen sitzt das Bild
   links weiter vom Rahmen weg als das Link-Symbol rechts. */
.whub-bc-list > .whub-bc-row,
.whub-bc-summary .whub-bc-sum-msg > li,
.whub-pc-flist > .whub-pc-frow {
	margin-left: 0;
}
.whub-bc-row-img {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: var(--whub-bc-img-radius);
	background: var(--whub-bc-photo);
	object-fit: contain;
}
.whub-bc-row-tick {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: var(--whub-bc-accent);
}
.whub-bc-row-text {
	min-width: 0;
}
/* Haken als Abzeichen auf der Bildecke: „im Set enthalten". */
.whub-bc-row-media {
	position: relative;
	flex: none;
	display: block;
	width: 56px;
	height: 56px;
}
.whub-bc-row-media > .whub-bc-row-img {
	display: block;
}
.whub-bc-row-badge {
	position: absolute;
	left: -6px;
	bottom: -6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--whub-bc-accent);
	color: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.whub-bc-row-badge svg {
	width: 12px;
	height: 12px;
	stroke-width: 2.4;
}
/* Gemischte Liste (mit und ohne Bild): Texte bündig untereinander. */
.whub-bc-list:has(.whub-bc-row-media) .whub-bc-row-tick {
	width: 56px;
}
.whub-bc-row-name {
	font-weight: 700;
}
.whub-bc-row-detail {
	font-size: 0.88em;
	opacity: 0.78;
}

/* ── Karten (optionale Artikel) ──────────────────────────── */

.whub-bc-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 18px;
	border: 1px solid var(--whub-bc-line);
	border-radius: var(--whub-bc-radius);
	background: var(--whub-bc-fill);
}
.whub-bc-step .whub-bc-card.is-on {
	border: 2px solid var(--whub-bc-accent);
	padding: 15px 17px;
}
.whub-bc-card-top {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}
.whub-bc-card-img {
	flex: none;
	width: 88px;
	height: 88px;
	border-radius: var(--whub-bc-img-radius);
	background: var(--whub-bc-photo);
	object-fit: contain;
}
/* Bildoptimierer (AVIF/WebP) packen <img> in ein <picture> und setzen
   unsere Klasse auf das <picture> (live auf sferics.com). Dann trägt der
   Rahmen Größe und Radius – das Bild darin muss ihn ausfüllen und wird
   auf die Rundung zugeschnitten. */
picture.whub-bc-tile-img,
picture.whub-bc-row-img,
picture.whub-bc-card-img {
	overflow: hidden;
}
picture.whub-bc-row-img,
picture.whub-bc-card-img {
	display: block;
}
picture.whub-bc-tile-img > img,
picture.whub-bc-row-img > img,
picture.whub-bc-card-img > img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: inherit;
	object-fit: contain;
}

.whub-bc-card-text {
	flex: 1 1 auto;
	min-width: 0;
}
.whub-bc-card-t {
	font-weight: 700;
	font-size: 1.05em;
	margin-bottom: 3px;
}
.whub-bc-card-d {
	font-size: 0.9em;
	line-height: 1.45;
	opacity: 0.8;
}
.whub-bc-card-price {
	flex: none;
	text-align: right;
}
.whub-bc-card-pm {
	font-weight: 700;
	white-space: nowrap;
}
.whub-bc-card-pr {
	font-size: 0.82em;
	opacity: 0.75;
	white-space: nowrap;
}

.whub-bc-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.whub-bc-pill {
	min-height: 40px;
	margin: 0;
	padding: 7px 15px;
	border: 1px solid var(--whub-bc-line);
	border-radius: var(--whub-bc-btn-radius);
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.92em;
	font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.2;
	cursor: pointer;
}
.whub-bc-pill.is-on {
	border: 2px solid var(--whub-bc-accent);
	padding: 6px 14px;
}
.whub-bc-pill:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.whub-bc-card-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}
/* Auswahlliste für „Beliebig"-Merkmale (z. B. Smartphone-Modell) in der Karte. */
.whub-bc-anysel {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 14px 0 0;
	font-weight: inherit;
}
.whub-bc-anysel-l {
	font-size: 0.85em;
	opacity: 0.75;
}
.whub-bc-root .whub-bc-anysel select {
	width: 100%;
	max-width: 420px;
	min-height: 44px;
	margin: 0;
	padding: 0 36px 0 14px;
	border: 1px solid var(--whub-bc-line);
	border-radius: var(--whub-bc-btn-radius);
	background-color: transparent;
	color: inherit;
	-webkit-text-fill-color: currentColor;
	font-size: 0.95em;
	box-shadow: none;
}
.whub-bc-root .whub-bc-anysel select:focus {
	border-color: var(--whub-bc-accent);
	outline: none;
}
.whub-bc-root .whub-bc-anysel select option {
	color: #222;
	-webkit-text-fill-color: #222;
}

.whub-bc-add {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	padding: 9px 18px;
	border: 1px solid var(--whub-bc-accent);
	border-radius: var(--whub-bc-btn-radius);
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 700;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.2;
	cursor: pointer;
}
.whub-bc-add.is-on {
	background: var(--whub-bc-accent);
	color: #fff;
}
.whub-bc-out {
	font-size: 0.92em;
	opacity: 0.8;
}

.whub-bc-stepper {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.whub-bc-stepper[hidden] {
	display: none;
}
.whub-bc-step-btn {
	width: 44px;
	height: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--whub-bc-line);
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 1.2em;
	line-height: 1;
	cursor: pointer;
}
.whub-bc-step-val {
	min-width: 20px;
	text-align: center;
	font-weight: 700;
}

/* ── Zusammenfassung ─────────────────────────────────────── */

.whub-bc-summary {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 20px;
	padding: 20px 22px;
	border-radius: var(--whub-bc-radius);
	background: var(--whub-bc-fill);
}
.whub-bc-summary .whub-bc-h {
	margin-bottom: 8px;
}
.whub-bc-sum-choices,
.whub-bc-sum-lines {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--whub-bc-line);
}
.whub-bc-sum-choices[hidden],
.whub-bc-sum-lines[hidden],
.whub-bc-sum-line[hidden],
.whub-bc-sum-tax[hidden],
.whub-bc-sum-msg[hidden] {
	display: none;
}
.whub-bc-sum-line,
.whub-bc-sum-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
}
.whub-bc-sum-choices .whub-bc-sum-k {
	opacity: 0.75;
}
.whub-bc-sum-v {
	text-align: right;
	font-weight: 600;
	white-space: nowrap;
}
.whub-bc-sum-line.is-open .whub-bc-sum-v {
	color: var(--whub-bc-error);
}
.whub-bc-sum-savings {
	font-weight: 700;
	color: var(--whub-bc-accent);
}
.whub-bc-sum-total {
	margin-top: 4px;
	font-size: 1.15em;
	font-weight: 700;
}
.whub-bc-sum-total .whub-bc-sum-v {
	font-size: 1.35em;
	font-weight: 800;
}
.whub-bc-sum-tax {
	text-align: right;
	font-size: 0.85em;
	opacity: 0.75;
}
.whub-bc-sum-msg {
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
	font-weight: 600;
	color: var(--whub-bc-error);
}
.whub-bc-sum-msg li {
	margin: 0;
	padding: 0;
}

/* ── Smartphone ──────────────────────────────────────────── */

@media (max-width: 549px) {
	.whub-bc-root {
		gap: 32px;
	}
	.whub-bc-grid,
	.whub-bc-grid.has-photo {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.whub-bc-tile {
		padding: 12px 13px;
	}
	.whub-bc-tile.is-on {
		padding: 11px 12px;
	}
	.whub-bc-card-top {
		flex-wrap: wrap;
	}
	.whub-bc-card-img {
		width: 72px;
		height: 72px;
	}
	.whub-bc-card-price {
		flex: 1 1 100%;
		text-align: left;
	}
	.whub-bc-summary {
		padding: 16px;
	}
}

/* ── Abo-Konfigurator (WooCommerce Subscriptions) ────────── */

/* Auswahlliste und „Leeren" des Variantenformulars aus – die Kacheln
   steuern sie. Die Werte gehen weiter mit dem Formular mit. */
form.variations_form .whub-abo-root ~ table.variations,
form.variations_form .whub-abo-root ~ .reset_variations {
	display: none !important;
}
/* Preis, Variantentext und Abo-Details von WooCommerce/Subscriptions stehen
   schon in Kacheln und Zusammenfassung. */
.whub-abo-summary ~ .single_variation .woocommerce-variation-price,
.whub-abo-summary ~ .single_variation .woocommerce-variation-description,
form.variations_form:has(.whub-abo-root) .woocommerce-subscriptions-product-details,
form.variations_form:has(.whub-abo-root) .first-payment-date {
	display: none !important;
}
.whub-abo-summary {
	margin-top: 8px;
}
.whub-bc-tile-x {
	font-size: 0.82em;
	opacity: 0.78;
}
.whub-abo-step .whub-bc-tile-p {
	margin-top: auto;
	padding-top: 8px;
}
.whub-abo-step .whub-bc-tile {
	min-height: 112px;
}
.whub-abo-note {
	margin: 8px 0 0;
	padding-top: 10px;
	border-top: 1px solid var(--whub-bc-line);
	font-size: 0.85em;
	line-height: 1.5;
	opacity: 0.8;
}

/* Preis-Karte im Stil der Mengenrabatt-Tabelle. */
.whub-bc-pt {
	margin-top: 12px;
	padding: 14px 16px;
	border-radius: var(--whub-bc-radius);
	background: rgba(128, 128, 128, 0.14);
	font-size: 0.92em;
	line-height: 1.4;
}
.whub-bc-pt-tiers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.whub-bc-pt-tier {
	flex: 1 1 90px;
	min-width: 0;
	padding: 8px 6px;
	border-radius: calc(var(--whub-bc-radius) * 0.7);
	background: rgba(128, 128, 128, 0.16);
	text-align: center;
}
.whub-bc-pt-q {
	display: block;
	margin-bottom: 2px;
	font-size: 0.85em;
	opacity: 0.8;
	white-space: nowrap;
}
.whub-bc-pt-p {
	display: block;
	font-weight: 700;
	white-space: nowrap;
}

/* Neues Abo-System (APFS): die eigene Auswahl von APFS (Einmalkauf/Abo-Pläne)
   ausblenden – die Kacheln steuern sie. Die Felder gehen weiter mit. */
form.cart:has(.whub-abo-apfs) .wcsatt-options-wrapper,
form.cart:has(.whub-abo-apfs) .wcsatt-options-wrapper--variation {
	display: none !important;
}
/* Geschenk-Option von Subscriptions („This is a gift"): das Empfänger-Feld
   hat sonst durchsichtigen Grund mit dunkler Schrift – auf dem dunklen Panel
   unsichtbar. Gleiche Optik wie die Kacheln, Schrift aus dem Umfeld. */
form.cart:has(.whub-abo-root) .wcsg_add_recipient_fields_container label {
	color: inherit;
}
form.cart:has(.whub-abo-root) .wcsg_add_recipient_fields .recipient_email {
	background: rgba(128, 128, 128, 0.12);
	border: 1px solid rgba(128, 128, 128, 0.45);
	border-radius: var(--whub-bc-radius-user, var(--whub-bc-radius-site, 12px));
	color: inherit;
	box-shadow: none;
}
form.cart:has(.whub-abo-root) .wcsg_add_recipient_fields .recipient_email::placeholder {
	color: inherit;
	opacity: 0.6;
}

.whub-abo-discount {
	display: inline-block;
	margin-top: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	border: 1px solid var(--whub-bc-accent);
	color: inherit;
	font-weight: 700;
	opacity: 1;
}

/* Größe des Kaufbereichs (Flatsome „Size" am add-to-cart-container, z. B.
   is-large im Template oder im Baustein) gilt nur der Kaufzeile – Mengenfeld
   und Button. Der Konfigurator bleibt in der Textgröße der Seite, wie die
   Kurzbeschreibung darüber: Faktor von Flatsome (flatsome.css) gegenrechnen.
   Die Einstellung „Größe Kaufbereich" im Konfigurator-Design hat Vorrang
   (eigene Regel mit höherer Gewichtung). */
.add-to-cart-container.is-xsmall :is(.whub-bc-root, .whub-bc-summary-root, .whub-bc-facts-root) { font-size: calc(1em / 0.7); }
.add-to-cart-container.is-smaller :is(.whub-bc-root, .whub-bc-summary-root, .whub-bc-facts-root) { font-size: calc(1em / 0.75); }
.add-to-cart-container.is-small :is(.whub-bc-root, .whub-bc-summary-root, .whub-bc-facts-root) { font-size: calc(1em / 0.8); }
.add-to-cart-container.is-large :is(.whub-bc-root, .whub-bc-summary-root, .whub-bc-facts-root) { font-size: calc(1em / 1.15); }
.add-to-cart-container.is-larger :is(.whub-bc-root, .whub-bc-summary-root, .whub-bc-facts-root) { font-size: calc(1em / 1.3); }
.add-to-cart-container.is-xlarge :is(.whub-bc-root, .whub-bc-summary-root, .whub-bc-facts-root) { font-size: calc(1em / 1.5); }
.add-to-cart-container.is-xsmall .whub-bc-title { font-size: calc(1.1em / 0.7); }
.add-to-cart-container.is-smaller .whub-bc-title { font-size: calc(1.1em / 0.75); }
.add-to-cart-container.is-small .whub-bc-title { font-size: calc(1.1em / 0.8); }
.add-to-cart-container.is-large .whub-bc-title { font-size: calc(1.1em / 1.15); }
.add-to-cart-container.is-larger .whub-bc-title { font-size: calc(1.1em / 1.3); }
.add-to-cart-container.is-xlarge .whub-bc-title { font-size: calc(1.1em / 1.5); }
@media (max-width: 549px) {
	.add-to-cart-container.is-large .whub-bc-title { font-size: 1.1em; }
	.add-to-cart-container.is-larger .whub-bc-title { font-size: calc(1.1em / 1.2); }
	.add-to-cart-container.is-xlarge .whub-bc-title { font-size: calc(1.1em / 1.8); }
	.add-to-cart-container.is-large :is(.whub-bc-root, .whub-bc-summary-root, .whub-bc-facts-root) { font-size: 1em; }
	.add-to-cart-container.is-larger :is(.whub-bc-root, .whub-bc-summary-root, .whub-bc-facts-root) { font-size: calc(1em / 1.2); }
	.add-to-cart-container.is-xlarge :is(.whub-bc-root, .whub-bc-summary-root, .whub-bc-facts-root) { font-size: calc(1em / 1.8); }
}

/* Infoblase an Kacheln: Beschreibung der Variante (z. B. Länder je
   Steckertyp). Am PC beim Darüberfahren bzw. mit der Tastatur; auf
   Touch-Geräten per Tippen auf das „i" (.is-tip-open), dazu der Hinweis
   zur gewählten Variante unter den Kacheln (.whub-tinfo). */
.whub-tip-i {
	position: absolute;
	right: 9px;
	bottom: 9px;
	width: 18px;
	height: 18px;
	border: 1px solid currentColor;
	border-radius: 50%;
	font: italic 700 11px/16px Georgia, serif;
	text-align: center;
	opacity: 0.55;
}
.whub-tip {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 10px);
	z-index: 30;
	width: max-content;
	max-width: min(280px, 80vw);
	padding: 10px 12px;
	border-radius: 8px;
	background: #111;
	color: #fff;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	white-space: normal;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
	transform: translateX(-50%);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .15s;
	/* Ganzer Text: zu lange Inhalte scrollen in der Blase. */
	max-height: 260px;
	overflow-y: auto;
	overscroll-behavior: contain;
	cursor: auto;
	user-select: text;
}

.whub-tip::-webkit-scrollbar { width: 8px; }
.whub-tip::-webkit-scrollbar-thumb { border-radius: 4px; background: rgba(255, 255, 255, .35); }
.whub-tip { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .35) transparent; }
/* Pfeil sitzt an der Kachel (nicht in der scrollenden Blase, sonst scrollt er mit). */
.whub-bc-tile:has(.whub-tip)::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -10px;
	z-index: 31;
	margin-left: -6px;
	border: 6px solid transparent;
	border-top-color: #111;
	border-bottom: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .15s;
}
@media (hover: hover) {
	.whub-bc-tile:hover .whub-tip,
	.whub-bc-tile:focus-visible .whub-tip {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
	.whub-bc-tile:hover:has(.whub-tip)::before,
	.whub-bc-tile:focus-visible:has(.whub-tip)::before {
		opacity: 1;
		visibility: visible;
	}
	/* Brücke: Bereich zwischen Kachel und Blase gehört zur Kachel. */
	.whub-bc-tile:has(.whub-tip):hover::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 100%;
		height: 14px;
	}
	.whub-bc-tile:hover .whub-tip-i { opacity: 0.9; }
	.whub-tinfo { display: none; }
}
/* Per Tippen geöffnet (Handy/Tablet). */
.whub-bc-tile.is-tip-open .whub-tip {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}
.whub-bc-tile.is-tip-open:has(.whub-tip)::before {
	opacity: 1;
	visibility: visible;
}
/* Touch: „i" größer und mit großzügiger Tippfläche. */
@media (hover: none) {
	.whub-tip-i {
		right: 6px;
		bottom: 6px;
		width: 24px;
		height: 24px;
		font-size: 14px;
		line-height: 22px;
		opacity: 0.8;
	}
	.whub-tip-i::after {
		content: "";
		position: absolute;
		inset: -10px;
	}
}
.whub-tinfo {
	margin: 10px 0 0;
	padding: 10px 14px;
	border-radius: calc(var(--whub-bc-radius, 12px) * .66);
	background: var(--whub-bc-fill, rgba(128, 128, 128, .12));
	font-size: 0.9em;
	line-height: 1.5;
}
.whub-tinfo[hidden] { display: none; }

/* ── „Deine Auswahl." – gleich bei Bundle- und Produkt-Konfigurator ── */
/* Gesamt: brutto mit „inkl. MwSt.", darunter klein netto (wie der Preiszusatz des Shops). */
.whub-bc-summary .whub-pc-incl { font-size: 0.6em; font-weight: 400; opacity: 0.75; white-space: nowrap; }
.whub-bc-summary .whub-pc-net { text-align: right; font-size: 0.85em; opacity: 0.75; }

/* Verfügbarkeit in „Deine Auswahl." mit Ampelpunkt. */
.whub-pc-stock::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 7px;
	border-radius: 50%;
	vertical-align: 1px;
	background: #53a600;
}
.whub-pc-stock.is-available-on-backorder::before { background: #f0ad4e; }
.whub-pc-stock.is-out-of-stock::before { background: #b20000; }

/* Mit Konfigurator: „In stock" steht in „Deine Auswahl." – oben nicht noch
   einmal (nur lieferbar/Rückstand; „nicht vorrätig" bleibt sichtbar). */
body.whub-pc-active.single-product p.stock.in-stock,
body.whub-pc-active.single-product p.stock.available-on-backorder,
body.whub-pc-active form.variations_form .woocommerce-variation-availability:has(.in-stock, .available-on-backorder) {
	display: none !important;
}
/* Netto steht unter „Gesamt" – der Zusatz „(… excl. VAT)" am Hauptpreis oben entfällt. */
body.whub-pc-net .product-page-price .woocommerce-price-suffix,
body.whub-pc-net .product-info > .price-wrapper .woocommerce-price-suffix {
	display: none !important;
}
/* Preis oben unter dem Titel: Flatsome macht „xxlarge" auf Tablet/Handy
   größer als am PC (40 statt 32 px) – gleich groß wie am PC halten. */
@media (max-width:849px){
	body.whub-pc-active .product-price-container.is-xxlarge{font-size:2em}
}

/* ── Kurzfakten (Produkt- und Bundle-Konfigurator) ── */
/* Kurzfakten */
.whub-pc-flist {
	margin: 12px 0 0;
	padding: 4px 18px;
	list-style: none;
	border-radius: var(--whub-bc-radius);
	background: var(--whub-bc-fill);
}
.whub-pc-frow {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 0;
	padding: 11px 0;
	list-style: none;
	border-bottom: 1px solid var(--whub-bc-line);
}
.whub-pc-frow:last-child { border-bottom: 0; }
.whub-pc-ftick {
	flex: none;
	display: flex;
	align-self: center;
	color: var(--whub-bc-accent);
}
.whub-pc-fk {
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 300;
}
.whub-pc-fv {
	flex: 0 1 auto;
	font-weight: 700;
	text-align: right;
}
@media (max-width: 549px) {
	.whub-pc-frow { flex-wrap: wrap; gap: 2px 10px; }
	.whub-pc-fv { flex-basis: 100%; padding-left: 24px; text-align: left; }
}

.whub-bc-facts-root { margin: 0 0 24px; }

/* ── Variantenauswahl B (Hersteller → Modell) und C (Auswahlfeld mit Suche) ──
   Einstellung je Produkt (Reiter „Webdeals Hub") bzw. je Bundle-Bestandteil.
   Die Optionen sind .whub-bc-tile – hier nur kompakter gestaltet. */
.whub-ch [hidden] { display: none !important; }
.whub-ch-label {
	margin: 0 0 8px;
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.75;
}
.whub-ch-label2 { margin-top: 18px; }
.whub-ch-hint { margin: 0; opacity: 0.75; }
.whub-ch-brands { display: flex; flex-wrap: wrap; gap: 8px; }
.whub-ch-brand {
	margin: 0;
	padding: 9px 14px;
	min-height: 42px;
	border: 1px solid var(--whub-bc-line);
	border-radius: var(--whub-bc-btn-radius);
	background: var(--whub-bc-fill);
	color: inherit;
	font: inherit;
	font-size: 0.95em;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	box-shadow: none;
}
.whub-ch-brand:hover { border-color: currentColor; }
.whub-ch-brand.is-on {
	padding: 8px 13px;
	border: 2px solid var(--whub-bc-accent);
	background: color-mix(in srgb, var(--whub-bc-accent) 16%, transparent);
}
.whub-ch-brand:focus-visible,
.whub-ch-field:focus-visible { outline: 3px solid #7fb2ff; outline-offset: 2px; }
.whub-ch-count { font-weight: 400; opacity: 0.65; }
.whub-ch-panel {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 8px;
}
.whub-ch .whub-bc-tile.whub-ch-opt {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 48px;
	padding: 11px 14px;
}
.whub-ch .whub-bc-tile.whub-ch-pill.is-on { padding: 10px 13px; }
.whub-ch-t { font-weight: 700; }
.whub-ch-out { margin-left: auto; font-size: 0.8em; opacity: 0.8; white-space: nowrap; }
.whub-ch-tick {
	display: none;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--whub-bc-accent);
	color: #fff;
}
.whub-ch-opt.is-on .whub-ch-tick { display: inline-flex; }

.whub-ch-field {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 54px;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--whub-bc-line);
	border-radius: var(--whub-bc-radius);
	background: var(--whub-bc-fill);
	color: inherit;
	font: inherit;
	font-weight: 700;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	box-shadow: none;
}
.whub-ch--select:not(.has-value) .whub-ch-field-v { font-weight: 400; opacity: 0.75; }
.whub-ch.is-open .whub-ch-field { padding: 11px 15px; border: 2px solid var(--whub-bc-accent); }
.whub-ch-chev { flex: none; transition: transform 0.15s; }
.whub-ch.is-open .whub-ch-chev { transform: rotate(180deg); }
.whub-ch-pop {
	margin-top: 8px;
	overflow: hidden;
	border: 1px solid var(--whub-bc-line);
	border-radius: var(--whub-bc-radius);
	background: var(--whub-bc-fill);
}
.whub-ch-search {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 6px 12px;
	border-bottom: 1px solid var(--whub-bc-line);
}
.whub-ch-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 40px;
	margin: 0;
	padding: 0 4px;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-size: 16px; /* iOS zoomt sonst beim Antippen */
}
.whub-ch-list { max-height: 360px; overflow-y: auto; overscroll-behavior: contain; padding: 4px 0; }
.whub-ch-gh {
	margin: 0;
	padding: 10px 16px 4px;
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.7;
}
.whub-ch .whub-bc-tile.whub-ch-row,
.whub-ch .whub-bc-tile.whub-ch-row.is-on {
	width: 100%;
	min-height: 44px;
	padding: 10px 16px;
	border: 0;
	border-radius: 0;
	background: transparent;
}
.whub-ch .whub-bc-tile.whub-ch-row:hover { background: var(--whub-bc-fill-strong); }
.whub-ch .whub-bc-tile.whub-ch-row.is-on {
	background: color-mix(in srgb, var(--whub-bc-accent) 16%, transparent);
	box-shadow: inset 3px 0 0 var(--whub-bc-accent);
}
.whub-ch-row .whub-ch-t { font-weight: 400; }
.whub-ch-row.is-on .whub-ch-t { font-weight: 700; }
.whub-ch-none { margin: 0; padding: 12px 16px; opacity: 0.75; }
@media (max-width: 549px) {
	.whub-ch-panel { grid-template-columns: minmax(0, 1fr); }
}
