.cookie-notice {
  position: fixed;
  z-index: 1000;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem max(1.25rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  border-top: 4px solid #e51620;
  background: #0a0a0a;
  color: #fff;
  box-shadow: 0 -12px 32px rgb(0 0 0 / 18%);
  font-family: Arial, Helvetica, sans-serif;
  transform: translateY(0);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
}

.cookie-notice.is-leaving {
  opacity: 0;
  transform: translateY(100%);
}

.cookie-notice__text {
  max-width: 76ch;
  margin: 0;
  font-size: clamp(1rem, 0.94rem + 0.2vw, 1.12rem);
  line-height: 1.45;
}

.cookie-notice__button {
  flex: 0 0 auto;
  min-width: 5.5rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.2rem;
  border: 2px solid #fff;
  border-radius: 0;
  background: #fff;
  color: #0a0a0a;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.cookie-notice__button:hover,
.cookie-notice__button:focus-visible {
  border-color: #e51620;
  background: #e51620;
  color: #fff;
}

.cookie-notice__button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .cookie-notice {
    align-items: stretch;
    flex-direction: column;
    gap: 0.85rem;
    padding-top: 0.9rem;
  }

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

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