.cookie-consent {
  position: fixed;
  right: clamp(16px, 4vw, 36px);
  bottom: clamp(16px, 4vw, 36px);
  left: clamp(16px, 4vw, 36px);
  z-index: 10000;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 860px;
  margin-inline: auto;
  padding: 14px 16px;
  color: #1c1c1c;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(109, 98, 240, 0.16);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(32, 32, 55, 0.14);
  backdrop-filter: blur(18px);
  animation: cookieFadeIn 420ms ease both;
}

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

.cookie-consent__eyebrow,
.cookie-modal__eyebrow {
  margin: 0 0 8px;
  color: #6d62f0;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-consent h2,
.cookie-modal h2 {
  margin: 0;
  color: #1c1c1c;
  font-size: 1rem;
  line-height: 1.12;
}

.cookie-consent p,
.cookie-modal p {
  margin: 7px 0 0;
  color: #606171;
  font-size: 0.82rem;
  line-height: 1.45;
}

.cookie-consent__actions,
.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cookie-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  color: #1c1c1c;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  border: 1px solid rgba(28, 28, 28, 0.16);
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

@keyframes cookieFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

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

.cookie-button:hover,
.cookie-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(28, 28, 28, 0.35);
  box-shadow: 0 12px 28px rgba(28, 28, 28, 0.12);
  outline: none;
}

.cookie-button--primary {
  color: #ffffff;
  background: #1c1c1c;
  border-color: transparent;
}

.cookie-button--ghost {
  color: #1c1c1c;
  background: rgba(255, 255, 255, 0.92);
}

.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(14, 15, 25, 0.42);
  backdrop-filter: blur(8px);
}

.cookie-modal {
  width: min(500px, 100%);
  padding: clamp(18px, 3vw, 26px);
  color: #1c1c1c;
  background: #ffffff;
  border: 1px solid rgba(109, 98, 240, 0.16);
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(14, 15, 25, 0.28);
}

.cookie-toggle {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid rgba(109, 98, 240, 0.14);
  border-radius: 20px;
  background: #f7f7fc;
  cursor: pointer;
}

.cookie-toggle input {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  accent-color: #6d62f0;
}

.cookie-toggle strong {
  display: block;
  color: #1c1c1c;
}

.cookie-toggle span {
  display: block;
  margin-top: 4px;
  color: #606171;
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer-cookie-link {
  padding: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.footer-cookie-link:hover,
.footer-cookie-link:focus-visible {
  color: #6d62f0;
  outline: none;
}

@media (min-width: 760px) {
  .cookie-consent {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .cookie-consent__actions {
    justify-content: flex-end;
  }
}

@media (max-width: 560px) {
  .cookie-consent__actions,
  .cookie-modal__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-button {
    width: 100%;
  }
}

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

  .cookie-button {
    transition: none;
  }
}
