.cookie-consent {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(105, 181, 255, 0.22);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(105, 213, 255, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(8, 18, 33, 0.96), rgba(5, 11, 21, 0.94));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(93, 167, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
}

.cookie-consent.is-visible {
  display: flex;
  animation: cookieConsentIn 220ms ease both;
}

.cookie-consent__copy {
  min-width: 0;
}

.cookie-consent__title {
  margin: 0 0 6px;
  color: #f4f8ff;
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.cookie-consent__text {
  max-width: 760px;
  margin: 0;
  color: #a9b9cc;
  font-size: 0.94rem;
  line-height: 1.55;
}

.cookie-consent__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.cookie-consent__button,
.cookie-consent__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    filter 160ms ease;
}

.cookie-consent__button:hover,
.cookie-consent__link:hover {
  transform: translateY(-1px);
}

.cookie-consent__button--accept {
  border: 1px solid transparent;
  color: #05101c;
  background: linear-gradient(135deg, #72d6ff, #e7f7ff);
}

.cookie-consent__button--minimal,
.cookie-consent__link {
  border: 1px solid rgba(105, 153, 214, 0.22);
  color: #f4f8ff;
  background: rgba(255, 255, 255, 0.045);
}

.cookie-consent__button--minimal:hover,
.cookie-consent__link:hover {
  border-color: rgba(114, 214, 255, 0.38);
  background: rgba(255, 255, 255, 0.07);
}

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

@media (max-width: 760px) {
  .cookie-consent {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
    border-radius: 18px;
  }

  .cookie-consent__actions {
    justify-content: stretch;
  }

  .cookie-consent__button,
  .cookie-consent__link {
    width: 100%;
  }
}
