.pyb-preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 160px;
    margin: 0;
    color: #363a47;
    font-weight: 600;
}

.pyb-preview-loading::before {
    content: "";
    width: 36px;
    height: 36px;
    border: 4px solid #dce8e0;
    border-top-color: #00ae4c;
    border-radius: 50%;
    animation: pyb-preview-spin 0.9s linear infinite;
}

.pyb-preview-loading--compact {
    display: inline-flex;
    flex-direction: row;
    min-height: 48px;
}

.pyb-preview-loading--compact::before {
    width: 22px;
    height: 22px;
    border-width: 3px;
}

@keyframes pyb-preview-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pyb-preview-loading::before {
        animation: none;
    }
}
