.cookie-banner {
  background: #fff;
  border: 0.125rem solid #2f6f4e;
  border-radius: 0.75rem;
  bottom: 1rem;
  box-shadow: 0 0.5rem 2rem rgb(0 0 0 / 18%);
  left: 1rem;
  max-width: 42rem;
  padding: 1.25rem;
  position: fixed;
  right: 1rem;
  z-index: 1100;
}

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

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cookie-button {
  background: #fff;
  border: 0.125rem solid #2f6f4e;
  border-radius: 0.4rem;
  color: #173d2a;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.65rem 1rem;
}

.cookie-button--primary {
  background: #2f6f4e;
  color: #fff;
}

.cookie-button:focus-visible,
.cookie-preferences-link:focus-visible {
  outline: 0.2rem solid #0d6efd;
  outline-offset: 0.15rem;
}

.cookie-dialog {
  border: 0;
  border-radius: 0.75rem;
  max-height: calc(100vh - 2rem);
  max-width: 40rem;
  overflow: auto;
  padding: 1.5rem;
  width: calc(100% - 2rem);
}

.cookie-dialog::backdrop {
  background: rgb(0 0 0 / 45%);
}

.cookie-category {
  border-top: 0.0625rem solid #ced4da;
  margin-top: 1rem;
  padding-top: 1rem;
}

.cookie-category__heading {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.cookie-toggle {
  height: 1.25rem;
  width: 1.25rem;
}

.public-cookie-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 1rem;
}

.cookie-policy {
  margin-inline: auto;
  max-width: 52rem;
  padding: 2rem 1rem;
}

.cookie-preferences-link {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

@media (max-width: 36rem) {
  .cookie-actions {
    display: grid;
  }

  .cookie-button {
    width: 100%;
  }
}
