.te-accueil-notice {
  box-sizing: border-box;
  width: calc(100% - 2rem);
  max-width: 38rem;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 2rem;
  overflow: auto;
  border: 1px solid #d8cbbf;
  border-radius: 0.75rem;
  background: #fffdf9;
  color: #302a25;
  box-shadow: 0 1rem 4rem rgb(0 0 0 / 25%);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}

.te-accueil-notice:not([open]) {
  display: none;
}

.te-accueil-notice::backdrop {
  background: rgb(24 20 17 / 65%);
}

.te-accueil-notice h2 {
  margin: 0 2rem 1rem 0;
  font-family: inherit;
  font-size: 1.4rem;
  line-height: 1.3;
}

.te-accueil-notice p {
  margin: 0 0 1.5rem;
}

.te-accueil-notice .te-notice-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.te-accueil-notice .te-notice-close:hover {
  background: #eee5da;
}

.te-accueil-notice .te-notice-close:focus-visible,
.te-accueil-notice input:focus-visible {
  outline: 3px solid #76543b;
  outline-offset: 3px;
}

.te-accueil-notice .te-notice-preference {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
}

.te-accueil-notice input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.2rem 0 0;
  accent-color: #76543b;
}

@media (max-width: 480px) {
  .te-accueil-notice {
    padding: 1.5rem;
  }
}
