.pre-react-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-out;
}

.pre-react-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.pre-react-loader__container {
    text-align: center;
    padding: 2rem;
}

.pre-react-loader__spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: pre-react-spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.pre-react-loader__text {
    font-family: "Exo", Arial, sans-serif;
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

@keyframes pre-react-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Hide the cart container initially to prevent flash */
#cart-container {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

#cart-container.react-ready {
    opacity: 1;
}