/* ─────────────────────────────────────────────────────
   COOKIE BANNER (responsive + accessible)
   ───────────────────────────────────────────────────── */

.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
  position: fixed;
  z-index: 9999;
  left: 0;
  right: 0;
  bottom: 0;

  /* safe-area for iOS */
  padding: calc(12px + env(safe-area-inset-bottom)) 12px 12px;

  display: flex;
  justify-content: center;

  /* subtle overlay feel */
  pointer-events: none;
}

.cookie-inner {
  pointer-events: auto;

  width: min(980px, calc(100% - 24px));
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;

  padding: 14px 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  transform: translateY(16px);
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
}

.cookie-banner.is-open .cookie-inner {
  transform: translateY(0);
  opacity: 1;
}

.cookie-copy h3 {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.cookie-copy p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  opacity: 0.92;
}

.cookie-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.9;
}
.cookie-link:hover { opacity: 1; }

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* buttons */
.cb-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1;
}

.cb-btn-primary {
  background: var(--text);
  color: #000;
}

.cb-btn-ghost {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.cb-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

/* Mobile: full width, stacked layout */
@media (max-width: 640px) {
  .cookie-inner {
    width: 100%;
    border-radius: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cookie-actions {
    width: 100%;
  }

  .cb-btn {
    width: 100%;
    padding: 12px 14px;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .cookie-inner { transition: none; }
}
