.uam-popup {
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  height: 100%;
  justify-content: center;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
}

.uam-popup.active {
  display: flex;
}

.uam-popup__dialog {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 80dvh;
  max-width: calc(100% - 3rem);
  min-height: 28.125rem;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.uam-popup__close {
  align-items: center;
  background-color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  height: 2rem;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2rem;
  z-index: 1;
}

.uam-popup__close:focus-within,
.uam-popup__close:focus-visible {
  outline: unset;
}

.uam-popup__image {
  height: 100%;
  left: 0;
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 100%;
}

.uam-popup__body {
  bottom: 0;
  max-width: 100%;
  padding-bottom: 2rem;
  padding-left: 24px;
  padding-right: 24px;
  position: absolute;
}

.uam-popup__body .uam-popup__content p:last-child {
  margin-bottom: 0;
}

.uam-popup__cta {
  background-color: rgba(148, 183, 187, 1);
  border-radius: .625rem;
  box-shadow: 0px 4px 6px -4px rgba(0, 0, 0, 0.1), 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
  color: #fff;
  display: flex;
  font-weight: 600;
  justify-content: center;
  margin-top: 1.25rem;
  padding: .75rem 2rem;
  text-decoration: none;
}

.uam-popup__cta:hover {
  background-color: rgba(148, 183, 187, 0.8);
  color: #fff;
}

@media (min-width: 35.5rem) {
  .uam-popup__dialog {
    max-width: 30rem;
  }

  .uam-popup__body {
    padding-bottom: 3rem;
  }

  .uam-popup__cta {
    display: inline-flex;
    margin-top: 1.5rem;
  }
}

@media (min-width: 62rem) {
  .uam-popup__dialog {
    flex-direction: row;
    height: auto;
    max-width: 56.25rem;
  }

  .uam-popup__body {
    max-width: 23.125rem;
    width: 100%;
    top: 4.75rem;
    right: 3rem;
    max-width: 21.25rem;
    right: 2rem;
    padding-bottom: unset;
    padding-left: unset;
    padding-right: unset;
  }
}