/* Cookie-consent banner — soft styling matching theme.css. The banner is
   fixed to the bottom of the viewport and only injected by consent.js when
   needed, so this file is a pure stylesheet that doesn't render anything
   until the script attaches #sniff-consent-banner. */

#sniff-consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  background: var(--surface-elevated);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-body);
  animation: sniff-consent-slide-in 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 720px) {
  #sniff-consent-banner {
    left: auto;
    right: 24px;
    bottom: 24px;
    max-width: 460px;
  }
}

.sniff-consent-inner {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sniff-consent-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.sniff-consent-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  font-weight: 500;
}
.sniff-consent-link:hover {
  color: var(--ink);
}

.sniff-consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sniff-consent-btn {
  flex: 1 1 auto;
  min-width: 110px;
  padding: 11px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
  transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 200ms cubic-bezier(0.2, 0.7, 0.2, 1), background-color 160ms ease;
}

.sniff-consent-btn:hover {
  background: var(--surface-tint);
}

.sniff-consent-btn:active {
  transform: translateY(1px);
}

.sniff-consent-btn--primary {
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow-xs);
}
.sniff-consent-btn--primary:hover {
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow-md);
}

.sniff-consent-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@keyframes sniff-consent-slide-in {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  #sniff-consent-banner { animation: none; }
  .sniff-consent-btn    { transition: none; }
}

/* Cookie inventory table on the privacy page. */
.cookie-table {
  width: 100%;
  margin: 16px 0 24px;
  border-collapse: collapse;
  font-size: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.cookie-table th,
.cookie-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
  background: var(--surface-elevated);
}
.cookie-table thead th {
  background: var(--surface-tint);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-strong);
}
.cookie-table tbody tr:last-child td {
  border-bottom: none;
}
.cookie-table code {
  font-size: 13px;
  background: var(--surface-tint);
  padding: 1px 6px;
  border-radius: 4px;
}
