/* East Lane Golf — cookie consent banner.
   Self-hosted. No third-party scripts, no external requests.
   Palette matches the site: green #254506 / cream #ede7d4 / sage #9bb06f. */

.elg-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #163004;
  color: #ede7d4;
  border-top: 3px solid #9bb06f;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .28);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  /* Hidden by default: JS reveals it only when a choice is needed.
     This means no flash of banner for people who've already chosen. */
  display: none;
}
.elg-consent[data-open="true"] { display: block; }

/* Slide up, but never for people who ask for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .elg-consent[data-open="true"] { animation: elg-rise .32s cubic-bezier(.2, .7, .3, 1); }
  @keyframes elg-rise { from { transform: translateY(100%); } to { transform: none; } }
}

.elg-consent__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.elg-consent__title {
  font-family: Fraunces, Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #ede7d4;
  line-height: 1.25;
}

.elg-consent__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  /* Sage on deep green is ~5.9:1 — passes AA. */
  color: #cfd8b8;
}
.elg-consent__text a {
  color: #ede7d4;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.elg-consent__text a:hover { color: #fff; }

.elg-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Accept and Reject are deliberately identical in weight and size.
   The ICO requires rejecting to be as easy as accepting — no dark patterns. */
.elg-btn {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 26px;
  min-height: 44px;               /* comfortable tap target */
  border: 2px solid #ede7d4;
  transition: background .18s ease, color .18s ease;
  flex: 1 1 auto;
}
@media (prefers-reduced-motion: reduce) { .elg-btn { transition: none; } }

.elg-btn--accept { background: #ede7d4; color: #163004; }
.elg-btn--accept:hover { background: #fff; }

.elg-btn--reject { background: transparent; color: #ede7d4; }
.elg-btn--reject:hover { background: rgba(237, 231, 212, .14); }

/* Visible keyboard focus on the dark panel. */
.elg-consent :focus-visible,
.elg-consent__close:focus-visible {
  outline: 3px solid #9bb06f;
  outline-offset: 2px;
}

.elg-consent__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: 0;
  color: #cfd8b8;
  font-size: 26px;
  line-height: 1;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border-radius: 8px;
}
.elg-consent__close:hover { color: #ede7d4; }

/* Current-choice line, shown when reopened from the footer link. */
.elg-consent__status {
  font-size: 13px;
  color: #9bb06f;
  margin: 0;
}
.elg-consent__status strong { color: #ede7d4; }

/* Footer "Cookie settings" trigger inherits each page's footer link styling. */
.elg-cookie-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 760px) {
  .elg-consent__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 22px 24px;
  }
  .elg-consent__copy { flex: 1 1 auto; }
  .elg-consent__actions { flex: 0 0 auto; }
  .elg-btn { flex: 0 0 auto; }
}
