/* Cookie consent banner — slides up from the bottom on first marketing-page
 * visit. Editorial-broadcast feel: warm cream, accent red Accept, muted ink
 * Decline. Sits at z-index 1000 so it covers the home / beta layouts but
 * never the privacy policy itself.
 */

.tt-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 16px clamp(16px, 3vw, 32px);
  pointer-events: none;
  animation: ttConsentSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ttConsentSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.tt-consent-card {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  max-width: 940px;
  width: 100%;
  padding: 14px 18px;
  background: var(--ink, #1a1814);
  color: var(--paper, #fbf8f3);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  font-family: var(--font-body, system-ui), sans-serif;
}

.tt-consent-copy {
  margin: 0;
  flex: 1 1 320px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(251, 248, 243, 0.92);
}
.tt-consent-copy a {
  color: var(--paper, #fbf8f3);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tt-consent-copy a:hover { color: var(--accent, #c5363a); }

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

.tt-consent-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(251, 248, 243, 0.3);
  background: transparent;
  color: var(--paper, #fbf8f3);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.tt-consent-btn:hover {
  background: rgba(251, 248, 243, 0.08);
  border-color: rgba(251, 248, 243, 0.5);
}
.tt-consent-btn.tt-consent-accept {
  background: var(--accent, #c5363a);
  border-color: var(--accent, #c5363a);
}
.tt-consent-btn.tt-consent-accept:hover {
  transform: translateY(-1px);
  background: #d04046;
}

@media (max-width: 540px) {
  .tt-consent-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }
  .tt-consent-actions {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tt-consent { animation: none; }
  .tt-consent-btn.tt-consent-accept:hover { transform: none; }
}
