.cookie-consent {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 10030;
  display: flex;
  justify-content: flex-start;
  pointer-events: none;
}

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

body.page-home:not(.site-loaded) .cookie-consent {
  opacity: 0;
  visibility: hidden;
}

body.page-home.site-loaded .cookie-consent {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s ease;
}

.cookie-consent__panel {
  position: relative;
  width: min(456px, 100%);
  padding: 22px 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  background:
    radial-gradient(110% 120% at 0% 0%, rgba(255, 132, 64, 0.12) 0%, rgba(255, 132, 64, 0.028) 34%, transparent 68%),
    radial-gradient(100% 120% at 100% 0%, rgba(74, 144, 255, 0.11) 0%, rgba(74, 144, 255, 0.024) 34%, transparent 72%),
    rgba(10, 10, 16, 0.92);
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: rgba(255, 255, 255, 0.84);
  pointer-events: auto;
  overflow: hidden;
  animation: cookieConsentIn 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-consent__panel::after {
  content: "";
  position: absolute;
  inset: auto 22px 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  opacity: 0.7;
}

.cookie-consent__kicker {
  margin: 0 0 10px;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.54);
}

.cookie-consent__title {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: #ffffff;
}

.cookie-consent__text {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.76);
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.cookie-consent__actions .btn {
  min-width: 0;
}

.cookie-consent__actions .btn-primary {
  flex: 0 0 auto;
}

.cookie-consent__actions .btn-ghost {
  flex: 1 1 220px;
}

.cookie-consent__link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.cookie-consent__link:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
}

.footer-bottom-links .footer-cookie-preferences {
  display: inline;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.footer-bottom-links .footer-cookie-preferences:focus,
.footer-bottom-links .footer-cookie-preferences:focus-visible,
.footer-bottom-links .footer-cookie-preferences:active {
  outline: none;
  box-shadow: none;
  text-decoration: none;
}

@keyframes cookieConsentIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .cookie-consent {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .cookie-consent__panel {
    width: 100%;
    padding: 18px 18px 16px;
    border-radius: 24px;
  }

  .cookie-consent__title {
    max-width: none;
    font-size: 24px;
  }

  .cookie-consent__text {
    font-size: 13px;
    line-height: 1.66;
  }

  .cookie-consent__actions {
    flex-direction: column;
  }

  .cookie-consent__actions .btn,
  .cookie-consent__actions .btn-ghost,
  .cookie-consent__actions .btn-primary {
    width: 100%;
    flex: 1 1 auto;
  }
}

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