/*! UNITS v0.1.20 | MIT License | Copyright 2017 @kokushing | mail@kokush.in | https://unitscss.com */
/**
 * UNITS loading components
 *
 * ==================================
 * @base:   [.uc-loading]
 * ==================================
 * @parts:  [.uc-***]
 *          [.uc-***]
 * ==================================
 * @option: [._***]
 *          [._***]
 * ==================================
 */

.uc-loading {
  display: none;
  background-color: transparent;
}

.uc-loading._is-active {
    display: inline-block;
  }

.uc-loading._bar._is-active {
    display: block;
  }

.uc-loading-icon {
  display: block;
  position: relative;
  z-index: 5999;
}

.uc-loading-icon:before,
  .uc-loading-icon:after {
    content: " ";
    display: block;
  }

/**
   * Spinner icon
   */

._spinner .uc-loading-icon {
    width: 56px;
    height: 56px;
    background-color: transparent;
    border: 4px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    -webkit-animation: spinner linear 2s 0s infinite;
            animation: spinner linear 2s 0s infinite;
  }

._spinner .uc-loading-icon:before {
      width: 56px;
      height: 56px;
      background-color: transparent;
      position: absolute;
      top: -4px;
      left: -4px;
      border-radius: 50%;
    }

._spinner .uc-loading-icon:before {
      border-top: 4px solid white;
      border-bottom: 4px solid transparent;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      -webkit-animation: spinner cubic-bezier(.76, 0, .24, 1) 1s .1s infinite;
              animation: spinner cubic-bezier(.76, 0, .24, 1) 1s .1s infinite;
    }

._spinner._dark .uc-loading-icon {
    border: 4px solid rgba(84, 110, 122, 0.08);
  }

._spinner._dark .uc-loading-icon:before {
      border-top: 4px solid #546e7a;
    }

/**
   * Bar icon
   */

._bar .uc-loading-icon {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.08);
    overflow: hidden;
  }

._bar .uc-loading-icon:before,
    ._bar .uc-loading-icon:after {
      width: 110%;
      height:  4px;
      position: absolute;
      top: 0;
      left: -5%;
    }

._bar .uc-loading-icon:before {
      background-color: white;
      -webkit-animation: bar cubic-bezier(.76, 0, .24, 1) 1s .05s infinite normal;
              animation: bar cubic-bezier(.76, 0, .24, 1) 1s .05s infinite normal;
    }

._bar .uc-loading-icon:after {
      background-color: rgba(255, 255, 255, 0.72);
      -webkit-animation: bar cubic-bezier(.76, 0, .24, 1) 1s 0s infinite normal;
              animation: bar cubic-bezier(.76, 0, .24, 1) 1s 0s infinite normal;
    }

._bar._dark .uc-loading-icon {
    background-color: rgba(84, 110, 122, 0.08);
  }

._bar._dark .uc-loading-icon:before {
      background-color: #546e7a;
    }

._bar._dark .uc-loading-icon:after {
      background-color: rgba(84, 110, 122, 0.72);
    }

@-webkit-keyframes spinner {
  0% {
    -webkit-transform: rotate(0);
            transform: rotate(0);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes spinner {
  0% {
    -webkit-transform: rotate(0);
            transform: rotate(0);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@-webkit-keyframes bar {
  0% {
    -webkit-transform: scaleX(0);
            transform: scaleX(0);
    -webkit-transform-origin: left top;
            transform-origin: left top;
  }
  50% {
  -webkit-transform: scaleX(1);
          transform: scaleX(1);
  }
  100% {
    -webkit-transform: scaleX(0);
            transform: scaleX(0);
    -webkit-transform-origin: right top;
            transform-origin: right top;
  }
}

@keyframes bar {
  0% {
    -webkit-transform: scaleX(0);
            transform: scaleX(0);
    -webkit-transform-origin: left top;
            transform-origin: left top;
  }
  50% {
  -webkit-transform: scaleX(1);
          transform: scaleX(1);
  }
  100% {
    -webkit-transform: scaleX(0);
            transform: scaleX(0);
    -webkit-transform-origin: right top;
            transform-origin: right top;
  }
}
