.cookie-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1080;
  padding: 0.75rem;
  pointer-events: none;
}

html:has(#cookie-settings) {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html:has(#cookie-settings) {
    scroll-behavior: auto;
  }
}

.cookie-bar__content {
  width: min(100%, 960px);
  max-height: min(72vh, 560px);
  margin: 0 auto;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.75rem;
  box-shadow: 0 -0.25rem 1.5rem rgba(0, 0, 0, 0.2);
  pointer-events: auto;
}

.cookie-bar__body {
  padding: 1rem 1rem 0.5rem;
}

.cookie-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 1rem 1rem;
}

body.with-cookie-bar {
  padding-bottom: calc(var(--cookie-bar-height, 240px) + 1rem);
}

@media (max-width: 575.98px) {
  .cookie-bar {
    padding: 0.5rem;
  }

  .cookie-bar__content {
    max-height: 75vh;
    border-radius: 0.6rem;
  }

  .cookie-bar__body {
    padding: 0.85rem 0.85rem 0.4rem;
    font-size: 0.925rem;
  }

  .cookie-bar__actions {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0.4rem 0.85rem 0.85rem;
  }

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