.loader-wrap {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    width: 50px;
    height: 50px;
    position: relative;
    border: 2px solid var(--theme-primary);
    border-radius: 50%;
    animation: right 2s linear infinite;
}

.loader::after,
.loader::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    margin: auto;
    width: 35px;
    height: 35px;
    border: 2px var(--theme-primary);
    border-style: solid dotted;
    border-radius: 50%;
    animation: left 1s linear infinite;
}

.loader::before {
    width: 20px;
    height: 20px;
    border: 2px dotted var(--theme-primary);
    animation: right 1s linear infinite;
}

.loader span {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    margin: auto;
    width: 8px;
    height: 8px;
    background-color: var(--theme-primary);
    border-radius: 50%;
    animation: span-rotate 1s linear infinite alternate;
}

@keyframes right {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(1turn);
    }
}

@keyframes left {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(-1turn);
    }
}

@keyframes span-rotate {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}