.cookie-consent {
  position: fixed;
  inset: auto 18px 18px;
  z-index: 1200;
  display: none;
  justify-content: center;
  pointer-events: none;
}

.cookie-consent.is-visible {
  display: flex;
}

.cookie-consent__panel {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(circle at 16% 20%, rgba(62, 104, 255, 0.34), transparent 38%),
    radial-gradient(circle at 86% 72%, rgba(12, 198, 180, 0.22), transparent 34%),
    rgba(12, 12, 28, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  transform: translateY(18px);
  opacity: 0;
  animation: cookiePanelIn 360ms ease forwards;
}

.cookie-consent__kicker {
  margin: 0 0 5px;
  color: #0cc6b4;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cookie-consent__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  line-height: 1.55;
}

.cookie-consent__details {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.cookie-consent__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cookie-consent__button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.48);
}

.cookie-consent__button--primary {
  border-color: transparent;
  background: linear-gradient(100deg, #3e68ff 0%, #0cc6b4 100%);
}

.cookie-consent__button--primary:hover,
.cookie-consent__button--primary:focus-visible {
  border-color: transparent;
  box-shadow: 0 12px 34px rgba(12, 198, 180, 0.18);
}

.cookie-consent__button--link {
  min-width: auto;
  padding: 0 4px;
  border-color: transparent;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  text-transform: none;
  font-size: 0.76rem;
  font-weight: 700;
}

.cookie-consent__button--link:hover,
.cookie-consent__button--link:focus-visible {
  color: #fff;
  border-color: transparent;
  background: transparent;
  transform: none;
}

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

@media (max-width: 700px) {
  .cookie-consent {
    inset: auto 12px 12px;
  }

  .cookie-consent__panel {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .cookie-consent__actions:has(.cookie-consent__button--link:not([hidden])) {
    grid-template-columns: auto 1fr 1fr;
  }

  .cookie-consent__button {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.72rem;
  }
}

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

  .cookie-consent__button {
    transition: none;
  }
}
