/* ═══════════════════════════════════════════════════════════════
   COOKIE CONSENT BANNER — Wyższy Kadr
   Dopasowany do systemu wizualnego strony:
   tło #111 · tekst #f0ede8 · Helvetica Neue · bez border-radius poza banerem
   ═══════════════════════════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9998;

  max-width: 560px;
  width: calc(100% - 64px);

  /* Glassmorphism — dopasowany do nav (rgba 17,17,17 + blur) */
  background: rgba(13, 12, 11, 0.90);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);

  border: 1px solid rgba(240, 237, 232, 0.09);
  border-radius: 20px;

  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 4px  20px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(240, 237, 232, 0.06);

  /* Domyślnie ukryty — pojawi się przez JS */
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;

  transition:
    opacity  0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Klasa dodawana przez JS po załadowaniu strony */
.cookie-banner--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Klasa dodawana przy zamykaniu */
.cookie-banner--hiding {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity  0.3s cubic-bezier(0.4, 0, 1, 1),
    transform 0.3s cubic-bezier(0.4, 0, 1, 1);
  pointer-events: none;
}

/* ── Wnętrze ──────────────────────────────────────────────────── */

.cookie-banner__inner {
  padding: 28px 30px 26px;
}

/* ── Nagłówek ─────────────────────────────────────────────────── */

.cookie-banner__header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.cookie-banner__icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.cookie-banner__title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f0ede8;
  line-height: 1;
}

/* ── Opis ─────────────────────────────────────────────────────── */

.cookie-banner__desc {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.78;
  color: rgba(240, 237, 232, 0.48);
  margin-bottom: 16px;
}

/* ── Link Polityka Cookies ────────────────────────────────────── */

.cookie-banner__link {
  display: inline-block;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.32);
  text-decoration: none;

  /* Subtelne podkreślenie jak w reszcie strony */
  border-bottom: 1px solid rgba(240, 237, 232, 0.14);
  padding-bottom: 1px;

  margin-bottom: 22px;

  transition: color 0.2s, border-color 0.2s;
}

.cookie-banner__link:hover {
  color: rgba(240, 237, 232, 0.7);
  border-color: rgba(240, 237, 232, 0.38);
}

/* ── Rozdzielnik przed przyciskami ───────────────────────────── */

.cookie-banner__divider {
  height: 1px;
  background: rgba(240, 237, 232, 0.06);
  margin: 0 0 20px;
}

/* ── Przyciski ────────────────────────────────────────────────── */

.cookie-banner__actions {
  display: flex;
  gap: 10px;
}

.cookie-banner__btn {
  flex: 1;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 10px;
  padding: 13px 16px;
  cursor: pointer;
  transition:
    background  0.2s ease,
    color       0.2s ease,
    border-color 0.2s ease,
    transform   0.15s ease,
    box-shadow  0.2s ease;
}

/* Akceptuję — biały, czarny tekst */
.cookie-banner__btn--accept {
  background: #f0ede8;
  color: #111111;
  border: 1px solid transparent;
}

.cookie-banner__btn--accept:hover {
  background: #ffffff;
  transform: scale(1.025);
  box-shadow: 0 6px 20px rgba(240, 237, 232, 0.14);
}

.cookie-banner__btn--accept:active {
  transform: scale(0.975);
  box-shadow: none;
}

/* Odrzucam — transparentny, biała ramka */
.cookie-banner__btn--reject {
  background: transparent;
  color: rgba(240, 237, 232, 0.55);
  border: 1px solid rgba(240, 237, 232, 0.18);
}

.cookie-banner__btn--reject:hover {
  background: rgba(240, 237, 232, 0.05);
  color: #f0ede8;
  border-color: rgba(240, 237, 232, 0.38);
}

.cookie-banner__btn--reject:active {
  background: rgba(240, 237, 232, 0.03);
}

/* ── Responsywność ────────────────────────────────────────────── */

@media (max-width: 620px) {
  .cookie-banner {
    bottom: 16px;
    right: 16px;
    width: calc(100% - 32px);
  }

  .cookie-banner__inner {
    padding: 22px 22px 20px;
  }
}

@media (max-width: 420px) {
  .cookie-banner__actions {
    flex-direction: column;
  }
}
