html:has(#wer-site-notice-dialog[open]) {
  overflow: hidden;
}

dialog.wer-site-notice {
  --notice-paper: #fffaf3;
  --notice-ink: #29231f;
  --notice-red: #732b33;
  --notice-green: #192f26;
  --notice-height: calc(100dvh - clamp(24px, 6vw, 72px));

  position: fixed;
  inset: 0;
  isolation: isolate;
  box-sizing: border-box;
  width: min(840px, calc(100% - clamp(24px, 6vw, 72px)));
  max-width: none;
  max-height: var(--notice-height);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: var(--notice-paper);
  color: var(--notice-ink);
  color-scheme: light;
  box-shadow: 0 24px 80px rgb(15 22 17 / 35%);
  font: inherit;
  font-size: 15px;
  line-height: 1.56;
  text-align: start;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}

dialog.wer-site-notice:not([open]) {
  display: none;
}

dialog.wer-site-notice::backdrop {
  background: rgb(12 22 19 / 60%);
}

.wer-site-notice .wer-site-notice__scroll {
  max-height: var(--notice-height);
  overflow: auto;
  overscroll-behavior: contain;
  scroll-behavior: auto;
}

.wer-site-notice .wer-site-notice__layout--image {
  display: grid;
  grid-template-columns: minmax(0, 29%) minmax(0, 1fr);
}

.wer-site-notice .wer-site-notice__art {
  position: relative;
  background: var(--notice-green);
}

.wer-site-notice .wer-site-notice__art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
}

.wer-site-notice .wer-site-notice__content {
  padding: clamp(30px, 5vw, 52px);
}

.wer-site-notice .wer-site-notice__content h2 {
  margin: 0 0 16px;
  padding: 0 22px 0 0;
  color: var(--notice-red);
  font-family: inherit;
  font-size: clamp(27px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-transform: none;
}

.wer-site-notice .wer-site-notice__content p {
  margin: 0 0 12px;
  color: inherit;
  font: inherit;
  white-space: pre-line;
}

.wer-site-notice .wer-site-notice__dates {
  margin: 22px 0 19px;
  padding: 14px 18px;
  border-inline-start: 3px solid #aa7348;
  border-radius: 9px;
  background: #f3e8da;
}

.wer-site-notice .wer-site-notice__dates h3 {
  margin: 0 0 3px;
  color: var(--notice-red);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.wer-site-notice .wer-site-notice__dates p {
  margin: 0;
}

.wer-site-notice .wer-site-notice__dates p + p {
  margin-top: 4px;
}

.wer-site-notice .wer-site-notice__dates .wer-site-notice__period {
  color: var(--notice-green);
  font-size: 17px;
  font-weight: 800;
}

.wer-site-notice .wer-site-notice__content a {
  display: inline-block;
  max-width: 100%;
  color: var(--notice-red);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.wer-site-notice .wer-site-notice__content .wer-site-notice__signature {
  color: var(--notice-green);
  font-weight: 800;
}

.wer-site-notice .wer-site-notice__close,
.wer-site-notice .wer-site-notice__action {
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  min-height: 44px;
  margin: 0;
  border: 1px solid transparent;
  box-shadow: none;
  font: inherit;
  font-weight: 800;
  text-transform: none;
  cursor: pointer;
}

.wer-site-notice .wer-site-notice__close {
  position: absolute;
  z-index: 1;
  inset-block-start: 12px;
  inset-inline-end: 14px;
  width: 44px;
  padding: 0;
  border-color: #e6d9cd;
  border-radius: 50%;
  background: var(--notice-paper);
  color: var(--notice-red);
}

.wer-site-notice .wer-site-notice__close::before,
.wer-site-notice .wer-site-notice__close::after {
  position: absolute;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
}

.wer-site-notice .wer-site-notice__close::after {
  transform: rotate(-45deg);
}

.wer-site-notice .wer-site-notice__close:hover {
  background: #f3e8da;
}

.wer-site-notice .wer-site-notice__action {
  margin-top: 4px;
  padding: 7px 21px;
  border-radius: 8px;
  background: var(--notice-red);
  color: #fff;
}

.wer-site-notice .wer-site-notice__action:hover {
  background: #582026;
}

.wer-site-notice :is(button, a):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.wer-site-notice .wer-site-notice__action:focus-visible {
  outline-color: var(--notice-red);
}

.wer-site-notice .wer-site-notice__close:focus-visible {
  outline-offset: -5px;
}

@media (max-width: 640px) {
  .wer-site-notice .wer-site-notice__layout--image {
    grid-template-columns: minmax(0, 1fr);
  }

  .wer-site-notice .wer-site-notice__art {
    min-height: clamp(96px, 20vw, 134px);
  }

  .wer-site-notice .wer-site-notice__art img {
    object-position: center 52%;
  }

  .wer-site-notice .wer-site-notice__content {
    padding: 25px clamp(16px, 5vw, 30px) 28px;
  }

  .wer-site-notice .wer-site-notice__layout:not(.wer-site-notice__layout--image) .wer-site-notice__content {
    padding-top: 56px;
  }

  .wer-site-notice .wer-site-notice__content h2 {
    padding: 0;
  }
}
