/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 10000;
  width: min(calc(100% - 2rem), 920px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(27, 159, 175, 0.22);
  border-radius: 18px;
  box-shadow: 0 18px 54px rgba(26, 43, 30, 0.22);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
  animation: cookieBannerIn 0.45s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) both;
}

.cookie-banner--leaving {
  animation: cookieBannerOut 0.26s ease both;
}

.cookie-banner__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--c-teal-dark, #0A6B78);
  background: linear-gradient(135deg, rgba(184, 228, 239, 0.9), rgba(255, 255, 255, 0.9));
  box-shadow: inset 0 0 0 1px rgba(27, 159, 175, 0.18);
  flex-shrink: 0;
}

.cookie-banner__copy {
  min-width: 0;
}

.cookie-banner__title {
  font-family: var(--font-display, sans-serif);
  font-size: 1.08rem;
  letter-spacing: 1.6px;
  color: var(--c-dark, #1A2B1E);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.cookie-banner__text {
  font-family: var(--font-body, serif);
  font-size: 0.88rem;
  color: var(--c-text-lt, #4A5A4A);
  line-height: 1.55;
}

.cookie-banner__text a {
  color: var(--c-teal-dark, #0A6B78);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(10, 107, 120, 0.35);
}

.cookie-banner__text a:hover {
  color: var(--c-orange, #E87120);
  border-bottom-color: rgba(232, 113, 32, 0.45);
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cookie-banner__btn {
  min-height: 44px;
  border: 0;
  border-radius: var(--r-pill, 999px);
  padding: 0.65rem 1rem;
  font-family: var(--font-body, serif);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t-base, 0.35s ease), box-shadow var(--t-base, 0.35s ease), background var(--t-base, 0.35s ease), color var(--t-base, 0.35s ease);
}

.cookie-banner__btn:hover {
  transform: translateY(-2px);
}

.cookie-banner__btn--ghost {
  color: var(--c-teal-dark, #0A6B78);
  background: rgba(227, 238, 245, 0.75);
}

.cookie-banner__btn--ghost:hover {
  background: rgba(184, 228, 239, 0.8);
}

.cookie-banner__btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--c-orange, #E87120) 0%, #c85510 100%);
  box-shadow: 0 8px 22px rgba(232, 113, 32, 0.25);
}

.cookie-banner__btn--primary:hover {
  box-shadow: 0 12px 30px rgba(232, 113, 32, 0.34);
}

@keyframes cookieBannerIn {
  from {
    opacity: 0;
    transform: translate(-50%, 18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes cookieBannerOut {
  to {
    opacity: 0;
    transform: translate(-50%, 14px) scale(0.98);
  }
}

@media (max-width: 760px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    align-items: start;
    bottom: 0.85rem;
    width: min(calc(100% - 1rem), 420px);
    padding: 1rem;
    border-radius: 16px;
  }

  .cookie-banner__icon {
    display: none;
  }

  .cookie-banner__title {
    font-size: 1rem;
  }

  .cookie-banner__text {
    font-size: 0.84rem;
  }

  .cookie-banner__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .cookie-banner__btn {
    width: 100%;
    padding-inline: 0.7rem;
  }
}
