// $color-loader: #fff;

// .loader {
//   display: none;
//   position: fixed;
//   left: 0;
//   right: 0;
//   top: 0;
//   bottom: 0;
//   z-index: 9999;
//   background: rgba(0, 0, 0, 0.58);
//   &>div{
//     width: 250px;
//     height: 50px;
//     line-height: 50px;
//     text-align: center;
//     position: fixed;
//     top: 50%;
//     left: 50%;
//     transform: translate(-50%,-50%);
//     font-family: helvetica, arial, sans-serif;
//     text-transform: uppercase;
//     font-weight: 900;
//     color: $color-loader;
//     letter-spacing: 0.2em;
//     z-index: 99999;

//     &::before, &::after {
//       content: "";
//       display: block;
//       width: 15px;
//       height: 15px;
//       background: $color-loader;
//       position: absolute;
//       animation: load .7s infinite alternate ease-in-out;
//     }

//     &::before {
//       top: 0;
//     }

//     &::after {
//       bottom: 0;
//     }
//   }

// }

// @keyframes load {
//   0% { left: 0; height: 30px; width: 15px }
//   50% { height: 8px; width: 40px }
//   100% { left: 235px; height: 30px; width: 15px}
// }






$animation-duration: 1.8s;

.loader {
  z-index: 99999;
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  // display: none;

  &.show {
    display: block;
  }
}

.loader>div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 10px;
    background: #eacbb3;
  border-radius: 5px;
  animation: load $animation-duration ease-in-out infinite;

  &:before,
  &:after {
    position: absolute;
    display: block;
    content: "";
    animation: load $animation-duration ease-in-out infinite;
    height: 10px;
    border-radius: 5px;
  }

  &:before {
    top: -20px;
    left: 10px;
    width: 40px;
    background: var(--color-marron);
  }

  &:after {
    bottom: -20px;
    width: 35px;
    background: var(--color-primary);
  }
}

@keyframes load {
  0% {
    transform: translateX(40px);
  }

  50% {
    transform: translateX(-30px);
  }

  100% {
    transform: translateX(40px);
  }
}