.twz-popup {
  --popup-overlay: rgba(0, 0, 0, 0.55);
  --popup-bg: #1a120e;
  --popup-color: var(--white, #fff);
  --popup-muted: rgba(255, 255, 255, 0.78);
  --popup-radius: 1.2rem;
  --popup-width: min(calc(100% - 2rem), 37rem);
  --popup-zindex: 10050;
  --popup-btn-bg: var(--orange-500, #ff4e02);
  --popup-btn-color: var(--white, #fff);
  --popup-close-bg: rgba(0, 0, 0, 0.45);
  --popup-close-color: var(--white, #fff);
  --popup-close-size: 3rem;
  --popup-padding: 2.4rem 2.5rem 2.8rem;
  --popup-title-size: 2.4rem;
  --popup-text-size: 1.4rem;
  --popup-shadow: 0 1.6rem 4rem rgba(0, 0, 0, 0.35);
  position: fixed;
  inset: 0;
  z-index: var(--popup-zindex, 10050);
  align-items: end;
  justify-content: end;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 1rem;
  background: transparent;
  overflow: visible;
  color: inherit;
}
@media (min-width: 600px) {
  .twz-popup {
    --popup-width: min(calc(100% - 4rem), 40rem);
    --popup-title-size: 2.8rem;
    --popup-padding: 3rem 3.2rem 3.2rem;
  }
}
@media (min-width: 600px) {
  .twz-popup {
    padding: 2rem;
  }
}
.twz-popup[open] {
  display: flex;
}
.twz-popup::backdrop {
  background: var(--popup-overlay, rgba(0, 0, 0, 0.55));
}
.twz-popup--no-overlay {
  pointer-events: none;
}
.twz-popup--no-overlay::backdrop {
  display: none;
  background: transparent;
  pointer-events: none;
}
.twz-popup--no-overlay .twz-popup__dialog {
  pointer-events: auto;
}
.twz-popup--center {
  align-items: center;
  justify-content: center;
}
.twz-popup--bottom-left {
  align-items: end;
  justify-content: start;
}
.twz-popup--bottom-right {
  align-items: end;
  justify-content: end;
}
.twz-popup__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: var(--popup-width, min(100% - 2rem, 37rem));
  max-height: min(95dvh, 86rem);
  overflow-x: clip;
  overflow-y: auto;
  background: var(--popup-bg, #1a120e);
  color: var(--popup-color, #fff);
  border-radius: var(--popup-radius, 1.2rem);
  box-shadow: var(--popup-shadow, 0 1.6rem 4rem rgba(0, 0, 0, 0.35));
}
.twz-popup__dialog:focus {
  outline: none;
}
.twz-popup__close {
  position: absolute;
  inset-block-start: 1.1rem;
  inset-inline-end: 1.1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--popup-close-size, 3rem);
  height: var(--popup-close-size, 3rem);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--popup-close-bg, rgba(0, 0, 0, 0.45));
  color: var(--popup-close-color, #fff);
  cursor: pointer;
}
.twz-popup__close-icon {
  width: 1.4rem;
  height: 1.4rem;
}
.twz-popup__media {
  overflow: clip;
  flex: 0 0 auto;
}
.twz-popup__image {
  display: block;
  width: 100%;
  height: auto;
}
.twz-popup__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: var(--popup-padding, 2.4rem 2.5rem 2.8rem);
  text-align: center;
}
.twz-popup__title {
  margin: 0;
  font-size: var(--popup-title-size, 2.4rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--popup-color, #fff);
  text-transform: uppercase;
}
.twz-popup__text {
  font-size: var(--popup-text-size, 1.4rem);
  line-height: 1.4;
  color: var(--popup-muted, rgba(255, 255, 255, 0.78));
}
.twz-popup__text :where(p) {
  margin: 0;
}
.twz-popup__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 23rem);
  margin-block-start: 0.8rem;
  background: var(--popup-btn-bg, #ff4e02);
  color: var(--popup-btn-color, #fff);
  text-decoration: none;
}

body.twz-popup--active {
  overflow: clip;
}

@media (prefers-reduced-motion: reduce) {
  .twz-popup {
    scroll-behavior: auto;
  }
}
