html.sitewidepopup-is-open,
body.sitewidepopup-is-open {
  overflow: hidden;
}

.sitewidepopup-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 700px);
  max-width: min(90vw, 700px);
  max-height: 85vh;
  margin: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 8px;
  padding: 2rem;
  background: var(--sitewidepopup-background, #cc0000);
  color: var(--sitewidepopup-text-color, #ffffff);
  font-size: var(--sitewidepopup-font-size, 18px);
  font-weight: 700;
  line-height: 1.5;
  z-index: 2147483000;
}

.sitewidepopup-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.sitewidepopup-dialog.sitewidepopup-fallback-open {
  display: block;
}

.sitewidepopup-fallback-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147482999;
  background: rgba(0, 0, 0, 0.65);
}

.sitewidepopup-content {
  overflow-wrap: anywhere;
}

.sitewidepopup-content a {
  color: inherit;
  text-decoration: underline;
}

.sitewidepopup-close {
  position: sticky;
  top: -1.5rem;
  float: right;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: -1.25rem -1.25rem 0.5rem 0.75rem;
  padding: 0;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: 700 1.75rem/1 sans-serif;
  cursor: pointer;
}

.sitewidepopup-close:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.sitewidepopup-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 575px) {
  .sitewidepopup-dialog {
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    padding: 1.5rem;
  }
}
