/* Cookie-consent banner (AICOIN-34) — built from the G2-approved mock-up at
   files/frontend/cookie-banner/. Brand tokens match header.css / footer.css. */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  background: #ffffff;
  border-top: 1px solid #d3d3d3;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 16px 24px;
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner__message {
  font-size: 16px;
  color: #2d2d2d;
  margin: 0;
  flex: 1 1 420px;
  min-width: 0;
}

.cookie-banner__message a {
  color: #008dd2;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-banner__message a:focus-visible {
  outline: 2px solid #0b5ed7;
  outline-offset: 2px;
  border-radius: 2px;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
}

/* Accept and Decline share ONE class on purpose — identical size, weight, colour.
   Neither is styled as "primary" (approved copy/design, G2). */
.cookie-banner__btn {
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 28px;
  min-height: 44px;
  min-width: 120px;
  border-radius: 6px;
  border: 2px solid #319a52;
  background: #ffffff;
  color: #319a52;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cookie-banner__btn:hover {
  background: #eefaf2;
}

.cookie-banner__btn:focus-visible {
  outline: 2px solid #0b5ed7;
  outline-offset: 2px;
}

.cookie-banner__btn:active {
  background: #319a52;
  color: #ffffff;
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 12px 16px;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cookie-banner__message {
    flex-basis: auto;
    text-align: left;
  }

  .cookie-banner__actions {
    gap: 10px;
  }

  .cookie-banner__btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 16px;
  }
}

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

/* Floating "reopen" button (AICOIN-61) — shown bottom-left once a visitor
   has accepted or declined and the banner itself is hidden. Reuses the
   banner's own brand green (matches .cookie-banner__btn:active) and sits at
   the same z-index as the banner it reopens — the two are never visible at
   the same time, so there is no stacking conflict. Additive to, not a
   replacement for, the footer "Cookie Preferences" link below. */
.cookie-banner__reopen {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1050;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: #319a52;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.cookie-banner__reopen:hover {
  background: #277a41;
  transform: scale(1.05);
}

.cookie-banner__reopen:focus-visible {
  outline: 2px solid #0b5ed7;
  outline-offset: 2px;
}

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

  .cookie-banner__reopen:hover {
    transform: none;
  }
}

/* Footer "Cookie Preferences" link — visually matches the sibling copy-right
   links (Privacy Policy / Our Blog / Sitemap) in footer.css .copy-right p.com-para a,
   but is a <button> (it reopens the banner, it does not navigate). */
.footer-cookie-preferences {
  font-family: "Outfit", sans-serif;
  color: #fff;
  font-size: 16px;
  line-height: normal;
  display: inline-block;
  padding-inline: 4px;
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
}

.footer-cookie-preferences:hover,
.footer-cookie-preferences:focus-visible {
  color: #3bb44d;
}

.footer-cookie-preferences:focus-visible {
  outline: 2px solid #3bb44d;
  outline-offset: 2px;
  border-radius: 2px;
}
