@charset "UTF-8";
@import "~@jereation/sass-helpers/_mixins";

.jLoading {
  position: fixed;
  z-index: 1000;
}

.jLoading-backdrop, .jLoading-body {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.jLoading-backdrop {
  background-color: transparent;
  pointer-events: none;
}

.jLoading-has-title .jLoading-backdrop {
  background-color: rgba(0, 0, 0, .4);
}

.jLoading.hidden {
  visibility: hidden;
}

.jLoading-body, .jLoading-content {
  @include display-flex;
  @include justify-content(center);
  @include align-items(center);
}

.jLoading-content {
  z-index: 1;
  padding: 10px 15px;
  border-radius: 2px;
  background-color: transparent;
  pointer-events: none;
}

.jLoading-has-title .jLoading-content {
  @include box-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
  background-color: #fff;
}

.jLoading-icon, .jLoading-icon svg {
  width: 32px;
  height: 32px;
}

.jLoading-has-title .jLoading-icon, .jLoading-has-title .jLoading-icon svg {
  width: 30px;
  height: 30px;
}

.jLoading-title {
  display: none;
  margin: 0 5px 0 10px;
  font-size: .9rem;
  color: #666;
}

.jLoading-has-title .jLoading-title {
  display: block;
}

@-webkit-keyframes jLoadingRotate {
  0% {
    @include transform(rotate(0deg));
  }

  100% {
    @include transform(rotate(360deg));
  }
}

@keyframes jLoadingRotate {
  0% {
    @include transform(rotate(0deg));
  }

  100% {
    @include transform(rotate(360deg));
  }
}
