/**
 * WebinarIgnition – SC Custom mode form styles.
 * Loaded instead of main-template.css / webinar-modern.css on gb_sc_custom pages.
 * Typography and colours are controlled by WI variables. FSE can feed those variables,
 * but broad theme CSS should not style the form internals.
 *
 * Scoped inside .wi-sc-form-wrap which is injected by webinarignition_shortcode()
 * whenever _wi_page_mode = gb_sc_custom.
 *
 * Shortcode scope invariant (host modifiers, Admin+Inkognito QA): .cursor/rules/wi-shortcode-css-scope.mdc
 *
 * Visual target: padded column on surface colour (no outer card border/shadow — builder owns chrome).
 * comfortable width) while staying on builder (Thrive/Elementor) canvases — colours from FSE vars.
 * Evergreen (custom-dates.php) reuses .eventDate but must not use the live row flex layout.
 *
 * Submit button fill/text: Site Editor CTA (--wi-fse-cta-fill / --wi-fse-cta-text) when lp_optin_btn_color
 * is empty or not effective; else inline --wi-btn-bg from campaign. Arrow ::after + motion unchanged.
 */

/* ─── Container ─────────────────────────────────────────────────── */
.wi-sc-form-wrap {
	/* Colour tokens synced with the active FSE theme's Site Editor → Styles palette.
	 * Precedence (first defined wins):
	 *   1. --wi-fse-cta-fill / --wi-fse-cta-text  → injected by get_compact_color_vars_css()
	 *      from the cached Site Editor palette (auto-updates when user edits Styles).
	 *   2. --wp--preset--color--primary / --wp--preset--color--contrast → theme.json tokens.
	 *   3. --wp--preset--color--base → theme background / base for text contrast.
	 *   4. Hardcoded hex as last resort so the button is still readable on themes
	 *      without theme.json.
	 */
	--wi-btn-bg:       var(--wi-cta-bg,
	                   var(--wi-fse-cta-fill,
	                   var(--wp--preset--color--primary,
	                   var(--wp--preset--color--contrast, #32373c))));
	--wi-btn-color:    var(--wi-cta-color,
	                   var(--wi-fse-cta-text,
	                   var(--wp--preset--color--base, #ffffff)));
	--wi-btn-bg-hover: color-mix(in srgb, var(--wi-btn-bg) 85%, #000);
	/* 2026-10-17 (Prüfer-Fund 5, Nacharbeit): einfacher Fallback-Wert OHNE color-mix, damit
	 * ein Browser ohne color-mix (Safari/iOS < 16.2) überhaupt einen Rahmenwert hat. Die
	 * color-mix-Fassung steht im @supports-Block direkt unter dieser Regel. */
	--wi-input-border: rgba(127, 127, 127, 0.45);
	--wi-input-radius: 8px;
	/* Spacious input padding matches webinar-modern.css typography scale without pulling in the full stack. */
	--wi-input-padding: 0.85em 1em;

	/* Card shell: padding + radius only — no outer border/shadow/outline (SC custom: page builder supplies chrome).
	 * background-clip:padding-box keeps the surface colour flush with the radius (no hairline from parent colour bleed).
	 * Outer margins are 0 on purpose: the builder column / Thrive lightbox already controls vertical spacing.
	 * Admins who want a gap add it in the page builder (block spacing, column padding, etc.). */
	font-family:      var(--wi-font-family, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif) !important;
	color:            var(--wi-text-color, var(--wi-fse-neutral-text, #1d2327));
	background-color: var(--wi-surface-bg, var(--wi-fse-surface-bg, #fff));
	background-clip:  padding-box;
	border-radius:    clamp(14px, 2vw, 22px);
	padding:          clamp(1.35rem, 3.2vw, 2.1rem);
	box-shadow:       none !important;
	border:           0 !important;
	outline:          0 !important;

	max-width:  100%;
	margin:     0;
	width:      100%;
	box-sizing: border-box;
}

/* 2026-10-17 (Prüfer-Fund 5, Nacharbeit): color-mix nur dort, wo der Browser es kann.
 * Die Regel darüber setzt bereits einen gültigen rgba-Fallback, dieser Block hebt ihn auf
 * die palette-gebundene Fassung (18 % currentColor), sobald color-mix verfügbar ist. */
@supports (color: color-mix(in srgb, red 50%, blue)) {
	.wi-sc-form-wrap {
		--wi-input-border: color-mix(in srgb, currentColor 18%, transparent);
	}
}

/* Registration-only SC card rail (see PowerupsShortcodes wi-sc-form-wrap--reg-rail). #A1071
 * #FORMULARBREITE (Tobias 2026-11-08): 700 -> 760. The rail is a single readable column, and at
 * 700 the form and the two-column layout both stopped short of what a 40% template column gives
 * (measured 2026-11-08 on /wi-breiten-check/: form column 590px at a 1280px window, and a
 * two-column block needs 2 x 320px plus the gap = 672px of room, so 700 left 14px of slack). */
.wi-sc-form-wrap.wi-sc-form-wrap--reg-rail {
	--wi-reg-rail-max: 760px;
	max-width:  min(100%, var(--wi-reg-rail-max, 760px));
	margin:     0 auto;
	width:      100%;
	box-sizing: border-box;
}

/* #wi_sc_colors (Tobias 2026-11-08): the surface and the ink of a block come from its own
 * shortcode (background_color / contrast_color). The ink arrives as `color`, and on a page with
 * a dark role palette the browser paints `-webkit-text-fill-color` instead (it inherits, e.g.
 * white), so a dark chosen ink was invisible: `color` right, paint wrong (measured 3.9:1 paint
 * where the colour alone read 7.97:1). `currentColor` makes the paint follow the colour again —
 * one rule for every element inside a WI surface, no per-colour classes, and it survives
 * wp_kses (which strips -webkit-text-fill-color and color-scheme out of inline styles).
 * Rules that must paint differently carry their own `!important` fill (error line, hint box). */
/* Doubled class names on purpose: the palette rules that paint white are
 * `.wi-sc-form-wrap :where(...)` and `.wi-sc-hosted :where(...)`, both (0,1,0) with !important and
 * later in the cascade. (0,2,0) wins over them, and the intentional fills (error line, hint box)
 * carry more classes still and keep their own ink. */
.wi-sc-form-wrap.wi-sc-form-wrap,
.wi-sc-form-wrap.wi-sc-form-wrap *,
.wi-sc-hosted.wi-sc-hosted,
.wi-sc-hosted.wi-sc-hosted * {
	-webkit-text-fill-color: currentColor !important;
}

/* A chosen surface decides how native controls draw (checkbox, select, scrollbar): a light
 * surface on a dark page needs light controls. The class comes from the shortcode. */
.wi-sc-form-wrap--surface-light {
	color-scheme: light !important;
}

.wi-sc-form-wrap--surface-dark {
	color-scheme: dark !important;
}

/* #zweispaltig (Tobias 2026-11-08): layout="two-col" on reg_optin_section — media left, form
 * right on a wide screen, stacked on a phone. The rail above is a single readable column, so the
 * two-column variant gets a wider rail; without the attribute nothing here applies. */
.wi-sc-form-wrap.wi-sc-form-wrap--two-col {
	--wi-reg-rail-max: 1120px;
}

.wi-sc-two-col {
	display:     grid;
	/* Two columns appear where there is room for two readable columns, and nowhere else: on a
	 * phone, and inside a narrow page column (measured 2026-11-08: the block sat in a 576px
	 * column and a forced 50/50 split squeezed the form to 231px), the same markup stays
	 * stacked. auto-fit needs no media query and no container query. */
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap:         clamp(1rem, 3vw, 2rem);
	align-items: start;
}

/* Two columns need the width, and the hosted registration stack caps itself at one readable column
 * (32rem, 36rem on flat pages, measured 2026-11-08: the block sat at 512 to 576px, so auto-fit stayed
 * at one column whatever the attribute said). The cap moves up only while a two-column block is on
 * the page, and only as far as the room a normal desktop offers. A break-out (full-bleed) is NOT the
 * answer here: the container clips sideways overflow, and the form column was cut off at the edge
 * (measured on page 17208). Below the phone breakpoint nothing changes, the columns stack. */
.wi-sc-hosted--wi-stack-registration.wi-sc-hosted--wi-stack-registration:has(.wi-sc-two-col) {
	--wi-reg-stack-max: 70rem;
}

.wi-sc-two-col > * {
	min-width: 0;
}

.wi-sc-form-wrap :where(h1,h2,h3,h4,h5,h6,.wiOptinHeadline,.wiOptinHeadline1,.wiOptinHeadline2,label) {
	font-family: var(--wi-font-family, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif) !important;
	color: var(--wi-heading-color, var(--wi-fse-heading-text, var(--wi-text-color, #1d2327))) !important;
	-webkit-text-fill-color: var(--wi-heading-color, var(--wi-fse-heading-text, var(--wi-text-color, #1d2327))) !important;
}
.wi-sc-form-wrap :where(input,select,textarea,button,.wiButton,#optinBTN) {
	font-family: var(--wi-font-family, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif) !important;
}

/* background_color="transparent" on [wi_webinar_block]: outer card must not use FSE surface fill */
.wi-sc-form-wrap.wi-sc-form-wrap--bg-transparent {
	background-color: transparent;
	box-shadow:       none;
	border:           none;
}

/*
 * Flat mode: gb_sc_custom + Thrive lightbox/symbol. WI does NOT own outer chrome — host column does.
 * Inside the wrap the rail still matches webinar-modern's .wi-sc-hosted 26rem (kept by its own rules
 * since those are NOT body-scoped). What webinar-modern's body.wi-wb-registration-landing path adds
 * on native GB reg pages but NOT on Thrive/Elementor is the horizontal inset on .eventDate (so it
 * matches .optinFormArea's global padding:0 1rem 1rem 1rem). Two clean options:
 *   1) Give .eventDate the same 1rem inset  → selects/labels start 16px inside 26rem rail.
 *   2) Strip .optinFormArea padding in flat → everything flush to 26rem rail edges.
 * We pick (2): cleaner with builder columns whose own padding already provides visual breathing room.
 */
.wi-sc-form-wrap.wi-sc-form-wrap--flat {
	padding:          0;
	background-color: transparent;
	background-image: none;
	border-radius:    0;
	box-shadow:       none !important;
	max-width:        none;
	width:            100%;
	margin:           0;
	min-width:        0;
	box-sizing:       border-box;
}

/* Flush inner alignment: .optinFormArea.optin-form-area has webinar-modern padding 0 1rem 1rem 1rem
 * (global, not body-scoped). On builder/lightbox pages the .eventDate sibling does NOT get a matching
 * horizontal inset (body.wi-wb-registration-landing selectors don't apply), so the date block looks
 * edge-to-edge while the form fields sit 1rem inset. Remove the horizontal inset so both siblings
 * share the same 26rem rail edges. */
.wi-sc-form-wrap--flat .optinFormArea.optin-form-area {
	padding-left:  0 !important;
	padding-right: 0 !important;
}

/* Match inner form width exactly to the date block: .eventDate:not(.wi-live-dates-wrap) is block-level;
 * the live row already stretches to 100%. Evergreen select + form inputs then share identical L/R edges. */
.wi-sc-form-wrap--flat .eventDate {
	width:      100%;
	max-width:  100%;
	box-sizing: border-box;
}

/*
 * Custom dates: .eventDate.evergreen-Registration often sits inside .wi-sc-form-wrap (not a direct child
 * of .wi-sc-hosted), so webinar-modern’s `> .eventDate` padding rules never apply — theme / other rules
 * can still add 1rem horizontal padding while .optinFormArea stays flush → “Select date” looks narrower.
 */
.wi-sc-hosted .wi-sc-form-wrap--flat .eventDate.evergreen-Registration,
.wi-sc-hosted .wi-sc-form-wrap--flat .eventDate.evergreen-Registration.hola {
	padding-left:  0 !important;
	padding-right: 0 !important;
}

/* Live date row on builder/lightbox pages: webinar-modern.css adds 1rem L/R padding via the
 * unscoped `.wi-sc-hosted .eventDate.wi-live-dates-wrap` selector. That leaves extra space before
 * the calendar icon and after the headline copy vs. the form fields below. In flat mode the row
 * should use the same full rail as the form, but icon + date/time stay together as one left-aligned
 * content group (not split to opposite edges). */
.wi-sc-form-wrap--flat .eventDate.wi-live-dates-wrap {
	padding-left:    0 !important;
	padding-right:   0 !important;
	justify-content: flex-start;
}

.wi-sc-form-wrap--flat .eventDate.wi-live-dates-wrap .dateInfo,
.wi-sc-form-wrap--flat .eventDate.wi-live-dates-wrap .dateInfo.wi_date_time_wrap {
	flex:       0 1 auto;
	min-width:  0;
	text-align: left;
}

/* Stack form sections like native GB: one column, labels + controls share left edge */
.wi-sc-form-wrap .wi-optin-form {
	display:        flex;
	flex-direction: column;
	align-items:    stretch;
	width:          100%;
}

/* Field label rhythm — same for .wi_input_field and Thrive-style .wiFormGroup (Timezone, etc.) */
.wi-sc-form-wrap .wi-optin-form .wi_input_field label,
.wi-sc-form-wrap .wi-optin-form label.wi-label,
.wi-sc-form-wrap .wi-optin-form .wiFormGroup label {
	font-weight:   600;
	font-size:     1rem;
	line-height:   1.35;
	margin:        0 0 0.4em;
	padding:       0;
	display:       block;
	width:         100%;
	box-sizing:    border-box;
	text-align:    left;
}

.wi-sc-form-wrap .wi-optin-form label.wi-label > span[aria-hidden="true"] {
	margin-left: 0.12em;
}

/* Timezone / other grouped controls: match vertical rhythm of First Name / Email rows */
.wi-sc-form-wrap .wi-optin-form .wiFormGroup,
.wi-sc-form-wrap .wi-optin-form .wiFormGroup-lg {
	display:        flex;
	flex-direction: column;
	align-items:    stretch;
	width:          100%;
	margin:         0 0 0.85em;
	box-sizing:     border-box;
}

.wi-sc-form-wrap .optinFormArea.optin-form-area {
	box-sizing:  border-box;
	width:         100%;
	max-width:     none !important;
	margin-left:   0 !important;
	margin-right:  0 !important;
	border:        none !important;
	box-shadow:    none !important;
}

/* Legacy hairlines: main.css .autoSep uses border-top between date/time rows. */
.wi-sc-form-wrap .autoSep,
.wi-sc-form-wrap .autoSep.autoSep-d {
	border:        none !important;
	border-top:    none !important;
	border-bottom: none !important;
	background:    transparent !important;
	height:        0;
	min-height:    0;
	margin:        0.25em 0;
	padding:       0;
	overflow:      hidden;
}

.wi-sc-form-wrap hr {
	border:     none !important;
	height:     0;
	margin:     0.35em 0;
	padding:    0;
	opacity:    0;
}

/* ─── Event date block ───────────────────────────────────────────── */
.wi-sc-form-wrap .wi-event-date-block {
	margin-bottom: 1em;
	font-size: inherit;
}

/* ─── Required marker (single rule — was duplicated with conflicting margins) ─── */
.wi-sc-form-wrap .wi-optin-form p.wi-required-text,
.wi-sc-form-wrap .wi-required-text {
	display:      block;
	width:        100%;
	box-sizing:   border-box;
	margin:       0 0 1rem;
	padding:      0;
	text-align:   left;
	font-size:    0.875rem;
	font-weight:  500;
	line-height:  1.45;
	opacity:      0.88;
	word-spacing: 0.06em;
}

/* ─── Input fields ───────────────────────────────────────────────── */
.wi-sc-form-wrap .wi-optin-form .wi_input_field {
	display: flex;
	flex-direction: column;
	margin-bottom: 0.75em;
}

.wi-sc-form-wrap .wi-optin-form input[type="text"],
.wi-sc-form-wrap .wi-optin-form input[type="email"],
.wi-sc-form-wrap .wi-optin-form input[type="tel"],
.wi-sc-form-wrap .wi-optin-form select {
	font-family:   inherit;
	font-size:     1rem;
	color:         var(--wi-fse-neutral-text, var(--wp--preset--color--foreground, inherit)) !important;
	-webkit-text-fill-color: var(--wi-fse-neutral-text, var(--wp--preset--color--foreground, inherit)) !important;
	background:    var(--wp--preset--color--base, #fff) !important;
	background-color: var(--wp--preset--color--base, #fff) !important;
	border:        1px solid var(--wi-input-border) !important;
	border-radius: var(--wi-input-radius);
	/* 2026-10-17 (Tobias): 52px Feldhöhe ist die Zielhöhe des Bezahl-Formulars — das
	 * Stripe-Kartenfeld (iframe) richtet sich daran aus, sonst stehen zwei Höhen
	 * nebeneinander. Padding hart statt nur über --wi-input-padding, damit Theme-CSS
	 * (woocommerce-blocktheme, Block-Styles) die Felder nicht flacher zieht.
	 * line-height 1.2 hält die Summe (0.9em + 0.9em + 1.2em + 2px Rahmen = 50px) unter der
	 * 52px-Untergrenze; bei 1.5 wären es 54.8px und die Kartenzeile stünde 3px zu kurz. */
	min-height:    52px;
	padding:       0.9em 1em;
	width:         100%;
	box-sizing:    border-box;
	line-height:   1.2;
	margin:        0;
}

/* Long timezone <select>: Thrive/Elementor often set fixed line-height/height — clip selected label text */
.wi-sc-form-wrap .wi-optin-form select,
.wi-sc-form-wrap .wi-optin-form select.wi_webinar_timezone,
.wi-sc-form-wrap .wi-optin-form select.inputField,
.wi-sc-form-wrap .wi-optin-form select.webinar_timezone_a {
	/* Same 52px target as the text fields (2026-10-17) — the old 2.85em was ~46px and left
	 * the timezone control visibly shorter than First Name / E-Mail. */
	min-height:      52px;
	height:          auto !important;
	line-height:     1.45;
	padding-top:     max(0.55em, 10px);
	padding-bottom:  max(0.55em, 10px);
	vertical-align:  middle;
	-webkit-appearance: menulist;
	appearance:      menulist;
}

/* iOS zooms the whole page when a focused control is under 16px. 1rem is only 16px when the
 * theme keeps the root at 16px — the mobile layout therefore states 16px explicitly (2026-10-17). */
@media (max-width: 640px) {
	.wi-sc-form-wrap .wi-optin-form input[type="text"],
	.wi-sc-form-wrap .wi-optin-form input[type="email"],
	.wi-sc-form-wrap .wi-optin-form input[type="tel"],
	.wi-sc-form-wrap .wi-optin-form select {
		font-size: 16px;
	}
}

/* ─── Paid Stripe checkout inside the form (Tobias 2026-10-17) ─────
 * Why: the card itself ran on Stripe defaults (14px text in #cfd7df) and the grey
 * "Powered by Stripe" bar below it was a hard-coded light block (#F9F9F9 / #878787)
 * sitting in the middle of a dark form. Now the card is one surface from the roles
 * (fill = surface, hairline = ink 18%), the Stripe field lands on exactly the 52px of
 * the text fields, and the Stripe credit line is quiet. No light-theme fix colours:
 * everything runs through --wi-fse-*; the colour guard in inc/block-editor-theme-override.php
 * binds the same roles for both palettes. */

.wi-sc-form-wrap .wi-optin-form .wi-paid-checkout {
	display:        flex;
	flex-direction: column;
	gap:            0.6em;
	width:          100%;
	margin:         0.15em 0 0.9em;
	box-sizing:     border-box;
}

.wi-sc-form-wrap .wi-optin-form .wi-pay-card {
	display:          flex;
	flex-direction:   column;
	gap:              0.5em;
	width:            100%;
	box-sizing:       border-box;
	padding:          10px 14px;
	/* 2026-10-17 (Prüfer-Fund 5, Nacharbeit): Breite/Style/Farbe getrennt, Farbe mit
	 * rgba-Fallback; die color-mix-Fassung steht im @supports-Block darunter. Ein
	 * `border`-Shorthand mit color-mix ist ohne color-mix-Support (Safari/iOS < 16.2)
	 * komplett ungültig — dann fällt der ganze Rahmen weg, nicht nur seine Farbe. */
	border-width:     1px;
	border-style:     solid;
	border-color:     rgba(127, 127, 127, 0.45);
	border-radius:    var(--wi-input-radius);
	background-color: var(--wi-fse-card-bg, var(--wi-fse-surface-alt-bg, var(--wp--preset--color--base, #fff)));
	color:            var(--wi-fse-card-ink, inherit);
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
	.wi-sc-form-wrap .wi-optin-form .wi-pay-card {
		border-color: color-mix(in srgb, currentColor 18%, transparent);
	}
}

.wi-sc-form-wrap .wi-optin-form .wi-pay-card__amount {
	display:     flex;
	align-items: baseline;
	flex-wrap:   wrap;
	gap:         0.15em 0.5em;
}

.wi-sc-form-wrap .wi-optin-form .wi-pay-card__amount-label {
	font-size:   0.85rem;
	line-height: 1.35;
	opacity:     0.75;
}

.wi-sc-form-wrap .wi-optin-form .wi-pay-card__amount-value {
	font-size:   1.05rem;
	font-weight: 700;
	line-height: 1.3;
	color:       inherit;
}

.wi-sc-form-wrap .wi-optin-form .wi-pay-card__field {
	display:        flex;
	flex-direction: column;
	width:          100%;
	box-sizing:     border-box;
}

/* Card label: form label typography, just closer to its field than the standard rows. */
.wi-sc-form-wrap .wi-optin-form .wi-pay-card__field label.wi-label {
	margin:      0 0 0.3em;
	font-size:   0.85rem;
	font-weight: 600;
}

/* Stripe mount: the iframe is ~17–24px tall out of the box (Stripe writes its own measured
 * height inline: 24px at fontSize 16px, 16.8px at 14px) and takes no field metrics. The box
 * below is the 52px field; the untouched iframe sits vertically centred inside it. */
.wi-sc-form-wrap .wi-optin-form .wi-pay-card .wi-stripe-card-element {
	display:     flex;
	align-items: center;
	min-height:  52px;
	width:       100%;
	padding:     0 1em;
	box-sizing:  border-box;
	/* `--wi-input-border` hat seit 2026-10-17 einen gültigen rgba-Fallback (Prüfer-Fund 5),
	 * deshalb bleibt der Rahmen auch ohne color-mix stehen. */
	border:      1px solid var(--wi-input-border);
	border-radius: var(--wi-input-radius);
	/* Feld-Tönung: rgba-Fallback zuerst, color-mix (4 % currentColor) im @supports-Block. */
	background-color: rgba(127, 127, 127, 0.06);
	transition:  border-color 0.15s ease;
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
	.wi-sc-form-wrap .wi-optin-form .wi-pay-card .wi-stripe-card-element {
		background-color: color-mix(in srgb, currentColor 4%, transparent);
	}
}

.wi-sc-form-wrap .wi-optin-form .wi-pay-card .wi-stripe-card-element:focus-within {
	border-color: rgba(127, 127, 127, 0.62);
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
	.wi-sc-form-wrap .wi-optin-form .wi-pay-card .wi-stripe-card-element:focus-within {
		border-color: color-mix(in srgb, currentColor 45%, transparent);
	}
}

.wi-sc-form-wrap .wi-optin-form .wi-pay-card .wi-stripe-card-element > .__PrivateStripeElement {
	flex:       1 1 auto;
	width:      100%;
	min-width:  0;
}

/* 2026-10-17 (Prüfer-Fund 2, Nacharbeit): KEINE feste Höhe mehr für den Stripe-iframe.
 * Gemessen mit echtem stripe.js (v3, Test-PK) in Chrome:
 *   – Stripe schreibt die Höhe selbst inline (`height: 24px` bei fontSize 16px, `16.8px` bei
 *     14px) und ändert sie, wenn es mehr Platz braucht. Im Fehlerfall (ungültige Nummer +
 *     blur, Feld `is-invalid`) blieb sie bei denselben 24px — Stripe braucht den Platz also
 *     selbst zugeteilt, ein fester Wert von außen ist reine Fremdbestimmung.
 *   – `height: 50px !important` (vorher) hat zusätzlich den "Link"-Button-iframe getroffen:
 *     Stripe setzt dort inline `height: 0px` (ausgeblendet, position:absolute rechts) — mit
 *     der Regel wurden daraus gemessene 50px, ein unsichtbarer Klickfänger über dem Kartenfeld.
 *   – Ein erzwungener fester Wert schneidet Stripe den Platz für seine eigene Meldung ab.
 * Deshalb nur noch Breite (nötig: Stripe setzt `width: 1px` inline und verlässt sich auf
 * `min-width: 100%`), display und border. Die Höhe der Zeile macht der Container (52px,
 * flex/center) — der iframe bleibt bei seiner gemessenen Höhe und wird dort zentriert. */
.wi-sc-form-wrap .wi-optin-form .wi-pay-card .wi-stripe-card-element iframe {
	display: block;
	width:   100% !important;
	border:  0;
}

/* "Powered by Stripe": small, quiet, with the lock — no own colour box any more.
 * color: inherit is explicit on purpose: a theme rule like `p{color:#cfd7df}` beats
 * inheritance, and the lock icon paints with currentColor. */
.wi-sc-form-wrap .wi-optin-form .wi-pay-card__powered {
	display:     flex;
	align-items: center;
	gap:         0.4em;
	margin:      0.15em 0 0;
	padding:     0;
	font-size:   0.75rem;
	line-height: 1.3;
	text-align:  left;
	color:       inherit;
	opacity:     0.72;
}

.wi-sc-form-wrap .wi-optin-form .wi-pay-card__powered svg,
.wi-sc-form-wrap .wi-optin-form .wi-pay-card__powered .wi-pay-card__lock {
	width:   1em;
	height:  1em;
	flex:    0 0 auto;
	opacity: 0.9;
}

/* Payment messages (Tobias 2026-10-17): the colour now comes from CSS instead of an inline
 * style — an inline colour would beat the colour guard's !important and the message would
 * stay white on a dark page. #E5484D keeps ≥ 3:1 on light (#fff) and dark (#131313)
 * surfaces; --wi-fse-error lets the guard hand in a palette-adjusted tone. */
.wi-sc-form-wrap .wi-optin-form .wi-paid-checkout .payment-errors {
	display:     none;
	margin:      0;
	padding:     0.15em 0 0;
	font-size:   0.9em;
	font-weight: 600;
	line-height: 1.4;
	text-align:  center;
	color:       var(--wi-fse-error, #E5484D);
	-webkit-text-fill-color: var(--wi-fse-error, #E5484D);
}

.wi-sc-form-wrap .wi-optin-form .wi-paid-checkout .payment-success {
	display:     none;
	margin:      0;
	padding:     0.15em 0 0;
	font-size:   0.9em;
	font-weight: 600;
	line-height: 1.4;
	text-align:  center;
	color:       inherit;
}

/* Host wrapper: admin FABs are position:absolute — parent overflow:hidden clips them (Thrive lightbox/columns) */
.wi-sc-hosted {
	overflow: visible !important;
}

/* global_* and *_inline shortcodes: flow inline so multiple SCs can sit on one line */
.wi-sc-hosted.wi-sc-hosted--wi-inline {
	display: inline !important;
	width: auto !important;
	max-width: none;
	vertical-align: baseline;
}

.wi-sc-hosted.wi-sc-hosted--wi-inline.wi-sc-hosted--admin-fabs {
	display: inline-block !important;
}

/*
 * Admin FAB stack is absolutely positioned (#A100) — it must not take the host's flow width away.
 * In a flex parent (Kubio / block post-content container) the host otherwise has no width of its
 * own, the inner wrapper's width:100% resolves against 0 and the whole shortcode output collapses
 * to 0 px for logged-in editors (measured 2026-09-14 on p97-gb-reg, post=3599). The host keeps the
 * flow width it already has on non-admin pages; the inner stack rules still cap and center it.
 * `--wi-inline` keeps width:auto !important above and is unaffected.
 */
.wi-sc-hosted.wi-sc-hosted--admin-fabs {
	width: 100%;
	min-width: 0;
	flex: 1 1 auto;
	box-sizing: border-box;
}

.wi-sc-form-wrap .wi-sc-hosted.wi-sc-hosted--wi-inline {
	display: inline !important;
	flex-direction: unset;
	align-items: unset;
	width: auto !important;
}

.thrv_wrapper .wi-sc-hosted,
.tve_p_lb_content .wi-sc-hosted,
.tve_p_lb_inner .wi-sc-hosted,
.tve_shortcode_rendered .wi-sc-hosted {
	overflow: visible !important;
}

.wi-sc-hosted .wi-sc-design-stack {
	z-index: var( --wi-z-icons, 99910 );
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.wi-sc-hosted .wi-sc-design-styles,
.wi-sc-hosted .wi-sc-design-settings {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #0f172a;
	color: #fff;
	border: 2px solid #ffc107;
	box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.35), 0 4px 14px rgba(15, 23, 42, 0.45);
	text-decoration: none;
	line-height: 0;
	flex-shrink: 0;
	box-sizing: border-box;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wi-sc-hosted .wi-sc-design-styles:hover,
.wi-sc-hosted .wi-sc-design-settings:hover,
.wi-sc-hosted .wi-sc-design-styles:focus-visible,
.wi-sc-hosted .wi-sc-design-settings:focus-visible {
	transform: scale(1.06);
	box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.55), 0 6px 18px rgba(15, 23, 42, 0.5);
	outline: none;
}

.wi-sc-hosted .wi-sc-design-styles svg,
.wi-sc-hosted .wi-sc-design-settings svg {
	width: 17px;
	height: 17px;
}

/*
 * Shortcode stack (gb_sc_custom): replicate hosted column flex so inner blocks stretch; when
 * webinar-modern is also loaded, pairing rules below (.wi-sc-form-wrap--flat) still fix Thrive
 * pages without body.wi-wb-registration-landing.
 */
.wi-sc-form-wrap .wi-sc-hosted {
	display:        flex;
	flex-direction: column;
	align-items:    stretch;
	width:          100%;
	max-width:      100%;
	min-width:      0;
	box-sizing:     border-box;
	border:         none !important;
	box-shadow:     none !important;
}

.wi-sc-form-wrap .wi-sc-hosted:has(.wi-sc-design-stack) > div:nth-child(2) {
	display:        flex;
	flex-direction: column;
	align-items:    stretch;
	width:          100%;
	min-width:      0;
	box-sizing:     border-box;
	border:         none !important;
	box-shadow:     none !important;
}

.wi-sc-form-wrap form.wi-optin-form {
	max-width:   none !important;
	width:         100% !important;
	margin-left:   0 !important;
	margin-right:  0 !important;
	box-sizing:    border-box;
}

.wi-sc-form-wrap .eventDate.evergreen-Registration,
.wi-sc-form-wrap .eventDate.evergreen-Registration.hola {
	display:         flex;
	flex-direction:  column;
	align-items:     stretch;
	justify-content: flex-start;
	width:           100%;
	max-width:       100%;
	box-sizing:      border-box;
	border:          none !important;
	box-shadow:      none !important;
}

.wi-sc-form-wrap .eventDate.evergreen-Registration .wiFormGroup,
.wi-sc-form-wrap .eventDate.evergreen-Registration .wiFormGroup-lg {
	width:         100% !important;
	max-width:     100% !important;
	min-width:     0 !important;
	align-self:    stretch !important;
	margin-left:   0 !important;
	margin-right:  0 !important;
	padding-left:  0 !important;
	padding-right: 0 !important;
	box-sizing:    border-box;
	text-align:    left;
}

.wi-sc-form-wrap .wi-optin-form input[type="text"]:focus,
.wi-sc-form-wrap .wi-optin-form input[type="email"]:focus,
.wi-sc-form-wrap .wi-optin-form input[type="tel"]:focus {
	outline: 2px solid var(--wi-fse-cta-fill, var(--wi-btn-bg, #32373c));
	outline-offset: 1px;
}

/* intl-tel-input wrapper (v29 class .iti) */
.wi-sc-form-wrap .iti {
	display: block;
	width: 100%;
}

/* ─── Submit button ──────────────────────────────────────────────── */
.wi-sc-form-wrap .wi-optin-form .wi-optin-submit,
.wi-sc-form-wrap .wi-optin-form button#optinBTN {
	position:         relative;
	font-family:      inherit;
	font-size:        1.15rem;
	font-weight:      600;
	letter-spacing:   0.01em;
	/* FSE CTA first (GB parity); campaign --wi-btn-bg only when injected from PHP */
	background-color: var(--wi-fse-cta-fill, var(--wi-btn-bg, #32373c));
	color:            var(--wi-fse-cta-text, var(--wi-btn-color, #ffffff));
	border:           none;
	border-radius:    var(--wi-input-radius);
	padding:          1em 4.35rem 1em 1.5rem; /* extra right padding makes room for ::after arrow graphic */
	cursor:           pointer;
	width:            100%;
	box-sizing:       border-box;
	display:          block;
	text-align:       center;
	transition:       background-color 0.15s ease;
	margin-top:       0.75em;
	overflow:         hidden;
}

/* Two labels on one button (Tobias 2026-09-14): desktop shows the long copy + arrow, a narrow
   column/phone shows only the short word and drops the arrow. Base state = desktop. The ID keeps
   this rule in charge wherever the button renders (shortcode, FSE, classic), and the mobile
   blocks below reuse the same ID so order alone decides. */
#optinBTN .wi-optin-label-short {
	display: none;
}

/* The nested label spans must carry the BUTTON ink, never the page's body text token
   (Tobias 2026-09-14, Prüfer-Blocker HOCH): a body-text rule can hit them directly, and with
   white CTA ink on a dark fill the label would turn unreadable. #optinBTNText itself was always
   exempt; its two children are exempted here the same way. */
#optinBTN #optinBTNText .wi-optin-label-long,
#optinBTN #optinBTNText .wi-optin-label-short {
	color: inherit !important;
	-webkit-text-fill-color: inherit !important;
}

/* Button arrow chevrons — inline SVG mask painted in the button's ink color. The legacy arrows2.png is <11% alpha (invisible on bright CTAs); mask+color renders solid chevrons on any CTA hue. */
.wi-sc-form-wrap .wi-optin-form button#optinBTN.addedArrow::after,
.wi-sc-form-wrap .wi-optin-form .wi-optin-submit.addedArrow::after {
	content:                '';
	position:               absolute;
	top:                    0;
	right:                  0;
	width:                  4rem;
	height:                 100%;
	background-color:       var(--wi-fse-cta-text, var(--wi-btn-color, #111));
	-webkit-mask-image:     url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 40' fill='none' stroke='black' stroke-width='5.5' stroke-linecap='round' stroke-linejoin='round'><path opacity='0.3' d='M8 12 L18 20 L8 28'/><path opacity='0.55' d='M22 12 L32 20 L22 28'/><path opacity='0.8' d='M36 12 L46 20 L36 28'/><path opacity='1' d='M50 12 L60 20 L50 28'/></svg>");
	        mask-image:     url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 40' fill='none' stroke='black' stroke-width='5.5' stroke-linecap='round' stroke-linejoin='round'><path opacity='0.3' d='M8 12 L18 20 L8 28'/><path opacity='0.55' d='M22 12 L32 20 L22 28'/><path opacity='0.8' d='M36 12 L46 20 L36 28'/><path opacity='1' d='M50 12 L60 20 L50 28'/></svg>");
	-webkit-mask-repeat:    no-repeat;
	        mask-repeat:    no-repeat;
	-webkit-mask-position:  center;
	        mask-position:  center;
	-webkit-mask-size:      auto 60%;
	        mask-size:      auto 60%;
	pointer-events:         none;
	transition:             transform 0.2s ease, opacity 0.2s ease;
}

.wi-sc-form-wrap .wi-optin-form .wi-optin-submit:hover,
.wi-sc-form-wrap .wi-optin-form button#optinBTN:hover {
	/* Do not use var(--wi-fse-cta-fill) alone here — it matched default and killed hover. Darken resolved fill. */
	background-color: color-mix(
		in srgb,
		var(--wi-fse-cta-fill, var(--wi-btn-bg, #32373c)) 82%,
		#000000
	);
	color:            var(--wi-fse-cta-text, var(--wi-btn-color, #ffffff));
	opacity:          1;
}

.wi-sc-form-wrap .wi-optin-form button#optinBTN.addedArrow:hover::after,
.wi-sc-form-wrap .wi-optin-form .wi-optin-submit.addedArrow:hover::after {
	transform: translateX(3px) scale(1.05);
}

/* ─── Live webinar: row with calendar icon + headline (live-dates.php only) ───
 * live-dates.php injects inline border-top/border-bottom on .wi-live-dates-wrap
 * for the classic LP look (two hairlines around the date row). On gb_sc_custom those
 * hairlines look like visual noise — kill them with !important to beat the inline style. */
.wi-sc-form-wrap .eventDate.wi-live-dates-wrap {
	display:       flex;
	align-items:   center;
	gap:           14px;
	padding:       0.5em 0;
	margin:        0.75em 0 1em;
	border:        none !important;
	border-top:    0 !important;
	border-bottom: 0 !important;
	box-shadow:    none !important;
	/* Full row width: Thrive columns can shrink-wrap the icon+text row vs a full-width form SC below. */
	width:         100%;
	max-width:     100%;
	box-sizing:    border-box;
	min-width:     0;
}

.wi-sc-form-wrap .eventDate.fixed-type,
.wi-sc-form-wrap .eventDate.delayed-dates {
	display:       flex;
	align-items:   center;
	gap:           14px;
	padding:       0.5em 0;
	margin:        0.75em 0 1em;
	border:        none !important;
	border-top:    0 !important;
	border-bottom: 0 !important;
	box-shadow:    none !important;
}

/* Evergreen / fixed / delayed: .eventDate without .wi-live-dates-wrap — block stack, not icon row */
.wi-sc-form-wrap .eventDate:not(.wi-live-dates-wrap) {
	display: block;
	margin:  0 0 1rem;
	padding: 0;
}

/* Evergreen auto schedule: Select date + Best time? (custom-dates.php) */
.wi-sc-form-wrap .eventDate.evergreen-Registration .wiFormGroup {
	margin-bottom: 0.85em;
}

/*
 * Evergreen date/time label: themes and page builders often set text-align:center on <label> or the
 * nearest block wrapper (Thrive column headings, GB heading alignment). Force left with !important
 * and bump specificity (:where(body)) so Thrive's .thrv_wrapper text-align:center cannot win.
 * Applied on the wrapper AND the label so the intrinsic block-level label alignment is reset too.
 */
.wi-sc-form-wrap .eventDate.evergreen-Registration,
.wi-sc-form-wrap .eventDate.evergreen-Registration .wiFormGroup,
.wi-sc-form-wrap .eventDate.evergreen-Registration .wiFormGroup-lg,
.wi-sc-form-wrap #webinarTime,
.wi-sc-form-wrap #webinarTime .wiFormGroup {
	text-align: left !important;
}

:where(body) .wi-sc-form-wrap .eventDate.evergreen-Registration .wiFormGroup label.wi-label,
:where(body) .wi-sc-form-wrap .eventDate.evergreen-Registration .wiFormGroup-lg label.wi-label,
:where(body) .wi-sc-form-wrap .eventDate.evergreen-Registration label.wi-label,
:where(body) .wi-sc-form-wrap #webinarTime label.wi-label {
	display:       block !important;
	width:         100% !important;
	box-sizing:    border-box !important;
	font-weight:   600;
	font-size:     1rem;
	line-height:   1.3;
	margin:        0 0 0.35em !important;
	padding-left:  0 !important;
	padding-right: 0 !important;
	text-align:    left !important;
	color:         var(--wi-fse-neutral-text, var(--wp--preset--color--foreground, inherit));
}

.wi-sc-form-wrap .eventDate.evergreen-Registration label.wi-label .autoSubTitle {
	display:     block;
	font-weight: 500;
	font-size:   0.92em;
	margin-top:  0.25em;
	opacity:     0.88;
	text-align:  left !important;
}

.wi-sc-form-wrap .eventDate.evergreen-Registration select.wiFormControl,
.wi-sc-form-wrap .eventDate.evergreen-Registration select.webinar_start_date,
.wi-sc-form-wrap #webinarTime select.wiFormControl,
.wi-sc-form-wrap #webinarTime select.wi-tz-picker-select.wiFormControl,
.wi-sc-form-wrap .eventDate .dateInfo .wi-registrant-tz-picker select.wi-tz-picker-select,
.wi-sc-form-wrap .eventDate .dateInfo .wi-registrant-tz-picker select.wi-tz-picker-select.wiFormControl,
.wi-sc-form-wrap .eventDate .wi-registrant-tz-picker select.wi-tz-picker-select.wiFormControl {
	font-family:   inherit;
	font-size:     1rem;
	color:         var(--wi-fse-neutral-text, var(--wp--preset--color--foreground, inherit)) !important;
	-webkit-text-fill-color: var(--wi-fse-neutral-text, var(--wp--preset--color--foreground, inherit)) !important;
	background:    var(--wp--preset--color--base, #fff) !important;
	background-color: var(--wp--preset--color--base, #fff) !important;
	border:        1px solid var(--wi-input-border) !important;
	border-radius: var(--wi-input-radius);
	padding:       var(--wi-input-padding) !important;
	width:         100% !important;
	max-width:     100% !important;
	min-width:     0 !important;
	box-sizing:    border-box !important;
	display:       block !important;
	line-height:   1.5;
	margin:        0 !important;
	min-height:    2.85em;
	height:        auto !important;
	vertical-align: middle;
	-webkit-appearance: menulist;
	appearance:    menulist;
}

/*
 * Match input paddings 1:1 so Instant Access select visually equals First Name / Email width.
 * (Some themes bump select padding with a ruleset of higher specificity.)
 */
.wi-sc-form-wrap .eventDate.evergreen-Registration select.wiFormControl,
.wi-sc-form-wrap #webinarTime select.wiFormControl,
.wi-sc-form-wrap #webinarTime select.wi-tz-picker-select.wiFormControl,
.wi-sc-form-wrap .eventDate .dateInfo .wi-registrant-tz-picker select.wi-tz-picker-select,
.wi-sc-form-wrap .eventDate .dateInfo .wi-registrant-tz-picker select.wi-tz-picker-select.wiFormControl,
.wi-sc-form-wrap .eventDate .wi-registrant-tz-picker select.wi-tz-picker-select.wiFormControl {
	padding-top:    max(0.55em, 10px) !important;
	padding-bottom: max(0.55em, 10px) !important;
}

/*
 * Builder/KSES safety net (2026-10-21, Michael/OptimizePress): nothing but the timezone control
 * may ever appear inside the date block. A page builder or a KSES pass can strip attributes from
 * the hidden timezone fields; a stripped `<input>` renders as an empty white text box under the
 * date. This rule makes that impossible, whatever strips what.
 * The picker stays hidden by class, so a lost inline style cannot reveal an empty select.
 */
.wi-sc-form-wrap .wi-live-dates-wrap input:not([type="hidden"]):not([type="search"]),
.wi-sc-form-wrap .wi_date_time_wrap input:not([type="hidden"]):not([type="search"]) {
	display: none !important;
}

.wi-sc-form-wrap .wi-registrant-tz-picker,
.wi-live-dates-wrap .wi-registrant-tz-picker,
.wi-grid-tz-bar .wi-registrant-tz-picker {
	display: none;
}

.wi-sc-form-wrap .wi-registrant-tz-picker.wi-registrant-tz-picker--open,
.wi-live-dates-wrap .wi-registrant-tz-picker.wi-registrant-tz-picker--open,
.wi-grid-tz-bar .wi-registrant-tz-picker.wi-registrant-tz-picker--open {
	display: block;
}

/*
 * Picker controls inside the narrow date rail: the search field and the select take the full
 * width of the block, so the open picker does not look cramped on a 320 px rail.
 */
.wi-sc-form-wrap .wi-registrant-tz-picker .wi-tz-picker-search,
.wi-live-dates-wrap .wi-registrant-tz-picker .wi-tz-picker-search {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
	min-height: 2.6em;
	margin: 0 0 6px !important;
	padding: 0.5em 0.7em;
	border: 1px solid var(--wi-input-border, rgba(127, 127, 127, 0.45));
	border-radius: var(--wi-input-radius, 8px);
	background: var(--wp--preset--color--base, #fff);
	color: var(--wi-fse-neutral-text, inherit);
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.3;
}

.wi-sc-form-wrap .wi-registrant-tz-picker .wi-tz-picker-select,
.wi-live-dates-wrap .wi-registrant-tz-picker .wi-tz-picker-select {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
}

.wi-sc-form-wrap .eventDate.wi-live-dates-wrap .dateIcon,
.wi-sc-form-wrap .wi-live-dates-wrap .dateIcon {
	box-sizing:          border-box;
	flex:                0 0 auto;
	width:               72px;
	height:              72px;
	min-width:           72px;
	min-height:          72px;
	background-image:    url(../images/datebgnew.png);
	background-repeat:   no-repeat;
	background-position: center center;
	background-size:     contain;
}

.wi-sc-form-wrap .eventDate.wi-live-dates-wrap .dateInfo,
.wi-sc-form-wrap .wi-live-dates-wrap .dateInfo {
	flex:      1 1 auto;
	min-width: 0;
}

.wi-sc-form-wrap .eventDate.wi-live-dates-wrap .dateHeadline,
.wi-sc-form-wrap .wi-live-dates-wrap .dateHeadline {
	font-size:   1.12rem;
	font-weight: 600;
	line-height: 1.2;
	/* Nearer to native GB marketing pages: heading serif stack; still inherits colour from wrap */
	font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

.wi-sc-form-wrap .eventDate.wi-live-dates-wrap .dateSubHeadline,
.wi-sc-form-wrap .wi-live-dates-wrap .dateSubHeadline {
	font-size:   1rem;
	line-height: 1.3;
	font-family: inherit;
	opacity:     0.85;
}

.wi-sc-form-wrap .wi-optin-form .wi-optin-submit:disabled,
.wi-sc-form-wrap .wi-optin-form button#optinBTN:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* image-button variant */
.wi-sc-form-wrap .wi-optin-form .optinBTNimg {
	display: block;
	margin: 0 auto;
}

/* ─── Error / validation messages (FSE/SC — theme-neutral contrast) ─ */
.wi-sc-form-wrap .wi-error-message,
.wi-sc-form-wrap .wi-form-error {
	box-sizing:   border-box;
	display:      none;
	margin-top:   0.35em;
	padding:      0.4em 0.55em;
	font-size:    0.82em;
	font-weight:  500;
	line-height:  1.45;
	color:        #7f1d1d !important;
	-webkit-text-fill-color: #7f1d1d !important;
	background-color: #fef2f2 !important;
	border:       1px solid #fca5a5;
	border-radius: 4px;
}

.wi-sc-form-wrap .wi-error-message.visible,
.wi-sc-form-wrap .wi-form-error.visible {
	display: block;
}

/* #A1132 — Equal error border on all sides. Outer box-shadow was clipped by overflow-x:clip
 * on .wi-sc-form-wrap (#A1074), so L/R looked thin while T/B looked thick. */
.wi-sc-form-wrap .wi-optin-form .wiFormControl.errorField,
.wi-sc-form-wrap .wi-optin-form input.errorField,
.wi-sc-form-wrap .wi-optin-form select.errorField {
	border: 2px solid #dc2626 !important;
	box-shadow: none !important;
}

.wi-sc-form-wrap .warning-text-container {
	padding: 0.5em;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: var(--wi-input-radius);
	margin-bottom: 0.75em;
}

/* ─── Spam / privacy note ────────────────────────────────────────── */
.wi-sc-form-wrap .spam.wiSpamMessage {
	font-size:   0.78em;
	margin-top:  0.6em;
	text-align:  center;
	opacity:     0.7;
}

/* ─── GDPR consent row ───────────────────────────────────────────── */
.wi-sc-form-wrap .wi-gdpr-row {
	display:      flex;
	align-items:  flex-start;
	gap:          0.5em;
	font-size:    0.85em;
	margin-bottom: 0.75em;
}

.wi-sc-form-wrap .wi-gdpr-row input[type="checkbox"] {
	width:  auto;
	flex:   0 0 auto;
	margin-top: 0.2em;
}


/* WI owned — GDPR PP consent row (hosted SC).
 * #A1132 — Default: label left, checkbox right (Host expectation).
 * Only stack on very narrow form containers; checkbox stays end-aligned. */

/* 2026-10-17 (Tobias): the consent heading is a div, so the form label rules never reached
 * it — theme CSS left it centred and small. It now reads like every other field label. */
.wi-sc-form-wrap .wi-optin-form .gdprHeading,
.wi-sc-form-wrap .gdprSectionWrapper .gdprHeading {
	font-size:   1rem;
	font-weight: 600;
	line-height: 1.35;
	text-align:  left;
	margin:      0 0 0.5em;
	padding:     0;
	color:       inherit;
}

.wi-sc-form-wrap .gdprSectionWrapper .gdprConsentField.gdpr-pp.wiFormCheckbox {
	display: grid !important;
	grid-template-columns: 1fr minmax(22px, auto);
	align-items: start;
	column-gap: 14px;
	row-gap: 8px;
	margin: 18px 0;
	text-align: left;
}
.wi-sc-form-wrap .gdprSectionWrapper .gdprConsentField.gdpr-pp > label {
	grid-column: 1;
	grid-row: 1;
	margin: 0 !important;
	padding-right: 0 !important;
	min-width: 0;
	position: relative;
	z-index: 1;
	cursor: pointer;
	text-align: left;
	white-space: normal;
	overflow-wrap: break-word;
	word-wrap: break-word;
}
.wi-sc-form-wrap .gdprSectionWrapper .gdprConsentField.gdpr-pp > input#gdpr-pp {
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
	align-self: start;
	position: static !important;
	right: auto !important;
	transform: none !important;
	margin: 0 !important;
	/* 2026-10-17 (Tobias): --wi-brand-color is empty on this page, so the box rendered as a
	 * white 22px square. The accent now comes from the CTA role (same colour as the submit
	 * button) and the box is 20px — a checkbox, not a tile. */
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	min-height: 20px !important;
	flex-shrink: 0;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	cursor: pointer;
	-webkit-appearance: checkbox;
	appearance: auto;
	accent-color: var(--wi-fse-cta-fill, #4B52FF);
}
.wi-sc-form-wrap .gdprSectionWrapper .gdprConsentField.gdpr-pp > #gdprPPError {
	grid-column: 1 / -1;
	grid-row: 2;
}

.wi-sc-form-wrap,
.wi-sc-hosted--wi-stack-registration,
.wi-sc-hosted--wi-stack-thankyou {
	container-type: inline-size;
	container-name: wi-reg-form;
}
.wi-sc-form-wrap .wi-registrant-tz-line,
.wi-sc-form-wrap .eventDate.evergreen-Registration .wi-registrant-tz-line,
.wi-sc-form-wrap .eventDate.wi-live-dates-wrap .dateInfo .wi-registrant-tz-line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.15em 0.35em;
	white-space: normal;
	overflow-wrap: break-word;
	word-wrap: break-word;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}
.wi-sc-form-wrap .wi-registrant-tz-line .wi-registrant-tz-sep {
	flex: 0 0 auto;
}
.wi-sc-form-wrap .wi-optin-form button#optinBTN,
.wi-sc-form-wrap .wi-optin-form .wi-optin-submit {
	min-width: 0;
	max-width: 100%;
}

/* Tiny form column only: stack text above checkbox, checkbox still on the right. */
@container wi-reg-form (max-width: 16rem) {
	.gdprSectionWrapper .gdprConsentField.gdpr-pp.wiFormCheckbox {
		grid-template-columns: 1fr !important;
		row-gap: 10px;
	}
	.gdprSectionWrapper .gdprConsentField.gdpr-pp > label {
		grid-column: 1;
		grid-row: 1;
	}
	.gdprSectionWrapper .gdprConsentField.gdpr-pp > input#gdpr-pp {
		grid-column: 1;
		grid-row: 2;
		justify-self: end;
	}
	.gdprSectionWrapper .gdprConsentField.gdpr-pp > #gdprPPError {
		grid-column: 1;
		grid-row: 3;
	}
}

/* No container-query support: keep label | checkbox on typical viewports. */
@supports not (container-type: inline-size) {
	@media (max-width: 360px) {
		.wi-sc-form-wrap .gdprSectionWrapper .gdprConsentField.gdpr-pp.wiFormCheckbox {
			grid-template-columns: 1fr !important;
			row-gap: 10px;
		}
		.wi-sc-form-wrap .gdprSectionWrapper .gdprConsentField.gdpr-pp > label {
			grid-column: 1;
			grid-row: 1;
		}
		.wi-sc-form-wrap .gdprSectionWrapper .gdprConsentField.gdpr-pp > input#gdpr-pp {
			grid-column: 1;
			grid-row: 2;
			justify-self: end;
		}
		.wi-sc-form-wrap .gdprSectionWrapper .gdprConsentField.gdpr-pp > #gdprPPError {
			grid-column: 1;
			grid-row: 3;
		}
	}
}

@media (max-width: 781px) {
	.wi-sc-form-wrap,
	.wi-sc-form-wrap .wi-sc-hosted,
	.wi-sc-form-wrap .wi-sc-hosted--wi-stack-registration {
		min-width: 0 !important;
	}
}

/* #A1074 — Builder mobile: keep registration SC inside host column (no left/right page shift). */
.wi-sc-form-wrap,
.wi-sc-hosted--wi-stack-registration {
	max-width: 100%;
	min-width: 0;
	overflow-x: clip;
	box-sizing: border-box;
}
.wi-sc-form-wrap .optinFormArea,
.wi-sc-form-wrap .eventDate,
.wi-sc-form-wrap .wi-optin-form,
.wi-sc-hosted--wi-stack-registration .optinFormArea,
.wi-sc-hosted--wi-stack-registration .eventDate {
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}
@container wi-reg-form (max-width: 22rem) {
	/* Narrow form column: show the short label only, drop the chevron strip, give the text its
	   room back (Tobias 2026-09-14 — the long label ran under the arrow graphic). */
	#optinBTN #optinBTNText .wi-optin-label-long {
		display: none;
	}
	#optinBTN #optinBTNText .wi-optin-label-short {
		display: inline;
	}
	.wi-sc-form-wrap .wi-optin-form button#optinBTN,
	.wi-sc-form-wrap .wi-optin-form .wi-optin-submit,
	.wi-sc-hosted #optinBTN.wi-fse-primary-cta.wiButton.addedArrow,
	body.wi-wb-registration-landing #optinBTN.wi-fse-primary-cta.wiButton.addedArrow,
	body.wi_registration #optinBTN.wi-fse-primary-cta.wiButton.addedArrow {
		/* Symmetric: the global FSE CTA keeps `padding: … 3.75rem !important`, so only an
		   !important left+right pair on a matching selector centres the short label (Prüfer NIEDRIG). */
		padding-left: 1.5rem !important;
		padding-right: 1.5rem !important;
	}
	.wi-sc-form-wrap .wi-optin-form button#optinBTN.addedArrow::after,
	.wi-sc-form-wrap .wi-optin-form .wi-optin-submit.addedArrow::after {
		display: none;
	}
	.wi-sc-form-wrap .wi-optin-form button#optinBTN.addedArrow,
	.wi-sc-form-wrap .wi-optin-form .wi-optin-submit.addedArrow {
		background-image: none;
	}
	/* #A1129 / P186 — narrow host: calendar icon stays BESIDE the date (Tobias 2026-08-05).
	   This selector outranks the row!important in webinar-modern.css, so the row lives here too. */
	.wi-sc-form-wrap .eventDate.wi-live-dates-wrap,
	.wi-sc-hosted--wi-stack-registration .eventDate.wi-live-dates-wrap,
	.wi-sc-hosted--wi-stack-thankyou .eventDate.wi-live-dates-wrap {
		flex-direction: row !important;
		align-items: center !important;
		gap: 0.5rem;
	}
	.wi-sc-form-wrap .eventDate.wi-live-dates-wrap .dateInfo,
	.wi-sc-form-wrap .wi-live-dates-wrap .dateInfo {
		width: auto;
		max-width: 100%;
		min-width: 0;
		white-space: normal;
		overflow-wrap: anywhere;
		word-break: normal;
	}
	.wi-sc-form-wrap .eventDate.wi-live-dates-wrap .dateIcon,
	.wi-sc-form-wrap .wi-live-dates-wrap .dateIcon {
		width: 56px;
		height: 56px;
		min-width: 56px;
		min-height: 56px;
	}
}

/* Phones — independent of the container width (a 420px phone can still give the form column more
   than 22rem). Same intent as the narrow-column rule above: short label only, no arrow, normal
   right padding. The legacy `.addedArrow { background-image }` from main.css/webinar-modern.css
   is switched off here too (the descendant chain outranks the bare `.addedArrow`). */
@media (max-width: 640px) {
	#optinBTN #optinBTNText .wi-optin-label-long {
		display: none;
	}
	#optinBTN #optinBTNText .wi-optin-label-short {
		display: inline;
	}
	.wi-sc-form-wrap .wi-optin-form button#optinBTN,
	.wi-sc-form-wrap .wi-optin-form .wi-optin-submit,
	.wi-sc-hosted #optinBTN.wi-fse-primary-cta.wiButton.addedArrow,
	body.wi-wb-registration-landing #optinBTN.wi-fse-primary-cta.wiButton.addedArrow,
	body.wi_registration #optinBTN.wi-fse-primary-cta.wiButton.addedArrow {
		/* Symmetric: the global FSE CTA keeps `padding: … 3.75rem !important`, so only an
		   !important left+right pair on a matching selector centres the short label (Prüfer NIEDRIG). */
		padding-left: 1.5rem !important;
		padding-right: 1.5rem !important;
	}
	.wi-sc-form-wrap .wi-optin-form button#optinBTN.addedArrow::after,
	.wi-sc-form-wrap .wi-optin-form .wi-optin-submit.addedArrow::after {
		display: none;
	}
	.wi-sc-form-wrap .wi-optin-form .wi-optin-submit.addedArrow,
	.wi-sc-form-wrap .wi-optin-form button#optinBTN.addedArrow,
	.wi-sc-form-wrap .wi-optin-form .addedArrow {
		background-image: none;
	}
}

/* ─── Admin Hint box ─────────────────────────────────────────────── */
.wi-sc-admin-hint {
	box-sizing:  border-box;
	position:    relative;
	z-index:     var( --wi-z-notice, 99900 ); /* stay above Thrive / Elementor canvas overlays when logged in */
	padding:     12px 16px;
	margin:      0 52px 1em 0; /* right margin keeps box clear of WI's 3 floating admin icons */
	background:  #f0f6fc;
	border:      1px solid #b6d4fe;
	border-left: 4px solid #0d6efd;
	border-radius: 4px;
	font-size:   13px;
	line-height: 1.5;
	/* #dunkel (Tobias 2026-11-08): a dark role palette inherits a white
	 * -webkit-text-fill-color into every child, which wins over `color` and
	 * turned this box unreadable (1.09:1). Set the painted ink on the box and
	 * on the text children, and keep form controls light. */
	color:       #1e3a5f;
	-webkit-text-fill-color: #1e3a5f;
	color-scheme: light;
}

.wi-sc-admin-hint p,
.wi-sc-admin-hint strong,
.wi-sc-admin-hint .wi-sc-hint-msg {
	color: #1e3a5f;
	-webkit-text-fill-color: #1e3a5f;
}

.wi-sc-admin-hint strong {
	display:     block;
	margin-bottom: 4px;
}

.wi-sc-admin-hint a {
	color:           #0d6efd;
	-webkit-text-fill-color: #0d6efd;
	font-weight:     600;
	text-decoration: underline;
}

.wi-sc-admin-hint .wi-sc-hint-actions {
	display:     flex;
	flex-wrap:   wrap;
	gap:         8px;
	margin-top:  8px;
}

.wi-sc-admin-hint .wi-sc-hint-btn {
	display:         inline-block;
	padding:         5px 12px;
	border:          1px solid var(--wi-fse-cta-fill, #0d6efd);
	border-radius:   3px;
	background:      var(--wi-fse-cta-fill, #0d6efd);
	color:           var(--wi-fse-cta-text, #ffffff);
	-webkit-text-fill-color: var(--wi-fse-cta-text, #ffffff);
	font-size:       12px;
	font-weight:     600;
	cursor:          pointer;
	text-decoration: none;
	white-space:     nowrap;
}

.wi-sc-admin-hint .wi-sc-hint-btn.secondary {
	background: var(--wi-fse-surface-bg, #ffffff);
	color:      var(--wi-fse-cta-fill, #0d6efd);
}

.wi-sc-admin-hint .wi-sc-hint-btn:hover {
	opacity: 0.85;
}

.wi-sc-admin-hint .wi-sc-hint-msg {
	font-size:  12px;
	margin-top: 6px;
	color:      #555;
}

.wi-sc-form-wrap .eventDate.wi-live-dates-wrap .dateInfo .wi-registrant-tz-line,
.wi-sc-form-wrap .wi-live-dates-wrap .dateInfo .wi-registrant-tz-line,
.wi-sc-form-wrap #webinarTime .wi-registrant-tz-line {
	font-size:   1rem;
	line-height: 1.3;
	font-family: inherit;
	font-weight: inherit;
	opacity:     0.85;
	margin-top:  0.25rem;
}
.wi-sc-form-wrap .eventDate.evergreen-Registration .wiFormGroup .wi-instant-duration,
.wi-sc-form-wrap .wi-registrant-duration {
	font-size:   inherit;
	line-height: inherit;
	font-family: inherit, sans-serif;
	font-weight: inherit;
	opacity:     0.85;
}

.wi-sc-form-wrap .eventDate.evergreen-Registration .wiFormGroup .wi-instant-duration {
	margin-top:  0.35rem;
	margin-bottom: 0;
}

.wi-sc-form-wrap .wi-registrant-tz-correct {
	margin-left: 0.35em;
	color: inherit;
	text-decoration: underline;
}
/* Evergreen Custom SC: TZ-line matches "Please fill required fields" size; tight under dropdown. */
.wi-sc-form-wrap .eventDate.evergreen-Registration .wi-registrant-tz-line {
	font-size:   0.875rem;
	line-height: 1.4;
	font-family: inherit;
	font-weight: inherit;
	margin-top:  0.2rem;
	margin-bottom: 0.75rem;
}
.wi-sc-form-wrap .eventDate.evergreen-Registration > .wiFormGroup {
	padding-bottom: 0;
	margin-bottom: 0.2rem;
}
.wi-sc-form-wrap .eventDate.evergreen-Registration #webinarTime > .wiFormGroup {
	padding-bottom: 0;
	margin-bottom: 0;
}

/* Sponsor line: WI branding — quiet meta credit under privacy note, not form content (#A1126). */
.wi-sc-form-wrap .powered_by_text_wrap {
	text-align: center;
	margin-top: 0.75rem;
	padding-top: 0.5rem;
	font-size: 0.78em !important;
	line-height: 1.45;
	font-family: inherit !important;
	font-weight: 400 !important;
	opacity: 0.7;
	color: inherit;
}
.wi-sc-form-wrap .powered_by_text_wrap a {
	color: inherit !important;
	-webkit-text-fill-color: inherit !important;
	text-decoration: none !important;
	text-underline-offset: 0.12em;
	font-size: inherit !important;
	font-weight: inherit !important;
}
.wi-sc-form-wrap .powered_by_text_wrap a:hover,
.wi-sc-form-wrap .powered_by_text_wrap a:focus-visible {
	text-decoration: underline !important;
}
.wi-sc-form-wrap .powered_by_text_wrap b {
	font-weight: 600 !important;
	font-size: inherit !important;
	color: inherit !important;
	-webkit-text-fill-color: inherit !important;
}



/* ─── #kontrast (Tobias 2026-10-26): Fehlerzeile immer dunkel auf hell ─────────
 *
 * Gemessen auf der gebauten Seite 99564: „First name required" stand weiss auf hellrosa,
 * praktisch unsichtbar, waehrend andere Fehlerzeilen dunkel erschienen. Ursache ist die
 * Kaskade: eine breitere Regel setzt color:#fff, und ohne !important auf einer hoeheren
 * Spezifitaet gewinnt sie. Diese Regeln stehen bewusst am ENDE der Datei und tragen die
 * volle Spezifitaet des Formulars, damit sie unabhaengig von der Theme-Reihenfolge greifen.
 *
 * Die leere Zeile bleibt display:none (kein reservierter Platz, kein Rand); Rand und
 * Innenabstand entstehen erst mit .visible. Damit schliesst „please fill the required
 * fields" nicht mehr in einem grossen Loch.
 */
.wi-sc-form-wrap .wi-optin-form .wiFormGroup > .wi-error-message,
.wi-sc-form-wrap .wi-optin-form .wi-error-message,
.wi-sc-form-wrap .wi-optin-form .wi-form-error {
	display: none;
	margin: 0;
	padding: 0;
	border: 0;
	color: #7f1d1d !important;
	-webkit-text-fill-color: #7f1d1d !important;
	background-color: transparent !important;
}

.wi-sc-form-wrap .wi-optin-form .wiFormGroup > .wi-error-message.visible,
.wi-sc-form-wrap .wi-optin-form .wi-error-message.visible,
.wi-sc-form-wrap .wi-optin-form .wi-form-error.visible {
	display: block;
	margin: 0.35em 0 0;
	padding: 0.45em 0.6em;
	border: 1px solid #fca5a5;
	border-radius: 4px;
	font-size: 0.95em;
	line-height: 1.4;
	background-color: #fef2f2 !important;
	color: #7f1d1d !important;
	-webkit-text-fill-color: #7f1d1d !important;
}

/* Der Text in der Animation und auf dem Anmeldeknopf ist eine Beschriftung, kein Inhalt:
 * er darf sich nicht markieren lassen (blaue Auswahl im Screenshot vom 26.10.).
 * Formularfelder bleiben selbstverstaendlich markierbar. */
.wi-sc-form-wrap button,
.wi-sc-form-wrap .wiButton,
.wi-sc-form-wrap .wi-optin-submit,
.wi-sc-form-wrap .wi-cta,
.wi-sc-form-wrap .wi-cta-button,
.wi-sc-form-wrap .wi-lp-cta {
	-webkit-user-select: none;
	user-select: none;
}
