.cookie-preferences[hidden],
[data-cookie-settings][hidden] {
  display: none;
}

.cookie-preferences {
  position: fixed;
  z-index: 1100;
  inset-inline-end: max(1rem, env(safe-area-inset-right));
  inset-block-end: max(1rem, env(safe-area-inset-bottom));
  width: min(30rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  overflow: auto;
  padding: 1.25rem;
  border: 1px solid #bacada;
  border-radius: 10px;
  background: #fff;
  color: #142b45;
  box-shadow: 0 8px 30px rgb(20 43 69 / 18%);
  font: 1rem/1.5 "Segoe UI", Arial, sans-serif;
}

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

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

.cookie-preferences a,
.cookie-settings {
  text-decoration: underline;
  text-underline-offset: .2em;
}

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

.cookie-actions button {
  flex: 1 0 auto;
  min-height: 44px;
  padding: .55rem .75rem;
  border: 1px solid #1e3a5f;
  border-radius: 6px;
  background: #1e3a5f;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cookie-actions button:hover {
  background: #142b45;
}

.cookie-settings {
  display: block;
  width: fit-content;
  padding: .2rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cookie-preferences :is(button, a):focus-visible,
.cookie-settings:focus-visible {
  outline: 3px solid #4b86b8;
  outline-offset: 3px;
}

.cookie-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cookie-policy-page {
  margin: 0;
  color: #142b45;
  background: #fff;
  font: 1rem/1.6 "Segoe UI", Arial, sans-serif;
}

.cookie-policy-page main {
  width: min(42rem, calc(100% - 2rem));
  margin: 2rem auto 4rem;
}

.cookie-policy-page a {
  color: #1e3a5f;
}

.cookie-policy-page dt {
  overflow-wrap: anywhere;
  font-weight: 600;
}

.cookie-policy-page dd {
  margin: 0 0 .8rem;
}
