/* Loader container */
.loader {
    display: inline-block;
    width: 64px;
    height: 64px;
    position: relative;
}

/* Circles within loader */
.loader div {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 8px solid var(--col-green-3);
    border-radius: 50%;
    animation: loader-animation 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: var(--col-green-3) transparent transparent transparent;
}

/* Delay each circle to create rotating effect */
.loader div:nth-child(1) {
    animation-delay: -0.45s;
}
.loader div:nth-child(2) {
    animation-delay: -0.3s;
}
.loader div:nth-child(3) {
    animation-delay: -0.15s;
}

/* Keyframes for rotating animation */
@keyframes loader-animation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}