.c-popup {
  block-size: 100%;
  inline-size: 100%;
  inset-block-start: 0;
  inset-inline-start: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  visibility: hidden;
  z-index: 10000;
}
.c-popup.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.c-popup__overlay {
  background: rgba(16, 24, 32, 0.5);
  block-size: 100%;
  inline-size: 100%;
}

.c-popup__wrapper {
  align-items: safe center;
  justify-content: center;
  block-size: 100%;
  display: flex;
  margin-inline: auto;
  max-inline-size: 680px;
  overflow: auto;
}

.c-popup__container {
  background-color: var(--si-color-white);
  display: flex;
  flex-flow: nowrap column;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: var(--si-space-40);
  padding-block: 60px 20px;
  padding-inline: 20px;
  position: relative;
}
.c-popup__container iframe {
  border: none;
  width: calc(100vw - 120px);
}
@media (min-width: 768px) {
  .c-popup__container {
    padding-block: 60px;
    padding-inline: 60px;
  }
}

.c-popup__close {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: var(--si-i-close) no-repeat center;
  background-size: 28px;
  block-size: 40px;
  border: none;
  font: 0/0 transparent;
  inline-size: 40px;
  inset-block-start: 4px;
  inset-inline-end: 4px;
  position: absolute;
  cursor: pointer;
}

.c-popup__heading {
  margin-block-end: 8px;
}

.c-popup__text {
  font-weight: var(--si-fw-semibold);
  font-size: var(--si-fs-heading-h5);
  line-height: var(--si-lh-heading-h5);
}
.c-popup__text p {
  font-weight: var(--si-fw-semibold);
  font-size: var(--si-fs-heading-h5);
  line-height: var(--si-lh-heading-h5);
}

.c-popup__link-wrap {
  display: flex;
  justify-content: flex-start;
}

@keyframes mmfadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes mmfadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.c-popup {
  display: none;
}

.c-popup.is-open {
  display: block;
}

.c-popup[aria-hidden=false] .c-popup__overlay {
  animation: mmfadeIn 350ms cubic-bezier(0, 0, 0.2, 1);
}

.c-popup[aria-hidden=true] .c-popup__overlay {
  animation: mmfadeOut 250ms cubic-bezier(0, 0, 0.2, 1);
}

.c-popup .c-popup__container,
.c-popup .c-popup__overlay {
  will-change: transform;
}