/* ── Inter — self-hosted (latin-ext covers Polish diacritics: ą ć ę ł ń ó ś ź ż) ── */

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Cookie Banner ─────────────────────────────────── */
/* Show/hide via shared/cookie-consent.js: removes inline display:none,
   then double-rAF adds .cookie-banner--visible to trigger transition. */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 296px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 20px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(.22,.68,0,1.2);
  pointer-events: none;
}

#cookie-banner.cookie-banner--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#cookie-banner.cookie-banner--hiding {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.cb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(0, 102, 255, 0.08);
  border-radius: 10px;
  color: #0066FF;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.cb-title {
  font-size: 14px;
  font-weight: 600;
  color: #1A1C20;
  margin: 0 0 6px;
}

.cb-text {
  font-size: 12px;
  color: #5A5E66;
  line-height: 1.55;
  margin: 0 0 16px;
}

.cb-btns {
  display: flex;
  gap: 8px;
}

.cb-btn-rej,
.cb-btn-acc {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 10px 0;
  font-size: 12px;
  font-family: Inter, -apple-system, sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}

.cb-btn-rej {
  background: rgba(0, 0, 0, 0.055);
  color: #82868E;
  font-weight: 500;
}

.cb-btn-rej:hover { background: rgba(0, 0, 0, 0.09); }

.cb-btn-acc {
  background: #0066FF;
  color: #fff;
  font-weight: 600;
}

.cb-btn-acc:hover { background: #0052CC; }

.cb-btn-rej:focus-visible,
.cb-btn-acc:focus-visible {
  outline: 2px solid #0066FF;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  #cookie-banner {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    transform: translateY(24px);
  }

  #cookie-banner.cookie-banner--visible {
    transform: translateY(0);
  }

  #cookie-banner.cookie-banner--hiding {
    transform: translateY(100%);
  }

  .cb-btn-rej,
  .cb-btn-acc {
    padding: 14px 0;
    font-size: 13px;
  }
}
