/* Full-width consent bar along the bottom of the screen */
.webmason-consent {
  position: fixed;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  max-width: none;
  margin: 0;
  transform: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  padding: 20px 24px;
  background: rgba(5, 11, 26, 0.97);
  border: none;
  border-top: 1px solid #1f2d52;
  border-radius: 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5);
  color: #fff;
  font-family: Arial, sans-serif;
}

/* The glowing top edge used on the site's cards */
.webmason-consent::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #1e90ff 30%, #4da3ff 70%, transparent);
}

.webmason-consent[hidden] {
  display: none !important;
}

.webmason-consent-message {
  flex: 1 1 480px;
  max-width: 720px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.webmason-consent-privacy,
.webmason-consent a {
  color: #4da3ff;
  text-decoration: none;
}

.webmason-consent-privacy:hover,
.webmason-consent a:hover {
  text-decoration: underline;
}

.webmason-consent-actions {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  margin: 0;
}

.webmason-consent-button {
  padding: 10px 22px;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.webmason-consent-accept {
  background: linear-gradient(135deg, #1e90ff, #007bff);
  border: 1px solid transparent;
  color: #fff;
}

.webmason-consent-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.webmason-consent-decline {
  background: transparent;
  border: 1px solid #2a3a66;
  color: #fff;
}

.webmason-consent-decline:hover {
  border-color: #4da3ff;
}

.webmason-consent-button:focus-visible {
  outline: 2px solid #4da3ff;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .webmason-consent {
    padding: 16px;
    gap: 14px;
  }
  .webmason-consent-actions {
    width: 100%;
  }
  .webmason-consent-button {
    flex: 1;
  }
}

/* Room under the page while the bar is showing, so it never covers the footer.
   The Reset style fixes body at the screen height, which made this padding land
   behind the content instead of after it; let body grow with the page instead. */
html {
  height: auto;
  min-height: 100%;
}

body {
  height: auto;
  min-height: 100%;
  padding-bottom: var(--consent-height, 0px);
}

/* "Cookie settings" in the footer reopens the bar */
.footer-cookie-settings {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: #4da3ff;
  cursor: pointer;
}

.footer-cookie-settings:hover,
.footer-cookie-settings:focus-visible {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .webmason-consent-button {
    transition: none;
  }
}