/* Cookie consent */
.cookie-banner,
.cookie-settings-button,
.back-to-top-button {
  font-family: var(--font-sans, Inter, system-ui, sans-serif);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  max-width: 760px;
  margin: 0 auto;
  background: #FDF8F2;
  color: #1C0E06;
  border: 1px solid rgba(201,168,130,0.45);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(28,14,6,0.22);
  padding: 1.25rem;
}

.cookie-banner[hidden],
.cookie-preferences[hidden],
.cookie-settings-button[hidden] {
  display: none;
}

.cookie-banner h2 {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.cookie-banner p {
  color: #7A5A45;
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.cookie-banner a {
  color: #C42B1A;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-button {
  border: 1.5px solid rgba(122,90,69,0.45);
  border-radius: 4px;
  background: transparent;
  color: #1C0E06;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.7rem 1rem;
}

.cookie-button.primary {
  background: #C42B1A;
  border-color: #C42B1A;
  color: #fff;
}

.cookie-button:hover {
  border-color: #1C0E06;
}

.cookie-button.primary:hover {
  background: #A82415;
  border-color: #A82415;
}

.cookie-preferences {
  border-top: 1px solid rgba(201,168,130,0.35);
  margin-top: 1rem;
  padding-top: 1rem;
}

.cookie-option {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: #3A1A0A;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.cookie-option input {
  margin-top: 0.25rem;
}

.cookie-option strong {
  display: block;
  color: #1C0E06;
}

.cookie-settings-button {
  display: block;
  margin: 0.85rem auto 1.5rem;
  background: transparent;
  color: rgba(201,168,130,0.75);
  border: 0;
  cursor: pointer;
  font-size: 0.74rem;
  padding: 0.25rem 0.5rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.cookie-settings-button:hover,
.cookie-settings-button:focus-visible {
  color: #C42B1A;
  outline: none;
}

.back-to-top-button {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 998;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(201,168,130,0.55);
  border-radius: 50%;
  background: rgba(253,248,242,0.92);
  color: #3A1A0A;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(28,14,6,0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.back-to-top-button.zichtbaar {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-button:hover,
.back-to-top-button:focus-visible {
  background: #FDF8F2;
  border-color: #C42B1A;
  outline: none;
}

.cookie-placeholder {
  background: #F8F0E3;
  border: 1px solid rgba(201,168,130,0.45);
  border-radius: 4px;
  color: #7A5A45;
  min-height: 180px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
}

.cookie-placeholder strong {
  color: #1C0E06;
  font-size: 0.95rem;
}

.cookie-placeholder p {
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0;
}

.cookie-placeholder button {
  align-self: flex-start;
}

@media (max-width: 560px) {
  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 1rem;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-button {
    width: 100%;
  }

  .cookie-settings-button {
    font-size: 0.72rem;
  }

  .back-to-top-button {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 40px;
    height: 40px;
  }
}
