/* Cookie consent — matches GREEN BCN dark / green footer aesthetic */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  padding: 1rem 1.25rem;
  background: rgba(6, 10, 8, 0.96);
  border-top: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(8px);
}

.cookie-consent-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cookie-consent-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.cookie-consent-text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--muted, #8a9a8e);
  max-width: 52rem;
}

.cookie-consent-text a {
  color: var(--accent, #6b8f4e);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-consent-btn {
  font-family: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.cookie-consent-btn--primary {
  background: var(--accent, #6b8f4e);
  color: #060a08;
  border-color: var(--accent, #6b8f4e);
}

.cookie-consent-btn--primary:hover {
  background: var(--forest2, #5a7a42);
  border-color: var(--forest2, #5a7a42);
}

.cookie-consent-btn--ghost {
  background: transparent;
  color: var(--muted, #8a9a8e);
  border-color: var(--glass-border, rgba(255, 255, 255, 0.12));
}

.cookie-consent-btn--ghost:hover {
  color: var(--text, #e8ede9);
  border-color: rgba(255, 255, 255, 0.22);
}

.cookie-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-consent-modal[hidden] {
  display: none !important;
}

.cookie-consent-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.cookie-consent-modal-panel {
  position: relative;
  width: min(100%, 520px);
  max-height: 90vh;
  overflow-y: auto;
  background: #0a100c;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  padding: 1.75rem 1.5rem;
}

.cookie-consent-modal-panel h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  color: var(--accent, #6b8f4e);
  margin: 0 0 0.75rem;
}

.cookie-consent-modal-lead {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--muted, #8a9a8e);
}

.cookie-consent-categories {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.cookie-consent-category {
  padding: 1rem;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  background: rgba(255, 255, 255, 0.02);
}

.cookie-consent-category p {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted, #8a9a8e);
}

.cookie-consent-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-consent-category-head strong {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text, #e8ede9);
}

.cookie-consent-always {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, #6b8f4e);
}

.cookie-consent-switch {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 22px;
  flex-shrink: 0;
}

.cookie-consent-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-consent-switch span {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  transition: background 0.2s;
}

.cookie-consent-switch span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.cookie-consent-switch input:checked + span {
  background: var(--accent, #6b8f4e);
}

.cookie-consent-switch input:checked + span::after {
  transform: translateX(20px);
}

.cookie-consent-modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.cookie-consent-modal-open {
  overflow: hidden;
}
