/* ============================================================================
   Cookie consent banner — Bonumose
   Self-contained styles (works on top of styles.css or recipes.css).
   ============================================================================ */
#cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 140%);
  width: min(680px, calc(100% - 32px));
  background: #f4efe2;
  color: #26331c;
  border: 1px solid rgba(44, 84, 23, 0.18);
  border-radius: 16px;
  box-shadow: 0 18px 50px -16px rgba(21, 41, 12, 0.45);
  z-index: 10000;
  opacity: 0;
  transition: transform .38s cubic-bezier(.2, .8, .2, 1), opacity .38s ease;
  font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
}
#cookie-consent.cc-show {
  transform: translate(-50%, 0);
  opacity: 1;
}
#cookie-consent .cc-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
}
#cookie-consent .cc-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #3a4a2e;
  flex: 1 1 auto;
}
#cookie-consent .cc-text strong { color: #1f3a12; font-weight: 700; }
#cookie-consent .cc-text a {
  color: #4e8b29;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#cookie-consent .cc-text a:hover { color: #2c5417; }
#cookie-consent .cc-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}
#cookie-consent .cc-btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 100px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
  min-height: 44px;
  white-space: nowrap;
}
#cookie-consent .cc-accept {
  background: #1f3a12;
  color: #f4efe2;
}
#cookie-consent .cc-accept:hover {
  background: #2c5417;
  transform: translateY(-1px);
}
#cookie-consent .cc-decline {
  background: transparent;
  color: #2c5417;
  border-color: rgba(44, 84, 23, 0.35);
}
#cookie-consent .cc-decline:hover {
  background: rgba(111, 177, 63, 0.12);
  border-color: #2c5417;
}
#cookie-consent .cc-btn:focus-visible {
  outline: 2px solid #6fb13f;
  outline-offset: 2px;
}

/* Mobile: stack text over full-width buttons */
@media (max-width: 600px) {
  #cookie-consent { bottom: 12px; width: calc(100% - 24px); }
  #cookie-consent .cc-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
  }
  #cookie-consent .cc-actions { width: 100%; }
  #cookie-consent .cc-btn { flex: 1 1 0; padding: 13px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  #cookie-consent { transition: opacity .2s ease; transform: translate(-50%, 0); }
}

/* "Cookie settings" reopen link (footer / privacy page) */
.cookie-settings-link {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-settings-link:hover { color: #6fb13f; }
