/* PROTERM UX-02-F (kopia, 2026-11-21, DEC-032) — stopka, newsletter i elementy globalne strony (wszystkie strony sklepu PL; plik dołączany tylko w języku pl).
   Grupy i linki stopki, adresy social, formularz newslettera, zgody i treści prawne — bez zmian (zmieniona tylko etykieta przycisku newslettera w szablonie motywu).
   Skala: tytuły 15,5 px / 700, linki 14,5 px, drobny druk 12,5–13 px; wiersz akordeonu ≥ 52 px; ikony social 44 px. */
#footer { --u2f-tlo: #2e2d31; --u2f-tekst: #f1f2f5; --u2f-tekst-2: #c3c7d0; --u2f-linia: rgba(255, 255, 255, .12); --u2f-niebieski: #2271ce; }

/* ---------- 1. Newsletter — DEC-033: blok UKRYTY w sklepie PL. Formularz nie zapisuje adresów (szablon motywu bez pola wymaganego przez moduł — docs/40 §5.2),
   więc nie pokazujemy go użytkownikom. Moduł ps_emailsubscription, konfiguracja, dane, integracje, captcha i treści prawne — bez zmian.
   Przywrócenie (po naprawie wg planu docs/40 §5.4): usunąć dwie poniższe reguły — dalsze style karty newslettera pozostają gotowe. ---------- */
#footer > .container .block_newsletter { display: none !important; }
#footer > .container { padding-top: 0 !important; padding-bottom: 0 !important; }
/* wygląd karty newslettera (nieaktywny, gotowy do przywrócenia) */
#footer.l-footer { background: #fff; margin-top: 0; padding-top: 0; }
#footer > .container { background: transparent !important; }
#footer.l-footer { margin-top: 24px !important; } /* odstęp treści od stopki (dotąd zapewniał go blok newslettera) */
#footer > .container > .row { margin: 0; justify-content: center; }
#footer .block_newsletter { flex: 0 0 100% !important; max-width: 1080px !important; margin: 0 auto !important; padding: 18px 18px 14px !important; background: #f3f5f8 !important; border-radius: 16px; display: block !important; }
#footer .block_newsletter > .row { align-items: center; row-gap: 10px; margin: 0; }
#footer .block_newsletter > .row > * { padding-left: 0 !important; padding-right: 0 !important; }
#footer #block-newsletter-label { text-transform: none !important; letter-spacing: 0 !important; font-size: 16.5px !important; font-weight: 700 !important; color: #1f2328 !important; line-height: 1.35; margin: 0 !important; }
#footer .block_newsletter .input-group { flex-wrap: nowrap; }
#footer .block_newsletter .form-control { min-height: 48px; font-size: 16px; color: #1f2328; background: #fff; border: 1px solid #cfd6df !important; border-right: 0 !important; border-radius: 12px 0 0 12px !important; box-shadow: none; }
#footer .block_newsletter .form-control::placeholder { color: #7a828e; opacity: 1; }
#footer .block_newsletter .form-control:focus { border-color: var(--u2f-niebieski) !important; box-shadow: 0 0 0 3px rgba(34, 113, 206, .2); outline: 0; }
#footer .block_newsletter .input-group > .form-control { flex: 1 1 auto !important; width: 1% !important; max-width: none !important; margin: 0 !important; }
#footer .block_newsletter .input-group-append { margin: 0 !important; display: flex; }
#footer .block_newsletter .newsbtn { min-height: 48px; margin: 0 !important; padding: 0 18px !important; border-radius: 0 12px 12px 0 !important; background: var(--u2f-niebieski) !important; color: #fff !important;
  border: 1px solid var(--u2f-niebieski) !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 15px !important; font-weight: 700 !important; white-space: nowrap; box-shadow: none !important; }
#footer .block_newsletter .newsbtn:hover { background: #1b5fae !important; border-color: #1b5fae !important; }
#footer .block_newsletter .newsbtn:focus-visible { outline: 3px solid rgba(34, 113, 206, .5); outline-offset: 2px; }
#footer .block_newsletter .small, #footer .block_newsletter .small.mt-2 { font-size: 12.5px !important; font-weight: 400 !important; color: #5b6470 !important; line-height: 1.5; margin: 8px 0 0 !important; text-transform: none !important; }
#footer .block_newsletter .alert { margin: 8px 0 0 !important; font-size: 14px; border-radius: 10px; }
@media (min-width: 992px) {
  #footer .block_newsletter { padding: 20px 28px !important; }
  #footer #block-newsletter-label { font-size: 18px !important; padding-right: 28px !important; }
}

