/*
 * The cookie consent banner, shared by platform.html and landing.html.
 * Behaviour is in cookie-consent.js; this is only the skin.
 *
 * Both pages define --navy and --royal, so the banner is a navy panel on either:
 * it reads as part of the dark lamp page and stands clear of the white platform
 * page. It sits above everything on both, including the lamp page's full-screen
 * acts (highest z-index there is 210).
 *
 * Accept and Reject share one class on purpose. The ICO expects refusing to be
 * as easy as accepting, and a brighter Accept is the nudge it objects to.
 */
.cc {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--navy);
  color: white;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  font-family: 'Poppins', Calibri, Arial, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
}
.cc[hidden] { display: none }

.cc-text { flex: 1; margin: 0 }

.cc-actions { display: flex; gap: 10px; flex-shrink: 0 }

.cc-btn {
  min-width: 96px;
  padding: 9px 18px;
  border: 1px solid var(--royal);
  border-radius: 8px;
  background: var(--royal);
  color: white;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cc-btn:hover { filter: brightness(1.1) }
.cc-btn:focus-visible { outline: 2px solid white; outline-offset: 2px }

/* The footer link that reopens the banner. A button, because it does something
   rather than going somewhere; styled to sit in a line of footer text. */
.cc-settings {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  pointer-events: auto;
}

@media (max-width: 600px) {
  .cc { flex-direction: column; align-items: stretch }
  .cc-actions .cc-btn { flex: 1 }
}
