:root {
  --cookie-banner-offset: 0px;
}

/* Reserve space so the fixed banner doesn't cover the footer */
body.has-cookie-banner {
  padding-bottom: var(--cookie-banner-offset);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: rgba(2, 6, 23, 0.96);
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__text {
  max-width: 52rem;
}

.cookie-banner__text strong {
  display: inline-block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.cookie-banner__text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-banner__actions .btn-primary,
.cookie-banner__actions .btn-secondary {
  white-space: nowrap;
}

/* Keep the chat widget above the cookie banner */
body.has-cookie-banner .dietz-chat-button {
  bottom: calc(20px + var(--cookie-banner-offset));
}

body.has-cookie-banner .dietz-chat-panel {
  bottom: calc(84px + var(--cookie-banner-offset));
}

@media (max-width: 720px) {
  .cookie-banner {
    padding: 0.9rem 0;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .cookie-banner__actions .btn-primary,
  .cookie-banner__actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
