/* Cookie / tracking consent banner.
   Uses the site's existing color tokens (defined in site.css :root) so it
   matches the rest of the page. Shown only to visitors in a gated region,
   or re-opened by anyone via the "Cookie settings" footer link. */

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-deep, #06151a);
  border-top: 1px solid var(--border-bright, rgba(20, 184, 166, 0.4));
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
  font-family: var(--font-sans, sans-serif);
}

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

.consent-banner-text {
  flex: 1 1 320px;
  margin: 0;
  color: var(--text, #f8fafc);
  font-size: 14px;
  line-height: 1.5;
}

.consent-banner-text a {
  color: var(--teal-bright, #14b8a6);
  text-decoration: underline;
}

.consent-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

.consent-banner-actions button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  min-height: 44px;
}

.consent-accept {
  background: var(--teal-bright, #14b8a6);
  color: #03090c;
}

.consent-accept:hover {
  background: var(--emerald, #10b981);
}

.consent-reject {
  background: transparent;
  color: var(--text, #f8fafc);
}

.consent-reject:hover {
  background: var(--bg-card-hover, rgba(18, 56, 67, 0.92));
}

.cookie-settings-link {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .consent-banner {
    padding: 14px;
  }
  .consent-banner-actions {
    width: 100%;
  }
  .consent-banner-actions button {
    flex: 1 1 0;
  }
}
