.cookie-consent {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 5000;

  max-width: 1180px;
  margin: 0 auto;

  padding: 22px 24px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;

  border: 1px solid rgba(15, 68, 153, .14);
  border-radius: 22px;

  background: rgba(255, 255, 255, .98);

  box-shadow:
    0 24px 70px
    rgba(8, 45, 109, .18);

  backdrop-filter: blur(12px);

  opacity: 0;
  visibility: hidden;

  transform: translateY(60px);

  transition:
    opacity .35s ease,
    transform .35s cubic-bezier(.22, 1, .36, 1),
    visibility .35s ease;
}

.cookie-consent.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-consent-content {
  min-width: 0;
}

.cookie-consent-title {
  display: flex;
  align-items: center;
  gap: 10px;

  margin: 0 0 8px;

  color: var(--dark);

  font-size: 18px;
  font-weight: 900;
}

.cookie-consent-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(15, 68, 153, .08);
  flex-shrink: 0;
}

.cookie-consent-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.cookie-consent-text {
  max-width: 690px;

  margin: 0;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.65;
}

.cookie-consent-text a {
  color: var(--blue);
  font-weight: 800;
}

.cookie-consent-text a:hover {
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;

  flex-wrap: wrap;
}

.cookie-consent-btn {
  min-height: 44px;

  padding: 11px 18px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: #fff;

  color: var(--blue);

  font: inherit;
  font-size: 14px;
  font-weight: 900;

  cursor: pointer;

  white-space: nowrap;

  transition:
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease,
    transform .2s ease;
}

.cookie-consent-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 68, 153, .45);
  background: rgba(15, 68, 153, .07);
}

.cookie-consent-btn.primary {
  border-color: var(--blue);

  background: var(--blue);

  color: #fff;
}

.cookie-consent-btn.primary:hover {
  background: #0c3d8a;
}


/* Footer */

.footer-cookie-settings {
  display: block;

  width: fit-content;

  margin: 0;
  padding: 0;

  border: 0;

  background: transparent;

  color: rgba(255, 255, 255, .72);

  font: inherit;

  cursor: pointer;

  text-align: left;

  transition:
    color .2s ease,
    transform .2s ease;
}

.footer-cookie-settings:hover {
  color: #fff;

  transform: translateX(4px);
}


@media (max-width: 800px) {
  .cookie-consent {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cookie-consent-actions {
    justify-content: flex-start;
  }
}


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

    padding: 20px 18px;

    border-radius: 20px;
  }

  .cookie-consent-title {
    font-size: 17px;
  }

  .cookie-consent-text {
    font-size: 13px;
  }

  .cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .cookie-consent-btn {
    width: 100%;
  }
}


@media (prefers-reduced-motion: reduce) {
  .cookie-consent,
  .cookie-consent-btn,
  .footer-cookie-settings {
    transition: none;
  }

  .cookie-consent-btn:hover,
  .footer-cookie-settings:hover {
    transform: none;
  }
}
