.theo-cookie-panel[hidden], .theo-cookie-settings[hidden] {
  display: none;
}
.theo-cookie-settings {
  font: inherit;
  color: inherit;
  text-decoration: underline;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
/* The old layout positions the page content absolutely above the body. */
body > .theo-cookie-settings {
  position: fixed;
  left: 1rem;
  bottom: .5rem;
  z-index: 9999;
  padding: .35rem .65rem;
  background: white;
  color: #254c75;
}
.theo-cookie-panel {
  position: fixed;
  z-index: 10000;
  left: 1rem;
  bottom: 1rem;
  width: min(28rem, calc(100vw - 2rem));
  max-height: calc(100% - 2rem);
  overflow: auto;
  box-sizing: border-box;
  padding: 1.25rem;
  border: 1px solid #c9d9ec;
  border-radius: .5rem;
  background: white;
  color: #1d1f20;
  box-shadow: 0 .25rem 1.5rem rgba(29, 31, 32, .16);
  font: 1rem/1.5 Arial, sans-serif;
  text-align: left;
}
.theo-cookie-panel h2 {
  margin: 0;
  font: bold 1.25rem/1.3 Arial, sans-serif;
}
.theo-cookie-panel p {
  margin: .6rem 0 0;
  padding: 0;
  font: inherit;
}
.theo-cookie-panel a {
  text-decoration: underline;
}
.theo-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}
.theo-cookie-actions button {
  flex: 1 1 7rem;
  padding: .65rem;
  border: 1px solid #305e91;
  border-radius: .25rem;
  background: #edf2f9;
  color: #254c75;
  font: bold 1rem/1.4 Arial, sans-serif;
  cursor: pointer;
}
.theo-cookie-actions button:hover {
  background: #dce8f4;
}
.theo-cookie-actions button:focus-visible, .theo-cookie-settings:focus-visible {
  outline: 2px solid #305e91;
  outline-offset: 2px;
}
