// ajax pagination block css.
.sp-real-ajax-pagination {
    .sp-real-pagination-item {
        color: #1E1E1E;
        text-decoration: none;
        border: 1px solid #1E1E1E;
        transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out;

        &:not(.next-prev-button) {
            display: block;
        }

        .sp-real-pagination-prev-icon {
            transform: rotate(180deg);
        }

        // Spinner hidden unless the load-more request is in-flight.
        .sp-real-load-more-spinner {
            display: none;
        }

        // Placed after the equal-specificity `:not(.next-prev-button)` rule so
        // source order makes this win. currentColor keeps the spinner in step
        // with the button text color (normal and hover) from the dynamic CSS.
        &.sp-real-is-loading {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            cursor: default;
            pointer-events: none;

            .sp-real-load-more-spinner {
                display: inline-block;
                width: 1em;
                height: 1em;
                border: 2px solid currentColor;
                border-bottom-color: transparent;
                border-radius: 50%;
                animation: sp-real-load-more-spin 0.8s linear infinite;
            }
        }
    }
}

@keyframes sp-real-load-more-spin {
    to {
        transform: rotate(360deg);
    }
}
