/* ── Cookie Consent Banner ─────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: rgba(255,255,255,0.97);
  border-top: 0.5px solid rgba(0,0,0,0.1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.32,.72,0,1);
}
.cookie-banner--visible {
  transform: translateY(0);
}
.cookie-banner--hidden {
  transform: translateY(100%);
}

.cookie-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner-text {
  font-size: 13px;
  color: #1c1c1e;
  margin: 0;
  line-height: 1.5;
  flex: 1;
}
.cookie-banner-link {
  color: #007aff;
  text-decoration: none;
}
.cookie-banner-link:hover {
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s, transform .1s;
}
.cookie-btn:active {
  transform: scale(0.97);
}

.cookie-btn--accept {
  background: #007aff;
  color: #fff;
}
.cookie-btn--accept:hover {
  background: #0066d6;
}

.cookie-btn--decline {
  background: rgba(0,0,0,0.06);
  color: #1c1c1e;
}
.cookie-btn--decline:hover {
  background: rgba(0,0,0,0.1);
}

/* ── Dark mode ── */
[data-theme="dark"] .cookie-banner {
  background: rgba(28,28,30,0.97);
  border-top-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .cookie-banner-text {
  color: #f2f2f7;
}
[data-theme="dark"] .cookie-banner-link {
  color: #0a84ff;
}
[data-theme="dark"] .cookie-btn--accept {
  background: #0a84ff;
}
[data-theme="dark"] .cookie-btn--accept:hover {
  background: #0070e0;
}
[data-theme="dark"] .cookie-btn--decline {
  background: rgba(255,255,255,0.08);
  color: #f2f2f7;
}
[data-theme="dark"] .cookie-btn--decline:hover {
  background: rgba(255,255,255,0.12);
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 16px 20px 20px;
    gap: 12px;
  }
  .cookie-banner-actions {
    justify-content: center;
  }
  .cookie-btn {
    flex: 1;
    padding: 10px 16px;
  }
}
