/*
 * Cookie consent banner — shared by the landing page and backend-rendered
 * templates. Values are hardcoded rather than referencing page-specific CSS
 * custom properties so the banner renders identically on every surface.
 */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  background: #12121a;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.15);
  color: #e2e8f0;
  font-family: inherit;
  transform: translateY(12px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1 1 320px;
}

.cookie-banner-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cookie-banner-text p {
  color: #94a3b8;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}

.cookie-banner-text a {
  color: #22d3ee;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
}

.cookie-btn:active {
  transform: translateY(1px);
}

.cookie-btn-decline {
  background: transparent;
  color: #e2e8f0;
  border-color: rgba(99, 102, 241, 0.45);
}

.cookie-btn-decline:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  color: #0a0a0f;
}

.cookie-btn-accept:hover {
  filter: brightness(1.08);
}

@media (max-width: 640px) {
  .cookie-banner-inner {
    padding: 16px 18px;
    gap: 14px;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
