/* Cookie banner: a slim bar across the bottom, in the footer's colors.
   The page gets matching space at the bottom (see the Cookie banner script),
   so at the end of a page the bar sits below the footer, never over it. */
body { padding-bottom: var(--consent-space, 0px); }

.webmason-consent {
  position: fixed; left: 0; right: 0; bottom: 0; top: auto;
  width: 100%; max-width: none; margin: 0;
  transform: none;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.4rem 1.25rem;
  padding: 0.55rem var(--gutter);
  background: var(--footer-bg); color: var(--on-red-soft);
  border: 0; border-top: 3px solid var(--accent); border-radius: 0;
  box-shadow: 0 -0.25rem 1rem rgba(31, 35, 40, 0.18);
  font: 0.9rem/1.45 var(--sans);
  z-index: 1000;
}
.webmason-consent[hidden] { display: none; }
.webmason-consent-message { margin: 0; flex: 0 1 auto; }
.webmason-consent-privacy { color: var(--on-red); text-decoration: underline; white-space: nowrap; }
.webmason-consent-privacy:hover { color: var(--on-red-soft); }
.webmason-consent-actions { display: flex; flex: none; gap: 0.5rem; margin: 0; }
.webmason-consent-button {
  font: 600 0.85rem/1 var(--sans);
  padding: 0.5rem 0.95rem; border: 0; border-radius: 0.4rem;
  cursor: pointer;
}
.webmason-consent-accept { background: #fff; color: var(--accent-dark); }
.webmason-consent-accept:hover { background: var(--on-red-soft); }
.webmason-consent-decline {
  background: transparent; color: var(--on-red);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}
.webmason-consent-decline:hover { background: rgba(255, 255, 255, 0.1); }
.webmason-consent a:focus-visible,
.webmason-consent-button:focus-visible { outline: 2px solid var(--on-red); outline-offset: 2px; }

/* "Cookie settings" lives in the footer as a link-style button */
.link-button {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: var(--on-red); text-decoration: underline;
  cursor: pointer;
}
.link-button:hover { color: var(--on-red-soft); }
.link-button:focus-visible { outline: 2px solid var(--on-red); outline-offset: 3px; }
.footer-links span { margin: 0 0.4rem; opacity: 0.6; }

@media (max-width: 40rem) {
  .webmason-consent { justify-content: flex-start; padding: 0.6rem var(--gutter); }
}