.cookie-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  width: min(28rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid rgba(24, 35, 43, .14);
  border-radius: 8px;
  color: #18232b;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 48px rgba(24, 35, 43, .18);
}

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

.cookie-consent h2 {
  margin: 0 0 .45rem;
  font-size: 1rem;
  line-height: 1.25;
}

.cookie-consent p {
  margin: 0 0 .8rem;
  color: #5d6b75;
  font-size: .92rem;
  line-height: 1.45;
}

.cookie-consent a,
button[data-open-cookie-settings] {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
}

button[data-open-cookie-settings] {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1rem;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.cookie-consent button:not([data-open-cookie-settings]) {
  min-height: 42px;
  border: 1px solid rgba(24, 35, 43, .16);
  border-radius: 8px;
  padding: .7rem .9rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cookie-consent-accept {
  color: #fff;
  background: #1f8a5b;
  border-color: #1f8a5b;
}

.cookie-consent-reject {
  color: #18232b;
  background: #fff;
}

@media (max-width: 640px) {
  .cookie-consent {
    right: .75rem;
    bottom: .75rem;
    width: calc(100vw - 1.5rem);
  }

  .cookie-consent-actions button {
    flex: 1 1 10rem;
  }
}
