/* Farma — Zgody RODO: baner i modal ustawień cookies.
   Język wizualny motywu zeta: przyciski .btn/.btn-primary/.btn-white, checkbox .input-box-check,
   modal jak #zetModal (nagłówek 52 px z cieniem, na telefonie arkusz od dołu z promieniem 16 px),
   karty jak na stronie głównej (ramka #e5e7eb, promień 12 px, cień rozwijanych list). */

.fz-root { font-family: var(--mb-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif); color: var(--mb-color2, #2c2c2c); }
.fz-root [hidden] { display: none !important; }
.fz-root *, .fz-root *:before, .fz-root *:after { box-sizing: border-box; }
#fz-root h2.fz-title, #fz-root h2.fz-head-title { display: block; margin: 0; padding: 0; letter-spacing: normal; text-align: inherit; }

/* ---------- Baner (nieblokujący, bez zasłony) ---------- */
.fz-banner {
  position: fixed; z-index: 9000; left: 16px; bottom: 16px;
  width: 460px; max-width: calc(100% - 32px);
  background: #fff; border: 1px solid var(--fg-border, #e5e7eb); border-radius: var(--fg-radius, 12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .14);
  padding: 16px 18px; font-size: 14px; line-height: 20px;
}
#fz-root .fz-banner .fz-title { font-size: 16px; line-height: 22px; font-weight: 700; color: #111; margin: 0 0 6px 0; }
.fz-banner p { margin: 0 0 6px 0; font-size: 13.5px; line-height: 19px; color: var(--mb-color3, #3c3c3c); }
.fz-banner a, .fz-modal a { color: var(--fg-green, #2a7d1f); font-weight: 600; text-decoration: underline; }
.fz-banner a:hover, .fz-modal a:hover { text-decoration: none; }

.fz-banner-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.fz-banner-buttons .fz-btn[data-fz="settings"] { grid-column: 1 / -1; }

.fz-root .fz-btn { width: 100%; height: auto; min-height: 40px; margin: 0; padding: 9px 12px; font-size: 15px; line-height: 20px; font-family: inherit; white-space: normal; }
.fz-root .fz-btn:focus { box-shadow: 0 2px 5px rgba(0, 0, 0, .1); }
/* Strona główna (home-redesign): przyciski jak „Dodaj ogłoszenie” / „Szukaj” w nowym nagłówku — #2a7d1f, promień 8 px. */
body#home #fz-root .btn-primary { background: var(--fg-green, #2a7d1f); border-color: var(--fg-green, #2a7d1f); border-radius: 8px; }
body#home #fz-root .btn-primary:hover { background: var(--fg-green-hover, #1e5c15); }
body#home #fz-root .btn-white { border-radius: 8px; }
.fz-root .fz-btn:focus-visible, .fz-close:focus-visible, .fz-details summary:focus-visible, .fz-root a:focus-visible { outline: 2px solid var(--mb-color-primary, #346937); outline-offset: 2px; }

/* ---------- Modal ustawień (jak #zetModal) ---------- */
.fz-cover { position: fixed; inset: 0; z-index: 9998; background: rgba(0, 0, 0, .5); }
.fz-modal {
  position: fixed; z-index: 9999; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; max-width: calc(100% - 20px); max-height: calc(100% - 40px);
  display: flex; flex-direction: column;
  background: #fff; border-radius: 5px; box-shadow: 0 5px 30px rgba(0, 0, 0, .7);
}
.fz-head { position: relative; flex: none; height: 52px; padding: 16px 56px; text-align: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); border-radius: 5px 5px 0 0; z-index: 2; background: #fff; }
#fz-root .fz-head-title { font-size: 17px; line-height: 20px; font-weight: bold; color: var(--mb-color1, #1c1c1c); }
.fz-close {
  position: absolute; top: 9px; right: 15px; width: 34px; height: 34px; padding: 7px; margin: 0;
  border: 0; border-radius: 5px; background: #fff; color: var(--mb-color5, #5c5c5c); cursor: pointer; transition: .1s; line-height: 0;
}
.fz-close:hover { transform: scale(1.1); }
.fz-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 20px; font-size: 14px; line-height: 20px; }
.fz-intro { margin: 0 0 16px 0; color: var(--mb-color3, #3c3c3c); }

.fz-cat { border: 1px solid var(--fg-border, #e5e7eb); border-radius: 8px; padding: 12px 14px; margin: 0 0 10px 0; }
.fz-cat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; }
.fz-root .fz-check { width: auto; margin: 0; }
.fz-root .fz-check label { float: none; display: inline-block; font-size: 15px; line-height: 20px; font-weight: 700; color: #111; padding: 0 0 0 30px !important; }
.fz-root .fz-check label:hover { text-decoration: none; }
.fz-root .fz-check input:disabled + label { cursor: default; }
.fz-root .fz-check input:disabled + label:before, .fz-root .fz-check input:disabled + label:after { cursor: default; opacity: .55; }
.fz-root .fz-check input:focus-visible + label:before { outline: 2px solid var(--mb-color-primary, #346937); outline-offset: 2px; }
.fz-always { flex: none; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--mb-color-primary, #346937); background: var(--mb-color-primary-lighter, rgba(52, 105, 55, .12)); border-radius: 100px; padding: 3px 9px; }
.fz-desc { margin: 8px 0 6px 0; font-size: 13.5px; line-height: 19px; color: var(--mb-color3, #3c3c3c); }
.fz-details summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--fg-green, #2a7d1f); padding: 2px 0; width: max-content; max-width: 100%; }
.fz-services { margin: 8px 0 2px 0; padding: 0 0 0 18px; font-size: 13px; line-height: 18px; color: var(--mb-color3, #3c3c3c); }
.fz-services li { margin: 0 0 6px 0; list-style: disc; }
.fz-provider, .fz-cookies { color: var(--fg-muted, #6b7280); }
.fz-cookies { display: block; font-size: 12px; }
.fz-none { margin: 8px 0 0 0; font-size: 13px; color: var(--fg-muted, #6b7280); }

.fz-foot { flex: none; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--fg-border, #e5e7eb); }

.fz-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.fz-locked { overflow: hidden; }

/* ---------- Telefon / tablet (jak motyw: < 768 px) ---------- */
@media screen and (max-width: 767px) {
  .fz-banner {
    left: 8px; right: 8px; width: auto; max-width: none;
    bottom: calc(var(--fz-bottom, 0px) + 8px);
    padding: 14px 14px 12px 14px; max-height: calc(100vh - var(--fz-bottom, 0px) - 24px); overflow-y: auto;
  }
  #fz-root .fz-banner .fz-title { font-size: 15px; line-height: 20px; margin-bottom: 4px; }
  .fz-banner p { font-size: 13px; line-height: 18px; margin-bottom: 4px; }
  .fz-banner-buttons { margin-top: 10px; }
  .fz-root .fz-btn { font-size: 14px; padding: 9px 8px; }

  .fz-modal {
    top: auto; left: 0; right: 0; bottom: 0; transform: none;
    width: auto; max-width: 100%; max-height: 92%; border-radius: 16px 16px 0 0;
  }
  .fz-head { border-radius: 16px 16px 0 0; }
  .fz-body { padding: 16px; }
  .fz-foot { grid-template-columns: 1fr 1fr; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)) 16px; }
  .fz-foot .fz-btn[data-fz="save"] { grid-column: 1 / -1; order: -1; }
}

@media (prefers-reduced-motion: no-preference) {
  .fz-banner.fz-in { animation: fz-in .25s ease-out; }
  .fz-modal.fz-in { animation: fz-fade .2s ease-out; }
  @media screen and (max-width: 767px) { .fz-modal.fz-in { animation: fz-up .3s ease-out; } }
}
@keyframes fz-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fz-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fz-up { from { opacity: 0; transform: translateY(100px); } to { opacity: 1; transform: none; } }
