/* Cookie-toestemming – verplichte keuze bij eerste bezoek */

body.cookie-consent-active {
  overflow: hidden;
}

.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-right, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-consent.is-visible {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.cookie-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cookie-consent__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: clamp(1.35rem, 4vw, 1.75rem);
  background: #1a1a1a;
  color: #e8e8e8;
  border: 1px solid rgba(196, 160, 82, 0.45);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.55);
  font-family: var(--font-family, "Montserrat", system-ui, sans-serif);
}

@media (min-width: 560px) {
  .cookie-consent {
    align-items: center;
    padding: 1.5rem;
  }

  .cookie-consent__panel {
    border-radius: 14px;
  }
}

.cookie-consent__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.cookie-consent__text {
  margin: 0 0 1.25rem;
  font-size: clamp(0.88rem, 3.2vw, 0.95rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

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

.cookie-consent__text a:hover {
  color: #e8d4a8;
}

.cookie-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.cookie-consent__btn {
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.cookie-consent__btn--reject {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cookie-consent__btn--reject:hover,
.cookie-consent__btn--reject:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.cookie-consent__btn--accept {
  background: linear-gradient(145deg, #c9a85a 0%, #a68a4c 100%);
  color: #ffffff;
  border-color: #b8954a;
}

.cookie-consent__btn--accept:hover,
.cookie-consent__btn--accept:focus-visible {
  background: #d4b56a;
  border-color: #d4b56a;
}

.cookie-consent__btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.cookie-consent__note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.cookie-consent__manage {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: #d4b56a;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-consent__manage:hover {
  color: #e8d4a8;
}

.footer-bottom .cookie-consent__manage {
  color: #888888;
  font-size: 0.8rem;
}

.footer-bottom .cookie-consent__manage:hover {
  color: #d4b56a;
}

@media (max-width: 380px) {
  .cookie-consent__actions {
    grid-template-columns: 1fr;
  }
}
