/* ======================================================
   COOKIE CONSENT — DOCK RIGHT (FAB SAFE)
====================================================== */
/* ======================================================
   ZMIENNE
====================================================== */
:root {
  --cookie-bg: #347cb3;
  --cookie-text: #ffffff;
  --cookie-shadow: rgba(0,0,0,0.25);
}
/* ======================================================
   ROOT KOMPONENTU — CONTROLLED RESET
====================================================== */
#cookie-consent,
#cookie-consent * {
  font: normal 400 14px/1.45
        system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  color: var(--cookie-text);
  letter-spacing: normal;
  text-transform: none;
}
#cookie-consent,
#cookie-consent *,
#cookie-consent *::before,
#cookie-consent *::after {
  box-sizing: border-box;
}
#cookie-consent[hidden] {
  display: none;
}
/* ======================================================
   POZYCJONOWANIE — DOMYŚLNIE MOBILE
====================================================== */
#cookie-consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(64px + 12px); /* nad mobile-footer */
  z-index: 9999;
}
/* ======================================================
   PANEL
====================================================== */
.cookie-consent__inner {
  position: relative;
  width: 100%;
  padding: 16px 18px 14px;
  background: rgba(52, 124, 179, 0.92);
  color: var(--cookie-text);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(2px);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
/* ======================================================
   TYTUŁ — BEZ ::after
====================================================== */
#cookie-consent h2,
#cookie-title {
  margin: 0 0 8px;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
}
/* usuwa linię z section-title */
#cookie-consent h2::after {
  content: none !important;
}
/* ======================================================
   OPIS
====================================================== */
#cookie-consent p,
#cookie-desc {
  margin: 0 0 10px;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}
/* ======================================================
   LINK
====================================================== */

#cookie-consent a {
  color: #eaf2ff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
}

#cookie-consent a:hover {
  text-decoration: underline;
}

/* ======================================================
   ACTIONS
====================================================== */

.cookie-consent__actions {
  margin: 0;
  padding: 0;

  display: flex;
  justify-content: flex-end;
}

/* ======================================================
   BUTTON — AKCEPTUJĘ
====================================================== */

.cookie-consent__accept,
.cookie-consent__reject {
  appearance: none;
  border: none;

  background: #ffffff;
  color: #347cb3 !important;

  font-size: 0.85rem;
  font-weight: 600;

  padding: 8px 18px;
  min-height: 36px;

  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}

.cookie-consent__accept,
.cookie-consent__reject {
  background: #f1f5f9;
}

.cookie-consent__accept,
.cookie-consent__reject {
  transform: scale(0.96);
}

/* ======================================================
   CLOSE (X)
====================================================== */

.cookie-consent__close {
  position: absolute;
  top: 12px;
  right: 12px;

  padding: 6px;
  margin: 0;

  background: transparent;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 8px;

  color: rgba(255,255,255,0.92);
  font-size: 1.35rem;
  line-height: 1;

  cursor: pointer;
}

.cookie-consent__close:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.7);
}

.cookie-consent__close:active {
  transform: scale(0.96);
}

/* ======================================================
   TABLET (768–1023)
====================================================== */

@media (min-width: 768px) {

  #cookie-consent {
    left: auto;
    right: 88px;     /* miejsce na FAB */
    bottom: 160px;   /* odskocznia UX */
  }

  .cookie-consent__inner {
    width: 520px;
  }
}

/* ======================================================
   DESKTOP (≥1024)
====================================================== */

@media (min-width: 1024px) {

  #cookie-consent {
    bottom: 24px;    /* ten sam poziom co FAB */
  }

  .cookie-consent__inner {
    width: 560px;
  }
}
