.loader {
    margin: 0 auto;
    width: 60px;
    height: 50px;
    text-align: center;
    font-size: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translateY(-50%) translateX(-50%) !important;
    z-index: 999;
    display: none;
}

.loader>div {
    height: 100%;
    width: 8px;
    display: inline-block;
    float: left;
    margin-left: 2px;
    -webkit-animation: delay 0.8s infinite ease-in-out !important;
    animation: delay 0.8s infinite ease-in-out !important;
    background-color: var(--primary);
}

.loader .bar2 {
    -webkit-animation-delay: -0.7s !important;
    animation-delay: -0.7s !important;
}

.loader .bar3 {
    -webkit-animation-delay: -0.6s !important;
    animation-delay: -0.6s !important;
}

.loader .bar4 {
    -webkit-animation-delay: -0.5s !important;
    animation-delay: -0.5s !important;
}

.loader .bar5 {
    -webkit-animation-delay: -0.4s !important;
    animation-delay: -0.4s !important;
}

.loader .bar6 {
    -webkit-animation-delay: -0.3s !important;
    animation-delay: -0.3s !important;
}

@-webkit-keyframes delay {

    0%,
    40%,
    100% {
        -webkit-transform: scaleY(0.05);
    }

    20% {
        -webkit-transform: scaleY(1);
    }
}

@keyframes delay {

    0%,
    40%,
    100% {
        transform: scaleY(0.05);
        -webkit-transform: scaleY(0.05);
    }

    20% {
        transform: scaleY(1);
        -webkit-transform: scaleY(1);
    }
}