/* ============================================================
   Total Security WP — cookie consent banner (GDPR / ePrivacy)
   Self-contained, loaded on every page regardless of which CSS
   system that page otherwise uses (Tailwind on index.html, plain
   classes in page.css on the sub-pages) — see js/consent.js.
   ============================================================ */

#tswp-cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  transform: translateY(110%);
  transition: transform .35s ease;
  padding: 1rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
#tswp-cookie-banner.is-open {
  transform: translateY(0);
  pointer-events: auto;
}
.tswp-cookie-inner {
  width: 100%;
  max-width: 46rem;
  background: #0a0f18;
  border: 1px solid #1b2836;
  border-radius: .85rem;
  box-shadow: 0 20px 60px -12px rgba(0,0,0,0.6);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-family: 'Inter', system-ui, sans-serif;
}
.tswp-cookie-inner p {
  flex: 1 1 20rem;
  margin: 0;
  font-size: .875rem;
  line-height: 1.55;
  color: #cbd5e1;
}
.tswp-cookie-inner a {
  color: #4db3ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tswp-cookie-actions {
  display: flex;
  gap: .6rem;
  flex-shrink: 0;
}
.tswp-cookie-btn {
  font-size: .8rem;
  font-weight: 600;
  padding: .55rem 1.1rem;
  border-radius: .55rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter .15s, border-color .15s, color .15s, background-color .15s;
  white-space: nowrap;
}
.tswp-cookie-btn--primary { background: #4db3ff; color: #05070c; }
.tswp-cookie-btn--primary:hover { filter: brightness(1.1); }
.tswp-cookie-btn--ghost { background: transparent; border-color: #1b2836; color: #cbd5e1; }
.tswp-cookie-btn--ghost:hover { border-color: rgba(77,179,255,0.55); color: #4db3ff; }

#tswp-cookie-settings {
  position: fixed;
  /* Bottom-right, not bottom-left: the homepage has a fixed left sidebar
     (248px, full-height) with its own promo card pinned to its bottom —
     a bottom-left button here sits right on top of it. Right is clear on
     every page this ships on. */
  right: .9rem; bottom: .9rem;
  z-index: 9998;
  background: #0a0f18;
  border: 1px solid #1b2836;
  color: #64748b;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: .45rem .75rem;
  border-radius: .5rem;
  cursor: pointer;
  opacity: .82;
  transition: opacity .15s, color .15s, border-color .15s;
}
#tswp-cookie-settings:hover {
  opacity: 1;
  color: #4db3ff;
  border-color: rgba(77,179,255,0.45);
}

@media (max-width: 640px) {
  .tswp-cookie-inner { flex-direction: column; align-items: stretch; }
  .tswp-cookie-actions { justify-content: flex-end; }
}

/* The homepage's fixed left sidebar (248px) only becomes visible at this
   same breakpoint (Tailwind's `lg`, its own `lg:translate-x-0`) — below it
   the sidebar is off-canvas, so left:0 is correct there. At/above it, start
   the banner past the sidebar so it never sits over the sidebar's own
   bottom-pinned Pro Tools card while open. Harmless on the sub-pages, which
   have no such sidebar. */
@media (min-width: 1024px) {
  #tswp-cookie-banner { left: 248px; }
}
