/* Loader */

.planity-loader {
    display: none;
}

#planity-appointment:empty ~ .planity-loader {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1em;
    margin-top: 4em
}

.progress-bar-container {
    height: 20px;
    width: 200px;
    position: relative;
    overflow: hidden;
}

.progress-bar-container > .bar {
    width: 0;
    height: 100%;
    background-color: var(--secondary-color);
    position: absolute;
    animation: planity-loading 1.5s infinite ease-in-out;
}

@keyframes planity-loading {
    0% {
        width: 0%;
        left: 0;
    }
    50% {
        width: 100%;
        left: 0;
    }
    100% {
        width: 0%;
        left: 100%;
    }
}
