/* Cookie elfogadó sáv – fix alul, amíg nincs elfogadva */

.cookie-popup {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  padding: 0.85rem 1rem;
  background: var(--brand-mesh);
  border-top: 1px solid rgba(45, 212, 191, 0.35);
  box-shadow: 0 -12px 40px rgba(4, 35, 31, 0.35);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, visibility 0.35s ease;
}

.cookie-popup.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-popup__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.cookie-popup__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(240, 253, 250, 0.92);
}

.cookie-popup__link {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.cookie-popup__link:hover,
.cookie-popup__link:focus-visible {
  color: #fff;
}

.cookie-popup__btn {
  flex-shrink: 0;
  padding: 0.65rem 1.15rem;
  clip-path: var(--cut-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  color: var(--teal-950);
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 3px 3px 0 rgba(4, 35, 31, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cookie-popup__btn:hover,
.cookie-popup__btn:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(4, 35, 31, 0.24);
}

body.has-cookie-banner {
  --cookie-banner-h: 4.25rem;
}

body.has-cookie-banner .back-to-top {
  bottom: calc(1.25rem + var(--cookie-banner-h));
}

@media (max-width: 720px) {
  body.has-cookie-banner {
    --cookie-banner-h: 5.5rem;
  }

  body.has-cookie-banner .back-to-top {
    bottom: calc(1rem + var(--cookie-banner-h));
  }
}
