/* Engram Cookie Consent Banner — NGIS-CI palette
   Per NGIS_Sprint_Engram_SEO_Optimization_v1 Phase 3
   PDPC Singapore: "Reject all" visually equivalent to "Accept all" */

#engram-cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 9999;
  max-width: 720px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 280ms ease, transform 280ms ease;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
}

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

#engram-cookie-banner .ecb-card {
  background: #0A0E1A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 22px 26px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 0, 0, 0.35);
  color: #EDEFF5;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#engram-cookie-banner .ecb-title {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

#engram-cookie-banner .ecb-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #8A92A6;
}

#engram-cookie-banner .ecb-desc a {
  color: #0BB4B0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#engram-cookie-banner .ecb-desc a:hover { color: #04918E; }

#engram-cookie-banner .ecb-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Both buttons have identical visual weight per PDPC SG guidance —
   only the accent-vs-outline distinction marks the affirmative choice */
#engram-cookie-banner .ecb-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  flex: 1 1 auto;
  min-width: 140px;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

#engram-cookie-banner .ecb-btn-reject {
  background: transparent;
  color: #EDEFF5;
  border-color: rgba(255, 255, 255, 0.18);
}
#engram-cookie-banner .ecb-btn-reject:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.32);
}

#engram-cookie-banner .ecb-btn-accept {
  background: #0BB4B0;
  color: #05070C;
  border-color: #0BB4B0;
}
#engram-cookie-banner .ecb-btn-accept:hover {
  background: #04918E;
  border-color: #04918E;
}

#engram-cookie-banner .ecb-btn:focus-visible {
  outline: 2px solid #0BB4B0;
  outline-offset: 2px;
}

/* Desktop: side-by-side text + buttons */
@media (min-width: 720px) {
  #engram-cookie-banner .ecb-card {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 18px 22px;
  }
  #engram-cookie-banner .ecb-text {
    flex: 1 1 auto;
    min-width: 0;
  }
  #engram-cookie-banner .ecb-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
  }
  #engram-cookie-banner .ecb-btn {
    flex: 0 0 auto;
    min-width: 110px;
  }
}
