/* Cookie consent banner — modern SaaS floating card, matched to the site
   theme: glassy white surfaces with backdrop blur (cf. .page-toolbar,
   .mobile-menu), brand orange #f0844d, generous radii, Barlow typography.
   Action buttons reuse the theme's .btn classes from styles.css. */

#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  flex-direction: column;
  gap: 1rem;

  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);

  padding: 1.25rem 1.5rem;
  z-index: 9999;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.85);
}

/* Desktop: dock as a floating card bottom-left */
@media (min-width: 768px) {
  #cookie-banner {
    left: 1.5rem;
    right: auto;
    bottom: 1.5rem;
    max-width: 26rem;
    border-radius: 16px;
  }
}

.cookie-banner-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cookie-banner-icon {
  color: #f0844d;
  font-size: 1.25rem;
}

.cookie-banner-title {
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

.cookie-banner-text {
  margin: 0;
  color: rgba(0, 0, 0, 0.65);
}

.cookie-banner-text a {
  color: #f0844d;
}

.cookie-banner-text a:hover {
  text-decoration: underline;
}

.cookie-banner-categories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cookie-category {
  margin: 0;
  padding: 0.5rem 0.75rem;
  background: rgba(240, 132, 77, 0.06);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.cookie-category-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cookie-category-note {
  font-size: 0.75rem;
  font-weight: 500;
  color: #f0844d;
  background: rgba(240, 132, 77, 0.12);
  border-radius: 999px;
  padding: 0.05rem 0.6rem;
  white-space: nowrap;
}

.cookie-category-desc {
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.8125rem;
}

#cookie-banner-buttons {
  display: flex;
  gap: 0.75rem;
}

#cookie-banner-buttons .btn {
  flex: 1;
  white-space: nowrap;
}
