/**
 * FlowSite — pozostałe strony witryny w ramie panelu. Wymaga floworder.css (tokeny, rama).
 * Treść zostaje z Elementora/formularzy; tu: typografia (Quicksand zamiast Sen + Poppins — Michał 23.08),
 * szerokości, lista wpisów, 404. Ikony (Font Awesome, ElementsKit) NIE dostają naszego fontu.
 */
body.fo-site-body { font-family: "Quicksand", -apple-system, "Segoe UI", Arial, sans-serif; color: var(--fo-ink, #111); }
/* Cudze okna (lightbox/popup Elementora, select2) muszą zostać widoczne — reguła ukrywania obcych dzieci body ich nie dotyczy. */
body.fo-app-body.fo-site-body > :not(.fo-app):not(#wpadminbar):not(.joinchat):not(script):not(style):not(link):not(noscript):not(.elementor-lightbox):not([id^="elementor-popup"]):not(.dialog-widget):not(.select2-container):not(.pswp):not(.gform_confirmation_wrapper) { display: none !important; }

/* Kit Elementora koloruje każde <a> (body.elementor-kit-N a) — rama ma własne kolory. */
.fo-site-body .fo-app :is(.fo-topbar, .fo-header, .fo-footer, .fo-acctnav, .fo-site-wrap) a { color: inherit; }
.fo-site-body .fo-app .fo-btn, .fo-site-body .fo-app .fo-btn-pill { color: #fff !important; }
.fo-site-body .fo-app .fo-btn-ghost { color: var(--fo-ink) !important; }
.fo-site-body .fo-app .fo-topbar a { color: #fff; }

/* Zmienne globalne typografii Elementora (kit) — Quicksand we wszystkich czterech. */
.fo-site-content, .fo-site-body .elementor-kit-14, .fo-site-body [class*="elementor-kit-"] {
	--e-global-typography-primary-font-family: "Quicksand";
	--e-global-typography-secondary-font-family: "Quicksand";
	--e-global-typography-text-font-family: "Quicksand";
	--e-global-typography-accent-font-family: "Quicksand";
}
/* Twarda podmiana fontu w treści: inline CSS widgetów Elementora ma font-family: "Sen" bez !important. */
.fo-site-content :not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.icon):not([class^="eicon"]):not([class*=" eicon"]):not([class^="icon-"]):not([class*=" icon-"]):not(svg):not(path) { font-family: "Quicksand", -apple-system, "Segoe UI", Arial, sans-serif !important; }
.fo-site-content i[class*="fa-"], .fo-site-content .fa, .fo-site-content .fas, .fo-site-content .far, .fo-site-content .fab { font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands", "Font Awesome 6 Free", "Font Awesome 6 Brands", FontAwesome !important; }

/* ---- układ treści */
.fo-app .fo-site-main { padding: 0 0 40px; }
.fo-app .fo-site-wrap { max-width: 1220px; margin: 0 auto; padding: 22px 28px 0; }
.fo-app .fo-site-narrow { max-width: 720px; }
.fo-app .fo-site-titlebar { padding-bottom: 6px; }
.fo-app .fo-site-titlebar .fo-h1 { font-size: 26px; margin: 0; }
.fo-app .fo-site-content { width: 100%; min-width: 0; }
.fo-app .fo-site-content:not(.fo-site-prose) { padding-top: 0; }
.fo-app .fo-site-lead { font-size: 14px; color: var(--fo-muted); line-height: 1.7; margin: 8px 0 18px; }
/* Treść „zwykła” (Regulamin, Polityka, wpisy bez Elementora) — czytelna proza. */
.fo-app .fo-site-prose { font-size: 14px; line-height: 1.75; color: var(--fo-text); max-width: 860px; }
.fo-app .fo-site-prose h1, .fo-app .fo-site-prose h2, .fo-app .fo-site-prose h3, .fo-app .fo-site-prose h4 { color: var(--fo-ink); font-weight: 800; line-height: 1.25; margin: 28px 0 10px; }
.fo-app .fo-site-prose h2 { font-size: 20px; }
.fo-app .fo-site-prose h3 { font-size: 16px; }
.fo-app .fo-site-prose p, .fo-app .fo-site-prose ul, .fo-app .fo-site-prose ol { margin: 0 0 14px; }
.fo-app .fo-site-prose ul, .fo-app .fo-site-prose ol { padding-left: 22px; }
.fo-app .fo-site-prose li { margin: 4px 0; }
.fo-app .fo-site-prose a { text-decoration: underline; text-underline-offset: 2px; }
.fo-app .fo-site-prose table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 0 0 16px; }
.fo-app .fo-site-prose th, .fo-app .fo-site-prose td { border: 1px solid var(--fo-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.fo-app .fo-site-prose img { border-radius: 8px; }
.fo-app .fo-site-prose blockquote { border-left: 3px solid var(--fo-ink); margin: 0 0 14px; padding: 4px 0 4px 16px; color: var(--fo-muted); }
/* Elementor: kontenery pełnej szerokości — w ramie nie ma paddingu motywu. */
.fo-app .fo-site-content > .elementor { width: 100%; }
.fo-site-body .e-con.e-con-full, .fo-site-body .elementor-section.elementor-section-full_width { max-width: 100%; }
.fo-site-body .elementor-section.elementor-section-boxed > .elementor-container, .fo-site-body .e-con-boxed > .e-con-inner { max-width: 1220px; }
/* Formularze w treści (CF7, Gravity, FlowRegister) — pola w stylu panelu. */
.fo-site-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]):not(.fr-input):not(.fo-input), .fo-site-content textarea:not(.fr-input), .fo-site-content select:not(.fr-input) { font-family: inherit; font-size: 13.5px; border: 1px solid var(--fo-line-input); border-radius: 8px; background: #fff; padding: 10px 12px; box-sizing: border-box; max-width: 100%; }
.fo-site-content input:focus, .fo-site-content textarea:focus { border-color: var(--fo-ink); outline: none; box-shadow: 0 0 0 3px rgba(17, 17, 17, .06); }
.fo-site-content .wpcf7-submit, .fo-site-content .gform_button, .fo-site-content input[type="submit"]:not(.fr-btn) { background: var(--fo-ink); color: #fff; border: 1px solid var(--fo-ink); border-radius: 8px; font-weight: 800; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; padding: 13px 22px; cursor: pointer; font-family: inherit; }
.fo-site-content .wpcf7-submit:hover, .fo-site-content .gform_button:hover { opacity: .88; }
.fo-site-content .wpcf7-not-valid-tip { font-size: 11.5px; color: var(--fo-red); }
.fo-site-content .wpcf7-response-output { border: 1px solid var(--fo-line) !important; border-left: 4px solid var(--fo-green-dark) !important; border-radius: 8px; padding: 12px 16px !important; margin: 16px 0 0 !important; font-size: 12.5px; font-weight: 600; }
.fo-site-content .wpcf7-form.invalid .wpcf7-response-output { border-left-color: var(--fo-red) !important; }

/* ---- lista wpisów (blog, archiwa, szukaj) */
.fo-app .fo-site-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.fo-app .fo-site-card { border: 1px solid var(--fo-line); border-radius: 12px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.fo-app .fo-site-card-thumb img { width: 100%; height: 180px; object-fit: cover; display: block; }
.fo-app .fo-site-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fo-app .fo-site-card-title { font-size: 15px; font-weight: 800; line-height: 1.3; margin: 0; }
.fo-app .fo-site-card-title a:hover { text-decoration: underline; }
.fo-app .fo-site-card-meta { font-size: 11px; color: var(--fo-dim); font-weight: 600; }
.fo-app .fo-site-card-excerpt { font-size: 12.5px; color: var(--fo-muted); line-height: 1.6; margin: 2px 0 0; flex: 1; }
.fo-app .fo-site-card-more { font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; margin-top: 6px; }
.fo-app .fo-site-pagination { display: flex; justify-content: center; margin-top: 22px; }
.fo-app .fo-site-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.fo-app .fo-site-pagination .page-numbers { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--fo-line); border-radius: 8px; font-size: 12px; font-weight: 700; }
.fo-app .fo-site-pagination .page-numbers.current { background: var(--fo-ink); color: #fff; border-color: var(--fo-ink); }
.fo-app .fo-site-pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

/* ---- 404 / kategorie */
.fo-app .fo-site-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.fo-app .fo-site-cats a { border: 1px solid var(--fo-line); border-radius: 999px; padding: 8px 14px; font-size: 12px; font-weight: 700; }
.fo-app .fo-site-cats a:hover { border-color: var(--fo-ink); }

@media (max-width: 900px) {
	.fo-app .fo-site-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fo-app .fo-site-wrap { padding: 16px 16px 0; }
}
@media (max-width: 600px) {
	.fo-app .fo-site-list { grid-template-columns: 1fr; }
	.fo-app .fo-site-titlebar .fo-h1 { font-size: 22px; }
}

/* ---- karta konta zalogowanego (w miejscu formularza rejestracji na stronie głównej) */
.fo-site-body .fo-acard { border: 1px solid var(--fo-line); border-radius: 16px; background: #fff; padding: 26px 28px 24px; box-shadow: 0 18px 50px rgba(0, 0, 0, .06); display: flex; flex-direction: column; gap: 14px; font-family: "Quicksand", sans-serif; }
.fo-site-body .fo-acard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.fo-site-body .fo-acard-hello { font-size: 12px; color: var(--fo-dim); font-weight: 600; }
.fo-site-body .fo-acard-company { font-size: 22px; font-weight: 800; line-height: 1.2; color: var(--fo-ink); }
.fo-site-body .fo-acard-status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 11px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.fo-site-body .fo-acard-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fo-site-body .fo-acard-status.is-ok { background: #e9f9f0; color: var(--fo-green-dark); }
.fo-site-body .fo-acard-status.is-wait { background: #fff7e8; color: var(--fo-amber-dark); }
.fo-site-body .fo-acard-status.is-off { background: #fdecea; color: var(--fo-red); }
.fo-site-body .fo-acard-text { font-size: 13px; color: var(--fo-muted); line-height: 1.65; margin: 0; }
.fo-site-body .fo-acard-block { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border: 1px solid var(--fo-line); border-radius: 10px; padding: 13px 16px; background: var(--fo-bg-soft); }
.fo-site-body .fo-acard-block-l { min-width: 0; flex: 1; }
.fo-site-body .fo-acard-label { font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: #7c7c7c; margin-bottom: 3px; }
.fo-site-body .fo-acard-value { font-size: 13px; color: var(--fo-text); line-height: 1.5; }
.fo-site-body .fo-acard-value a { text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.fo-site-body .fo-acard-ostatus { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--c, var(--fo-ink)); border: 1px solid color-mix(in srgb, var(--c, #111) 40%, transparent); }
.fo-site-body .fo-acard-reorder { margin: 0; }
.fo-site-body .fo-acard .fo-btn { padding: 12px 16px; }
.fo-site-body .fo-acard-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fo-site-body .fo-acard-stats > div { border: 1px solid var(--fo-line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.fo-site-body .fo-acard-stats b { font-size: 18px; font-weight: 800; color: var(--fo-ink); }
.fo-site-body .fo-acard-stats span { font-size: 11px; color: var(--fo-dim); font-weight: 600; }
.fo-site-body .fo-acard-links { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--fo-line); padding-top: 14px; }
.fo-site-body .fo-acard-links a { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #d9d9d9; border-radius: 999px; padding: 8px 13px; font-size: 12px; font-weight: 700; color: var(--fo-ink); }
.fo-site-body .fo-acard-links a:hover { border-color: var(--fo-ink); }
.fo-site-body .fo-acard-manager { display: flex; align-items: center; gap: 12px; font-size: 12.5px; }
.fo-site-body .fo-acard-manager .fo-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--fo-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex: none; }
.fo-site-body .fo-acard-manager b { display: block; }
.fo-site-body .fo-acard-manager small { color: var(--fo-muted); font-size: 11.5px; }
.fo-site-body .fo-acard-manager small a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) { .fo-site-body .fo-acard { padding: 18px; } .fo-site-body .fo-acard-stats { grid-template-columns: 1fr; } }
/* Zalogowany: przycisk „Login” z sekcji hero (Elementor) nie ma sensu — lista produktów jest w nagłówku. */
.fo-site-body.logged-in .fo-site-content .elementor-button[href*="/moje-konto"] { display: none; }
.fo-site-body .fo-acard-saved { background: #e9f9f0; border-color: #bfe9cf; }
.fo-site-body .fo-acard-saved .fo-acard-label { color: var(--fo-green-dark); }
.fo-site-body .fo-acard-saved b { color: var(--fo-green-dark); }
