/* Cookie consent banner. Adapted from scraping-penguins-website (SPCA-88),
   re-themed to the AoX DEV navy and trimmed to Accept / Reject. */

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: #ffffff;
  box-shadow: 0 -6px 30px rgba(20, 27, 40, 0.25);
  border-top: 3px solid #3b475e;
  animation: cookieConsentIn 0.35s ease;
}

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

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

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

.cookie-consent__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.cookie-consent__body { flex: 1 1 420px; min-width: 260px; }

.cookie-consent__title {
  font-size: 18px;
  font-weight: 700;
  color: #2a3345;
  margin: 0 0 6px;
}

.cookie-consent__text {
  font-size: 14px;
  line-height: 1.7;
  color: #5a6478;
  margin: 0;
}

.cookie-consent__text a {
  color: #3b475e;
  font-weight: 600;
  text-decoration: underline;
  margin-left: 4px;
}

/* Accept and Reject share the same size and weight (no dark pattern). */
.cookie-consent__actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cookie-consent__btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 13px 28px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.cookie-consent__btn:focus-visible {
  outline: 3px solid rgba(59, 71, 94, 0.45);
  outline-offset: 2px;
}

.cookie-consent__btn--primary {
  background: #3b475e;
  color: #ffffff;
  border-color: #3b475e;
}
.cookie-consent__btn--primary:hover { background: #2a3345; border-color: #2a3345; }

.cookie-consent__btn--secondary {
  background: #ffffff;
  color: #3b475e;
  border-color: #3b475e;
}
.cookie-consent__btn--secondary:hover { background: #f0f2f6; }

@media (max-width: 767px) {
  .cookie-consent__inner { padding: 18px 16px; gap: 16px; }
  .cookie-consent__actions { width: 100%; }
  .cookie-consent__btn { flex: 1 1 calc(50% - 6px); text-align: center; padding: 12px 14px; }
}
