.cookie-preferences {
  position: fixed;
  z-index: 45;
  inset-inline-end: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: min(28rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  overflow: auto;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid #cbd5e1;
  border-radius: 1rem;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 12px 40px rgb(15 23 42 / 18%);
}

.cookie-preferences h2 {
  margin: 0;
  font-size: 1.25rem;
}

.cookie-preferences p {
  margin: 0.6rem 0;
}

.cookie-preferences a {
  color: #1d4ed8;
  text-decoration: underline;
}

.cookie-preferences-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.cookie-preferences-actions button {
  min-height: 44px;
  padding: 0.5rem;
  border: 1px solid #1d4ed8;
  border-radius: 0.65rem;
  color: #1d4ed8;
  background: #eff6ff;
  font: inherit;
  font-weight: 700;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.cookie-preferences-actions button:hover {
  background: #dbeafe;
}

.footer-cookie-preferences {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 0.9rem;
  text-align: start;
  cursor: pointer;
}

.footer-cookie-preferences:hover {
  color: #fff;
  text-decoration: underline;
}

.cookie-preferences :focus-visible,
.footer-cookie-preferences:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
