/* ===== Poprawki 2 – moduły tekstowe po Beaver Builder 2.11 (wtyczka 1.6.2) ===== */
/* Beaver 2.11 wyświetla moduły tekstowe bez wewnętrznej owijki .fl-module-content. Motyw ustawiał odstępy właśnie na tej owijce
   (12rem 25rem, od 768 px 15rem 30rem), a stary Beaver trzymał w niej marginesy akapitów. Tu to samo dla modułów bez owijki.
   Waga reguł: wygrywa z domyślnym 10px Beavera, przegrywa z marginesami ustawionymi w Beaverze na konkretnym module. */
.fl-builder-content :where(.fl-module:not(:has(> .fl-module-content))) { margin: 12rem 25rem; }
.fl-builder-content :where(.fl-module:not(:has(> .fl-module-content)))::before,
.fl-builder-content :where(.fl-module:not(:has(> .fl-module-content)))::after { content: " "; display: table; }
.fl-builder-content :where(.fl-module:not(:has(> .fl-module-content)))::after { clear: both; }
@media screen and (min-width: 768px) {
	.fl-builder-content :where(.fl-module:not(:has(> .fl-module-content))) { margin: 15rem 30rem; }
}
/* Strony na szablonie 2025 (strona główna itd.): motyw dawał owijce 15rem 0, a w „kropkach” bloga 0. */
body#body#body#body:where(.page-id-3191, .page-id-44, .page-template-template-page-2025) :where(.fl-module:not(:has(> .fl-module-content))) { margin: 15rem 0; }
body#body#body#body:where(.page-id-3191, .page-id-44, .page-template-template-page-2025) :where(.fl-module:not(:has(> .fl-module-content))):where(.home-blog-dots, .home-blog-dots *) { margin: 0; }

/* Kolumna z modułem tekstowym: moduły jeden pod drugim bez „sklejania” odstępów (jak dawniej owijka w owijce). */
.fl-builder-content .fl-col:not(.flex) > .fl-col-content:has(> .fl-module-rich-text) { display: flex; flex-direction: column; }

/* Beaver 2.11 zeruje odstęp pod ostatnim akapitem modułu tekstowego – przywrócenie odstępów motywu (te same wartości i kolejność co w motywie). */
.fl-builder-content .fl-rich-text p:last-child { margin-bottom: 10rem; }
@media screen and (min-width: 768px) {
	.fl-builder-content .fl-rich-text p:last-child:where(.offer__icon-text p) { margin-bottom: 14rem; }
	.fl-builder-content .fl-rich-text p:last-child:where(.text p) { margin-bottom: 20rem; }
}
@media screen and (min-width: 1080px) {
	.fl-builder-content .fl-rich-text p:last-child:where(.primary-content p, .do-you-know p) { margin-bottom: 26rem; }
	.fl-builder-content .fl-rich-text p:last-child:where(.primary-content p) { margin-bottom: 16rem; }
	.fl-builder-content .fl-rich-text p:last-child:where(.home__icon-text p + p) { margin-bottom: 0; }
}

/* Moduły, którym motyw ustawia własne marginesy (wtedy nasz odstęp ogólny nie działa) – dawny odstęp owijki jako wewnętrzny. */
/* Kalkulatory: nagłówek „Kalkulator kosztów” + podtytuł (motyw: margines dolny -30rem; Beaver: odstęp dolny 20px, na telefonie 10px). */
.fl-builder-content .fl-module.fl-node-5e2785e65ea71.header:not(:has(> .fl-module-content)) { padding: 12rem 25rem 10px; }
@media screen and (min-width: 768px) {
	.fl-builder-content .fl-module.fl-node-5e2785e65ea71.header:not(:has(> .fl-module-content)) { padding: 15rem 30rem 20px; }
}
/* Kalkulatory: tekst „Akcyza…” – od 1500 px motyw zerował górny i prawy odstęp owijki. */
@media screen and (min-width: 1500px) {
	.fl-builder-content .fl-module.fl-node-5e2786093417e.text:not(:has(> .fl-module-content)) { margin-top: 0; margin-right: 0; }
}
/* Ramka kalkulatora / formularza (motyw: własne marginesy i wypełnienie) – wypełnienie motywu + dawny odstęp owijki. */
.fl-builder-content .fl-module.fl-module-rich-text:is(.cform, .cost-calc) { padding: 42rem 25rem; }
@media screen and (min-width: 768px) {
	.fl-builder-content .fl-module.fl-module-rich-text:is(.cform, .cost-calc) { padding: 45rem 30rem; }
}
@media screen and (min-width: 960px) {
	.fl-builder-content .fl-module.fl-module-rich-text:is(.cform, .cost-calc) { padding: 45rem 60rem; }
}
@media screen and (min-width: 1080px) {
	.fl-builder-content .fl-module.fl-module-rich-text:is(.cform, .cost-calc) { padding: 41rem 68rem; }
	.fl-builder-content .fl-module.fl-module-rich-text.cform { padding-left: 65rem; padding-right: 65rem; }
}
/* ===== koniec poprawek 2 ===== */
