/* Cookie-consent banner styles. Ontwerp: sober, contrastrijk, sticky onderaan.
   Geen externe afhankelijkheden; werkt naast de bestaande koppel-landing en
   tenant-directory CSS. */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #111827;
  color: #f9fafb;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  animation: cookie-banner-in 0.2s ease-out;
}

@keyframes cookie-banner-in {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1 1 24rem;
  min-width: 0;
}

.cookie-banner__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.cookie-banner__body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #d1d5db;
}

.cookie-banner__links {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
}

.cookie-banner__links a {
  color: #93c5fd;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  flex: 0 0 auto;
}

.cookie-banner__btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cookie-banner__btn--primary {
  background: #2563eb;
  color: #ffffff;
}

.cookie-banner__btn--primary:hover {
  background: #1d4ed8;
}

.cookie-banner__btn--secondary {
  background: transparent;
  color: #f9fafb;
  border-color: rgba(255, 255, 255, 0.25);
}

.cookie-banner__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cookie-banner__btn--link {
  background: transparent;
  color: #93c5fd;
  border: none;
  text-decoration: underline;
  padding: 0.55rem 0.5rem;
}

.cookie-banner__btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.cookie-settings {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-settings__group {
  border: none;
  padding: 0.75rem 0 0;
  margin: 0;
}

.cookie-settings__group legend {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
  padding: 0;
}

.cookie-settings__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #e5e7eb;
}

.cookie-settings__row small {
  display: block;
  color: #9ca3af;
  font-size: 0.8125rem;
  margin-top: 0.125rem;
}

.cookie-settings__row input[type='checkbox'] {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: #2563eb;
}

.cookie-settings__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.cookie-reopen {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 9998;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  color: #111827;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cookie-reopen:hover {
  background: #f3f4f6;
}

@media (max-width: 640px) {
  .cookie-banner__inner {
    flex-direction: column;
  }
  .cookie-banner__actions {
    width: 100%;
  }
  .cookie-banner__btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    animation: none;
  }
}
