.site-cookie {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 860;
  pointer-events: none;
}

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

.site-cookie__inner {
  width: min(100%, 980px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 16px;
  border: 1px solid rgba(24, 111, 134, 0.2);
  border-left: 4px solid #e2b65f;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #102a33;
  box-shadow: 0 18px 48px rgba(13, 38, 47, 0.18);
  backdrop-filter: blur(14px);
  pointer-events: auto;
  animation: siteCookieSlide 0.28s ease both;
}

.site-cookie p {
  margin: 0;
  color: #334b55;
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 600;
}

.site-cookie__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.site-cookie__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: #176f86;
  font-weight: 800;
  text-decoration: none;
}

.site-cookie__link:hover,
.site-cookie__link:focus-visible {
  background: rgba(23, 111, 134, 0.08);
  color: #0f5264;
}

.site-cookie__button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: #176f86;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(23, 111, 134, 0.22);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-cookie__button:hover,
.site-cookie__button:focus-visible {
  background: #10586b;
  box-shadow: 0 12px 28px rgba(23, 111, 134, 0.3);
  transform: translateY(-1px);
}

.site-cookie__link:focus-visible,
.site-cookie__button:focus-visible {
  outline: 3px solid rgba(226, 182, 95, 0.55);
  outline-offset: 3px;
}

@keyframes siteCookieSlide {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .site-cookie {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .site-cookie__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }

  .site-cookie__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .site-cookie__link,
  .site-cookie__button {
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-cookie__inner,
  .site-cookie__button {
    animation: none;
    transition: none;
  }
}
