.cookie-banner {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  color: #1f2937;
}

.cookie-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2rem, 62rem);
  margin-inline: auto;
  padding: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.6rem;
  background: #ffffff;
  box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 20%);
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner a {
  color: #1d4ed8;
}

.cookie-banner__actions {
  display: flex;
  flex: none;
  gap: 0.5rem;
}

.cookie-banner button {
  padding: 0.6rem 0.9rem;
  border: 1px solid #9ca3af;
  border-radius: 0.4rem;
  color: inherit;
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.cookie-banner button:hover {
  background: #f3f4f6;
}

.cookie-banner .cookie-banner__accept {
  border-color: #2563eb;
  color: #ffffff;
  background: #2563eb;
}

.cookie-banner .cookie-banner__accept:hover {
  background: #1d4ed8;
}

@media (max-width: 40rem) {
  .cookie-banner__content {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-banner__actions {
    justify-content: flex-end;
  }
}

@media (prefers-color-scheme: dark) {
  .cookie-banner {
    color: #f3f4f6;
  }

  .cookie-banner__content {
    border-color: #4b5563;
    background: #1f2937;
  }

  .cookie-banner a {
    color: #93c5fd;
  }

  .cookie-banner button {
    border-color: #6b7280;
    background: #374151;
  }

  .cookie-banner button:hover {
    background: #4b5563;
  }

  .cookie-banner .cookie-banner__accept {
    border-color: #3b82f6;
    background: #3b82f6;
  }

  .cookie-banner .cookie-banner__accept:hover {
    background: #2563eb;
  }
}
