.vpopup {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 500px;
  height: 435px;
  z-index: 1001;
  padding: 1.125rem;
  display: block;
  border-color: #e1e1e1;
  border-width: 2px;
  border-style: solid;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 0px;
  filter: drop-shadow(1px 0px 20px rgba(0, 0, 0, 0.22));
  transform: translateY(calc(100% + 1.3rem));
  background: #ffffff;
  transition: transform 4s ease-in-out;
  will-change: transform;
  overflow: visible;

  @media (max-width: 767px) {
    height: 550px;
    max-width: 100%;
  }
}

.vpopup.active {
  transform: translateY(0);
}

@media screen and (min-width: 768px) {
  .vpopup {
    right: 100px;
    width: 318px;
  }
}

.vpopup.horizontal {
  left: 0;
  border-radius: 16px !important;
  max-width: unset !important;
  width: 100% !important;
  min-height: fit-content !important;
  height: unset !important;

  @media (min-width: 768px) {
    width: 75% !important;
    left: 10%;
    right: 10%;
    height: 180px !important;
    transform: translateY(calc(100% + 1.3rem));
  }
}

@keyframes slideInUp {
  from {
    transform: translate3d(0, 100%, 0);
    /* start off-screen at bottom */
    visibility: visible;
  }

  to {
    transform: translate3d(0, 0, 0);
    /* end at original position */
    visibility: visible;
  }
}

.vpopup.centre {
  left: 0;
  border-radius: 16px !important;
  max-width: unset !important;
  width: 100% !important;
  min-height: fit-content !important;
  max-height: 500px !important;
  height: unset !important;
  transform: translate3d(0, 100%, 0);
  visibility: hidden;
  transition: unset;
  padding: 16px 8px;
  padding-bottom: 8px;
  border-radius: 24px;

  @media (min-width: 768px) {
    width: 50% !important;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) !important;
  }
}

/* Overlay styles for centre type (popup) */
.vpopup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, visibility;
}

.vpopup.centre.active {
  visibility: visible !important;
  animation: slideInUp 0.3s ease forwards;
}

.vpopup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.vpopup.horizontal.active {
  transform: translateY(0);
}

.vpopup-close {
  align-items: center;
  background-color: #153050;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  flex-grow: 0;
  flex-shrink: 0;
  font-size: 24px;
  height: 2.5rem;
  justify-content: center;
  outline: none;
  pointer-events: auto;
  position: absolute;
  right: 20px;
  top: -1.3rem;
  vertical-align: top;
  width: 2.5rem;
  z-index: 100;
  color: #fff;
}

.vpopup-close:hover {
  background-color: #4a88f5;
}

.vpopup.centre .vpopup-close {
  width: 3rem;
  height: 3rem;
  right: 23px;
}

.vpopup-container {
  height: 100%;
}

