/* Cookie Consent Banner — matches Bundle Waste dark theme */
#cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0 var(--gutter, 1.5rem) 1.5rem;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  pointer-events: none;
}
#cookie-consent.consent-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.consent-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 24, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.consent-text {
  flex: 1;
  min-width: 0;
}
.consent-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.35rem;
}
.consent-text p {
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}
.consent-links {
  margin-top: 0.3rem !important;
}
.consent-links a {
  color: #0ea5a0;
  text-decoration: none;
  font-size: 0.75rem;
}
.consent-links a:hover {
  text-decoration: underline;
}

.consent-buttons {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.consent-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.consent-btn--reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.consent-btn--reject:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
}
.consent-btn--accept {
  background: #0ea5a0;
  color: #fff;
}
.consent-btn--accept:hover {
  background: #0d9490;
}

/* Light theme */
[data-theme="light"] .consent-inner {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .consent-text strong { color: #1a1a1a; }
[data-theme="light"] .consent-text p { color: rgba(0, 0, 0, 0.55); }
[data-theme="light"] .consent-btn--reject {
  color: rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .consent-btn--reject:hover {
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.8);
}

/* Mobile stack */
@media (max-width: 600px) {
  #cookie-consent { padding: 0 1rem 1rem; }
  .consent-inner {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
    gap: 1rem;
  }
  .consent-buttons { width: 100%; }
  .consent-btn { flex: 1; padding: 0.65rem; }
}
