.delayed-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  visibility: hidden;
  opacity: 0;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.delayed-modal.is-visible {
  visibility: visible;
  opacity: 1;
}

.delayed-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(33, 33, 33, 0.75);
  z-index: -1;
}

.delayed-modal__container {
  position: relative;
  z-index: 2;

  width: min(90%, 800px);
  max-height: 90vh;
  overflow-y: auto;

  background: #fafafa;

  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.30);

  border-radius: 4px;
}

.delayed-modal__content {
    padding: 32px 64px;
    max-width: 1024px;
    max-height: 640px;
    background: #fafafa;
    color: #212121;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
}

.delayed-modal__image {
    width: auto;
}

.delayed-modal__image {
    width: auto;
    max-width: 150px;
    margin-bottom: 16px;
}

#delayed-modal-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 100%;
}

#delayed-modal-subtitle {
    font-size: 16px;
    margin-bottom: 16px;
}

.delayed-modal__body {
  color: #212121;
}

.delayed-modal__close {
  position: absolute;

  top: -48px;
  right: 0;

  width: 48px;
  height: 48px;

  padding: 0;
  border: 0;

  background: #2962FF;
  color: #fff;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 32px;
  line-height: 1;

  z-index: 3;
}

.delayed-modal__close:hover {
  background: #0039CB;
}

.delayed-modal__close:focus {
  outline: 3px solid rgba(41, 98, 255, 0.35);
  outline-offset: 3px;
}

body.delayed-modal-open {
  overflow: hidden;
}

.delayed-modal__body iframe {
    width: 100%;
    height: 508px;
    border: none;
}

@media (max-width: 768px) {

  .delayed-modal__container {
    width: calc(100% - 32px);
    max-height: 85vh;
  }

    .delayed-modal__content {
        padding: 16px;
        width: calc(100% - 32px);
        max-height: 60vh;
    }

    .delayed-modal__close {
        top: -48px;
        right: 0;
    }

}
