#cookie-settings {
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0.35rem 0;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-banner {
  box-sizing: border-box;
  position: fixed;
  inset: auto 1rem 1rem auto;
  z-index: 100;
  width: min(26rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  overflow: auto;
  padding: 1rem;
  background: #171717;
  color: #fff;
  border: 1px solid #aaa;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 2rem #0005;
}

.cookie-banner[hidden],
#cookie-settings[hidden] {
  display: none;
}

.cookie-banner h2 {
  margin: 0;
  font-size: 1.2rem;
}

.cookie-banner p {
  margin: 0.5rem 0 0.75rem;
}

.cookie-banner a {
  color: inherit;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions button {
  flex: 1 1 auto;
  padding: 0.55rem 0.75rem;
  border: 1px solid #aaa;
  border-radius: 0.4rem;
  background: #303030;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.cookie-actions button:hover {
  background: #444;
}
