/**
 * UF Labs factory — cookie consent banner (standalone).
 * Loaded by analytics.js on every client site, including Design Canvas SPAs
 * that do not link styles.css.
 */
.cookie-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10000;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border-top: 1px solid rgba(37, 48, 41, 0.12);
  box-shadow: 0 -10px 32px rgba(37, 48, 41, 0.12);
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #253029;
  -webkit-font-smoothing: antialiased;
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
}

.cookie-consent-title {
  margin: 0;
  width: 100%;
  font-weight: 700;
  font-size: 1rem;
  color: #1e3b32;
}

.cookie-consent-desc {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #4a5c52;
}

.cookie-consent-desc a {
  color: #2c5347;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-desc a:hover {
  color: #1e3b32;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex-shrink: 0;
}

.cookie-consent-actions .btn {
  appearance: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  min-height: 44px;
}

.cookie-consent-actions .cookie-consent-accept {
  background: #2c5347;
  color: #faf7f2;
  border-color: #2c5347;
}

.cookie-consent-actions .cookie-consent-accept:hover {
  background: #1e3b32;
  border-color: #1e3b32;
}

.cookie-consent-actions .cookie-consent-reject {
  background: #ffffff;
  color: #253029;
  border-color: rgba(37, 48, 41, 0.2);
}

.cookie-consent-actions .cookie-consent-reject:hover {
  background: #f5f1ea;
  border-color: rgba(37, 48, 41, 0.35);
}

@media (max-width: 640px) {
  .cookie-consent {
    padding: 1rem;
  }

  .cookie-consent-actions {
    width: 100%;
  }

  .cookie-consent-actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
