/* ============================================================
   COOKIE CONSENT BANNER
   Canonical source: 08_Templates/consent_system/ in the Agency Engine.
   Appended to each site's assets/css/site.css (chassis sites).

   Colors come from the shared GRL tokens so this inherits each
   division's identity with no per-site edits. Fallbacks are
   included so the banner still reads correctly if the token
   layer ever fails to load.
   ============================================================ */

.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  background: var(--near-black, #261B19);
  color: var(--cream, #ECE5D8);
  border: 1px solid rgba(236, 229, 216, .18);
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  padding: 1rem 1.15rem;
  animation: cookieConsentIn .28s ease-out;
}

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

@keyframes cookieConsentIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent { animation: none; }
}

.cookie-consent__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1.5rem;
}

.cookie-consent__text {
  flex: 1 1 22rem;
  margin: 0;
  font-size: .875rem;
  line-height: 1.5;
}

.cookie-consent__text a {
  color: var(--cream, #ECE5D8);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.cookie-consent__actions {
  display: flex;
  gap: .6rem;
  flex: 0 0 auto;
}

.cookie-consent__btn {
  font: inherit;
  font-size: .8125rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .6rem 1.4rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

/* Amber Gold, not var(--accent). The division locks are dark (Weddings
   forest #2D4030, Studio teal #063438, Portraits #102425) and vanish against
   the near-black banner, which left Decline reading as the primary button.
   Gold is a cross-brand thread, carries on every division, and matches the
   gold CTA buttons these sites already use in the nav. */
.cookie-consent__btn--yes {
  background: var(--gold, #A69163);
  color: var(--near-black, #261B19);
}

.cookie-consent__btn--yes:hover {
  background: var(--cream, #ECE5D8);
}

.cookie-consent__btn--no {
  background: transparent;
  color: var(--cream, #ECE5D8);
  border-color: rgba(236, 229, 216, .45);
}

.cookie-consent__btn--no:hover {
  border-color: var(--cream, #ECE5D8);
  background: rgba(236, 229, 216, .08);
}

.cookie-consent__btn:focus-visible {
  outline: 2px solid var(--accent-yellow, #E6E750);
  outline-offset: 2px;
}

@media (max-width: 33rem) {
  .cookie-consent__actions { width: 100%; }
  .cookie-consent__btn { flex: 1; text-align: center; }
}

/* Footer "Cookie Preferences" link. Hidden until a choice has been
   made or the banner has been offered, so US visitors who never see
   the banner never see a dangling link either. */
#cookieSettings[hidden] { display: none; }
