/* Cookie consent: slim bottom bar in the site's navy, matching the footer and modals.
   Accept and Decline share one look so neither is pushed. */
.webmason-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 28px;
  margin: 0; padding: 14px 28px;
  max-width: none; width: auto;
  background: #0B2740; color: var(--navy-ink-soft);
  border: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); border-radius: 0;
  box-shadow: 0 -6px 24px rgba(6, 16, 26, 0.25);
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  font-size: 14px; line-height: 1.5;
}
.webmason-consent-message {
  flex: 0 1 auto; max-width: 68ch; margin: 0;
  color: var(--navy-ink-soft); font-size: 14px;
}
.webmason-consent-privacy {
  color: var(--navy-ink); text-decoration: underline; text-underline-offset: 3px;
  white-space: nowrap;
}
.webmason-consent-privacy:hover { color: var(--green); }
.webmason-consent-actions {
  flex: 0 0 auto; display: flex; gap: 10px; margin: 0;
}
.webmason-consent-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 108px; margin: 0; padding: 9px 20px;
  font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 600; font-size: 14px;
  color: var(--navy-ink); background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.32); border-radius: 7px;
  cursor: pointer; transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.webmason-consent-button:hover,
.webmason-consent-accept:hover,
.webmason-consent-decline:hover {
  background: var(--green); border-color: var(--green); color: #06210A;
}
.webmason-consent-button:focus-visible { outline: 2px solid #8FD35A; outline-offset: 3px; }

/* The floating reopen button, used only where a page has no footer link */
.webmason-consent-settings {
  position: fixed; left: 16px; bottom: 16px; z-index: 140;
  padding: 7px 14px; font: 600 13px "Space Grotesk", system-ui, sans-serif;
  color: var(--navy-ink); background: #0B2740;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 7px; cursor: pointer;
}

/* Footer "Cookie settings" link: a button that looks like the other footer links */
.site-foot [data-cookie-settings] {
  appearance: none; background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: var(--navy-ink-soft); text-align: left; cursor: pointer;
}
.site-foot [data-cookie-settings]:hover { text-decoration: underline; }

/* Phones: message on top, the two buttons side by side at equal width */
@media (max-width: 640px) {
  .webmason-consent { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 18px; }
  .webmason-consent-message { max-width: none; }
  .webmason-consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .webmason-consent-button { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .webmason-consent { animation: consentIn .2s ease-out; }
  @keyframes consentIn { from { transform: translateY(100%); } }
}