.vpopup-body {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

.vpopup.horizontal .vpopup-body {
  @media (min-width: 768px) {
    align-items: flex-start !important;
  }
}

.vpopup-content {
  /* position: absolute;
  bottom: 10%;
  margin-top: 1rem !important; */
  margin-bottom: 24px;
}

/* .vpopup.horizontal .vpopup-content {
  @media (min-width: 768px) {
    width: 25%;
    top: 10% !important;
    right: 0 !important;
  }
}

.vpopup.centre .vpopup-content {
  @media (min-width: 768px) {
    left: 18% !important;
  }
} */

.vpopup-cta {
  text-align: center;
  margin-left: -14rem;
  margin-top: -4rem;

  @media (max-width: 1199.98px) {
    margin-left: -10rem;
  }


  @media (max-width: 1099px) {
    margin-left: -8rem;
    margin-top: -2rem;
  }


  @media (max-width: 992px) {
    margin-left: -8rem;
    margin-top: -2rem;
  }

  @media (max-width: 870px) {
    margin-left: -6rem;
  }

  @media (max-width: 767.98px) {
    margin-top: -5rem;
    margin-left: 0;
  }

  .primary-button {
    @media (max-width: 992px) {
      font-size: 1rem;
      padding-left: 1rem;
      padding-right: 1rem;
    }
  }
}

.vpopup-image {
  height: 100%;
  width: 100%;

  img {
    aspect-ratio: auto 884 / 535;
    width: 100%;
    max-height: 535px;
  }

  @media (max-width: 768px) {
    max-width: 360px;
  }
}

.vpopup.horizontal .vpopup-image {
  @media (min-width: 768px) {
    width: 75% !important;
  }
}

.vpopup.horizontal .vpopup-image img {
  height: inherit !important;
  width: inherit !important;
}

.vpopup.centre .vpopup-image img {
  max-width: none;

  @media (max-width: 768px) {
    max-width: 360px;
  }
}

.vpopup-image img {
  height: 100%;
  width: 100%;
}

.primary-button {
  box-sizing: border-box;
  cursor: pointer;
  border: none;
  background-color: #153050;
  border-radius: 8px;
  box-shadow: 0 9px 17px 0 rgba(38, 133, 245, 0.28);
  height: 3rem;
  padding: 0 1.5rem;
  position: relative;
  overflow: hidden;
}

.primary-button::after {
  background: #fff;
  content: "";
  height: 155px;
  left: -75px;
  opacity: 0.2;
  position: absolute;
  top: -50px;
  transform: rotate(35deg);
  transition: all 0.55s cubic-bezier(0.19, 1, 0.22, 1);
  width: 50px;
  z-index: 1;
}

.primary-button:hover::after {
  left: 120%;
  transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
}

.primary-button .primary-button-title {
  color: #ffffff;
  font-size: 1rem;
  font-family: var(--font-bold);
  text-align: center;
}

@media screen and (min-width: 768px),
print {
  .primary-button {
    height: 48px;
    padding: 0 2.5rem;
  }

  .primary-button .primary-button-title {
    letter-spacing: 0.22px;
    font-size: 1rem;
  }

  .vpopup.centre .primary-button,
  .vpopup.horizontal .primary-button {
    height: 64px !important;
  }

  .vpopup.centre .primary-button-title,
  .vpopup.horizontal .primary-button-title {
    font-size: 22px !important;
  }
}

.has-text-centered {
  text-align: center !important;
}

.vpopup-head {
  display: flex;
  justify-content: flex-end;
}

/* Cross-browser fixes for Safari & Firefox */
.vpopup,
.vpopup.active,
.vpopup.horizontal,
.vpopup.centre {
  -webkit-transform: translateY(calc(100% + 1.3rem));
  -moz-transform: translateY(calc(100% + 1.3rem));
  -ms-transform: translateY(calc(100% + 1.3rem));
  -o-transform: translateY(calc(100% + 1.3rem));
  transform: translateY(calc(100% + 1.3rem));

  -webkit-transition: -webkit-transform 4s ease-in-out;
  -moz-transition: -moz-transform 4s ease-in-out;
  -o-transition: -o-transform 4s ease-in-out;

  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  backface-visibility: hidden;
}

.vpopup.active,
.vpopup.horizontal.active {
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
  transform: translateY(0);
}

/* Keyframes with prefixes for Safari/Firefox */
@-webkit-keyframes slideInUp {
  from {
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
    visibility: visible;
  }

  to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }
}

@-moz-keyframes slideInUp {
  from {
    -moz-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
    visibility: visible;
  }

  to {
    -moz-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }
}

@keyframes slideInUp {
  from {
    transform: translate3d(0, 100%, 0);
    visibility: visible;
  }

  to {
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }
}

.vpopup.centre.active {
  visibility: visible !important;
  -webkit-animation: slideInUp 0.3s ease forwards;
  -moz-animation: slideInUp 0.3s ease forwards;
  animation: slideInUp 0.3s ease forwards;
}

.vpopup.vertical-popup .vpopup-content {
  position: absolute;
  bottom: 3%;
}

.vpopup.vertical-popup .vpopup-content .vpopup-cta {
  all: unset;
}

@media screen and (min-width: 767.98px) {

  .vpopup.horizontal .vpopup-body {
    height: unset !important;
  }

  .vpopup.horizontal .vpopup-image {
    height: unset;
    width: 75% !important;
    padding-left: 0;
  }

  .vpopup.horizontal .vpopup-image img {
    aspect-ratio: auto 768 / 222;
    width: 75% !important;
    height: 100% !important;
  }

  .vpopup.horizontal .vpopup-content {
    width: 25%;
    position: absolute;
    top: 42px;
    right: 0;
    margin: unset;
  }
}

@media screen and (max-width: 767.98px) {
  .vpopup.horizontal .vpopup-content {
    margin-top: 1.5rem;
  }

  .vpopup.horizontal .vpopup-content .vpopup-cta .primary-button {
    position: absolute;
    bottom: 19%;
    left: 50%;
    transform: translateX(-50%);
  }
}

.vpopup.horizontal .vpopup-content .vpopup-cta {
  all: unset;
}