.cookie-preferences[hidden] { display: none; }
.cookie-preferences {
  position: fixed;
  z-index: 10000;
  inset: auto auto 1rem 1rem;
  width: min(27rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  overflow: auto;
  padding: 1.125rem;
  background: #fff;
  color: #202637;
  border: 1px solid #dfe5ea;
  border-radius: .75rem;
  box-shadow: 0 .5rem 2rem #20263726;
  font-size: .9375rem;
  line-height: 1.5;
}
.cookie-preferences h2 { margin: 0 2rem .5rem 0; font-size: 1.125rem; }
.cookie-preferences p { margin: 0; }
.cookie-preferences a { display: inline-block; margin-top: .75rem; text-decoration: underline; }
.cookie-preferences-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .875rem; }
.cookie-preferences-choice {
  flex: 1 1 9rem;
  min-height: 2.75rem;
  padding: .5rem .75rem;
  border: 1px solid #1e1f2d;
  border-radius: .375rem;
  background: #1e1f2d;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cookie-preferences-close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}
.cookie-preferences-link {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}
.cookie-preferences button:focus-visible,
.cookie-preferences-link:focus-visible { outline: 2px solid #137ab2; outline-offset: 3px; }
@media (max-width: 699px) {
  .cookie-preferences { bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); max-height: calc(100% - 7rem); }
}