/* ---------- 2. Stopka — układ, ikony social, tytuły, linki, kontakt ---------- */
#footer .footer-container { background: var(--u2f-tlo) !important; padding: 36px 15px 20px !important; }
#footer .footer-container > .container { max-width: 1200px; }
/* ikony social: nowoczesne ikony SVG w okręgach 44 px (adresy i podpisy linków — bez zmian; podpis „Facebook” itp. czytany przez czytniki ekranu) */
#footer .social-sharing { display: flex !important; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 10px; padding-top: 4px; padding-bottom: 18px; }
#footer .social-share-btn--footer { width: 44px !important; height: 44px !important; margin: 0 !important; border-radius: 50% !important; background-color: rgba(255, 255, 255, .06) !important; border: 1px solid rgba(255, 255, 255, .3) !important;
  background-size: 20px 20px !important; background-position: center !important; background-repeat: no-repeat !important; box-shadow: none !important; transition: background-color .15s ease, border-color .15s ease; }
#footer .social-share-btn--footer:hover { background-color: rgba(255, 255, 255, .14) !important; border-color: rgba(255, 255, 255, .55) !important; }
#footer .social-share-btn--footer:focus-visible { outline: 3px solid #8ab8f0; outline-offset: 2px; }
#footer .social-share-btn--footer.facebook { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M13.5 22v-8h2.7l.4-3.2h-3.1V8.8c0-.9.3-1.6 1.6-1.6h1.7V4.4c-.3 0-1.3-.1-2.5-.1-2.5 0-4.1 1.5-4.1 4.2v2.3H7.4V14h2.8v8z'/%3E%3C/svg%3E") !important; }
#footer .social-share-btn--footer.youtube { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' fill-rule='evenodd' d='M21.6 7.2a2.5 2.5 0 0 0-1.8-1.8C18.2 5 12 5 12 5s-6.2 0-7.8.4a2.5 2.5 0 0 0-1.8 1.8C2 8.8 2 12 2 12s0 3.2.4 4.8a2.5 2.5 0 0 0 1.8 1.8C5.8 19 12 19 12 19s6.2 0 7.8-.4a2.5 2.5 0 0 0 1.8-1.8c.4-1.6.4-4.8.4-4.8s0-3.2-.4-4.8zM10 15V9l5.2 3z'/%3E%3C/svg%3E") !important; }
#footer .social-share-btn--footer.pinterest { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2a10 10 0 0 0-3.6 19.3c-.1-.8-.2-2 0-2.9l1.2-5.1s-.3-.6-.3-1.5c0-1.4.8-2.5 1.9-2.5.9 0 1.3.7 1.3 1.5 0 .9-.6 2.3-.9 3.5-.3 1.1.5 1.9 1.6 1.9 1.9 0 3.3-2 3.3-4.8 0-2.5-1.8-4.3-4.4-4.3-3 0-4.8 2.3-4.8 4.6 0 .9.3 1.9.8 2.4.1.1.1.2.1.3l-.3 1.2c0 .2-.2.2-.4.1-1.4-.6-2.2-2.6-2.2-4.2 0-3.4 2.5-6.6 7.2-6.6 3.8 0 6.7 2.7 6.7 6.3 0 3.7-2.4 6.8-5.6 6.8-1.1 0-2.2-.6-2.5-1.3l-.7 2.6c-.2.9-.9 2.1-1.3 2.8A10 10 0 1 0 12 2z'/%3E%3C/svg%3E") !important; }
#footer .social-share-btn--footer.instagram { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 8.2a3.2 3.2 0 1 1 0-6.4 3.2 3.2 0 0 1 0 6.4zm5.2-9.6a1.2 1.2 0 1 0 0 2.4 1.2 1.2 0 0 0 0-2.4zM12 3.8c2.7 0 3 0 4 .1 2.7.1 4 1.4 4.1 4.1.1 1 .1 1.3.1 4s0 3-.1 4c-.1 2.7-1.4 4-4.1 4.1-1 .1-1.3.1-4 .1s-3 0-4-.1c-2.7-.1-4-1.4-4.1-4.1-.1-1-.1-1.3-.1-4s0-3 .1-4C4 5.3 5.3 4 8 3.9c1-.1 1.3-.1 4-.1zM12 2c-2.7 0-3.1 0-4.1.1C4.3 2.2 2.2 4.3 2.1 7.9 2 8.9 2 9.3 2 12s0 3.1.1 4.1c.1 3.6 2.2 5.7 5.8 5.8 1 .1 1.4.1 4.1.1s3.1 0 4.1-.1c3.6-.1 5.7-2.2 5.8-5.8.1-1 .1-1.4.1-4.1s0-3.1-.1-4.1c-.1-3.6-2.2-5.7-5.8-5.8C15.1 2 14.7 2 12 2z'/%3E%3C/svg%3E") !important; }
/* tytuły grup i linki */
#footer .footer-container .footer__title { text-transform: none !important; letter-spacing: 0 !important; font-size: 15.5px !important; font-weight: 700 !important; color: #fff !important; }
#footer .footer-container .footer__title--desktop { margin: 0 0 10px !important; }
#footer .footer-container ul { margin: 0; padding: 0; list-style: none; }
#footer .footer-container li { margin: 0; }
#footer .footer-container li a, #footer #footer_store_info a { color: var(--u2f-tekst-2) !important; font-size: 14.5px !important; font-weight: 400 !important; line-height: 1.45; display: inline-block; padding: 5px 0; text-decoration: none; text-transform: none !important; }
#footer .footer-container li a:hover, #footer #footer_store_info a:hover { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
#footer .footer-container li a:focus-visible, #footer #footer_store_info a:focus-visible, #footer .footer__title--mobile:focus-visible { outline: 2px solid #8ab8f0; outline-offset: 2px; border-radius: 2px; }
#footer #footer_store_info { color: var(--u2f-tekst-2) !important; font-size: 14.5px !important; line-height: 1.7 !important; font-weight: 400 !important; white-space: normal !important; } /* motyw: nowrap — adres e-mail wychodził poza kolumnę przy 1024 px */
#footer #footer_store_info span { color: #fff; font-weight: 600; white-space: nowrap; } /* numer telefonu bez łamania */
#footer #footer_store_info a { overflow-wrap: anywhere; } /* długi adres e-mail w wąskiej kolumnie (1024 px) — bez przewijania w bok */
#footer .footer-container .row > * { min-width: 0; }
/* stopka strony — prawa autorskie */
#footer .footer-container p.text-center { margin: 22px 0 0 !important; padding: 16px 0 0 !important; border-top: 1px solid var(--u2f-linia); }
#footer .footer-container p.text-center a { color: #9ea3ae !important; font-size: 13px !important; text-decoration: none; cursor: default; }
@media (min-width: 992px) {
  /* desktop: listy grup zawsze widoczne (klasa „collapse” służy tylko akordeonom na telefonie) */
  #footer .footer-container .collapse, #footer .footer-container #footer_store_info { display: block !important; height: auto !important; visibility: visible !important; }
  /* motyw ukrywa na desktopie tytuły „desktop” i pokazuje jako nagłówki przełączniki akordeonu — tu zwykłe nagłówki bez strzałki */
  #footer .footer-container .footer__title--mobile { display: block !important; pointer-events: none; cursor: default; border: 0 !important; padding: 0 !important; margin: 0 0 10px !important; min-height: 0; text-decoration: none; }
  #footer .footer-container .footer__title--mobile::after { display: none !important; }
  #footer .footer-container { padding: 44px 24px 22px !important; }
  /* desktop: kolumna ikon tylko tak szeroka jak ikony, cztery grupy dzielą resztę (kontakt nieco szerszy) — bez łamania numeru i nazw */
  #footer .footer-container .container > .row:first-child { flex-wrap: nowrap; justify-content: space-between; column-gap: 32px; }
  #footer .footer-container .social-sharing { flex: 0 0 auto !important; max-width: none !important; width: auto !important; padding-right: 8px; }
  #footer .footer-container .row > .col-lg-3 { flex: 1 1 0 !important; max-width: none !important; width: auto !important; padding-top: 6px; }
  #footer .footer-container .row > .block-contact { flex-grow: 1.35 !important; }
}
/* telefon i tablet (< 992 px): akordeony — jeden tytuł (dotąd przy 768–991 px widoczne dwa), lekkie linie, wiersz ≥ 52 px; kontakt zawsze widoczny */
@media (max-width: 991.98px) {
  #footer .footer-container .footer__title--desktop { display: none !important; }
  #footer .footer-container .footer__title--mobile { display: flex !important; align-items: center; justify-content: space-between; min-height: 52px; margin: 0 !important; padding: 12px 2px !important;
    border-bottom: 1px solid var(--u2f-linia) !important; position: relative; text-decoration: none; }
  #footer .footer-container .footer__title--mobile::after { display: block !important; content: "" !important; position: static !important; width: 9px; height: 9px; margin: 0 6px 4px 0;
    border-right: 2px solid #c9ccd4; border-bottom: 2px solid #c9ccd4; transform: rotate(45deg); font-family: inherit !important; transition: transform .2s ease; }
  #footer .footer-container .footer__title--mobile[aria-expanded="true"]::after { transform: rotate(-135deg); margin-bottom: -4px; }
  #footer .footer-container .collapse.show, #footer .footer-container .collapsing { padding: 6px 2px 12px; }
  #footer .footer-container .row > [class*="col-"], #footer .footer-container .links { padding-left: 0; padding-right: 0; flex: 0 0 100%; max-width: 100%; }
  #footer .footer-container .row { margin-left: 0; margin-right: 0; }
  #footer .block-contact .footer__title--mobile { pointer-events: none; cursor: default; }
  #footer .block-contact .footer__title--mobile::after { display: none !important; }
  #footer #footer_store_info { display: block !important; height: auto !important; visibility: visible !important; padding: 10px 2px 4px; }
}
@media (prefers-reduced-motion: reduce) { #footer .footer-container .footer__title--mobile::after, #footer .social-share-btn--footer { transition: none; } }
/* odstęp motywu pod stroną (body: 90 px przy ≤ 768 px — rezerwa na elementy pływające) przeniesiony do wnętrza stopki, bez białego pasa pod nią */
@media (max-width: 768px) {
  body { padding-bottom: 0 !important; }
  #footer .footer-container { padding-bottom: 106px !important; }
}

/* ---------- 3. Nagłówek strony przy 768–991 px — warstwa jak na telefonie i desktopie (motyw zeruje ją tylko w tym przedziale: karty list rysowały się nad nagłówkiem) ---------- */
@media (min-width: 768px) and (max-width: 991.98px) {
  .topnavbar.fixedElement { z-index: 10000; background: #fff; box-shadow: 0 1px 0 #e3e8ef; }
  /* podpowiedzi wyszukiwarki (z-index 9999 z modułu) nad nagłówkiem — inaczej pierwsza podpowiedź chowa się pod paskiem menu */
  .autocomplete-suggestions { z-index: 10001 !important; }
}

/* ---------- 4. Plakietka Trusted Shops (telefon i tablet): prawy dolny róg, mniejsza — lewy dolny róg zajmuje czat edrone (przycisk i zaproszenie), więc plakietka nie nachodzi na czat
   ani na ostatnie wiersze stopki. Działanie, treść i odnośnik plakietki bez zmian; koszyk i checkout — bez zmian (tam porządek nakładek należy do pakietu UX-01-A). ---------- */
@media (max-width: 991.98px) {
  body:not(#cart):not(#module-thecheckout-order) [id^="trustbadge-container-"] div:has(> [data-testid="minimized-trustbadge-floating"]) { left: auto !important; right: 10px !important; bottom: 12px !important; }
  body:not(#cart):not(#module-thecheckout-order) [data-testid="minimized-trustbadge-floating"] { transform: scale(.72) !important; transform-origin: right bottom !important; }
}
/* tablet 768–991 px: pod stopką rezerwa na plakietkę, żeby na końcu strony nie zasłaniała linków; w koszyku i checkoutcie plakietka zostaje na swoim miejscu
   (po lewej, pełny rozmiar — po prawej nachodziłaby na „Przejdź do realizacji”), więc tam rezerwa większa */
@media (min-width: 768px) and (max-width: 991.98px) {
  #footer .footer-container { padding-bottom: 150px !important; }
  body#cart #footer .footer-container, body#module-thecheckout-order #footer .footer-container { padding-bottom: 200px !important; }
}
/* zgodność z pakietem UX-01-A (jeśli zostanie wdrożony): gdy na karcie produktu widoczny jest przyklejony pasek koszyka, plakietka nad paskiem (bez A reguła nie działa) */
@media (max-width: 767.98px) {
  body:has(#ux-sticky-koszyk.ux-widoczny) [id^="trustbadge-container-"] div:has(> [data-testid="minimized-trustbadge-floating"]) { bottom: 84px !important; }
}
