.vi-error-popup {
  @include flex(center, flex-start, column nowrap);

  background-color: $vi-bg-gray;
  border-radius: 7px;
  left: calc(50% - 150px);
  padding: 25px;
  position: fixed;
  top: 10px;
  width: 300px;
  z-index: 99999999999999999;

  &__close {
    @include flex(center, center);
    @extend %btn-reset;

    height: 20px;
    position: absolute;
    right: 5px;
    top: 5px;
    transition: transform .3s ease-in-out;
    width: 20px;

    svg {
      fill: $vi-black;
      height: 100% !important;
      width: 100% !important;
    }

    &:hover {
      transform: scale(1.075);
    }
  }

  &__body {
    color: $vi-black;
    font-family: $vi-text-font;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 20px;
    text-align: center;
    width: 100%;
  }

  &__cta {
    @extend .viva-gradient-btn;

    font-size: 13px !important;
    padding: 8px 20px !important;
    width: fit-content;
  }

  &--relative {
    left: unset;
    padding: 25px !important;
    position: relative;
    top: unset;
    width: 260px;
  }

  &--no-close {
    .vi-error-popup__close {
      display: none;
    }
  }
}
