/* Cookie banner (TA-96). Self-contained: landing.html and privacy.html load
   neither Tailwind nor main.css. */

.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px 24px;
  padding: 16px 20px;
  background: #fff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.15);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.consent-banner[hidden],
.consent-banner [hidden] {
  display: none;
}

.consent-banner-body {
  flex: 1;
  min-width: 0;
}

.consent-banner-text,
.consent-banner-current {
  margin: 0;
}

.consent-banner-current {
  margin-top: 6px;
  font-weight: 600;
}

.consent-banner a {
  color: #453fe0;
  text-decoration: underline;
}

.consent-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Reject and Accept share this one style: neither may look like the
   default. */
.consent-banner-btn {
  min-width: 120px;
  padding: 10px 16px;
  border: 1.5px solid #453fe0;
  border-radius: 8px;
  background: #fff;
  color: #453fe0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.consent-banner-btn:hover {
  background: #eeedfc;
}

.consent-banner-btn:focus-visible {
  outline: 3px solid #a5a1f3;
  outline-offset: 2px;
}

.consent-banner-btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

@media (max-width: 600px) {
  .consent-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .consent-banner-btn {
    flex: 1;
    min-width: 0;
  }
}

/* While the banner is open, pages scroll their last content clear of it
   (static/js/core/consent.js sets --consent-banner-space). */
html.consent-banner-open body {
  padding-bottom: var(--consent-banner-space, 0px);
}
