/*
 * Toestemmingsbalk.
 *
 * Weigeren and accepteren are the same element with the same class on purpose.
 * A refuse button that is quieter than accept is not a free choice, and the
 * Dutch regulator reads it that way too. The only difference between them is
 * which one carries the copper fill, and that is decided by order, not weight.
 */
.consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 16px clamp(12px, 4vw, 24px) calc(16px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.consent__box {
  pointer-events: auto;
  width: min(720px, 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid var(--line, rgba(35, 33, 30, .14));
  background: var(--paper, #f7f4ee);
  color: var(--graphite, #23211e);
  box-shadow: 0 24px 70px rgba(20, 16, 12, .28);
}

.consent__text {
  flex: 1 1 340px;
  margin: 0;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: .94rem;
  line-height: 1.55;
}

.consent__text a {
  color: var(--copper, #c45f32);
  text-underline-offset: 3px;
}

.consent__acties {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.btn-consent {
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--graphite, #23211e);
  background: transparent;
  color: var(--graphite, #23211e);
  font: inherit;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.btn-consent:hover {
  background: rgba(35, 33, 30, .07);
}

.btn-consent:focus-visible {
  outline: 2px solid var(--copper, #c45f32);
  outline-offset: 3px;
}

/* The floating WhatsApp button sits in the same corner. While the bar is up it
   moves out of the way instead of being covered by it. */
body:has(#consentBar:not([hidden])) .wa-fab {
  transform: translateY(-108px);
}

@media (max-width: 560px) {
  .consent__acties { width: 100%; }
  .consent__acties .btn-consent { flex: 1 1 0; }
  body:has(#consentBar:not([hidden])) .wa-fab { transform: translateY(-160px); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-consent { transition: none; }
  .wa-fab { transition: none; }
}
