/* The cookie card (DIG-1795). Behaviour: assets/analytics.js, which adds the
   card while a visitor has not answered. A small card in the bottom-left
   corner; on phones it spans the bottom. Accept and Decline look the same.
   Uses the site tokens (site.css, guide.css). */
.cc {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 80;
  width: min(360px, calc(100vw - 32px));
  padding: 16px 16px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  animation: cc-in 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.cc-text {
  margin: 0 0 12px;
  font: 400 14px/1.5 var(--inter);
  color: var(--muted-2);
}
.cc-text a {
  color: var(--teal);
  font-weight: 500;
}
.cc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cc-btn {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--teal);
  color: var(--teal);
  font: 600 14px/1 var(--inter);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.cc-btn:hover {
  background: var(--teal-tint);
  color: var(--teal-deep);
}
/* Cookie settings, added to the footer's legal links; looks like them. */
.cc-settings {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted-2);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.cc-settings:hover {
  color: var(--teal);
}
@media (max-width: 520px) {
  .cc {
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
  }
}
@keyframes cc-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cc {
    animation: none;
  }
}
