/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 4000;
  display: flex;
  justify-content: center;
  padding: 10px 12px;
  font-family: 'Heebo', system-ui, sans-serif;
  animation: ck-rise 0.35s ease;
  pointer-events: none;
}
@keyframes ck-rise {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-card {
  pointer-events: auto;
  width: 100%;
  max-width: 720px;
  background: #f7f4ee;
  border: 1px solid rgba(138, 90, 32, 0.20);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  color: #111111;
  direction: rtl;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  flex: 1;
  min-width: 0;
}
.cookie-card a {
  color: #8a5a20;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-actions button {
  border: none;
  border-radius: 100px;
  padding: 9px 18px;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.ck-accept {
  background: #111111;
  color: #f7f4ee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);
}
.ck-decline {
  background: transparent;
  color: #666666;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

/* On mobile: stack copy + buttons so neither gets squished */
@media (max-width: 640px) {
  .cookie-card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }
  .cookie-actions { width: 100%; }
  .cookie-actions button { flex: 1; }
}

/* Push page content up so the banner doesn't cover the bottom CTA */
body.has-cookie-banner {
  padding-bottom: 140px;
}
@media (min-width: 641px) {
  body.has-cookie-banner {
    padding-bottom: 90px;
  }
}

/* reopen link injected into footers */
.cookie-reopen {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
