/* ════════════════════════════════
   COOKIE CONSENT BANNER
   Include on every page before </body>
════════════════════════════════ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2C2218;
  color: rgba(250,247,242,0.85);
  padding: 20px 24px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  border-top: 2px solid #4A7C59;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  min-width: 280px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
}
.cookie-banner-text a {
  color: #8bb896;
  text-decoration: underline;
}
.cookie-banner-text a:hover {
  color: #6B9E78;
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.cookie-btn-accept {
  background: #4A7C59;
  color: white;
}
.cookie-btn-accept:hover {
  background: #3A6347;
}
.cookie-btn-necessary {
  background: transparent;
  border: 1.5px solid rgba(250,247,242,0.25);
  color: rgba(250,247,242,0.7);
}
.cookie-btn-necessary:hover {
  border-color: rgba(250,247,242,0.5);
  color: rgba(250,247,242,0.9);
}
.cookie-btn-settings {
  background: transparent;
  border: none;
  color: rgba(250,247,242,0.5);
  font-size: 0.8rem;
  text-decoration: underline;
  padding: 10px 8px;
  cursor: pointer;
}
.cookie-btn-settings:hover {
  color: rgba(250,247,242,0.8);
}

/* Settings panel */
.cookie-settings-panel {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(250,247,242,0.12);
  width: 100%;
}
.cookie-settings-panel.open {
  display: block;
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
}
.cookie-category label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  color: rgba(250,247,242,0.75);
  line-height: 1.5;
  cursor: pointer;
}
.cookie-category label strong {
  color: rgba(250,247,242,0.95);
  display: block;
  margin-bottom: 2px;
}
.cookie-category input[type="checkbox"] {
  margin-top: 4px;
  accent-color: #4A7C59;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.cookie-category input[type="checkbox"]:disabled {
  opacity: 0.5;
}
.cookie-save-prefs {
  margin-top: 12px;
}

@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner-actions {
    flex-direction: column;
  }
}
