/* Stoneybatter STEM Club (ssc.ie) – cookie consent banner
   Change the colours in :root to match the site. */
:root {
  --ssc-bg: #ffffff;
  --ssc-text: #1d2b33;
  --ssc-muted: #55656e;
  --ssc-accent: #0b5d6b;
  --ssc-accent-text: #ffffff;
  --ssc-border: #c9d3d8;
  --ssc-focus: #d97706;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ssc-bg: #15232a;
    --ssc-text: #e8eff2;
    --ssc-muted: #a9b9c1;
    --ssc-accent: #5fc4d4;
    --ssc-accent-text: #0b1a20;
    --ssc-border: #34505b;
    --ssc-focus: #fbbf24;
  }
}

.ssc-cc {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2147483000;
  background: var(--ssc-bg);
  color: var(--ssc-text);
  border-top: 3px solid var(--ssc-accent);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .18);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
}
.ssc-cc[hidden] { display: none; }
.ssc-cc__inner { max-width: 60rem; margin: 0 auto; }
.ssc-cc h2 { margin: 0 0 .35rem; font-size: 1.125rem; }
.ssc-cc p { margin: 0 0 .75rem; max-width: 70ch; }
.ssc-cc a { color: var(--ssc-accent); text-underline-offset: 2px; }

.ssc-cc__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.ssc-cc button {
  font: inherit; font-weight: 600;
  padding: .6rem 1.1rem; min-height: 44px;
  border-radius: 6px; cursor: pointer;
  border: 2px solid var(--ssc-accent);
  background: transparent; color: var(--ssc-text);
}
/* Accept and Reject share the same visual weight on purpose. */
.ssc-cc button.ssc-cc__primary { background: var(--ssc-accent); color: var(--ssc-accent-text); }
.ssc-cc button.ssc-cc__link { border-color: transparent; text-decoration: underline; }
.ssc-cc button:focus-visible,
.ssc-cc a:focus-visible,
.ssc-cc input:focus-visible { outline: 3px solid var(--ssc-focus); outline-offset: 2px; }

.ssc-cc__panel { margin: .75rem 0; border-top: 1px solid var(--ssc-border); }
.ssc-cc__panel[hidden] { display: none; }
.ssc-cc__row {
  display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between;
  padding: .75rem 0; border-bottom: 1px solid var(--ssc-border);
}
.ssc-cc__row strong { display: block; }
.ssc-cc__row span { color: var(--ssc-muted); font-size: .9rem; }
.ssc-cc__row input[type="checkbox"] { width: 1.5rem; height: 1.5rem; flex: none; accent-color: var(--ssc-accent); }

/* Footer link that lets visitors change their mind */
.ssc-cc-reopen { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

@media (prefers-reduced-motion: no-preference) {
  .ssc-cc { animation: ssc-cc-in .25s ease-out; }
  @keyframes ssc-cc-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
}
