/* ── COOKIE CONSENT ───────────────────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0f1c11;
  border-top: 1px solid rgba(107,143,99,0.25);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#cookie-banner.visible {
  transform: translateY(0);
}
#cookie-banner p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: #a8c4a0;
  margin: 0;
  max-width: 620px;
}
#cookie-banner p a {
  color: #5a9e2f;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  background: transparent;
}
.cookie-btn-accept {
  border-color: #5a9e2f;
  color: #fff;
  background: #5a9e2f;
}
.cookie-btn-accept:hover {
  background: #5a9a2a;
  border-color: #5a9a2a;
}
.cookie-btn-decline {
  border-color: rgba(107,143,99,0.35);
  color: #a8c4a0;
}
.cookie-btn-decline:hover {
  border-color: #a8c4a0;
  color: #d4e4cf;
}
.cookie-btn-settings {
  border-color: transparent;
  color: #6b8f63;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}
.cookie-btn-settings:hover {
  color: #a8c4a0;
}

/* Modal */
#cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#cookie-modal.visible {
  display: flex;
}
.cookie-modal-box {
  background: #111f14;
  border: 1px solid rgba(107,143,99,0.2);
  max-width: 500px;
  width: 100%;
  padding: 2.5rem;
  max-height: 90vh;
  overflow-y: auto;
}
.cookie-modal-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.8rem;
  color: #d4e4cf;
  margin-bottom: 0.5rem;
}
.cookie-modal-box p {
  font-size: 0.82rem;
  color: #6b8f63;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.cookie-category {
  border-top: 1px solid rgba(107,143,99,0.12);
  padding: 1.2rem 0;
}
.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.cookie-category-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: #d4e4cf;
  letter-spacing: 0.04em;
}
.cookie-category-desc {
  font-size: 0.75rem;
  color: #6b8f63;
  line-height: 1.6;
}
/* Toggle switch */
.cookie-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(107,143,99,0.2);
  border: 1px solid rgba(107,143,99,0.3);
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.25s;
}
.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  top: 2px;
  background: #6b8f63;
  border-radius: 50%;
  transition: transform 0.25s, background 0.25s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: rgba(118,179,59,0.25);
  border-color: #5a9e2f;
}
.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(18px);
  background: #5a9e2f;
}
.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.cookie-modal-actions .cookie-btn {
  flex: 1;
  text-align: center;
}

@media (max-width: 680px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.25rem 1.5rem;
  }
  .cookie-actions {
    width: 100%;
  }
  .cookie-btn-accept,
  .cookie-btn-decline {
    flex: 1;
    text-align: center;
  }
}
