/* ── Cookie Consent Banner ─────────────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(10, 10, 11, 0.97);
  border-top: 1px solid rgba(212, 184, 150, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Barlow', sans-serif;
}

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

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

.cookie-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.cookie-text {
  flex: 1;
  min-width: 0;
}

.cookie-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #D4B896;
  margin: 0 0 0.4rem;
}

.cookie-desc {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0;
}

.cookie-desc a {
  color: #D4B896;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* Buttons */
.btn-cookie {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.58rem 1.15rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
  white-space: nowrap;
  line-height: 1;
}

.btn-cookie--accept {
  background: #D4B896;
  color: #0A0A0B;
  border: 1px solid #D4B896;
}

.btn-cookie--accept:hover {
  background: #C9A87C;
  border-color: #C9A87C;
}

.btn-cookie--reject {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.65);
}

.btn-cookie--reject:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-cookie--outline {
  background: transparent;
  border: 1px solid rgba(212, 184, 150, 0.35);
  color: rgba(212, 184, 150, 0.8);
}

.btn-cookie--outline:hover {
  border-color: #D4B896;
  color: #D4B896;
}

/* ── Preferences panel ─────────────────────────────────────────────────────── */
.cookie-prefs {
  border-top: 1px solid rgba(212, 184, 150, 0.1);
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem 1.5rem;
}

.cookie-prefs[hidden] { display: none; }

.cookie-pref-group {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-pref-group:last-of-type { border-bottom: none; }

.cookie-pref-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-pref-header > div { flex: 1; }

.cookie-pref-header strong {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  display: block;
  margin-bottom: 0.18rem;
  letter-spacing: 0.03em;
}

.cookie-pref-header p {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.42);
  margin: 0;
  line-height: 1.5;
}

.cookie-toggle--locked {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(212, 184, 150, 0.55);
  white-space: nowrap;
}

/* Toggle switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 23px;
  flex-shrink: 0;
  cursor: pointer;
}

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

.cookie-switch-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 23px;
  transition: background 0.25s;
}

.cookie-switch-slider::before {
  content: '';
  position: absolute;
  width: 17px;
  height: 17px;
  left: 3px;
  top: 3px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: transform 0.25s, background 0.25s;
}

.cookie-switch input:checked + .cookie-switch-slider {
  background: rgba(212, 184, 150, 0.35);
}

.cookie-switch input:checked + .cookie-switch-slider::before {
  transform: translateX(19px);
  background: #D4B896;
}

.cookie-prefs-actions {
  margin-top: 1.1rem;
  display: flex;
  justify-content: flex-end;
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.2rem 1.2rem 1.1rem;
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .cookie-prefs {
    padding: 0.75rem 1.2rem 1.2rem;
  }

  .cookie-pref-header { gap: 1rem; }
}
