/* Pages made with a page builder (Bricks): the layout rules WordPress gives to its columns blocks, as WordPress writes them, because those blocks are not on the page. */
.funnelzi-page .wp-block-columns { display: flex; box-sizing: border-box; flex-wrap: wrap !important; align-items: normal !important; }
.funnelzi-page .wp-block-column { flex-grow: 1; min-width: 0; overflow-wrap: break-word; word-break: break-word; }
@media (max-width: 781px) {
	.funnelzi-page .wp-block-column { flex-basis: 100% !important; }
}
@media (min-width: 782px) {
	.funnelzi-page .wp-block-columns { flex-wrap: nowrap !important; }
	.funnelzi-page .wp-block-column { flex-basis: 0; flex-grow: 1; }
}
/* WordPress resets the vertical margins of the blocks inside a group (the funnelzi styles then set their own where they want one). */
:where(.funnelzi-page .is-layout-flow) > * { margin-block-start: 0; margin-block-end: 0; }

/* Elementor: the colours and fonts of the site's global kit must not change the look of a funnel page. Headings keep the weights funnelzi gives them. */
.funnelzi-page .elementor-widget-heading .elementor-heading-title { color: inherit; font-family: inherit; font-weight: 700; }
.funnelzi-page .elementor-widget-heading h1.elementor-heading-title,
.funnelzi-page .elementor-widget-heading h2.elementor-heading-title { font-weight: 800; }
.funnelzi-page .elementor-widget-text-editor { color: inherit; font-family: inherit; font-weight: inherit; }
/* Elementor adds a space under every widget and a padding to its containers: the funnelzi styles decide the spacing. */
.funnelzi-page .elementor-widget, .funnelzi-page .elementor-widget:not(:last-child) { margin-block: 0; }
.funnelzi-page .e-con { --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; --gap: 0px; --row-gap: 0px; --column-gap: 0px; }
.funnelzi-page .e-con { --align-items: stretch; align-items: stretch; }
.funnelzi-page .e-con > .elementor-widget { width: 100%; }
/* WordPress resets the margin of the blocks inside a group; in Elementor the text sits one level deeper, so the same reset is given here (the funnelzi classes still win). */
:where(.funnelzi-page .elementor-widget-text-editor, .funnelzi-page .elementor-widget-heading) :is(p, .elementor-heading-title) { margin-block: 0; }
/* Elementor sets its own width on the widgets, so the content width of a section is given again here. */
.funnelzi-page .fz-sec.e-con > .elementor-widget.elementor-widget { max-width: 1040px; margin-inline: auto; }
/* WordPress puts its block gap above every block that follows another one inside a section; Elementor has no such gap, so it is given here. */
.funnelzi-page .fz-sec:not(.fz-hero).e-con > * + .elementor-widget:not(.elementor-widget-html),
.funnelzi-page .fz-sec:not(.fz-hero).e-con > * + .e-con.e-con { margin-block-start: 1.2rem; }
.funnelzi-page .e-con > * + .wp-block-columns.e-con { margin-block-start: 1.2rem; }
/* A paragraph with its own width (the sub-headline) is centred in the section, as it is when it sits directly in it. */
.funnelzi-page .fz-sec.e-con > .elementor-widget-text-editor p { margin-inline: auto; }
/* The questions of a FAQ are one HTML widget each in Elementor: the same small space between them as in WordPress. */
.funnelzi-page .e-con > .elementor-widget-html:has(details) + .elementor-widget-html:has(details) { margin-block-start: 10px; }
/* In the Elementor editor every widget gets the kit's global colour and font as a rule of its own: the kit values are replaced here by the funnelzi ones, so a colour or font the user picks by hand still works. */
.funnelzi-page.funnelzi-page { --e-global-color-primary: currentColor; --e-global-color-secondary: currentColor; --e-global-color-text: currentColor; --e-global-color-accent: currentColor; --e-global-typography-primary-font-family: system-ui, -apple-system, "Segoe UI", sans-serif; --e-global-typography-secondary-font-family: system-ui, -apple-system, "Segoe UI", sans-serif; --e-global-typography-text-font-family: system-ui, -apple-system, "Segoe UI", sans-serif; --e-global-typography-accent-font-family: system-ui, -apple-system, "Segoe UI", sans-serif; --e-global-typography-primary-font-weight: 700; --e-global-typography-secondary-font-weight: 400; --e-global-typography-text-font-weight: inherit; --e-global-typography-accent-font-weight: 500; }
.funnelzi-page .elementor-widget-heading:has(h1, h2) { --e-global-typography-primary-font-weight: 800; }
/* Elementor containers are flex columns by default; the funnelzi rows and cards set their own display, which must win. */
.funnelzi-page .e-con.fz-trust-row { --flex-direction: row; flex-direction: row !important; justify-content: center; flex-wrap: wrap; --gap: 22px; gap: 22px; margin-top: 18px; }
.funnelzi-page .e-con.fz-trust-row > .e-con { --flex-direction: row; flex-direction: row !important; align-items: center; --gap: 8px; gap: 8px; margin: 0; --width: auto; width: auto; flex: none; }
/* Blocks in WordPress follow each other as normal blocks, and their margins merge; Elementor containers are flex boxes, where margins add up. Inside a funnel page the containers behave as normal blocks again (the rows and cards that need flex set it themselves). */
.funnelzi-page .e-con.wp-block-column, .funnelzi-page .e-con.fz-sec:not(.fz-hero), .funnelzi-page .e-con.fz-card { display: block; }
/* WordPress gap between the top-level parts of the page (hero, bar, sections), and the line height of the small headings (Elementor gives them 1). */
.funnelzi-page .e-parent > .e-con + .e-con { margin-block-start: 1.2rem; }
.funnelzi-page .elementor-widget-heading :is(h3, h4, h5, h6).elementor-heading-title { line-height: 1.15; }
.funnelzi-page .e-con.fz-theme > * + .elementor-widget, .funnelzi-page .e-con.fz-theme > * + .e-con:not(.fz-sec) { margin-block-start: 1.2rem; }
/* The funnelzi components sit in a block that WordPress resets to no margin; the same here. */
.funnelzi-page .elementor-widget-funnelzi-checkout .elementor-widget-container > * { margin-block: 0; }
.funnelzi-page .e-con.fz-ico { flex: none; }
/* Elementor containers use ::before for their background overlay; the funnelzi icons draw their symbol there, so Elementor's size and shape are put aside. */
.funnelzi-page .e-con.fz-ico::before { width: auto; height: auto; border-radius: 0; opacity: 1; inset: 14px; }
.funnelzi-page .fz-trust-row .e-con.fz-ico::before { inset: 7px; }
