/* Umbrellight: minimal consent interface, using Cloudflare Zaraz as the only
   consent store. The site owns appearance; Zaraz owns permission enforcement. */
#umbrellight-consent[hidden] { display: none !important; }
#umbrellight-consent {
  position: fixed;
  z-index: 2147483000;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(380px, calc(100vw - 8px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  box-sizing: border-box;
  margin: 0;
  padding: 11px 12px 10px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 12px;
  background: rgb(10 25 47 / 73%);
  color: #fff8dc;
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  box-shadow: 0 12px 40px rgb(0 0 0 / 24%);
  font: 400 12px/1.5 "Space Mono", monospace;
  letter-spacing: normal;
  text-align: left;
}
#umbrellight-consent *,
#umbrellight-consent *::before,
#umbrellight-consent *::after { box-sizing: border-box; }
#umbrellight-consent h2 {
  margin: 0 0 8px;
  padding: 0;
  max-width: none;
  color: #fff8dc;
  font: 400 12px/1.35 "Space Mono", monospace;
  letter-spacing: 0;
  transform: none;
}
#umbrellight-consent p {
  margin: 0 0 10px;
  padding: 0;
  max-width: none;
  color: rgb(255 248 220 / 88%);
  font: inherit;
  line-height: 1.5;
}
/* Compact the italic copy just enough for three lines in WebKit too. */
#umbrellight-consent .uc-copy { letter-spacing: -0.25px; }
#umbrellight-consent .uc-actions {
  display: grid;
  grid-template-columns: repeat(2, 124px);
  justify-content: center;
  gap: 7px;
}
#umbrellight-consent button {
  appearance: none;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 7px;
  padding: 7px 6px;
  min-height: 38px;
  position: relative;
  color: #fff8dc;
  background: rgb(255 255 255 / 7%);
  font: 400 12px/1.35 "Space Mono", monospace;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}
#umbrellight-consent button[data-choice="accept"] {
  background: #ffd700;
  color: #0a192f;
  border-color: #ffd700;
}
#umbrellight-consent button:hover { border-color: #ffd700; background: rgb(255 255 255 / 14%); }
#umbrellight-consent button[data-choice="accept"]:hover { background: #ffe453; }
/* A visual hover joke only: the button still rejects GA4 and keeps its
   accessible name "Reject". No extra consent toggle is introduced. */
#umbrellight-consent button[data-choice="reject"]:is(:hover, :focus-visible) {
  background: #b91c1c;
  border-color: #ef4444;
  color: #fff;
}
#umbrellight-consent button[data-choice="reject"]:is(:hover, :focus-visible) .uc-reject-label {
  opacity: 0;
}
#umbrellight-consent button[data-choice="reject"]:is(:hover, :focus-visible)::after {
  content: "Click there! >>";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  white-space: nowrap;
  font: inherit;
  pointer-events: none;
}
#umbrellight-consent :focus-visible { outline: 2px solid #ffd700; outline-offset: 3px; }
#umbrellight-consent a { color: #ffd700; text-underline-offset: 3px; }
#umbrellight-consent .uc-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.4;
}
#umbrellight-consent [role="status"] { font-size: 11px; margin: 8px 0 0; color: #fff8dc; }
#umbrellight-consent [role="status"]:empty { display: none; }
@media (max-width: 360px) {
  #umbrellight-consent { padding: 12px; }
  #umbrellight-consent button { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  #umbrellight-consent button { transition: none; }
}
