/* ============================================================
   Loyal Security Blog — cookie consent banner (GDPR / ePrivacy)
   Same look as the main marketing site's banner (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;
  left: .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; }
}
