/* OCTARINE — cookie-consent.css: the "No tracking" notice (markup and script: /includes/cookie-consent.php) */
/* ── Storage notice ── */
.cookie-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 300px;
  padding: 18px 20px 16px;
  background: #fff;
  border: 1px solid var(--hairline, #d9d4cc);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.cookie-popup.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.cookie-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink, #020108);
  margin: 0 0 0.35rem;
}

.cookie-text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-soft, #3a3a36);
  margin: 0;
}

.cookie-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
}

.cookie-link {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-soft, #3a3a36);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.cookie-link { display: inline-block; padding: 5px 0; margin: -5px 0; }
.cookie-link:hover { color: var(--ink, #020108); }

.cookie-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  min-width: 64px;
  padding: 0.5rem 1.1rem;
  border: none;
  border-radius: 999px;
  background: var(--ink, #020108);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cookie-btn:hover { background: var(--ink-soft, #3a3a36); }

.cookie-link:focus-visible,
.cookie-btn:focus-visible {
  outline: 2px solid var(--brand-orange, #FF6B02);
  outline-offset: 3px;
}

/* Night */
body[data-theme="dusk"] .cookie-popup {
  background: #1f1f1e;
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
body[data-theme="dusk"] .cookie-title { color: #fff; }
body[data-theme="dusk"] .cookie-text,
body[data-theme="dusk"] .cookie-link { color: rgba(255,255,255,0.7); }
body[data-theme="dusk"] .cookie-link:hover { color: #fff; }
body[data-theme="dusk"] .cookie-btn { background: #fff; color: var(--ink, #020108); }
body[data-theme="dusk"] .cookie-btn:hover { background: rgba(255,255,255,0.82); }

/* Mobile */
@media (max-width: 480px) {
  .cookie-popup {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }
}

/* ── Cookie bar (analytics on) ──
   Inverted on purpose: dark card in Day, light card in Night.
   ID selectors so page-level Night text rules can never recolour it. */
#cookie-popup.cookie-bar {
  --cookie-card: #1f1f1e;
  --cookie-fg: #fff;
  --cookie-soft: rgba(255,255,255,0.72);
  --cookie-line: rgba(255,255,255,0.22);
  --cookie-tint: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 20px;
  width: auto;
  max-width: 700px;
  padding: 18px 20px 18px 18px;
  background: var(--cookie-card);
  border: 1px solid var(--cookie-line);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.22);
  color: var(--cookie-fg);
}
body[data-theme="dusk"] #cookie-popup.cookie-bar {
  --cookie-card: #e6e3e0;
  --cookie-fg: var(--ink, #020108);
  --cookie-soft: var(--ink-soft, #3a3a36);
  --cookie-line: rgba(2,1,8,0.16);
  --cookie-tint: rgba(2,1,8,0.06);
  background: var(--cookie-card);
  border-color: var(--cookie-line);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}
#cookie-popup.cookie-bar .cookie-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cookie-tint);
  color: var(--cookie-fg);
}
#cookie-popup.cookie-bar .cookie-text {
  flex: 1;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--cookie-fg);
}
#cookie-popup.cookie-bar .cookie-link {
  display: inline;
  padding: 0;
  margin: 0;
  font-size: inherit;
  color: inherit;
  text-decoration-color: var(--cookie-line);
  text-decoration-thickness: 1px;
}
#cookie-popup.cookie-bar .cookie-link:hover { color: inherit; text-decoration-color: currentColor; }
#cookie-popup.cookie-bar .cookie-choice { flex: none; display: flex; gap: 8px; }
#cookie-popup.cookie-bar .cookie-btn {
  /* Split pill (matches the reference): equal widths, round outer ends, tight inner corners */
  min-width: 112px;
  height: 48px;
  padding: 0 22px;
  border-radius: 14px 24px 24px 14px; /* Decline: round outer end */
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 0;
  /* Decline: inverse of the card (white on the dark Day card, ink on the light Night card) */
  background: var(--cookie-fg);
  color: var(--cookie-card);
  transition: opacity 0.2s, box-shadow 0.2s;
}
/* Allow: brand orange with white text on both cards (Jamie, 25 Oct 2026) */
#cookie-popup.cookie-bar .cookie-btn--allow {
  background: var(--brand-orange, #FF6B02);
  color: #fff;
  border-radius: 24px 14px 14px 24px;
}
#cookie-popup.cookie-bar .cookie-btn:hover { opacity: 0.88; }
/* No ring for the saved choice (Jamie, 25 Oct 2026); aria-pressed still tells screen readers */
#cookie-popup.cookie-bar .cookie-btn[aria-pressed="true"] { box-shadow: none; }
#cookie-popup.cookie-bar .cookie-btn:focus-visible { outline: 2px solid var(--brand-orange, #FF6B02); outline-offset: 3px; }

@media (max-width: 600px) {
  #cookie-popup.cookie-bar {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    padding: 20px 18px 18px;
  }
  #cookie-popup.cookie-bar .cookie-choice { width: 100%; justify-content: center; }
  #cookie-popup.cookie-bar .cookie-btn { flex: 1; max-width: 150px; }
}
