/* Tyten marketing site — cookie consent banner (GA4 consent mode)
 *
 * Bottom-left card (not full-width): keeps the entire bottom-right quadrant
 * free for Automanus and similar launchers. Inspired by professional CMPs
 * (clear actions) but intentionally minimal — no category matrix or wall of text.
 */
#tyten-cookie-banner {
  position: fixed;
  left: max(0.5rem, env(safe-area-inset-left, 0px));
  right: auto;
  bottom: max(0.45rem, env(safe-area-inset-bottom, 0px));
  width: auto;
  /* Narrow card: text stacks above buttons; viewport minus reserved right strip on small screens */
  max-width: min(20.5rem, calc(100vw - 0.5rem - 5.75rem));
  box-sizing: border-box;
  border-radius: 10px;
  /* Below extreme chat z-indexs if needed; still above page chrome */
  z-index: 2147483640;
  pointer-events: auto;
  visibility: visible;
  padding: 0.45rem 0.6rem;
  background: #09101d;
  color: #e2e8f0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 0.75rem;
  line-height: 1.3;
  border: 1px solid rgba(255, 238, 0, 0.14);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}

@media (max-width: 640px) {
  #tyten-cookie-banner {
    left: max(0.35rem, env(safe-area-inset-left, 0px));
    max-width: calc(100vw - 0.35rem - 5.75rem);
  }
}

#tyten-cookie-banner .tyten-cookie-text {
  flex: none;
  min-width: 0;
  max-width: none;
}

#tyten-cookie-banner a {
  color: #99dec2;
  text-decoration: underline;
}

#tyten-cookie-banner a:hover {
  color: #b8ead4;
}

#tyten-cookie-banner .tyten-cookie-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex-shrink: 0;
  justify-content: flex-start;
}

#tyten-cookie-banner button {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 0.32rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
}

#tyten-cookie-banner .tyten-btn-accept {
  background: linear-gradient(135deg, #ffee00 0%, #ffe600 40%, #ffd500 100%);
  color: #09101d;
  border: 1px solid rgba(255, 238, 0, 0.45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

#tyten-cookie-banner .tyten-btn-accept:hover {
  filter: brightness(1.06);
}

#tyten-cookie-banner .tyten-btn-essential {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(248, 250, 252, 0.28);
}

#tyten-cookie-banner .tyten-btn-essential:hover {
  background: rgba(255, 238, 0, 0.08);
  border-color: rgba(255, 238, 0, 0.35);
}

/* Footer link — reopen cookie choices (GDPR withdrawal / transparency) */
.tyten-cookie-settings-wrap {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  opacity: 0.85;
}

.tyten-cookie-settings-wrap a#tyten-cookie-settings {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.tyten-cookie-settings-wrap a#tyten-cookie-settings:hover {
  opacity: 1;
}
