.cookie-consent {
  position: fixed;
  z-index: 110;
  left: 50%;
  bottom: calc(clamp(12px, 2vw, 24px) + env(safe-area-inset-bottom, 0px));
  width: min(780px, calc(100% - 32px));
  padding: 18px 18px 18px 22px;
  border-radius: 16px;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 18px 50px rgba(1, 25, 52, .2);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 48px));
  transition: opacity .24s ease, transform .24s cubic-bezier(.22, 1, .36, 1);
}

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

.cookie-consent.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.cookie-consent p {
  min-width: 0;
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cookie-consent a {
  color: var(--blue2);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cookie-consent button {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--blue2);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.cookie-consent button:hover {
  background: var(--blue);
  transform: translateY(-1px);
}

.cookie-consent button:focus-visible,
.cookie-consent a:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .cookie-consent {
    width: calc(100% - 24px);
    padding: 16px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cookie-consent p {
    font-size: 14px;
  }

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

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